5e9f213b30c84e5f4a0b0554ceeadedd08e52d94
[gnulib.git] / ChangeLog
1 2010-01-10  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'unistr/u16-chr'.
4         * modules/unistr/u16-chr-tests: New file.
5         * tests/unistr/test-u16-chr.c: New file.
6
7         Tests for module 'unistr/u8-chr'.
8         * modules/unistr/u8-chr-tests: New file.
9         * tests/unistr/test-u8-chr.c: New file.
10         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
11
12         Tests for module 'unistr/u32-cmp2'.
13         * modules/unistr/u32-cmp2-tests: New file.
14         * tests/unistr/test-u32-cmp2.c: New file.
15
16         Tests for module 'unistr/u16-cmp2'.
17         * modules/unistr/u16-cmp2-tests: New file.
18         * tests/unistr/test-u16-cmp2.c: New file.
19
20         Tests for module 'unistr/u8-cmp2'.
21         * modules/unistr/u8-cmp2-tests: New file.
22         * tests/unistr/test-u8-cmp2.c: New file.
23         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
24
25         Tests for module 'unistr/u32-cmp'.
26         * modules/unistr/u32-cmp-tests: New file.
27         * tests/unistr/test-u32-cmp.c: New file.
28
29         Tests for module 'unistr/u16-cmp'.
30         * modules/unistr/u16-cmp-tests: New file.
31         * tests/unistr/test-u16-cmp.c: New file.
32
33         Tests for module 'unistr/u8-cmp'.
34         * modules/unistr/u8-cmp-tests: New file.
35         * tests/unistr/test-u8-cmp.c: New file.
36         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37
38         Tests for module 'unistr/u32-set'.
39         * modules/unistr/u32-set-tests: New file.
40         * tests/unistr/test-u32-set.c: New file.
41
42         Tests for module 'unistr/u16-set'.
43         * modules/unistr/u16-set-tests: New file.
44         * tests/unistr/test-u16-set.c: New file.
45
46         Tests for module 'unistr/u8-set'.
47         * modules/unistr/u8-set-tests: New file.
48         * tests/unistr/test-u8-set.c: New file.
49         * tests/unistr/test-set.h: New file.
50
51         Tests for module 'unistr/u32-move'.
52         * modules/unistr/u32-move-tests: New file.
53         * tests/unistr/test-u32-move.c: New file.
54
55         Tests for module 'unistr/u16-move'.
56         * modules/unistr/u16-move-tests: New file.
57         * tests/unistr/test-u16-move.c: New file.
58
59         Tests for module 'unistr/u8-move'.
60         * modules/unistr/u8-move-tests: New file.
61         * tests/unistr/test-u8-move.c: New file.
62         * tests/unistr/test-move.h: New file.
63
64         Tests for module 'unistr/u32-cpy'.
65         * modules/unistr/u32-cpy-tests: New file.
66         * tests/unistr/test-u32-cpy.c: New file.
67
68         Tests for module 'unistr/u16-cpy'.
69         * modules/unistr/u16-cpy-tests: New file.
70         * tests/unistr/test-u16-cpy.c: New file.
71
72         Tests for module 'unistr/u8-cpy'.
73         * modules/unistr/u8-cpy-tests: New file.
74         * tests/unistr/test-u8-cpy.c: New file.
75         * tests/unistr/test-cpy.h: New file.
76
77 2010-01-09  Bruno Haible  <bruno@clisp.org>
78
79         Tests for module 'unistr/u32-uctomb'.
80         * modules/unistr/u32-uctomb-tests: New file.
81         * tests/unistr/test-u32-uctomb.c: New file.
82
83         Tests for module 'unistr/u16-uctomb'.
84         * modules/unistr/u16-uctomb-tests: New file.
85         * tests/unistr/test-u16-uctomb.c: New file.
86
87         Tests for module 'unistr/u8-uctomb'.
88         * modules/unistr/u8-uctomb-tests: New file.
89         * tests/unistr/test-u8-uctomb.c: New file.
90
91         Tests for module 'unistr/u32-mbtoucr'.
92         * modules/unistr/u32-mbtoucr-tests: New file.
93         * tests/unistr/test-u32-mbtoucr.c: New file.
94
95         Tests for module 'unistr/u16-mbtoucr'.
96         * modules/unistr/u16-mbtoucr-tests: New file.
97         * tests/unistr/test-u16-mbtoucr.c: New file.
98
99         Tests for module 'unistr/u8-mbtoucr'.
100         * modules/unistr/u8-mbtoucr-tests: New file.
101         * tests/unistr/test-u8-mbtoucr.c: New file.
102
103         Tests for module 'unistr/u32-mbtouc'.
104         * modules/unistr/u32-mbtouc-tests: New file.
105         * tests/unistr/test-u32-mbtouc.c: New file.
106
107         Tests for module 'unistr/u16-mbtouc'.
108         * modules/unistr/u16-mbtouc-tests: New file.
109         * tests/unistr/test-u16-mbtouc.c: New file.
110
111         Tests for module 'unistr/u8-mbtouc'.
112         * modules/unistr/u8-mbtouc-tests: New file.
113         * tests/unistr/test-u8-mbtouc.c: New file.
114
115         Tests for module 'unistr/u32-mbtouc-unsafe'.
116         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
117         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
118         * tests/unistr/test-u32-mbtouc.h: New file.
119
120         Tests for module 'unistr/u16-mbtouc-unsafe'.
121         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
122         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
123         * tests/unistr/test-u16-mbtouc.h: New file.
124
125         Tests for module 'unistr/u8-mbtouc-unsafe'.
126         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
127         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
128         * tests/unistr/test-u8-mbtouc.h: New file.
129
130         Tests for module 'unistr/u32-mblen'.
131         * modules/unistr/u32-mblen-tests: New file.
132         * tests/unistr/test-u32-mblen.c: New file.
133
134         Tests for module 'unistr/u16-mblen'.
135         * modules/unistr/u16-mblen-tests: New file.
136         * tests/unistr/test-u16-mblen.c: New file.
137
138         Tests for module 'unistr/u8-mblen'.
139         * modules/unistr/u8-mblen-tests: New file.
140         * tests/unistr/test-u8-mblen.c: New file.
141
142         Tests for module 'unistr/u32-to-u16'.
143         * modules/unistr/u32-to-u16-tests: New file.
144         * tests/unistr/test-u32-to-u16.c: New file.
145
146         Tests for module 'unistr/u32-to-u8'.
147         * modules/unistr/u32-to-u8-tests: New file.
148         * tests/unistr/test-u32-to-u8.c: New file.
149
150         Tests for module 'unistr/u16-to-u32'.
151         * modules/unistr/u16-to-u32-tests: New file.
152         * tests/unistr/test-u16-to-u32.c: New file.
153
154         Tests for module 'unistr/u16-to-u8'.
155         * modules/unistr/u16-to-u8-tests: New file.
156         * tests/unistr/test-u16-to-u8.c: New file.
157
158         Tests for module 'unistr/u8-to-u32'.
159         * modules/unistr/u8-to-u32-tests: New file.
160         * tests/unistr/test-u8-to-u32.c: New file.
161
162         Tests for module 'unistr/u8-to-u16'.
163         * modules/unistr/u8-to-u16-tests: New file.
164         * tests/unistr/test-u8-to-u16.c: New file.
165
166         Tests for module 'unistr/u32-check'.
167         * modules/unistr/u32-check-tests: New file.
168         * tests/unistr/test-u32-check.c: New file.
169
170         Tests for module 'unistr/u16-check'.
171         * modules/unistr/u16-check-tests: New file.
172         * tests/unistr/test-u16-check.c: New file.
173
174         Tests for module 'unistr/u8-check'.
175         * modules/unistr/u8-check-tests: New file.
176         * tests/unistr/test-u8-check.c: New file.
177
178         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
179         (category_equals): New function.
180         (main): Add more tests.
181         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
182
183         * tests/unictype/test-bidi_byname.c (main): Add more tests.
184
185 2010-01-10  Bruno Haible  <bruno@clisp.org>
186
187         unistr/u*-strcoll: Try harder to distinguish different strings.
188         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
189         compare s1 and s2 to see if they are different.
190
191 2010-01-10  Bruno Haible  <bruno@clisp.org>
192
193         unistr/u*-stpncpy: Fix the return value.
194         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
195         description of the return value consistent with stpncpy in glibc.
196         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
197         written non-NUL unit.
198
199 2010-01-10  Bruno Haible  <bruno@clisp.org>
200
201         unistr/u*-next: Add missing dependencies.
202         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
203         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
204         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
205
206 2010-01-10  Bruno Haible  <bruno@clisp.org>
207
208         unistr/u8-mbsnlen: Fix return value for incomplete character.
209         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
210         u8_mblen.
211         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
212         Remove unistr/u8-mblen.
213         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
214         u16_mblen.
215         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
216         Remove unistr/u16-mblen.
217
218 2010-01-10  Bruno Haible  <bruno@clisp.org>
219
220         wchar: Fix compilation error when <wchar.h> is used from coreutils.
221         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
222         Reported by Brian Gough <bjg@gnu.org> and
223         Chris Clayton <chris2553@googlemail.com> via
224         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
225
226 2010-01-09  Bruno Haible  <bruno@clisp.org>
227
228         unistr/u16-to-u32: Reject invalid input.
229         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
230         u16_mbtouc.
231         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
232         Remove unistr/u16-mbtouc.
233
234         unistr/u16-to-u8: Reject invalid input.
235         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
236         u16_mbtouc.
237         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
238         Remove unistr/u16-mbtouc.
239
240         unistr/u8-to-u32: Reject invalid input.
241         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
242         u8_mbtouc.
243         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
244         Remove unistr/u8-mbtouc.
245
246         unistr/u8-to-u16: Reject invalid input.
247         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
248         u8_mbtouc.
249         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
250         Remove unistr/u8-mbtouc.
251
252 2010-01-09  Bruno Haible  <bruno@clisp.org>
253
254         Tests for module 'getlogin'.
255         * modules/getlogin-tests: New file.
256         * tests/test-getlogin.c: New file.
257
258         New module 'getlogin'.
259         * lib/unistd.in.h (getlogin): New declaration.
260         * lib/getlogin.c: New file.
261         * m4/getlogin.m4: New file.
262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
263         HAVE_GETLOGIN.
264         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
265         HAVE_GETLOGIN.
266         * modules/getlogin: New file.
267         * doc/posix-functions/getlogin.texi: Mention the new module.
268         Reported by John W. Eaton <jwe@gnu.org>.
269
270 2010-01-09  Bruno Haible  <bruno@clisp.org>
271
272         getlogin_r: Support for native Windows.
273         * lib/getlogin_r.c: Include <windows.h>
274         (getlogin_r): Implement for native Windows.
275         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
276         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
277         via John W. Eaton <jwe@gnu.org>.
278
279 2010-01-09  Bruno Haible  <bruno@clisp.org>
280
281         getlogin_r: Small fixes.
282         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
283         succeeds.
284         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
285         before testing whether getlogin_r is declared. No need to set
286         HAVE_DECL_GETLOGIN_R to 1.
287         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
288
289 2010-01-09  Bruno Haible  <bruno@clisp.org>
290
291         * lib/unistd.in.h (getlogin_r): Add comment.
292
293 2010-01-09  Bruno Haible  <bruno@clisp.org>
294
295         Tests for module 'getlogin_r'.
296         * modules/getlogin_r-tests: New file.
297         * tests/test-getlogin_r.c: New file.
298
299 2010-01-09  Jim Meyering  <meyering@redhat.com>
300
301         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
302         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
303         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
304
305 2010-01-08  Simon Josefsson  <simon@josefsson.org>
306
307         * lib/dup2.c (rpl_dup2): Improve comment.
308
309 2010-01-08  Eric Blake  <ebb9@byu.net>
310
311         maint.mk: allow packages to add makefile @@ exceptions
312         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
313         (sc_makefile_check): Rename...
314         (sc_makefile_at_at_check): ...to this, and use hook.
315
316         dup2: work around mingw bug
317         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
318         Reported by Simon Josefsson.
319
320 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
321
322         glob: Fix C++ compilation.
323         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
324         C++.
325
326 2010-01-07  Bruno Haible  <bruno@clisp.org>
327
328         Fix indentation of wctype.in.h, broken since 2007-01-06.
329         * lib/wctype.in.h: Fix indentation of preprocessor directives.
330
331 2010-01-07  Bruno Haible  <bruno@clisp.org>
332
333         mbslen: Avoid collision with system function.
334         * lib/string.in.h [MirBSD]: Include <wchar.h>.
335         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
336         * m4/mbslen.m4: New file.
337         * modules/mbslen (Files): Add it.
338         (configure.ac): Invoke gl_MBSLEN.
339         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
340         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
341         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
342         via Ian Beckwith <ianb@erislabs.net>.
343
344 2010-01-07  Bruno Haible  <bruno@clisp.org>
345
346         dirent: Document the last fix.
347         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
348
349 2010-01-07  Bruno Haible  <bruno@clisp.org>
350
351         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
352         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
353         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
354         va_list are defined.
355         * doc/posix-headers/stdio.texi: Document the bug of missing types.
356         Reported by Eric Blake.
357
358 2010-01-07  Bruno Haible  <bruno@clisp.org>
359
360         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
361         * modules/xlist (Depends-on): Add 'list',
362         * modules/xoset (Depends-on): Add 'oset'.
363         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
364
365 2010-01-07  Bruno Haible  <bruno@clisp.org>
366
367         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
368         * doc/posix-functions/strncasecmp.texi: Likewise.
369
370 2010-01-07  Bruno Haible  <bruno@clisp.org>
371
372         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
373
374 2010-01-07  John W. Eaton  <jwe@octave.org>
375
376         wctype: allow C++ use
377         * lib/wctype.in.h: Add extern "C" block for C++.
378
379 2010-01-06  Eric Blake  <ebb9@byu.net>
380
381         maint.mk: detect incorrect GFDL usage
382         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
383
384 2010-01-06  Jim Meyering  <meyering@redhat.com>
385         and Eric Blake  <ebb9@byu.net>
386
387         maint.mk: ignore multi-line copyright in NEWS
388         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
389
390 2010-01-06  Eric Blake  <ebb9@byu.net>
391
392         select: add missing dependency
393         * modules/select-tests (Depends-on): Move sockets dependency...
394         * modules/select (Depends-on): ...here.
395         Reported by Ian Beckwith.
396
397         doc: regenerate INSTALL
398         * doc/INSTALL: Reflect recent autoconf update.
399         * doc/INSTALL.ISO: Likewise.
400         * doc/INSTALL.UTF-8: Likewise.
401
402         pread: fix compilation on glibc
403         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
404         Reported by Ralf Wildenhues.
405
406         dirent: fix test failure
407         * lib/dirent.in.h (includes): Guarantee ino_t.
408         Reported by Ralf Wildenhues.
409
410 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
411
412         linkat, renameat: avoid bad free
413         * lib/at-func2.c (at_func2): Fix typo.
414         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
415
416 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
417
418         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
419         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
420         to avoid failure of symlink test later.
421
422 2010-01-06  Eric Blake  <ebb9@byu.net>
423
424         stdio, unistd: guarantee ssize_t
425         * lib/unistd.in.h (includes): Ensure that types required by POSIX
426         2008 are exposed when needed.
427         * lib/stdio.in.h (includes): Likewise.
428         Reported by Ralf Wildenhues.
429
430 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
431
432         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
433         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
434         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
435
436 2010-01-06  Jim Meyering  <meyering@redhat.com>
437
438         readtokens: this module *does* require xalloc.h
439         It uses only functions that were omitted by the old syntax-check rule.
440         * lib/readtokens.c: Include "xalloc.h" once again.
441         * modules/readtokens (Depends-on): Add xalloc.
442         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
443
444 2010-01-05  Eric Blake  <ebb9@byu.net>
445
446         maint: support 'make announcement' from a VPATH build
447         * top/maint.mk (announcement): Look for correct NEWS file.
448
449 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
450
451         utimens (fdutimens): ignore a negative FD, per contract
452         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
453         when we have a valid file descriptor.  Otherwise, using a brand
454         new glibc (with just-patched futimens that now fails with EBADF)
455         would cause this function to fail with ENOSYS.
456         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
457         See also http://bugzilla.redhat.com/552320.
458
459 2010-01-05  Eric Blake  <ebb9@byu.net>
460
461         strcase: document what it provides
462         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
463         gnulib module.
464         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
465         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
466
467 2010-01-05  Jim Meyering  <meyering@redhat.com>
468
469         maint: remove useless inclusions of "xalloc.h"
470         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
471         * lib/readtokens.c: Likewise.
472         * lib/same.c: Likewise.
473         * modules/getloadavg (Depends-on): Remove xalloc.
474         * modules/readtokens: Likewise.
475         * modules/same: Likewise.
476
477         maint.mk: include 4 more function names in alloca.h-checking regexp
478         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
479         regexp.  Before, we would give a false-positive (saying alloca.h
480         is included unnecessarily) when the only uses involved omitted symbols.
481
482         xalloc.h: use consistent formatting
483         * lib/xalloc.h: Move declarations to start in the first column.
484
485 2010-01-05  Eric Blake  <ebb9@byu.net>
486
487         mkdir: avoid xalloc
488         * lib/mkdir.c (includes): Drop unused header.
489         Reported by John W. Eaton.
490
491 2010-01-04  Jim Meyering  <meyering@redhat.com>
492
493         nl_langinfo: avoid configure-time syntax error
494         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
495         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
496         the empty string.  Don't let that provoke a shell syntax error.
497
498         regcomp, regexec, fnmatch: avoid array bounds read error
499         * lib/regcomp.c (build_equiv_class): From glibc:
500         Use only the low 24 bits of a findidx return value as an index
501         into the weights array.  Patch by Ulrich Drepper:
502         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
503         * lib/regexec.c (check_node_accept_bytes): Likewise.
504         * lib/fnmatch_loop.c (FCT): Likewise.
505
506         regcomp: skip collseq lookup when there are no rules
507         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
508         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
509
510         regcomp: recognize ill-formed { } expressions
511         * lib/regcomp.c (parse_dup_op): From glibc:
512         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
513
514         regcomp: fix typo in comment
515         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
516         s/satisfy/satisfies/.
517
518         regcomp: sync from glibc: remove dead store
519         * lib/regcomp.c (duplicate_node_closure): Remove useless
520         search_duplicated_node call and dead store.
521
522         regcomp: sync from glibc; always use nl_langinfo
523         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
524         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
525         * modules/regex (Depends-on): Add nl_langinfo.
526
527 2010-01-04  Eric Blake  <ebb9@byu.net>
528
529         fdopendir: fix configure test
530         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
531
532 2010-01-01  Bruno Haible  <bruno@clisp.org>
533
534         wchar: Remove unused configure check.
535         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
536
537 2010-01-01  Eric Blake  <ebb9@byu.net>
538
539         headers: make check of system header explicit
540         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
541         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
542         ourselves.
543         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
544         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
545         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
546         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
547         internals.
548         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
549         missing.
550         Suggested by Bruno Haible.
551
552 2010-01-01  Jim Meyering  <meyering@redhat.com>
553
554         ChangeLog: tweak to eliminate unnecessary copyright line
555         * ChangeLog: Remove a copyright line that was mistakenly updated
556         by today's update-copyright run.  Reported by Eric Blake.
557
558         test-update-copyright: don't let envvar setting cause test failure
559         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
560
561 2010-01-01  Bruno Haible  <bruno@clisp.org>
562
563         localename: Avoid gcc warning.
564         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
565         function if it is not used.
566
567 2010-01-01  Jim Meyering  <meyering@redhat.com>
568
569         update nearly all FSF copyright year lists to include 2010
570         Use the same procedure as for 2009, outlined in
571         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
572
573         version-etc: set COPYRIGHT_YEAR to 2010
574         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
575
576 2009-12-31  Eric Blake  <ebb9@byu.net>
577
578         doc: correct availability of cygwin 1.5.x getopt
579         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
580         variables.
581         * doc/posix-functions/opterr.texi (opterr): Likewise.
582         * doc/posix-functions/optind.texi (optind): Likewise.
583         * doc/posix-functions/optopt.texi (optopt): Likewise.
584         * doc/posix-functions/tzname.texi (tzname): Likewise.
585
586         openat: update maintainer
587         * modules/openat (Maintainer): Add myself.
588
589         utimens: avoid shadowing warning
590         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
591         buffers into one, to avoid shadowing, as well as avoiding a
592         redundant stat.
593         Reported by Jim Meyering.
594
595         test-dup2: avoid compiler warning
596         * tests/test-dup2.c (is_inheritable): Only define if used.
597
598 2010-01-01  Bruno Haible  <bruno@clisp.org>
599
600         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
601         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
602         defined, use wctomb instead of wcrtomb.
603
604 2010-01-01  Bruno Haible  <bruno@clisp.org>
605
606         iconv: Reject native Solaris iconv.
607         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
608         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
609
610 2009-12-31  Bruno Haible  <bruno@clisp.org>
611
612         * tests/test-signal.c (main): Remove test of 'SIG'.
613
614 2009-12-31  Bruno Haible  <bruno@clisp.org>
615
616         spawn: Fix incomplete fix.
617         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
618         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
619         warnings for GNULIB_POSIXCHECK again.
620         Reported by Eric Blake.
621
622 2009-12-31  Bruno Haible  <bruno@clisp.org>
623
624         Avoid namespace pollution on glibc systems.
625         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
626         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
627         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
628         glibc systems.
629
630 2009-12-31  Bruno Haible  <bruno@clisp.org>
631
632         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
633         (gl_REPLACE_WCHAR_H): Turn into a no-op.
634         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
635         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
636         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
637         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
638         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
639
640 2009-12-31  Bruno Haible  <bruno@clisp.org>
641
642         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
643         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
644         afterwards.
645
646 2009-12-31  Bruno Haible  <bruno@clisp.org>
647
648         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
649         SYS_UTSNAME_H.
650
651 2009-12-31  Bruno Haible  <bruno@clisp.org>
652
653         spawn: Fix misapplied patch.
654         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
655         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
656         warnings for GNULIB_POSIXCHECK.
657
658 2009-12-31  Bruno Haible  <bruno@clisp.org>
659
660         times: Update after sys_times changed.
661         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
662         * modules/times (Files): Add it.
663         (configure.ac): Invoke gl_FUNC_TIMES.
664
665 2009-12-31  Bruno Haible  <bruno@clisp.org>
666
667         Use AC_C_INLINE where necessary.
668         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
669         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
670         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
671         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
672         * m4/mbfile.m4 (gl_MBFILE): Likewise.
673         * m4/mbiter.m4 (gl_MBITER): Likewise.
674         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
675         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
676         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
677         * modules/u64 (configure.ac): Likewise.
678
679 2009-12-31  Bruno Haible  <bruno@clisp.org>
680
681         Use AC_C_INLINE instead of module 'inline' where possible.
682         * modules/inline (Description): Clarify purpose.
683         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
684         * modules/count-one-bits (Depends-on): Remove inline.
685         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
686         * modules/openat (Depends-on): Remove inline.
687         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
688         instead of depending on module 'inline'.
689         * modules/filevercmp (Depends-on, configure.ac): Likewise.
690         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
691         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
692         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
693         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
694         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
695         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
696         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
697         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
698         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
699         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
700         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
701         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
702         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
703         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
704         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
705         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
706         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
707         Likewise.
708         * modules/unictype/property-ascii-hex-digit (Depends-on,
709         configure.ac): Likewise.
710         * modules/unictype/property-bidi-arabic-digit (Depends-on,
711         configure.ac): Likewise.
712         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
713         configure.ac): Likewise.
714         * modules/unictype/property-bidi-block-separator (Depends-on,
715         configure.ac): Likewise.
716         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
717         configure.ac): Likewise.
718         * modules/unictype/property-bidi-common-separator (Depends-on,
719         configure.ac): Likewise.
720         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
721         Likewise.
722         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
723         configure.ac): Likewise.
724         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
725         configure.ac): Likewise.
726         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
727         configure.ac): Likewise.
728         * modules/unictype/property-bidi-european-digit (Depends-on,
729         configure.ac): Likewise.
730         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
731         configure.ac): Likewise.
732         * modules/unictype/property-bidi-left-to-right (Depends-on,
733         configure.ac): Likewise.
734         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
735         configure.ac): Likewise.
736         * modules/unictype/property-bidi-other-neutral (Depends-on,
737         configure.ac): Likewise.
738         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
739         Likewise.
740         * modules/unictype/property-bidi-segment-separator (Depends-on,
741         configure.ac): Likewise.
742         * modules/unictype/property-bidi-whitespace (Depends-on,
743         configure.ac): Likewise.
744         * modules/unictype/property-combining (Depends-on, configure.ac):
745         Likewise.
746         * modules/unictype/property-composite (Depends-on, configure.ac):
747         Likewise.
748         * modules/unictype/property-currency-symbol (Depends-on,
749         configure.ac): Likewise.
750         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
751         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
752         Likewise.
753         * modules/unictype/property-default-ignorable-code-point (Depends-on,
754         configure.ac): Likewise.
755         * modules/unictype/property-deprecated (Depends-on, configure.ac):
756         Likewise.
757         * modules/unictype/property-diacritic (Depends-on, configure.ac):
758         Likewise.
759         * modules/unictype/property-extender (Depends-on, configure.ac):
760         Likewise.
761         * modules/unictype/property-format-control (Depends-on, configure.ac):
762         Likewise.
763         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
764         Likewise.
765         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
766         Likewise.
767         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
768         Likewise.
769         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
770         Likewise.
771         * modules/unictype/property-hyphen (Depends-on, configure.ac):
772         Likewise.
773         * modules/unictype/property-id-continue (Depends-on, configure.ac):
774         Likewise.
775         * modules/unictype/property-id-start (Depends-on, configure.ac):
776         Likewise.
777         * modules/unictype/property-ideographic (Depends-on, configure.ac):
778         Likewise.
779         * modules/unictype/property-ids-binary-operator (Depends-on,
780         configure.ac): Likewise.
781         * modules/unictype/property-ids-trinary-operator (Depends-on,
782         configure.ac): Likewise.
783         * modules/unictype/property-ignorable-control (Depends-on,
784         configure.ac): Likewise.
785         * modules/unictype/property-iso-control (Depends-on, configure.ac):
786         Likewise.
787         * modules/unictype/property-join-control (Depends-on, configure.ac):
788         Likewise.
789         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
790         Likewise.
791         * modules/unictype/property-line-separator (Depends-on, configure.ac):
792         Likewise.
793         * modules/unictype/property-logical-order-exception (Depends-on,
794         configure.ac): Likewise.
795         * modules/unictype/property-lowercase (Depends-on, configure.ac):
796         Likewise.
797         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
798         * modules/unictype/property-non-break (Depends-on, configure.ac):
799         Likewise.
800         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
801         Likewise.
802         * modules/unictype/property-numeric (Depends-on, configure.ac):
803         Likewise.
804         * modules/unictype/property-other-alphabetic (Depends-on,
805         configure.ac): Likewise.
806         * modules/unictype/property-other-default-ignorable-code-point
807         (Depends-on, configure.ac): Likewise.
808         * modules/unictype/property-other-grapheme-extend (Depends-on,
809         configure.ac): Likewise.
810         * modules/unictype/property-other-id-continue (Depends-on,
811         configure.ac): Likewise.
812         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
813         Likewise.
814         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
815         Likewise.
816         * modules/unictype/property-other-math (Depends-on, configure.ac):
817         Likewise.
818         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
819         Likewise.
820         * modules/unictype/property-paired-punctuation (Depends-on,
821         configure.ac): Likewise.
822         * modules/unictype/property-paragraph-separator (Depends-on,
823         configure.ac): Likewise.
824         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
825         Likewise.
826         * modules/unictype/property-pattern-white-space (Depends-on,
827         configure.ac): Likewise.
828         * modules/unictype/property-private-use (Depends-on, configure.ac):
829         Likewise.
830         * modules/unictype/property-punctuation (Depends-on, configure.ac):
831         Likewise.
832         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
833         Likewise.
834         * modules/unictype/property-radical (Depends-on, configure.ac):
835         Likewise.
836         * modules/unictype/property-sentence-terminal (Depends-on,
837         configure.ac): Likewise.
838         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
839         Likewise.
840         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
841         * modules/unictype/property-terminal-punctuation (Depends-on,
842         configure.ac): Likewise.
843         * modules/unictype/property-titlecase (Depends-on, configure.ac):
844         Likewise.
845         * modules/unictype/property-unassigned-code-value (Depends-on,
846         configure.ac): Likewise.
847         * modules/unictype/property-unified-ideograph (Depends-on,
848         configure.ac): Likewise.
849         * modules/unictype/property-uppercase (Depends-on, configure.ac):
850         Likewise.
851         * modules/unictype/property-variation-selector (Depends-on,
852         configure.ac): Likewise.
853         * modules/unictype/property-white-space (Depends-on, configure.ac):
854         Likewise.
855         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
856         Likewise.
857         * modules/unictype/property-xid-start (Depends-on, configure.ac):
858         Likewise.
859         * modules/unictype/property-zero-width (Depends-on, configure.ac):
860         Likewise.
861         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
862         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
863         Likewise.
864
865 2009-12-31  Bruno Haible  <bruno@clisp.org>
866
867         Remove unnecessary AC_C_INLINE invocation.
868         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
869         since 2009-08-21.
870
871 2009-12-31  Jim Meyering  <meyering@redhat.com>
872
873         maint.mk: don't require explicit gpg_key_ID in cfg.mk
874         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
875         With this change, we can all remove the gpg_key_ID = ... definition
876         from our respective cfg.mk files.
877
878         maint.mk: create announcement template in ~/, not in /tmp
879         * top/maint.mk (emit_upload_commands): Adjust.
880         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
881         Remove temporary file, .ci-msg.
882
883 2009-12-31  Eric Blake  <ebb9@byu.net>
884
885         link-warning: always build headers with link warnings
886         * modules/arpa_inet (Makefile.am): Always build replacement
887         header.
888         * modules/ctype (Makefile.am): Likewise.
889         * modules/dirent (Makefile.am): Likewise.
890         * modules/inttypes (Makefile.am): Likewise.
891         * modules/langinfo (Makefile.am): Likewise.
892         * modules/locale (Makefile.am): Likewise.
893         * modules/spawn (Makefile.am): Likewise.
894         * modules/sys_file (Makefile.am): Likewise.
895         * modules/sys_ioctl (Makefile.am): Likewise.
896         * modules/sys_select (Makefile.am): Likewise.
897         * modules/sys_socket (Makefile.am): Likewise.
898         * modules/sys_times (Makefile.am): Likewise.
899         * modules/sys_utsname (Makefile.am): Likewise.
900         * modules/sys_wait (Makefile.am): Likewise.
901         * modules/wchar (Makefile.am): Likewise.
902         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
903         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
904         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
905         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
906         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
907         Likewise.
908         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
909         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
910         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
911         Likewise.
912         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
913         Likewise.
914         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
915         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
916         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
917         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
918         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
919         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
920         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
921         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
922         (gl_WCHAR_H_DEFAULTS): Likewise.
923
924 2009-12-31  Eric Blake  <ebb9@byu.net>
925
926         signal, spawn: use link warnings
927         * lib/signal.in.h (sigset_t): Make unconditional.
928         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
929         (sigpending, sigprocmask, sigaction): Add link warnings.
930         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
931         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
932         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
933         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
934         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
935         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
936         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
937         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
938         (posix_spawn_file_actions_destroy)
939         (posix_spawn_file_actions_addopen)
940         (posix_spawn_file_actions_addclose)
941         (posix_spawwn_file_actions_adddup2): Likewise.
942         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
943         * tests/test-signal.c (main): Enhance test.
944
945         spawn: improve wrapper support
946         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
947         (gl_SPAWN_H_DEFAULTS): New defaults.
948         * modules/spawn (Makefile.am): Substitute them.
949         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
950         Only declare if missing or broken.
951
952         sys_times, sys_utsname: use include_next
953         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
954         header.
955         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
956         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
957         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
958         * modules/sys_times (Depends-on): Add include_next.
959         (Makefile.am): Substitute additional values.
960         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
961         * lib/sys_times.in.h (includes): Include native header, if
962         available.
963         * lib/sys_utsname.in.h (includes): Likewise.
964         * tests/test-sys_times.c (main): Enhance test.
965
966         fdutimensat: revert prior patch
967         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
968         utimens.h.
969         Reported by Bruno Haible.
970
971 2009-12-30  Eric Blake  <ebb9@byu.net>
972
973         sys_wait: drop link-warning dependency
974         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
975         link-warning efforts.
976         * lib/sys_wait.in.h: Likewise.
977
978         fdutimensat: remove bogus dependency
979         * modules/fdutimensat (Depends-on): Drop inline.
980
981         unistd: fix typo
982         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
983
984 2009-12-30  Bruno Haible  <bruno@clisp.org>
985
986         Fix compilation error with Solaris cc.
987         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
988         * lib/unicase/u16-is-invariant.c: Likewise.
989         * lib/unicase/u32-is-invariant.c: Likewise.
990         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
991
992 2009-12-30  Bruno Haible  <bruno@clisp.org>
993
994         Fix test crash.
995         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
996         locales.
997         Reported by Simon Josefsson <simon@josefsson.org>.
998
999 2009-12-30  Bruno Haible  <bruno@clisp.org>
1000
1001         Fix compilation error on most platforms.
1002         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
1003         Reported by Simon Josefsson <simon@josefsson.org>
1004         and Nelson H. F. Beebe <beebe@math.utah.edu>.
1005
1006 2009-12-30  Eric Blake  <ebb9@byu.net>
1007
1008         futimens, utimensat: work around ntfs-3g bug
1009         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
1010         a ctime bug is present, and expand workaround to cover ntfs-3g.
1011         * lib/utimens.c (fdutimens, lutimens): Likewise.
1012         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
1013         (validate_timespec): Adjust return value.
1014         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
1015         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1016         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
1017
1018 2009-12-29  Eric Blake  <ebb9@byu.net>
1019
1020         link-warning: make usage consistent
1021         * modules/ctype (Depends-on): Add link-warning.
1022         (Makefile.am): Update rules accordingly.
1023         * modules/langinfo (Depends-on, Makefile.am): Likewise.
1024         * modules/locale (Depends-on, Makefile.am): Likewise.
1025         * modules/sys_file (Makefile.am): Likewise.
1026         * modules/getopt-posix (Makefile.am): Delete unused link warning
1027         efforts.
1028         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
1029         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
1030         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
1031         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
1032
1033         stdio: remove unused variables
1034         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
1035         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
1036         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1037
1038         tests: test more substitute headers
1039         * modules/ctype-tests: New file.
1040         * modules/dirent-tests: Likewise.
1041         * modules/spawn-tests: Likewise.
1042         * modules/sys_file-tests: Likewise.
1043         * modules/sys_ioctl-tests: Likewise.
1044         * modules/sys_wait-tests: Likewise.
1045         * tests/test-ctype.c: Likewise.
1046         * tests/test-dirent.c: Likewise.
1047         * tests/test-spawn.c: Likewise.
1048         * tests/test-sys_file.c: Likewise.
1049         * tests/test-sys_ioctl.c: Likewise.
1050         * tests/test-sys_wait.c: Likewise.
1051         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
1052         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
1053         whether or not flock is in use.
1054
1055         tests: remove License section from module
1056         * modules/arpa_inet-tests: Remove unneeded section.
1057         * modules/byteswap-tests: Likewise.
1058         * modules/ceilf-tests: Likewise.
1059         * modules/ceill-tests: Likewise.
1060         * modules/crypto/des-tests: Likewise.
1061         * modules/crypto/gc-arcfour-tests: Likewise.
1062         * modules/crypto/gc-arctwo-tests: Likewise.
1063         * modules/crypto/gc-des-tests: Likewise.
1064         * modules/crypto/gc-hmac-md5-tests: Likewise.
1065         * modules/crypto/gc-hmac-sha1-tests: Likewise.
1066         * modules/crypto/gc-md2-tests: Likewise.
1067         * modules/crypto/gc-md4-tests: Likewise.
1068         * modules/crypto/gc-md5-tests: Likewise.
1069         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
1070         * modules/crypto/gc-rijndael-tests: Likewise.
1071         * modules/crypto/gc-sha1-tests: Likewise.
1072         * modules/crypto/gc-tests: Likewise.
1073         * modules/crypto/md2-tests: Likewise.
1074         * modules/crypto/md4-tests: Likewise.
1075         * modules/fcntl-h-tests: Likewise.
1076         * modules/floorf-tests: Likewise.
1077         * modules/floorl-tests: Likewise.
1078         * modules/frexp-nolibm-tests: Likewise.
1079         * modules/frexp-tests: Likewise.
1080         * modules/frexpl-nolibm-tests: Likewise.
1081         * modules/frexpl-tests: Likewise.
1082         * modules/getaddrinfo-tests: Likewise.
1083         * modules/inttypes-tests: Likewise.
1084         * modules/isfinite-tests: Likewise.
1085         * modules/isinf-tests: Likewise.
1086         * modules/ldexpl-tests: Likewise.
1087         * modules/locale-tests: Likewise.
1088         * modules/math-tests: Likewise.
1089         * modules/netdb-tests: Likewise.
1090         * modules/netinet_in-tests: Likewise.
1091         * modules/printf-frexp-tests: Likewise.
1092         * modules/printf-frexpl-tests: Likewise.
1093         * modules/priv-set-tests: Likewise.
1094         * modules/random_r-tests: Likewise.
1095         * modules/round-tests: Likewise.
1096         * modules/roundf-tests: Likewise.
1097         * modules/roundl-tests: Likewise.
1098         * modules/search-tests: Likewise.
1099         * modules/select-tests: Likewise.
1100         * modules/signal-tests: Likewise.
1101         * modules/stdbool-tests: Likewise.
1102         * modules/stddef-tests: Likewise.
1103         * modules/stdint-tests: Likewise.
1104         * modules/stdio-tests: Likewise.
1105         * modules/stdlib-tests: Likewise.
1106         * modules/string-tests: Likewise.
1107         * modules/strings-tests: Likewise.
1108         * modules/sys_select-tests: Likewise.
1109         * modules/sys_socket-tests: Likewise.
1110         * modules/sys_stat-tests: Likewise.
1111         * modules/sys_time-tests: Likewise.
1112         * modules/sys_utsname-tests: Likewise.
1113         * modules/sysexits-tests: Likewise.
1114         * modules/time-tests: Likewise.
1115         * modules/trunc-tests: Likewise.
1116         * modules/truncf-tests: Likewise.
1117         * modules/truncl-tests: Likewise.
1118         * modules/tsearch-tests: Likewise.
1119         * modules/unistd-tests: Likewise.
1120         * modules/wchar-tests: Likewise.
1121         * modules/wctype-tests: Likewise.
1122
1123         tests: fix license on several tests
1124         * tests/test-des.c: Update to GPLv3+.
1125         * tests/test-flock.c: Likewise.
1126         * tests/test-fsync.c: Likewise.
1127         * tests/test-futimens.h: Likewise.
1128         * tests/test-gc-arcfour.c: Likewise.
1129         * tests/test-gc-arctwo.c: Likewise.
1130         * tests/test-gc-des.c: Likewise.
1131         * tests/test-gc-hmac-md5.c: Likewise.
1132         * tests/test-gc-hmac-sha1.c: Likewise.
1133         * tests/test-gc-md2.c: Likewise.
1134         * tests/test-gc-md4.c: Likewise.
1135         * tests/test-gc-md5.c: Likewise.
1136         * tests/test-gc-pbkdf2-sha1.c: Likewise.
1137         * tests/test-gc-rijndael.c: Likewise.
1138         * tests/test-gc-sha1.c: Likewise.
1139         * tests/test-gc.c: Likewise.
1140         * tests/test-getcwd.c: Likewise.
1141         * tests/test-link.c: Likewise.
1142         * tests/test-link.h: Likewise.
1143         * tests/test-lutimens.h: Likewise.
1144         * tests/test-md2.c: Likewise.
1145         * tests/test-md4.c: Likewise.
1146         * tests/test-mkdir.h: Likewise.
1147         * tests/test-rename.c: Likewise.
1148         * tests/test-rename.h: Likewise.
1149         * tests/test-safe-alloc.c: Likewise.
1150         * tests/test-utimens-common.h: Likewise.
1151         * tests/test-utimens.h: Likewise.
1152
1153         maint: sync license texts
1154         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
1155         * doc/gpl-3.0.texi: Revert copyright year update.
1156         * doc/lgpl-3.0.texi: Likewise.
1157
1158 2009-12-29  Jim Meyering  <meyering@redhat.com>
1159
1160         update nearly all FSF copyright year lists to include 2009
1161         The files named by the following are exempted:
1162             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
1163               test -f "$dst" && { echo "$dst"; continue; }
1164               test -d "$dst" || continue
1165               echo "$dst"/$(basename "$src")
1166             done > exempt
1167             git ls-files tests/unictype >> exempt
1168         In the remaining files, convert to all-interval notation if
1169         - there is already at least one year interval like 2000-2003
1170         - the file is maintained by me
1171         - the file is in lib/uni*/, where that style already prevails
1172         Otherwise, use update-copyright's default.
1173
1174 2009-12-29  Simon Josefsson  <simon@josefsson.org>
1175         and Eric Blake  <ebb9@byu.net>
1176
1177         tests: don't require debug system() to pass
1178         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
1179         * tests/test-rmdir.h (test_rmdir_func): Likewise.
1180         * tests/test-unlink.h (test_unlink_func): Likewise.
1181         * tests/test-fstatat.c (main): ...into callers.
1182         * tests/test-lstat.c (main): Likewise.
1183         * tests/test-rmdir.c (main): Likewise.
1184         * tests/test-unlink.c (main): Likewise.
1185         * tests/test-unlinkat.c (main): Likewise.
1186         * tests/test-areadlink-with-size.c (main): Don't require a
1187         debug-only system call to pass, aiding cross-testing to mingw.
1188         * tests/test-areadlink.c (main): Likewise.
1189         * tests/test-areadlinkat-with-size.c (main): Likewise.
1190         * tests/test-areadlinkat.c (main): Likewise.
1191         * tests/test-canonicalize-lgpl.c (main): Likewise.
1192         * tests/test-canonicalize.c (main): Likewise.
1193         * tests/test-chown.c (main): Likewise.
1194         * tests/test-fchownat.c (main): Likewise.
1195         * tests/test-lchown.c (main): Likewise.
1196         * tests/test-fdutimensat.c (main): Likewise.
1197         * tests/test-futimens.c (main): Likewise.
1198         * tests/test-link.c (main): Likewise.
1199         * tests/test-linkat.c (main): Likewise.
1200         * tests/test-mkdir.c (main): Likewise.
1201         * tests/test-mkdirat.c (main): Likewise.
1202         * tests/test-mkfifo.c (main): Likewise.
1203         * tests/test-mkfifoat.c (main): Likewise.
1204         * tests/test-mknod.c (main): Likewise.
1205         * tests/test-readlink.c (main): Likewise.
1206         * tests/test-remove.c (main): Likewise.
1207         * tests/test-rename.c (main): Likewise.
1208         * tests/test-renameat.c (main): Likewise.
1209         * tests/test-symlink.c (main): Likewise.
1210         * tests/test-symlinkat.c (main): Likewise.
1211         * tests/test-utimens.c (main): Likewise.
1212         * tests/test-utimensat.c (main): Likewise.
1213
1214 2009-12-29  Simon Josefsson  <simon@josefsson.org>
1215
1216         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
1217         on $(UNUSED_PARAMETER_H) to avoid build failure.
1218
1219 2009-12-28  Jim Meyering  <meyering@redhat.com>
1220
1221         update-copyright: you may specify a max. line length other than 72
1222         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
1223
1224         maint: use consistent FSF copyright line syntax
1225         * lib/posixtm.c: Add missing comma in FSF copyright line.
1226         * lib/posixtm.h: Likewise.
1227         * lib/getugroups.c: Add missing ", Inc.".
1228
1229         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
1230         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
1231         FSF copyright line.  Remove trailing blanks.
1232
1233 2009-12-28  Eric Blake  <ebb9@byu.net>
1234
1235         test-dup2: reduce dependencies
1236         * modules/cloexec (Configure.ac): Set witness.
1237         * modules/dup2-tests (Depends-on): Drop cloexec.
1238         * tests/test-dup2.c (main): Skip portion of test if cloexec module
1239         not present.
1240         Suggested by Bruno Haible.
1241
1242 2009-12-26  Bruno Haible  <bruno@clisp.org>
1243
1244         Remove an unneeded dependency.
1245         * modules/fseterr (Depends-on): Remove dup2.
1246
1247 2009-12-26  Eric Blake  <ebb9@byu.net>
1248
1249         tests: use macros.h in more places
1250         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
1251         (ASSERT_STREAM): Provide default of stderr.
1252         * tests/test-dirent-safer.c: Include macros.h, using alternate
1253         stream for assertions.
1254         * tests/test-dup-safer.c: Likewise.
1255         * tests/test-freopen-safer.c: Likewise.
1256         * tests/test-getopt.c: Likewise.
1257         * tests/test-openat-safer.c: Likewise.
1258         * tests/test-pipe.c: Likewise.
1259         * tests/test-popen-safer.c: Likewise.
1260         * modules/dirent-safer-tests (Files): Include macros.h.
1261         * modules/unistd-safer-tests (Files): Likewise.
1262         * modules/freopen-safer-tests (Files): Likewise.
1263         * modules/getopt-posix-tests (Files): Likewise.
1264         * modules/openat-safer-tests (Files): Likewise.
1265         * modules/pipe-tests (Files): Likewise.
1266
1267 2009-12-26  Bruno Haible  <bruno@clisp.org>
1268
1269         javacomp: Portability fix.
1270         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
1271         that it also works on Solaris.
1272
1273 2009-12-26  Bruno Haible  <bruno@clisp.org>
1274
1275         localename: Fix storage allocation of gl_locale_name_thread's result.
1276         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
1277         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
1278         all platforms that have 'uselocale'.
1279         (gl_locale_name_thread_unsafe): New function, extracted from
1280         gl_locale_name_thread.
1281         (gl_locale_name_thread): Call struniq on all platforms that have
1282         'uselocale'.
1283         * tests/test-localename.c (test_locale_name_thread): Check that the
1284         resulting strings are permanently allocated.
1285         * modules/localename-tests (Depends-on): Add strdup.
1286
1287 2009-12-26  Bruno Haible  <bruno@clisp.org>
1288
1289         * tests/test-localename.c (categories): Fill in the strings.
1290
1291 2009-12-26  Jim Meyering  <meyering@redhat.com>
1292
1293         isdir: complete the removal of m4/isdir.m4
1294         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
1295
1296         isdir: clean up, since at least grep still uses it
1297         * lib/isdir.c: Include "isdir.h".
1298         (S_ISDIR): Remove now-unneeded definition.
1299         * modules/isdir (Files): Add lib/isdir.h.
1300         * lib/isdir.h: New file, with declaration.
1301         * m4/isdir.m4: Remove file -- unneeded.
1302
1303 2009-12-25  Bruno Haible  <bruno@clisp.org>
1304
1305         selinux-h: Make generated .h files standalone.
1306         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
1307         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
1308         * lib/se-selinux.in.h: Likewise.
1309         * modules/selinux-h (Depends-on): Add unused-parameter.
1310         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
1311         selinux/selinux.h and selinux/context.h.
1312         Suggested by Eric Blake.
1313
1314 2009-12-25  Bruno Haible  <bruno@clisp.org>
1315
1316         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
1317         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
1318         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
1319         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
1320         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
1321
1322 2009-12-24  Bruno Haible  <bruno@clisp.org>
1323
1324         openat: Fix warning.
1325         * lib/openat-proc.c: Include <unistd.h>.
1326
1327 2009-12-24  Bruno Haible  <bruno@clisp.org>
1328
1329         New module 'unused-parameter'.
1330         * build-aux/unused-parameter.h: New file, extracted from earlier
1331         gnulib-common.m4.
1332         * modules/unused-parameter: New file.
1333         * lib/unistr.h: Include unused-parameter.h.
1334         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
1335         _GL_UNUSED.
1336         * modules/unistr/base (Depends-on): Add unused-parameter.
1337
1338 2009-12-24  Bruno Haible  <bruno@clisp.org>
1339
1340         Add missing dependencies to 'extensions' module.
1341         * m4/extensions.m4: Add comment.
1342         * modules/accept4 (Depends-on): Add extensions.
1343         * modules/dup3 (Depends-on): Likewise.
1344         * modules/fcntl (Depends-on): Likewise.
1345         * modules/futimens (Depends-on): Likewise.
1346         * modules/mknod (Depends-on): Likewise.
1347         * modules/pipe2 (Depends-on): Likewise.
1348         * modules/stat-time (Depends-on): Likewise.
1349         * modules/strcasestr-simple (Depends-on): Likewise.
1350         * modules/strsignal (Depends-on): Likewise.
1351         * modules/utimensat (Depends-on): Likewise.
1352         * modules/localcharset (Depends-on): Likewise. Needed because of
1353         gl_FCNTL_O_FLAGS.
1354         * modules/wcrtomb (Depends-on): Likewise. Needed because of
1355         AC_TYPE_MBSTATE_T.
1356         * modules/wcsnrtombs (Depends-on): Likewise.
1357         * modules/wcsrtombs (Depends-on): Likewise.
1358
1359 2009-12-24  Bruno Haible  <bruno@clisp.org>
1360
1361         binary-io: Avoid gcc warning due to SET_BINARY.
1362         * lib/binary-io.h (SET_BINARY): Cast the result to void.
1363         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
1364
1365 2009-12-24  Bruno Haible  <bruno@clisp.org>
1366
1367         Avoid future namespace pollution on glibc systems.
1368         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
1369         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
1370         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
1371         glibc systems.
1372
1373 2009-12-24  Bruno Haible  <bruno@clisp.org>
1374
1375         Refactor common macros used in tests.
1376         * tests/macros.h: New file.
1377         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
1378         and/or <stdlib.h>, if appropriate.
1379         (ASSERT, SIZEOF): Remove macros.
1380         * tests/test-areadlink-with-size.c: Likewise.
1381         * tests/test-areadlinkat.c: Likewise.
1382         * tests/test-areadlinkat-with-size.c: Likewise.
1383         * tests/test-argmatch.c: Likewise.
1384         * tests/test-argv-iter.c: Likewise.
1385         * tests/test-array-mergesort.c: Likewise.
1386         * tests/test-array_list.c: Likewise.
1387         * tests/test-array_oset.c: Likewise.
1388         * tests/test-avltree_list.c: Likewise.
1389         * tests/test-avltree_oset.c: Likewise.
1390         * tests/test-avltreehash_list.c: Likewise.
1391         * tests/test-base64.c: Likewise.
1392         * tests/test-binary-io.c: Likewise.
1393         * tests/test-bitrotate.c: Likewise.
1394         * tests/test-btowc.c: Likewise.
1395         * tests/test-byteswap.c: Likewise.
1396         * tests/test-c-ctype.c: Likewise.
1397         * tests/test-c-stack.c: Likewise.
1398         * tests/test-c-strcasecmp.c: Likewise.
1399         * tests/test-c-strcasestr.c: Likewise.
1400         * tests/test-c-strncasecmp.c: Likewise.
1401         * tests/test-c-strstr.c: Likewise.
1402         * tests/test-canonicalize-lgpl.c: Likewise.
1403         * tests/test-canonicalize.c: Likewise.
1404         * tests/test-carray_list.c: Likewise.
1405         * tests/test-ceilf1.c: Likewise.
1406         * tests/test-ceilf2.c: Likewise.
1407         * tests/test-ceill.c: Likewise.
1408         * tests/test-chown.c: Likewise.
1409         * tests/test-cloexec.c: Likewise.
1410         * tests/test-copy-acl.c: Likewise.
1411         * tests/test-copy-file.c: Likewise.
1412         * tests/test-count-one-bits.c: Likewise.
1413         * tests/test-dprintf-posix.c: Likewise.
1414         * tests/test-dup2.c: Likewise.
1415         * tests/test-dup3.c: Likewise.
1416         * tests/test-duplocale.c: Likewise.
1417         * tests/test-fbufmode.c: Likewise.
1418         * tests/test-fchdir.c: Likewise.
1419         * tests/test-fchownat.c: Likewise.
1420         * tests/test-fcntl-safer.c: Likewise.
1421         * tests/test-fcntl.c: Likewise.
1422         * tests/test-fdopendir.c: Likewise.
1423         * tests/test-fdutimensat.c: Likewise.
1424         * tests/test-fflush2.c: Likewise.
1425         * tests/test-file-has-acl.c: Likewise.
1426         * tests/test-filevercmp.c: Likewise.
1427         * tests/test-flock.c: Likewise.
1428         * tests/test-floorf1.c: Likewise.
1429         * tests/test-floorf2.c: Likewise.
1430         * tests/test-floorl.c: Likewise.
1431         * tests/test-fnmatch.c: Likewise.
1432         * tests/test-fopen.h: Likewise.
1433         * tests/test-fpending.c: Likewise.
1434         * tests/test-fprintf-posix.c: Likewise.
1435         * tests/test-fpurge.c: Likewise.
1436         * tests/test-freadable.c: Likewise.
1437         * tests/test-freadahead.c: Likewise.
1438         * tests/test-freading.c: Likewise.
1439         * tests/test-freadptr.c: Likewise.
1440         * tests/test-freadptr2.c: Likewise.
1441         * tests/test-freadseek.c: Likewise.
1442         * tests/test-freopen.c: Likewise.
1443         * tests/test-frexp.c: Likewise.
1444         * tests/test-frexpl.c: Likewise.
1445         * tests/test-fseek.c: Likewise.
1446         * tests/test-fseeko.c: Likewise.
1447         * tests/test-fstatat.c: Likewise.
1448         * tests/test-fstrcmp.c: Likewise.
1449         * tests/test-fsync.c: Likewise.
1450         * tests/test-ftell.c: Likewise.
1451         * tests/test-ftello.c: Likewise.
1452         * tests/test-func.c: Likewise.
1453         * tests/test-futimens.c: Likewise.
1454         * tests/test-fwritable.c: Likewise.
1455         * tests/test-fwriting.c: Likewise.
1456         * tests/test-getcwd.c: Likewise.
1457         * tests/test-getdate.c: Likewise.
1458         * tests/test-getdelim.c: Likewise.
1459         * tests/test-getdtablesize.c: Likewise.
1460         * tests/test-getgroups.c: Likewise.
1461         * tests/test-getline.c: Likewise.
1462         * tests/test-getndelim2.c: Likewise.
1463         * tests/test-glob.c: Likewise.
1464         * tests/test-hash.c: Likewise.
1465         * tests/test-i-ring.c: Likewise.
1466         * tests/test-iconv-utf.c: Likewise.
1467         * tests/test-iconv.c: Likewise.
1468         * tests/test-idpriv-drop.c: Likewise.
1469         * tests/test-idpriv-droptemp.c: Likewise.
1470         * tests/test-inet_ntop.c: Likewise.
1471         * tests/test-inet_pton.c: Likewise.
1472         * tests/test-isblank.c: Likewise.
1473         * tests/test-isfinite.c: Likewise.
1474         * tests/test-isinf.c: Likewise.
1475         * tests/test-isnan.c: Likewise.
1476         * tests/test-isnand.h: Likewise.
1477         * tests/test-isnanf.h: Likewise.
1478         * tests/test-isnanl.h: Likewise.
1479         * tests/test-lchown.c: Likewise.
1480         * tests/test-ldexpl.c: Likewise.
1481         * tests/test-link.c: Likewise.
1482         * tests/test-linkat.c: Likewise.
1483         * tests/test-linked_list.c: Likewise.
1484         * tests/test-linkedhash_list.c: Likewise.
1485         * tests/test-localename.c: Likewise.
1486         * tests/test-lseek.c: Likewise.
1487         * tests/test-lstat.c: Likewise.
1488         * tests/test-mbmemcasecmp.c: Likewise.
1489         * tests/test-mbmemcasecoll.c: Likewise.
1490         * tests/test-mbrtowc.c: Likewise.
1491         * tests/test-mbscasecmp.c: Likewise.
1492         * tests/test-mbscasestr1.c: Likewise.
1493         * tests/test-mbscasestr2.c: Likewise.
1494         * tests/test-mbscasestr3.c: Likewise.
1495         * tests/test-mbscasestr4.c: Likewise.
1496         * tests/test-mbschr.c: Likewise.
1497         * tests/test-mbscspn.c: Likewise.
1498         * tests/test-mbsinit.c: Likewise.
1499         * tests/test-mbsncasecmp.c: Likewise.
1500         * tests/test-mbsnrtowcs.c: Likewise.
1501         * tests/test-mbspbrk.c: Likewise.
1502         * tests/test-mbspcasecmp.c: Likewise.
1503         * tests/test-mbsrchr.c: Likewise.
1504         * tests/test-mbsrtowcs.c: Likewise.
1505         * tests/test-mbsspn.c: Likewise.
1506         * tests/test-mbsstr1.c: Likewise.
1507         * tests/test-mbsstr2.c: Likewise.
1508         * tests/test-mbsstr3.c: Likewise.
1509         * tests/test-memchr.c: Likewise.
1510         * tests/test-memchr2.c: Likewise.
1511         * tests/test-memcmp.c: Likewise.
1512         * tests/test-memmem.c: Likewise.
1513         * tests/test-memrchr.c: Likewise.
1514         * tests/test-mkdir.c: Likewise.
1515         * tests/test-mkdirat.c: Likewise.
1516         * tests/test-mkfifo.c: Likewise.
1517         * tests/test-mkfifoat.c: Likewise.
1518         * tests/test-mknod.c: Likewise.
1519         * tests/test-nanosleep.c: Likewise.
1520         * tests/test-nl_langinfo.c: Likewise.
1521         * tests/test-obstack-printf.c: Likewise.
1522         * tests/test-open.c: Likewise.
1523         * tests/test-openat.c: Likewise.
1524         * tests/test-pipe-filter-gi1.c: Likewise.
1525         * tests/test-pipe-filter-gi2-main.c: Likewise.
1526         * tests/test-pipe-filter-ii1.c: Likewise.
1527         * tests/test-pipe-filter-ii2-main.c: Likewise.
1528         * tests/test-pipe2.c: Likewise.
1529         * tests/test-popen.h: Likewise.
1530         * tests/test-posixtm.c: Likewise.
1531         * tests/test-pread.c: Likewise.
1532         * tests/test-printf-frexp.c: Likewise.
1533         * tests/test-printf-frexpl.c: Likewise.
1534         * tests/test-printf-posix.c: Likewise.
1535         * tests/test-priv-set.c: Likewise.
1536         * tests/test-quotearg.c: Likewise.
1537         * tests/test-random_r.c: Likewise.
1538         * tests/test-rawmemchr.c: Likewise.
1539         * tests/test-rbtree_list.c: Likewise.
1540         * tests/test-rbtree_oset.c: Likewise.
1541         * tests/test-rbtreehash_list.c: Likewise.
1542         * tests/test-readlink.c: Likewise.
1543         * tests/test-remove.c: Likewise.
1544         * tests/test-rename.c: Likewise.
1545         * tests/test-renameat.c: Likewise.
1546         * tests/test-rmdir.c: Likewise.
1547         * tests/test-round1.c: Likewise.
1548         * tests/test-roundf1.c: Likewise.
1549         * tests/test-roundl.c: Likewise.
1550         * tests/test-safe-alloc.c: Likewise.
1551         * tests/test-sameacls.c: Likewise.
1552         * tests/test-set-mode-acl.c: Likewise.
1553         * tests/test-setenv.c: Likewise.
1554         * tests/test-sigaction.c: Likewise.
1555         * tests/test-signbit.c: Likewise.
1556         * tests/test-sleep.c: Likewise.
1557         * tests/test-snprintf-posix.c: Likewise.
1558         * tests/test-snprintf.c: Likewise.
1559         * tests/test-sprintf-posix.c: Likewise.
1560         * tests/test-stat-time.c: Likewise.
1561         * tests/test-stat.c: Likewise.
1562         * tests/test-strcasestr.c: Likewise.
1563         * tests/test-strchrnul.c: Likewise.
1564         * tests/test-strerror.c: Likewise.
1565         * tests/test-striconv.c: Likewise.
1566         * tests/test-striconveh.c: Likewise.
1567         * tests/test-striconveha.c: Likewise.
1568         * tests/test-strsignal.c: Likewise.
1569         * tests/test-strstr.c: Likewise.
1570         * tests/test-strtod.c: Likewise.
1571         * tests/test-strverscmp.c: Likewise.
1572         * tests/test-symlink.c: Likewise.
1573         * tests/test-symlinkat.c: Likewise.
1574         * tests/test-trunc1.c: Likewise.
1575         * tests/test-trunc2.c: Likewise.
1576         * tests/test-truncf1.c: Likewise.
1577         * tests/test-truncf2.c: Likewise.
1578         * tests/test-truncl.c: Likewise.
1579         * tests/test-uname.c: Likewise.
1580         * tests/test-unlink.c: Likewise.
1581         * tests/test-unlinkat.c: Likewise.
1582         * tests/test-unsetenv.c: Likewise.
1583         * tests/test-usleep.c: Likewise.
1584         * tests/test-utimens.c: Likewise.
1585         * tests/test-utimensat.c: Likewise.
1586         * tests/test-vasnprintf-posix.c: Likewise.
1587         * tests/test-vasnprintf-posix2.c: Likewise.
1588         * tests/test-vasnprintf.c: Likewise.
1589         * tests/test-vasprintf-posix.c: Likewise.
1590         * tests/test-vasprintf.c: Likewise.
1591         * tests/test-vdprintf-posix.c: Likewise.
1592         * tests/test-vfprintf-posix.c: Likewise.
1593         * tests/test-vprintf-posix.c: Likewise.
1594         * tests/test-vsnprintf-posix.c: Likewise.
1595         * tests/test-vsnprintf.c: Likewise.
1596         * tests/test-vsprintf-posix.c: Likewise.
1597         * tests/test-wcrtomb.c: Likewise.
1598         * tests/test-wcsnrtombs.c: Likewise.
1599         * tests/test-wcsrtombs.c: Likewise.
1600         * tests/test-wctype.c: Likewise.
1601         * tests/test-wcwidth.c: Likewise.
1602         * tests/test-xfprintf-posix.c: Likewise.
1603         * tests/test-xmemdup0.c: Likewise.
1604         * tests/test-xprintf-posix.c: Likewise.
1605         * tests/test-xvasprintf.c: Likewise.
1606         * tests/unicase/test-locale-language.c: Likewise.
1607         * tests/unicase/test-mapping-part1.h: Likewise.
1608         * tests/unicase/test-predicate-part1.h: Likewise.
1609         * tests/unicase/test-u8-casecmp.c: Likewise.
1610         * tests/unicase/test-u8-casecoll.c: Likewise.
1611         * tests/unicase/test-u8-casefold.c: Likewise.
1612         * tests/unicase/test-u8-is-cased.c: Likewise.
1613         * tests/unicase/test-u8-is-casefolded.c: Likewise.
1614         * tests/unicase/test-u8-is-lowercase.c: Likewise.
1615         * tests/unicase/test-u8-is-titlecase.c: Likewise.
1616         * tests/unicase/test-u8-is-uppercase.c: Likewise.
1617         * tests/unicase/test-u8-tolower.c: Likewise.
1618         * tests/unicase/test-u8-totitle.c: Likewise.
1619         * tests/unicase/test-u8-toupper.c: Likewise.
1620         * tests/unicase/test-u16-casecmp.c: Likewise.
1621         * tests/unicase/test-u16-casecoll.c: Likewise.
1622         * tests/unicase/test-u16-casefold.c: Likewise.
1623         * tests/unicase/test-u16-is-cased.c: Likewise.
1624         * tests/unicase/test-u16-is-casefolded.c: Likewise.
1625         * tests/unicase/test-u16-is-lowercase.c: Likewise.
1626         * tests/unicase/test-u16-is-titlecase.c: Likewise.
1627         * tests/unicase/test-u16-is-uppercase.c: Likewise.
1628         * tests/unicase/test-u16-tolower.c: Likewise.
1629         * tests/unicase/test-u16-totitle.c: Likewise.
1630         * tests/unicase/test-u16-toupper.c: Likewise.
1631         * tests/unicase/test-u32-casecmp.c: Likewise.
1632         * tests/unicase/test-u32-casecoll.c: Likewise.
1633         * tests/unicase/test-u32-casefold.c: Likewise.
1634         * tests/unicase/test-u32-is-cased.c: Likewise.
1635         * tests/unicase/test-u32-is-casefolded.c: Likewise.
1636         * tests/unicase/test-u32-is-lowercase.c: Likewise.
1637         * tests/unicase/test-u32-is-titlecase.c: Likewise.
1638         * tests/unicase/test-u32-is-uppercase.c: Likewise.
1639         * tests/unicase/test-u32-tolower.c: Likewise.
1640         * tests/unicase/test-u32-totitle.c: Likewise.
1641         * tests/unicase/test-u32-toupper.c: Likewise.
1642         * tests/unicase/test-ulc-casecmp.c: Likewise.
1643         * tests/unicase/test-ulc-casecoll.c: Likewise.
1644         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
1645         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
1646         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
1647         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
1648         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
1649         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
1650         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
1651         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
1652         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
1653         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
1654         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
1655         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
1656         * tests/unictype/test-bidi_byname.c: Likewise.
1657         * tests/unictype/test-bidi_name.c: Likewise.
1658         * tests/unictype/test-bidi_of.c: Likewise.
1659         * tests/unictype/test-bidi_test.c: Likewise.
1660         * tests/unictype/test-block_list.c: Likewise.
1661         * tests/unictype/test-block_of.c: Likewise.
1662         * tests/unictype/test-block_test.c: Likewise.
1663         * tests/unictype/test-categ_and.c: Likewise.
1664         * tests/unictype/test-categ_and_not.c: Likewise.
1665         * tests/unictype/test-categ_byname.c: Likewise.
1666         * tests/unictype/test-categ_name.c: Likewise.
1667         * tests/unictype/test-categ_none.c: Likewise.
1668         * tests/unictype/test-categ_of.c: Likewise.
1669         * tests/unictype/test-categ_or.c: Likewise.
1670         * tests/unictype/test-categ_test_withtable.c: Likewise.
1671         * tests/unictype/test-combining.c: Likewise.
1672         * tests/unictype/test-decdigit.c: Likewise.
1673         * tests/unictype/test-digit.c: Likewise.
1674         * tests/unictype/test-mirror.c: Likewise.
1675         * tests/unictype/test-numeric.c: Likewise.
1676         * tests/unictype/test-pr_byname.c: Likewise.
1677         * tests/unictype/test-pr_test.c: Likewise.
1678         * tests/unictype/test-predicate-part1.h: Likewise.
1679         * tests/unictype/test-scripts.c: Likewise.
1680         * tests/unictype/test-sy_c_ident.c: Likewise.
1681         * tests/unictype/test-sy_java_ident.c: Likewise.
1682         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
1683         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
1684         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
1685         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
1686         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
1687         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
1688         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
1689         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
1690         * tests/uninorm/test-canonical-decomposition.c: Likewise.
1691         * tests/uninorm/test-compat-decomposition.c: Likewise.
1692         * tests/uninorm/test-composition.c: Likewise.
1693         * tests/uninorm/test-decomposing-form.c: Likewise.
1694         * tests/uninorm/test-decomposition.c: Likewise.
1695         * tests/uninorm/test-u8-nfc.c: Likewise.
1696         * tests/uninorm/test-u8-nfd.c: Likewise.
1697         * tests/uninorm/test-u8-nfkc.c: Likewise.
1698         * tests/uninorm/test-u8-nfkd.c: Likewise.
1699         * tests/uninorm/test-u8-normcmp.c: Likewise.
1700         * tests/uninorm/test-u8-normcoll.c: Likewise.
1701         * tests/uninorm/test-u16-nfc.c: Likewise.
1702         * tests/uninorm/test-u16-nfd.c: Likewise.
1703         * tests/uninorm/test-u16-nfkc.c: Likewise.
1704         * tests/uninorm/test-u16-nfkd.c: Likewise.
1705         * tests/uninorm/test-u16-normcmp.c: Likewise.
1706         * tests/uninorm/test-u16-normcoll.c: Likewise.
1707         * tests/uninorm/test-u32-nfc.c: Likewise.
1708         * tests/uninorm/test-u32-nfd.c: Likewise.
1709         * tests/uninorm/test-u32-nfkc.c: Likewise.
1710         * tests/uninorm/test-u32-nfkd.c: Likewise.
1711         * tests/uninorm/test-u32-normalize-big.c: Likewise.
1712         * tests/uninorm/test-u32-normcmp.c: Likewise.
1713         * tests/uninorm/test-u32-normcoll.c: Likewise.
1714         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
1715         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
1716         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
1717         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
1718         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
1719         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
1720         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
1721         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
1722         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
1723         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
1724         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
1725         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
1726         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
1727         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
1728         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
1729         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
1730         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
1731         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
1732         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
1733         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
1734         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
1735         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
1736         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
1737         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
1738         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
1739         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
1740         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
1741         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
1742         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
1743         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
1744         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
1745         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
1746         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
1747         * tests/uniwidth/test-u8-strwidth.c: Likewise.
1748         * tests/uniwidth/test-u8-width.c: Likewise.
1749         * tests/uniwidth/test-u16-strwidth.c: Likewise.
1750         * tests/uniwidth/test-u16-width.c: Likewise.
1751         * tests/uniwidth/test-u32-strwidth.c: Likewise.
1752         * tests/uniwidth/test-u32-width.c: Likewise.
1753         * tests/uniwidth/test-uc_width.c: Likewise.
1754         * tests/uniwidth/test-uc_width2.c: Likewise.
1755         * modules/acl-tests (Files): Add tests/macros.h.
1756         * modules/areadlink-tests (Files): Likewise.
1757         * modules/areadlink-with-size-tests (Files): Likewise.
1758         * modules/areadlinkat-tests (Files): Likewise.
1759         * modules/areadlinkat-with-size-tests (Files): Likewise.
1760         * modules/argmatch-tests (Files): Likewise.
1761         * modules/argv-iter-tests (Files): Likewise.
1762         * modules/array-list-tests (Files): Likewise.
1763         * modules/array-mergesort-tests (Files): Likewise.
1764         * modules/array-oset-tests (Files): Likewise.
1765         * modules/avltree-list-tests (Files): Likewise.
1766         * modules/avltree-oset-tests (Files): Likewise.
1767         * modules/avltreehash-list-tests (Files): Likewise.
1768         * modules/base64-tests (Files): Likewise.
1769         * modules/binary-io-tests (Files): Likewise.
1770         * modules/bitrotate-tests (Files): Likewise.
1771         * modules/btowc-tests (Files): Likewise.
1772         * modules/byteswap-tests (Files): Likewise.
1773         * modules/c-ctype-tests (Files): Likewise.
1774         * modules/c-stack-tests (Files): Likewise.
1775         * modules/c-strcase-tests (Files): Likewise.
1776         * modules/c-strcasestr-tests (Files): Likewise.
1777         * modules/c-strstr-tests (Files): Likewise.
1778         * modules/canonicalize-lgpl-tests (Files): Likewise.
1779         * modules/canonicalize-tests (Files): Likewise.
1780         * modules/carray-list-tests (Files): Likewise.
1781         * modules/ceilf-tests (Files): Likewise.
1782         * modules/ceill-tests (Files): Likewise.
1783         * modules/chown-tests (Files): Likewise.
1784         * modules/cloexec-tests (Files): Likewise.
1785         * modules/copy-file-tests (Files): Likewise.
1786         * modules/count-one-bits-tests (Files): Likewise.
1787         * modules/dprintf-posix-tests (Files): Likewise.
1788         * modules/dup2-tests (Files): Likewise.
1789         * modules/dup3-tests (Files): Likewise.
1790         * modules/duplocale-tests (Files): Likewise.
1791         * modules/fbufmode-tests (Files): Likewise.
1792         * modules/fchdir-tests (Files): Likewise.
1793         * modules/fcntl-safer-tests (Files): Likewise.
1794         * modules/fcntl-tests (Files): Likewise.
1795         * modules/fdopendir-tests (Files): Likewise.
1796         * modules/fdutimensat-tests (Files): Likewise.
1797         * modules/fflush-tests (Files): Likewise.
1798         * modules/filevercmp-tests (Files): Likewise.
1799         * modules/flock-tests (Files): Likewise.
1800         * modules/floorf-tests (Files): Likewise.
1801         * modules/floorl-tests (Files): Likewise.
1802         * modules/fnmatch-tests (Files): Likewise.
1803         * modules/fopen-safer-tests (Files): Likewise.
1804         * modules/fopen-tests (Files): Likewise.
1805         * modules/fpending-tests (Files): Likewise.
1806         * modules/fprintf-posix-tests (Files): Likewise.
1807         * modules/fpurge-tests (Files): Likewise.
1808         * modules/freadable-tests (Files): Likewise.
1809         * modules/freadahead-tests (Files): Likewise.
1810         * modules/freading-tests (Files): Likewise.
1811         * modules/freadptr-tests (Files): Likewise.
1812         * modules/freadseek-tests (Files): Likewise.
1813         * modules/freopen-tests (Files): Likewise.
1814         * modules/frexp-nolibm-tests (Files): Likewise.
1815         * modules/frexp-tests (Files): Likewise.
1816         * modules/frexpl-nolibm-tests (Files): Likewise.
1817         * modules/frexpl-tests (Files): Likewise.
1818         * modules/fseek-tests (Files): Likewise.
1819         * modules/fseeko-tests (Files): Likewise.
1820         * modules/fstrcmp-tests (Files): Likewise.
1821         * modules/fsync-tests (Files): Likewise.
1822         * modules/ftell-tests (Files): Likewise.
1823         * modules/ftello-tests (Files): Likewise.
1824         * modules/func-tests (Files): Likewise.
1825         * modules/futimens-tests (Files): Likewise.
1826         * modules/fwritable-tests (Files): Likewise.
1827         * modules/fwriting-tests (Files): Likewise.
1828         * modules/getcwd-tests (Files): Likewise.
1829         * modules/getdate-tests (Files): Likewise.
1830         * modules/getdelim-tests (Files): Likewise.
1831         * modules/getdtablesize-tests (Files): Likewise.
1832         * modules/getgroups-tests (Files): Likewise.
1833         * modules/getline-tests (Files): Likewise.
1834         * modules/getndelim2-tests (Files): Likewise.
1835         * modules/glob-tests (Files): Likewise.
1836         * modules/hash-tests (Files): Likewise.
1837         * modules/i-ring-tests (Files): Likewise.
1838         * modules/iconv-tests (Files): Likewise.
1839         * modules/iconv_open-utf-tests (Files): Likewise.
1840         * modules/idpriv-drop-tests (Files): Likewise.
1841         * modules/idpriv-droptemp-tests (Files): Likewise.
1842         * modules/inet_ntop-tests (Files): Likewise.
1843         * modules/inet_pton-tests (Files): Likewise.
1844         * modules/isblank-tests (Files): Likewise.
1845         * modules/isfinite-tests (Files): Likewise.
1846         * modules/isinf-tests (Files): Likewise.
1847         * modules/isnan-tests (Files): Likewise.
1848         * modules/isnand-nolibm-tests (Files): Likewise.
1849         * modules/isnand-tests (Files): Likewise.
1850         * modules/isnanf-nolibm-tests (Files): Likewise.
1851         * modules/isnanf-tests (Files): Likewise.
1852         * modules/isnanl-nolibm-tests (Files): Likewise.
1853         * modules/isnanl-tests (Files): Likewise.
1854         * modules/lchown-tests (Files): Likewise.
1855         * modules/ldexpl-tests (Files): Likewise.
1856         * modules/link-tests (Files): Likewise.
1857         * modules/linkat-tests (Files): Likewise.
1858         * modules/linked-list-tests (Files): Likewise.
1859         * modules/linkedhash-list-tests (Files): Likewise.
1860         * modules/localename-tests (Files): Likewise.
1861         * modules/lseek-tests (Files): Likewise.
1862         * modules/lstat-tests (Files): Likewise.
1863         * modules/mbmemcasecmp-tests (Files): Likewise.
1864         * modules/mbmemcasecoll-tests (Files): Likewise.
1865         * modules/mbrtowc-tests (Files): Likewise.
1866         * modules/mbscasecmp-tests (Files): Likewise.
1867         * modules/mbscasestr-tests (Files): Likewise.
1868         * modules/mbschr-tests (Files): Likewise.
1869         * modules/mbscspn-tests (Files): Likewise.
1870         * modules/mbsinit-tests (Files): Likewise.
1871         * modules/mbsncasecmp-tests (Files): Likewise.
1872         * modules/mbsnrtowcs-tests (Files): Likewise.
1873         * modules/mbspbrk-tests (Files): Likewise.
1874         * modules/mbspcasecmp-tests (Files): Likewise.
1875         * modules/mbsrchr-tests (Files): Likewise.
1876         * modules/mbsrtowcs-tests (Files): Likewise.
1877         * modules/mbsspn-tests (Files): Likewise.
1878         * modules/mbsstr-tests (Files): Likewise.
1879         * modules/memchr-tests (Files): Likewise.
1880         * modules/memchr2-tests (Files): Likewise.
1881         * modules/memcmp-tests (Files): Likewise.
1882         * modules/memmem-tests (Files): Likewise.
1883         * modules/memrchr-tests (Files): Likewise.
1884         * modules/mkdir-tests (Files): Likewise.
1885         * modules/mkfifo-tests (Files): Likewise.
1886         * modules/mkfifoat-tests (Files): Likewise.
1887         * modules/mknod-tests (Files): Likewise.
1888         * modules/nanosleep-tests (Files): Likewise.
1889         * modules/nl_langinfo-tests (Files): Likewise.
1890         * modules/obstack-printf-tests (Files): Likewise.
1891         * modules/open-tests (Files): Likewise.
1892         * modules/openat-tests (Files): Likewise.
1893         * modules/pipe-filter-gi-tests (Files): Likewise.
1894         * modules/pipe-filter-ii-tests (Files): Likewise.
1895         * modules/pipe2-tests (Files): Likewise.
1896         * modules/popen-safer-tests (Files): Likewise.
1897         * modules/popen-tests (Files): Likewise.
1898         * modules/posixtm-tests (Files): Likewise.
1899         * modules/pread-tests (Files): Likewise.
1900         * modules/printf-frexp-tests (Files): Likewise.
1901         * modules/printf-frexpl-tests (Files): Likewise.
1902         * modules/printf-posix-tests (Files): Likewise.
1903         * modules/priv-set-tests (Files): Likewise.
1904         * modules/quotearg-tests (Files): Likewise.
1905         * modules/random_r-tests (Files): Likewise.
1906         * modules/rawmemchr-tests (Files): Likewise.
1907         * modules/rbtree-list-tests (Files): Likewise.
1908         * modules/rbtree-oset-tests (Files): Likewise.
1909         * modules/rbtreehash-list-tests (Files): Likewise.
1910         * modules/readlink-tests (Files): Likewise.
1911         * modules/remove-tests (Files): Likewise.
1912         * modules/rename-tests (Files): Likewise.
1913         * modules/renameat-tests (Files): Likewise.
1914         * modules/rmdir-tests (Files): Likewise.
1915         * modules/round-tests (Files): Likewise.
1916         * modules/roundf-tests (Files): Likewise.
1917         * modules/roundl-tests (Files): Likewise.
1918         * modules/safe-alloc-tests (Files): Likewise.
1919         * modules/setenv-tests (Files): Likewise.
1920         * modules/sigaction-tests (Files): Likewise.
1921         * modules/signbit-tests (Files): Likewise.
1922         * modules/sleep-tests (Files): Likewise.
1923         * modules/snprintf-posix-tests (Files): Likewise.
1924         * modules/snprintf-tests (Files): Likewise.
1925         * modules/sprintf-posix-tests (Files): Likewise.
1926         * modules/stat-tests (Files): Likewise.
1927         * modules/stat-time-tests (Files): Likewise.
1928         * modules/strcasestr-tests (Files): Likewise.
1929         * modules/strchrnul-tests (Files): Likewise.
1930         * modules/strerror-tests (Files): Likewise.
1931         * modules/striconv-tests (Files): Likewise.
1932         * modules/striconveh-tests (Files): Likewise.
1933         * modules/striconveha-tests (Files): Likewise.
1934         * modules/strsignal-tests (Files): Likewise.
1935         * modules/strstr-tests (Files): Likewise.
1936         * modules/strtod-tests (Files): Likewise.
1937         * modules/strverscmp-tests (Files): Likewise.
1938         * modules/symlink-tests (Files): Likewise.
1939         * modules/symlinkat-tests (Files): Likewise.
1940         * modules/trunc-tests (Files): Likewise.
1941         * modules/truncf-tests (Files): Likewise.
1942         * modules/truncl-tests (Files): Likewise.
1943         * modules/uname-tests (Files): Likewise.
1944         * modules/unicase/cased-tests (Files): Likewise.
1945         * modules/unicase/ignorable-tests (Files): Likewise.
1946         * modules/unicase/locale-language-tests (Files): Likewise.
1947         * modules/unicase/tolower-tests (Files): Likewise.
1948         * modules/unicase/totitle-tests (Files): Likewise.
1949         * modules/unicase/toupper-tests (Files): Likewise.
1950         * modules/unicase/u8-casecmp-tests (Files): Likewise.
1951         * modules/unicase/u8-casecoll-tests (Files): Likewise.
1952         * modules/unicase/u8-casefold-tests (Files): Likewise.
1953         * modules/unicase/u8-is-cased-tests (Files): Likewise.
1954         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
1955         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
1956         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
1957         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
1958         * modules/unicase/u8-tolower-tests (Files): Likewise.
1959         * modules/unicase/u8-totitle-tests (Files): Likewise.
1960         * modules/unicase/u8-toupper-tests (Files): Likewise.
1961         * modules/unicase/u16-casecmp-tests (Files): Likewise.
1962         * modules/unicase/u16-casecoll-tests (Files): Likewise.
1963         * modules/unicase/u16-casefold-tests (Files): Likewise.
1964         * modules/unicase/u16-is-cased-tests (Files): Likewise.
1965         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
1966         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
1967         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
1968         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
1969         * modules/unicase/u16-tolower-tests (Files): Likewise.
1970         * modules/unicase/u16-totitle-tests (Files): Likewise.
1971         * modules/unicase/u16-toupper-tests (Files): Likewise.
1972         * modules/unicase/u32-casecmp-tests (Files): Likewise.
1973         * modules/unicase/u32-casecoll-tests (Files): Likewise.
1974         * modules/unicase/u32-casefold-tests (Files): Likewise.
1975         * modules/unicase/u32-is-cased-tests (Files): Likewise.
1976         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
1977         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
1978         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
1979         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
1980         * modules/unicase/u32-tolower-tests (Files): Likewise.
1981         * modules/unicase/u32-totitle-tests (Files): Likewise.
1982         * modules/unicase/u32-toupper-tests (Files): Likewise.
1983         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
1984         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
1985         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
1986         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
1987         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
1988         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
1989         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
1990         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
1991         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
1992         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
1993         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
1994         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
1995         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
1996         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
1997         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
1998         * modules/unictype/bidicategory-name-tests (Files): Likewise.
1999         * modules/unictype/bidicategory-of-tests (Files): Likewise.
2000         * modules/unictype/bidicategory-test-tests (Files): Likewise.
2001         * modules/unictype/block-list-tests (Files): Likewise.
2002         * modules/unictype/block-of-tests (Files): Likewise.
2003         * modules/unictype/block-test-tests (Files): Likewise.
2004         * modules/unictype/category-C-tests (Files): Likewise.
2005         * modules/unictype/category-Cc-tests (Files): Likewise.
2006         * modules/unictype/category-Cf-tests (Files): Likewise.
2007         * modules/unictype/category-Cn-tests (Files): Likewise.
2008         * modules/unictype/category-Co-tests (Files): Likewise.
2009         * modules/unictype/category-Cs-tests (Files): Likewise.
2010         * modules/unictype/category-L-tests (Files): Likewise.
2011         * modules/unictype/category-Ll-tests (Files): Likewise.
2012         * modules/unictype/category-Lm-tests (Files): Likewise.
2013         * modules/unictype/category-Lo-tests (Files): Likewise.
2014         * modules/unictype/category-Lt-tests (Files): Likewise.
2015         * modules/unictype/category-Lu-tests (Files): Likewise.
2016         * modules/unictype/category-M-tests (Files): Likewise.
2017         * modules/unictype/category-Mc-tests (Files): Likewise.
2018         * modules/unictype/category-Me-tests (Files): Likewise.
2019         * modules/unictype/category-Mn-tests (Files): Likewise.
2020         * modules/unictype/category-N-tests (Files): Likewise.
2021         * modules/unictype/category-Nd-tests (Files): Likewise.
2022         * modules/unictype/category-Nl-tests (Files): Likewise.
2023         * modules/unictype/category-No-tests (Files): Likewise.
2024         * modules/unictype/category-P-tests (Files): Likewise.
2025         * modules/unictype/category-Pc-tests (Files): Likewise.
2026         * modules/unictype/category-Pd-tests (Files): Likewise.
2027         * modules/unictype/category-Pe-tests (Files): Likewise.
2028         * modules/unictype/category-Pf-tests (Files): Likewise.
2029         * modules/unictype/category-Pi-tests (Files): Likewise.
2030         * modules/unictype/category-Po-tests (Files): Likewise.
2031         * modules/unictype/category-Ps-tests (Files): Likewise.
2032         * modules/unictype/category-S-tests (Files): Likewise.
2033         * modules/unictype/category-Sc-tests (Files): Likewise.
2034         * modules/unictype/category-Sk-tests (Files): Likewise.
2035         * modules/unictype/category-Sm-tests (Files): Likewise.
2036         * modules/unictype/category-So-tests (Files): Likewise.
2037         * modules/unictype/category-Z-tests (Files): Likewise.
2038         * modules/unictype/category-Zl-tests (Files): Likewise.
2039         * modules/unictype/category-Zp-tests (Files): Likewise.
2040         * modules/unictype/category-Zs-tests (Files): Likewise.
2041         * modules/unictype/category-and-not-tests (Files): Likewise.
2042         * modules/unictype/category-and-tests (Files): Likewise.
2043         * modules/unictype/category-byname-tests (Files): Likewise.
2044         * modules/unictype/category-name-tests (Files): Likewise.
2045         * modules/unictype/category-none-tests (Files): Likewise.
2046         * modules/unictype/category-of-tests (Files): Likewise.
2047         * modules/unictype/category-or-tests (Files): Likewise.
2048         * modules/unictype/category-test-withtable-tests (Files): Likewise.
2049         * modules/unictype/combining-class-tests (Files): Likewise.
2050         * modules/unictype/ctype-alnum-tests (Files): Likewise.
2051         * modules/unictype/ctype-alpha-tests (Files): Likewise.
2052         * modules/unictype/ctype-blank-tests (Files): Likewise.
2053         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
2054         * modules/unictype/ctype-digit-tests (Files): Likewise.
2055         * modules/unictype/ctype-graph-tests (Files): Likewise.
2056         * modules/unictype/ctype-lower-tests (Files): Likewise.
2057         * modules/unictype/ctype-print-tests (Files): Likewise.
2058         * modules/unictype/ctype-punct-tests (Files): Likewise.
2059         * modules/unictype/ctype-space-tests (Files): Likewise.
2060         * modules/unictype/ctype-upper-tests (Files): Likewise.
2061         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
2062         * modules/unictype/decimal-digit-tests (Files): Likewise.
2063         * modules/unictype/digit-tests (Files): Likewise.
2064         * modules/unictype/mirror-tests (Files): Likewise.
2065         * modules/unictype/numeric-tests (Files): Likewise.
2066         * modules/unictype/property-alphabetic-tests (Files): Likewise.
2067         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
2068         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
2069         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
2070         Likewise.
2071         * modules/unictype/property-bidi-block-separator-tests (Files):
2072         Likewise.
2073         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
2074         Likewise.
2075         * modules/unictype/property-bidi-common-separator-tests (Files):
2076         Likewise.
2077         * modules/unictype/property-bidi-control-tests (Files): Likewise.
2078         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
2079         Likewise.
2080         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
2081         Likewise.
2082         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
2083         Likewise.
2084         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
2085         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
2086         Likewise.
2087         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
2088         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
2089         Likewise.
2090         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
2091         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
2092         * modules/unictype/property-bidi-segment-separator-tests (Files):
2093         Likewise.
2094         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
2095         * modules/unictype/property-byname-tests (Files): Likewise.
2096         * modules/unictype/property-combining-tests (Files): Likewise.
2097         * modules/unictype/property-composite-tests (Files): Likewise.
2098         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
2099         * modules/unictype/property-dash-tests (Files): Likewise.
2100         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
2101         * modules/unictype/property-default-ignorable-code-point-tests (Files):
2102         Likewise.
2103         * modules/unictype/property-deprecated-tests (Files): Likewise.
2104         * modules/unictype/property-diacritic-tests (Files): Likewise.
2105         * modules/unictype/property-extender-tests (Files): Likewise.
2106         * modules/unictype/property-format-control-tests (Files): Likewise.
2107         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
2108         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
2109         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
2110         * modules/unictype/property-hex-digit-tests (Files): Likewise.
2111         * modules/unictype/property-hyphen-tests (Files): Likewise.
2112         * modules/unictype/property-id-continue-tests (Files): Likewise.
2113         * modules/unictype/property-id-start-tests (Files): Likewise.
2114         * modules/unictype/property-ideographic-tests (Files): Likewise.
2115         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
2116         * modules/unictype/property-ids-trinary-operator-tests (Files):
2117         Likewise.
2118         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
2119         * modules/unictype/property-iso-control-tests (Files): Likewise.
2120         * modules/unictype/property-join-control-tests (Files): Likewise.
2121         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
2122         * modules/unictype/property-line-separator-tests (Files): Likewise.
2123         * modules/unictype/property-logical-order-exception-tests (Files):
2124         Likewise.
2125         * modules/unictype/property-lowercase-tests (Files): Likewise.
2126         * modules/unictype/property-math-tests (Files): Likewise.
2127         * modules/unictype/property-non-break-tests (Files): Likewise.
2128         * modules/unictype/property-not-a-character-tests (Files): Likewise.
2129         * modules/unictype/property-numeric-tests (Files): Likewise.
2130         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
2131         * modules/unictype/property-other-default-ignorable-code-point-tests
2132         (Files): Likewise.
2133         * modules/unictype/property-other-grapheme-extend-tests (Files):
2134         Likewise.
2135         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
2136         * modules/unictype/property-other-id-start-tests (Files): Likewise.
2137         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
2138         * modules/unictype/property-other-math-tests (Files): Likewise.
2139         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
2140         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
2141         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
2142         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
2143         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
2144         * modules/unictype/property-private-use-tests (Files): Likewise.
2145         * modules/unictype/property-punctuation-tests (Files): Likewise.
2146         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
2147         * modules/unictype/property-radical-tests (Files): Likewise.
2148         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
2149         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
2150         * modules/unictype/property-space-tests (Files): Likewise.
2151         * modules/unictype/property-terminal-punctuation-tests (Files):
2152         Likewise.
2153         * modules/unictype/property-test-tests (Files): Likewise.
2154         * modules/unictype/property-titlecase-tests (Files): Likewise.
2155         * modules/unictype/property-unassigned-code-value-tests (Files):
2156         Likewise.
2157         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
2158         * modules/unictype/property-uppercase-tests (Files): Likewise.
2159         * modules/unictype/property-variation-selector-tests (Files): Likewise.
2160         * modules/unictype/property-white-space-tests (Files): Likewise.
2161         * modules/unictype/property-xid-continue-tests (Files): Likewise.
2162         * modules/unictype/property-xid-start-tests (Files): Likewise.
2163         * modules/unictype/property-zero-width-tests (Files): Likewise.
2164         * modules/unictype/scripts-tests (Files): Likewise.
2165         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
2166         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
2167         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
2168         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
2169         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
2170         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
2171         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
2172         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
2173         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
2174         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
2175         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
2176         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
2177         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
2178         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
2179         * modules/uninorm/composition-tests (Files): Likewise.
2180         * modules/uninorm/decomposing-form-tests (Files): Likewise.
2181         * modules/uninorm/decomposition-tests (Files): Likewise.
2182         * modules/uninorm/filter-tests (Files): Likewise.
2183         * modules/uninorm/nfc-tests (Files): Likewise.
2184         * modules/uninorm/nfd-tests (Files): Likewise.
2185         * modules/uninorm/nfkc-tests (Files): Likewise.
2186         * modules/uninorm/nfkd-tests (Files): Likewise.
2187         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
2188         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
2189         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
2190         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
2191         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
2192         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
2193         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
2194         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
2195         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
2196         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
2197         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
2198         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
2199         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
2200         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
2201         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
2202         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
2203         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
2204         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
2205         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
2206         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
2207         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
2208         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
2209         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
2210         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
2211         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
2212         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
2213         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
2214         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
2215         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
2216         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
2217         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
2218         * modules/uniwidth/u8-width-tests (Files): Likewise.
2219         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
2220         * modules/uniwidth/u16-width-tests (Files): Likewise.
2221         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
2222         * modules/uniwidth/u32-width-tests (Files): Likewise.
2223         * modules/uniwidth/width-tests (Files): Likewise.
2224         * modules/unlink-tests (Files): Likewise.
2225         * modules/unsetenv-tests (Files): Likewise.
2226         * modules/usleep-tests (Files): Likewise.
2227         * modules/utimens-tests (Files): Likewise.
2228         * modules/utimensat-tests (Files): Likewise.
2229         * modules/vasnprintf-posix-tests (Files): Likewise.
2230         * modules/vasnprintf-tests (Files): Likewise.
2231         * modules/vasprintf-posix-tests (Files): Likewise.
2232         * modules/vasprintf-tests (Files): Likewise.
2233         * modules/vdprintf-posix-tests (Files): Likewise.
2234         * modules/vfprintf-posix-tests (Files): Likewise.
2235         * modules/vprintf-posix-tests (Files): Likewise.
2236         * modules/vsnprintf-posix-tests (Files): Likewise.
2237         * modules/vsnprintf-tests (Files): Likewise.
2238         * modules/vsprintf-posix-tests (Files): Likewise.
2239         * modules/wcrtomb-tests (Files): Likewise.
2240         * modules/wcsnrtombs-tests (Files): Likewise.
2241         * modules/wcsrtombs-tests (Files): Likewise.
2242         * modules/wctype-tests (Files): Likewise.
2243         * modules/wcwidth-tests (Files): Likewise.
2244         * modules/xmemdup0-tests (Files): Likewise.
2245         * modules/xprintf-posix-tests (Files): Likewise.
2246         * modules/xvasprintf-tests (Files): Likewise.
2247
2248 2009-12-24  Eric Blake  <ebb9@byu.net>
2249
2250         test-nanosleep: fix typo
2251         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
2252         patch.
2253         Reported by Bruno Haible.
2254
2255 2009-12-24  Bruno Haible  <bruno@clisp.org>
2256
2257         Reduce namespace pollution on glibc systems.
2258         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
2259         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
2260         systems.
2261         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
2262         <getopt.h> on glibc systems.
2263         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
2264         systems.
2265         * lib/fcntl.c: Include <unistd.h> here instead.
2266
2267 2009-12-24  Bruno Haible  <bruno@clisp.org>
2268
2269         * lib/stdlib.in.h (includes): Fix typo in today's commit.
2270
2271 2009-12-24  Eric Blake  <ebb9@byu.net>
2272
2273         tests: add signature checks
2274         * tests/signature.h (SIGNATURE_CHECK): New file.
2275         * modules/atexit-tests (Files): Use it.
2276         * modules/btowc-tests (Files): Likewise.
2277         * modules/canonicalize-lgpl-tests (Files): Likewise.
2278         * modules/ceilf-tests (Files): Likewise.
2279         * modules/ceill-tests (Files): Likewise.
2280         * modules/chown-tests (Files): Likewise.
2281         * modules/dprintf-posix-tests (Files): Likewise.
2282         * modules/dup2-tests (Files): Likewise.
2283         * modules/dup3-tests (Files): Likewise.
2284         * modules/duplocale-tests (Files): Likewise.
2285         * modules/fchdir-tests (Files): Likewise.
2286         * modules/fcntl-tests (Files): Likewise.
2287         * modules/fdopendir-tests (Files): Likewise.
2288         * modules/fflush-tests (Files): Likewise.
2289         * modules/flock-tests (Files): Likewise.
2290         * modules/floorf-tests (Files): Likewise.
2291         * modules/floorl-tests (Files): Likewise.
2292         * modules/fnmatch-tests (Files): Likewise.
2293         * modules/fopen-tests (Files): Likewise.
2294         * modules/fprintf-posix-tests (Files): Likewise.
2295         * modules/freopen-tests (Files): Likewise.
2296         * modules/frexp-nolibm-tests (Files): Likewise.
2297         * modules/frexp-tests (Files): Likewise.
2298         * modules/frexpl-nolibm-tests (Files): Likewise.
2299         * modules/frexpl-tests (Files): Likewise.
2300         * modules/fseek-tests (Files): Likewise.
2301         * modules/fseeko-tests (Files): Likewise.
2302         * modules/fsync-tests (Files): Likewise.
2303         * modules/ftell-tests (Files): Likewise.
2304         * modules/ftello-tests (Files): Likewise.
2305         * modules/futimens-tests (Files): Likewise.
2306         * modules/getaddrinfo-tests (Files): Likewise.
2307         * modules/getcwd-tests (Files): Likewise.
2308         * modules/getdelim-tests (Files): Likewise.
2309         * modules/getdtablesize-tests (Files): Likewise.
2310         * modules/getgroups-tests (Files): Likewise.
2311         * modules/gethostname-tests (Files): Likewise.
2312         * modules/getline-tests (Files): Likewise.
2313         * modules/getopt-posix-tests (Files): Likewise.
2314         * modules/gettimeofday-tests (Files): Likewise.
2315         * modules/glob-tests (Files): Likewise.
2316         * modules/iconv-tests (Files): Likewise.
2317         * modules/inet_ntop-tests (Files): Likewise.
2318         * modules/inet_pton-tests (Files): Likewise.
2319         * modules/isblank-tests (Files): Likewise.
2320         * modules/lchown-tests (Files): Likewise.
2321         * modules/ldexpl-tests (Files): Likewise.
2322         * modules/link-tests (Files): Likewise.
2323         * modules/linkat-tests (Files): Likewise.
2324         * modules/lseek-tests (Files): Likewise.
2325         * modules/lstat-tests (Files): Likewise.
2326         * modules/mbrtowc-tests (Files): Likewise.
2327         * modules/mbsinit-tests (Files): Likewise.
2328         * modules/mbsnrtowcs-tests (Files): Likewise.
2329         * modules/mbsrtowcs-tests (Files): Likewise.
2330         * modules/memchr-tests (Files): Likewise.
2331         * modules/memcmp-tests (Files): Likewise.
2332         * modules/memmem-tests (Files): Likewise.
2333         * modules/memrchr-tests (Files): Likewise.
2334         * modules/mkdir-tests (Files): Likewise.
2335         * modules/mkfifo-tests (Files): Likewise.
2336         * modules/mkfifoat-tests (Files): Likewise.
2337         * modules/mknod-tests (Files): Likewise.
2338         * modules/nanosleep-tests (Files): Likewise.
2339         * modules/nl_langinfo-tests (Files): Likewise.
2340         * modules/obstack-printf-tests (Files): Likewise.
2341         * modules/open-tests (Files): Likewise.
2342         * modules/openat-tests (Files): Likewise.
2343         * modules/perror-tests (Files): Likewise.
2344         * modules/pipe2-tests (Files): Likewise.
2345         * modules/poll-tests (Files): Likewise.
2346         * modules/popen-tests (Files): Likewise.
2347         * modules/posix_spawn-tests (Files): Likewise.
2348         * modules/posix_spawnp-tests (Files): Likewise.
2349         * modules/pread-tests (Files): Likewise.
2350         * modules/printf-posix-tests (Files): Likewise.
2351         * modules/pty-tests (Files): Likewise.
2352         * modules/random_r-tests (Files): Likewise.
2353         * modules/rawmemchr-tests (Files): Likewise.
2354         * modules/readlink-tests (Files): Likewise.
2355         * modules/remove-tests (Files): Likewise.
2356         * modules/rename-tests (Files): Likewise.
2357         * modules/renameat-tests (Files): Likewise.
2358         * modules/rmdir-tests (Files): Likewise.
2359         * modules/round-tests (Files): Likewise.
2360         * modules/roundf-tests (Files): Likewise.
2361         * modules/roundl-tests (Files): Likewise.
2362         * modules/select-tests (Files): Likewise.
2363         * modules/setenv-tests (Files): Likewise.
2364         * modules/sigaction-tests (Files): Likewise.
2365         * modules/sleep-tests (Files): Likewise.
2366         * modules/snprintf-posix-tests (Files): Likewise.
2367         * modules/snprintf-tests (Files): Likewise.
2368         * modules/sprintf-posix-tests (Files): Likewise.
2369         * modules/stat-tests (Files): Likewise.
2370         * modules/strcasestr-tests (Files): Likewise.
2371         * modules/strchrnul-tests (Files): Likewise.
2372         * modules/strerror-tests (Files): Likewise.
2373         * modules/strsignal-tests (Files): Likewise.
2374         * modules/strstr-tests (Files): Likewise.
2375         * modules/strtod-tests (Files): Likewise.
2376         * modules/strverscmp-tests (Files): Likewise.
2377         * modules/symlink-tests (Files): Likewise.
2378         * modules/symlinkat-tests (Files): Likewise.
2379         * modules/times-tests (Files): Likewise.
2380         * modules/trunc-tests (Files): Likewise.
2381         * modules/truncf-tests (Files): Likewise.
2382         * modules/truncl-tests (Files): Likewise.
2383         * modules/tsearch-tests (Files): Likewise.
2384         * modules/uname-tests (Files): Likewise.
2385         * modules/unlink-tests (Files): Likewise.
2386         * modules/unsetenv-tests (Files): Likewise.
2387         * modules/usleep-tests (Files): Likewise.
2388         * modules/utimensat-tests (Files): Likewise.
2389         * modules/vasprintf-tests (Files): Likewise.
2390         * modules/vdprintf-posix-tests (Files): Likewise.
2391         * modules/vfprintf-posix-tests (Files): Likewise.
2392         * modules/vprintf-posix-tests (Files): Likewise.
2393         * modules/vsnprintf-posix-tests (Files): Likewise.
2394         * modules/vsnprintf-tests (Files): Likewise.
2395         * modules/vsprintf-posix-tests (Files): Likewise.
2396         * modules/wcrtomb-tests (Files): Likewise.
2397         * modules/wcsnrtombs-tests (Files): Likewise.
2398         * modules/wcsrtombs-tests (Files): Likewise.
2399         * modules/wcwidth-tests (Files): Likewise.
2400         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
2401         * tests/test-isinf.c (isinf): Likewise.
2402         * tests/test-isnan.c (isnan): Likewise.
2403         * tests/test-signbit.c (signbit): Likewise.
2404         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
2405         declaration, either as macro or with correct signature.
2406         (select): Ensure function under test is declared with correct
2407         signature in correct header.
2408         * tests/test-atexit.c (atexit): Likewise.
2409         * tests/test-btowc.c (btowc): Likewise.
2410         * tests/test-canonicalize-lgpl.c (realpath)
2411         (canonicalize_file_name): Likewise.
2412         * tests/test-ceilf1.c (ceilf): Likewise.
2413         * tests/test-ceill.c (ceill): Likewise.
2414         * tests/test-chown.c (chown): Likewise.
2415         * tests/test-dprintf-posix.c (dprintf): Likewise.
2416         * tests/test-dup2.c (dup2): Likewise.
2417         * tests/test-dup3.c (dup3): Likewise.
2418         * tests/test-duplocale.c (duplocale): Likewise.
2419         * tests/test-fchdir.c (fchdir): Likewise.
2420         * tests/test-fchownat.c (fchownat): Likewise.
2421         * tests/test-fcntl.c (fcntl): Likewise.
2422         * tests/test-fdopendir.c (fdopendir): Likewise.
2423         * tests/test-fflush.c (fflush): Likewise.
2424         * tests/test-flock.c (flock): Likewise.
2425         * tests/test-floorf1.c (floorf): Likewise.
2426         * tests/test-floorl.c (floorl): Likewise.
2427         * tests/test-fnmatch.c (fnmatch): Likewise.
2428         * tests/test-fopen.c (fopen): Likewise.
2429         * tests/test-fprintf-posix.c (fprintf): Likewise.
2430         * tests/test-freopen.c (freopen): Likewise.
2431         * tests/test-frexp.c (frexp): Likewise.
2432         * tests/test-frexpl.c (frexpl): Likewise.
2433         * tests/test-fseek.c (fseek): Likewise.
2434         * tests/test-fseeko.c (fseeko): Likewise.
2435         * tests/test-fstatat.c (fstatat): Likewise.
2436         * tests/test-fsync.c (fsync): Likewise.
2437         * tests/test-ftell.c (ftell): Likewise.
2438         * tests/test-ftello.c (ftello): Likewise.
2439         * tests/test-futimens.c (futimens): Likewise.
2440         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
2441         (gai_strerror): Likewise.
2442         * tests/test-getcwd.c (getcwd): Likewise.
2443         * tests/test-getdelim.c (getdelim): Likewise.
2444         * tests/test-getdtablesize.c (getdtablesize): Likewise.
2445         * tests/test-getgroups.c (getgroups): Likewise.
2446         * tests/test-gethostname.c (gethostname): Likewise.
2447         * tests/test-getline.c (getline): Likewise.
2448         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
2449         Likewise.
2450         * tests/test-gettimeofday.c (gettimeofday): Likewise.
2451         * tests/test-glob.c (glob, globfree): Likewise.
2452         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
2453         * tests/test-inet_ntop.c (inet_ntop): Likewise.
2454         * tests/test-inet_pton.c (inet_pton): Likewise.
2455         * tests/test-isblank.c (isblank): Likewise.
2456         * tests/test-lchown.c (lchown): Likewise.
2457         * tests/test-ldexpl.c (ldexpl): Likewise.
2458         * tests/test-link.c (link): Likewise.
2459         * tests/test-linkat.c (linkat): Likewise.
2460         * tests/test-lseek.c (lseek): Likewise.
2461         * tests/test-lstat.c (lstat): Likewise.
2462         * tests/test-mbrtowc.c (mbrtowc): Likewise.
2463         * tests/test-mbsinit.c (mbsinit): Likewise.
2464         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
2465         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
2466         * tests/test-memchr.c (memchr): Likewise.
2467         * tests/test-memcmp.c (memcmp): Likewise.
2468         * tests/test-memmem.c (memmem): Likewise.
2469         * tests/test-memrchr.c (memrchr): Likewise.
2470         * tests/test-mkdir.c (mkdir): Likewise.
2471         * tests/test-mkdirat.c (mkdirat): Likewise.
2472         * tests/test-mkfifo.c (mkfifo): Likewise.
2473         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
2474         * tests/test-mknod.c (mknod): Likewise.
2475         * tests/test-nanosleep.c (nanosleep): Likewise.
2476         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
2477         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
2478         Likewise.
2479         * tests/test-open.c (open): Likewise.
2480         * tests/test-openat.c (openat): Likewise.
2481         * tests/test-perror.c (perror): Likewise.
2482         * tests/test-pipe2.c (pipe2): Likewise.
2483         * tests/test-poll.c (poll): Likewise.
2484         * tests/test-popen.c (popen, pclose): Likewise.
2485         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
2486         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
2487         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
2488         (posix_spawn_file_actions_destroy)
2489         (posix_spawn_file_actions_addclose)
2490         (posix_spawn_file_actions_addopen)
2491         (posix_spawn_file_actions_adddup2): Likewise.
2492         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
2493         * tests/test-pread.c (pread): Likewise.
2494         * tests/test-printf-posix.c (printf): Likewise.
2495         * tests/test-pty.c (openpty, forkpty): Likewise.
2496         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
2497         (random_r): Likewise.
2498         * tests/test-rawmemchr.c (rawmemchr): Likewise.
2499         * tests/test-readlink.c (readlink): Likewise.
2500         * tests/test-remove.c (remove): Likewise.
2501         * tests/test-rename.c (rename): Likewise.
2502         * tests/test-renameat.c (renameat): Likewise.
2503         * tests/test-rmdir.c (rmdir): Likewise.
2504         * tests/test-round1.c (round): Likewise.
2505         * tests/test-roundf1.c (roundf): Likewise.
2506         * tests/test-roundl.c (roundl): Likewise.
2507         * tests/test-setenv.c (setenv): Likewise.
2508         * tests/test-sigaction.c (sigaction): Likewise.
2509         * tests/test-sleep.c (sleep): Likewise.
2510         * tests/test-snprintf.c (snprintf): Likewise.
2511         * tests/test-sprintf-posix.c (sprintf): Likewise.
2512         * tests/test-stat.c (stat): Likewise.
2513         * tests/test-stpncpy.c (stpncpy): Likewise.
2514         * tests/test-strcasestr.c (strcasestr): Likewise.
2515         * tests/test-strchrnul.c (strchrnul): Likewise.
2516         * tests/test-strerror.c (strerror): Likewise.
2517         * tests/test-strsignal.c (strsignal): Likewise.
2518         * tests/test-strstr.c (strstr): Likewise.
2519         * tests/test-strtod.c (strtod): Likewise.
2520         * tests/test-strverscmp.c (strverscmp): Likewise.
2521         * tests/test-symlink.c (symlink): Likewise.
2522         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
2523         * tests/test-times.c (times): Likewise.
2524         * tests/test-trunc1.c (trunc): Likewise.
2525         * tests/test-truncf1.c (truncf): Likewise.
2526         * tests/test-truncl.c (truncl): Likewise.
2527         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
2528         Likewise.
2529         * tests/test-uname.c (uname): Likewise.
2530         * tests/test-unlink.c (unlink): Likewise.
2531         * tests/test-unlinkat.c (unlinkat): Likewise.
2532         * tests/test-unsetenv.c (unsetenv): Likewise.
2533         * tests/test-usleep.c (usleep): Likewise.
2534         * tests/test-utimensat.c (utimensat): Likewise.
2535         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
2536         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
2537         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
2538         * tests/test-vprintf-posix.c (vprintf): Likewise.
2539         * tests/test-vsnprintf.c (vsnprintf): Likewise.
2540         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
2541         * tests/test-wcrtomb.c (wcrtomb): Likewise.
2542         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
2543         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
2544         * tests/test-wcwidth.c (wcwidth): Likewise.
2545
2546         build: pull in conditional headers during GNULIB_POSIXCHECK
2547         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
2548         definitions from any conditionally-included headers.
2549         * lib/stdlib.in.h (includes): Likewise.
2550         * lib/unistd.in.h (includes): Likewise.
2551
2552 2009-12-24  Bruno Haible  <bruno@clisp.org>
2553
2554         * tests/test-argv-iter.c: Include header file being tested immediately
2555         after config.h.
2556         * tests/test-base64.c: Likewise.
2557         * tests/test-flock.c: Likewise.
2558         * tests/test-fsync.c: Likewise.
2559         * tests/test-getdate.c: Likewise.
2560         * tests/test-getndelim2.c: Likewise.
2561         * tests/test-isfinite.c: Likewise.
2562         * tests/test-isinf.c: Likewise.
2563         * tests/test-strerror.c: Likewise.
2564         * tests/test-strsignal.c: Likewise.
2565
2566 2009-12-23  Eric Blake  <ebb9@byu.net>
2567
2568         unistd: work around cygwin bug
2569         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
2570         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
2571         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
2572
2573 2009-12-23  Bruno Haible  <bruno@clisp.org>
2574
2575         localename: More tests.
2576         * tests/test-localename.c (SIZEOF): New macro.
2577         (categories): New variable.
2578         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
2579         test_locale_name_default): Add test w.r.t. thread locale.
2580         (test_locale_name_thread): New function.
2581         (main): Invoke it.
2582
2583         localename: Make aware of thread locale.
2584         * lib/localename.h (gl_locale_name_thread): New declaration.
2585         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
2586         behaviour with respect to thread locale.
2587         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
2588         <langinfo.h>, glthread/lock.h.
2589         (SIZE_BITS): New macro.
2590         (string_hash): New function.
2591         (struct hash_node): New type.
2592         (HASH_TABLE_SIZE): New macro.
2593         (struniq_hash_table, struniq_lock): New variables.
2594         (struniq): New function.
2595         (gl_locale_name_thread): New function.
2596         (gl_locale_name): Invoke it.
2597         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
2598         * modules/localename (Depends-on): Add lock.
2599         Reported by Mike Gran <spk121@yahoo.com>.
2600
2601 2009-12-23  Eric Blake  <ebb9@byu.net>
2602
2603         va-args: new module
2604         * modules/va-args: New file.
2605         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
2606         * MODULES.html.sh (Core language properties): Mention it.
2607
2608         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
2609         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
2610         named alias for __attribute__((__unused__)).
2611         * lib/chown.c: Update client.
2612         * lib/fchmodat.c: Likewise.
2613         * lib/fts.c: Likewise.
2614         * lib/getdate.y: Likewise.
2615         * lib/getgroups.c: Likewise.
2616         * lib/getopt.c: Likewise.
2617         * lib/getugroups.c: Likewise.
2618         * lib/mkdir.c: Likewise.
2619         * lib/mkfifo.c: Likewise.
2620         * lib/mkfifoat.c: Likewise.
2621         * lib/mknod.c: Likewise.
2622         * lib/mknodat.c: Likewise.
2623         * lib/readlink.c: Likewise.
2624         * lib/se-context.in.h: Likewise.
2625         * lib/se-selinux.in.h: Likewise.
2626         * lib/sockets.c: Likewise.
2627         * lib/symlink.c: Likewise.
2628         * lib/symlinkat.c: Likewise.
2629         * lib/unicodeio.c: Likewise.
2630         * lib/unistr.h: Likewise.
2631         * tests/test-areadlink.c: Likewise.
2632         * tests/test-areadlinkat.c: Likewise.
2633         * tests/test-filenamecat.c: Likewise.
2634         * tests/test-fseeko.c: Likewise.
2635         * tests/test-ftello.c: Likewise.
2636         * tests/test-getdate.c: Likewise.
2637         * tests/test-getgroups.c: Likewise.
2638         * tests/test-gethostname.c: Likewise.
2639         * tests/test-quotearg.c: Likewise.
2640         * tests/test-version-etc.c: Likewise.
2641         * tests/test-xalloc-die.c: Likewise.
2642         * tests/test-xfprintf-posix.c: Likewise.
2643         * tests/test-xprintf-posix.c: Likewise.
2644         * tests/test-xvasprintf.c: Likewise.
2645
2646         tests: avoid compiler warnings
2647         * tests/test-fcntl.c (main): Delete unused parameters.
2648         * tests/test-freopen-safer.c (main): Likewise.
2649         * tests/test-xalloc-die.c (main): Mark unused parameters.
2650         * tests/test-fseeko.c (main): Likewise.
2651         * tests/test-ftello.c (main): Likewise.
2652         * tests/test-nanosleep.c (main): Avoid declaration warning.
2653         * tests/test-sleep.c (main): Likewise.
2654         * tests/test-unsetenv.c (main): Silence warning about string
2655         literal.
2656         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2657
2658 2009-12-23  Bruno Haible  <bruno@clisp.org>
2659
2660         * tests/test-localename.c (test_locale_name): New function, extracted
2661         from main. Also test mixed situations.
2662         (test_locale_name_posix, test_locale_name_environ,
2663         test_locale_name_default): New functions.
2664         (main): Invoke them all.
2665         * modules/localename-tests (configure.ac): Test for newlocale.
2666
2667 2009-12-23  Bruno Haible  <bruno@clisp.org>
2668
2669         unistd: Ensure getcwd gets declared before being overridden.
2670         * lib/unistd.in.h: Conditionally include <io.h>.
2671
2672 2009-12-22  Bruno Haible  <bruno@clisp.org>
2673
2674         wchar: Diagnose broken combination of glibc and gcc versions and flags.
2675         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
2676         (gl_WCHAR_H): Invoke it.
2677         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
2678         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
2679         Reported by Karl Berry <karl@freefriends.org>.
2680
2681 2009-12-22  Eric Blake  <ebb9@byu.net>
2682
2683         math, unistd: avoid redundant includes
2684         * lib/math.in.h (isnan): No need to re-include <math.h>.
2685         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
2686
2687         getsubopt: work around cygwin bug
2688         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
2689         avoid conflicting with system getsubopt.
2690         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
2691         bug.
2692
2693         getopt: synchronize from glibc
2694         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
2695         parameter order.  Adjust all callers.
2696         (_getopt_internal_r, main): Adjust quoting in error messages.
2697         Drop considerations for outdated POSIX 1003.2 error message.
2698         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
2699         callers.
2700         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
2701
2702         test-getopt: test stderr behavior
2703         * modules/getopt-posix-tests (Depends-on): Add dup2.
2704         * tests/test-getopt.c (ASSERT): Avoid stderr.
2705         (main): Move stderr to a temporary file.
2706         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
2707         Instead, add parameter to inform caller if output occurred.
2708         (test_getopt): Adjust all existing tests to expect silence, and
2709         add new tests of leading ":".
2710         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
2711         glibc shortcomings with leading "-:" or "+:" in optstring.
2712         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2713         Likewise.
2714         * doc/posix-functions/getopt.texi (getopt): Likewise.
2715
2716         test-getopt: enhance test
2717         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
2718         supports optind=0.
2719         * tests/test-getopt.c (OPTIND_MIN): Move...
2720         * tests/test-getopt.h (OPTIND_MIN): ...here.
2721         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
2722         Require that optind=0 works, since modern BSD supports it in
2723         addition to optreset, and since coreutils expects it.
2724         (test_getopt_long_only): New test.
2725         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
2726         glibc shortcomings with 'W;', and enforcement of optind=0.
2727         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2728         Likewise.
2729
2730 2009-12-21  Bruno Haible  <bruno@clisp.org>
2731
2732         localename: Improvements for MacOS X and Cygwin.
2733         * lib/localename.h (gl_locale_name_environ): New declaration.
2734         * lib/localename.c (gl_locale_name_environ): New function, extracted from
2735         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
2736         (gl_locale_name_posix): Invoke it.
2737         (gl_locale_name_default): Add comments. Use Windows native API also on
2738         Cygwin.
2739
2740 2009-12-21  Bruno Haible  <bruno@clisp.org>
2741
2742         Update list of Win32 locale ids.
2743         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
2744         (LANG_SAMI): Renamed from LANG_SAAMI.
2745         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
2746         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
2747         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
2748         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
2749         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
2750         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
2751         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
2752         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
2753         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
2754         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
2755         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
2756         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
2757         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
2758         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
2759         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
2760         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
2761         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
2762         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
2763         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
2764         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
2765         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
2766         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
2767         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
2768         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
2769         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
2770         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
2771         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
2772         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
2773         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
2774         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
2775         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
2776         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
2777         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
2778         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
2779         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
2780         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
2781         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
2782         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
2783         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
2784         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
2785         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
2786         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
2787         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
2788         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
2789         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
2790         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
2791         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
2792         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
2793         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
2794         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
2795         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
2796         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
2797         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
2798         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
2799         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
2800         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
2801         Add more languages and countries for Sami, Sorbian. Add more countries
2802         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
2803         for Pashto. Change country for Syriac, Tswana.
2804
2805 2009-12-21  Eric Blake  <ebb9@byu.net>
2806
2807         test-utimens: avoid spurious failure
2808         * tests/test-chown.h (nap): Factor...
2809         * tests/nap.h: ...into new file.
2810         * tests/test-lchown.h (nap): Avoid duplication.
2811         * tests/test-utimens-common.h (nap): Use shared implementation,
2812         necessary on file systems with 1-second resolution.
2813         * modules/chown-tests (Files): Include new file.
2814         * modules/fdutimensat-tests (Files): Likewise.
2815         * modules/futimens-tests (Files): Likewise.
2816         * modules/lchown-tests (Files): Likewise.
2817         * modules/openat-tests (Files): Likewise.
2818         * modules/utimens-tests (Files): Likewise.
2819         * modules/utimensat-tests (Files): Likewise.
2820
2821 2009-12-19  Eric Blake  <ebb9@byu.net>
2822
2823         futimens, utimensat: work around Linux bug
2824         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
2825         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2826         * lib/utimensat.c (rpl_utimensat): Work around it.
2827         * lib/futimens.c (rpl_futimens): Adjust comment.
2828
2829         utimens: work around Linux ctime bug
2830         * lib/utimens.c (detect_ctime_bug): New helper function.
2831         (update_timespec): Differentiate between workaround needed for
2832         this bug vs. what is needed for systems that lack utimensat.
2833         (fdutimens, lutimens): Work around bug.
2834
2835         utimens: check for ctime update
2836         * tests/test-utimens-common.h (check_ctime): Define.
2837         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
2838         * tests/test-futimens.h (test_futimens): Likewise.
2839         * tests/test-lutimens.h (test_lutimens): Likewise.
2840         * doc/posix-functions/futimens.texi (futimens): Document the bug.
2841         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
2842
2843 2009-12-19  Bruno Haible  <bruno@clisp.org>
2844
2845         dprintf-posix: Check against memory leak fixed on 2009-12-15.
2846         * tests/test-dprintf-posix2.sh: New file.
2847         * tests/test-dprintf-posix2.c: New file.
2848         * modules/dprintf-posix-tests (Files): Add them.
2849         (configure.ac): Check for getrlimit and setrlimit.
2850         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
2851
2852 2009-12-19  Bruno Haible  <bruno@clisp.org>
2853
2854         fprintf-posix: Check against memory leak fixed on 2009-12-15.
2855         * tests/test-fprintf-posix3.sh: New file.
2856         * tests/test-fprintf-posix3.c: New file.
2857         * modules/fprintf-posix-tests (Files): Add them.
2858         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
2859
2860 2009-12-19  Eric Blake  <ebb9@byu.net>
2861
2862         dirfd: fix prototype
2863         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
2864         * lib/dirfd.c (dirfd): Likewise.
2865
2866         canonicalize: reduce memory usage
2867         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
2868         allocation to size.
2869         Reported by Solar Designer <solar@openwall.com>.
2870
2871 2009-12-19  Bruno Haible  <bruno@clisp.org>
2872
2873         New module attribute 'Applicability'.
2874         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
2875         * gnulib-tool: New option --extract-applicability.
2876         (func_usage): Document it.
2877         (sed_extract_prog): Recognize it.
2878         (func_get_applicability): New function.
2879         (func_import): Generalize handling of 'link-warning' module.
2880         * modules/link-warning (Applicability): New section.
2881         * modules/arg-nonnull (Applicability): New section.
2882         Repoted by Simon Josefsson <simon@josefsson.org>.
2883
2884 2009-12-19  Bruno Haible  <bruno@clisp.org>
2885
2886         fflush: tweak
2887         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
2888         * lib/fseeko.c (rpl_fseeko): Likewise.
2889
2890 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
2891
2892         * lib/gl_list.h: Fix typo in comment.
2893
2894 2009-12-16  Eric Blake  <ebb9@byu.net>
2895
2896         fcntl: use to simplify other modules
2897         * modules/cloexec (Depends-on): Add fcntl.
2898         * modules/fchdir (Depends-on): Likewise.
2899         * modules/fd-safer-flag (Depends-on): Likewise.
2900         * modules/unistd-safer (Depends-on): Likewise.
2901         * modules/dup3 (configure.ac): Set module indicator.
2902         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
2903         missing.
2904         * lib/fchdir.c (_gl_register_dup): Fix comment.
2905         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
2906         * lib/dup-safer.c (dup_safer): Likewise.
2907         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
2908         * lib/dup3.c (dup3): Likewise.
2909         * tests/test-fchdir.c (main): Enhance test.
2910         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
2911
2912         fcntl: port portions of fcntl to mingw
2913         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
2914         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
2915         replacement for mingw.
2916         * modules/fcntl (Description): Update.
2917         (Depends-on): Add dup2.
2918         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
2919         * modules/fcntl-h (Makefile.am): Substitute it.
2920         * lib/fcntl.in.h (fcntl): Update declaration.
2921         (F_DUPFD, F_GETFD): New macros, when needed.
2922         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
2923         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
2924         * tests/test-fcntl.c (check_flags, main): Enhance test for items
2925         we now guarantee.
2926
2927         fcntl: work around cygwin bug in F_DUPFD
2928         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
2929         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
2930         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
2931         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
2932         * doc/posix-functions/fcntl.texi (fcntl): Document it.
2933
2934         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
2935         * modules/fcntl (Files): List new files.
2936         (configure.ac): Run a test.
2937         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
2938         * lib/fcntl.c (rpl_fcntl): Likewise.
2939         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
2940         (gl_FCNTL_H): Always replace fcntl.h.
2941         * modules/fcntl-h (Makefile.am): Substitute witnesses.
2942         * lib/fcntl.in.h (fcntl): Declare replacement.
2943         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
2944         needed, plus a witness.
2945         * doc/posix-functions/fcntl.texi (fcntl): Document this.
2946         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
2947         * tests/test-fcntl.c: New file.
2948         * modules/fcntl-tests: Likewise.
2949
2950         binary-io: avoid potential compilation warning
2951         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
2952         directives.
2953
2954         fflush: avoid compilation error on NetBSD
2955         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
2956         between off_t and fpos_t, since the latter is sometimes a struct.
2957         * lib/fseeko.c (rpl_fseeko): Likewise.
2958         Reported by Alexander Nasonov <alnsn@yandex.ru>.
2959
2960 2009-12-15  Eric Blake  <ebb9@byu.net>
2961
2962         fcntl-h, stdio, sys_ioctl: fix declarations
2963         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
2964         function must not take arguments.
2965         * lib/sys_ioctl.in.h (ioctl): Likewise.
2966         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
2967         (open): Add a link warning.
2968
2969 2009-12-15  Jim Meyering  <meyering@redhat.com>
2970
2971         areadlink, areadlink-with-size: relax license to LGPLv2+
2972         * modules/areadlink (License): Relax to LGPLv2+.
2973         * modules/areadlink-with-size (License): Likewise.
2974
2975 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
2976             Bruno Haible  <bruno@clisp.org>
2977
2978         *printf: Fix memory leak.
2979         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
2980         * lib/vfprintf.c (vfprintf): Likewise.
2981         * lib/dprintf.c (dprintf): Likewise.
2982         * lib/vdprintf.c (vdprintf): Likewise.
2983
2984 2009-12-14  Eric Blake  <ebb9@byu.net>
2985
2986         accept4: adjust module dependencies
2987         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
2988
2989         utimens: one more try at avoiding compiler warning
2990         * lib/utimens.c (lutimens): Lower scope of result.
2991
2992 2009-12-13  Bruno Haible  <bruno@clisp.org>
2993
2994         Move the malloc checking from module 'list' to new module 'xlist'.
2995         * modules/xlist: New file.
2996         * lib/gl_xlist.h: New file.
2997         * lib/gl_xlist.c: New file.
2998         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
2999         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
3000         gl_list_add_last, gl_list_add_before, gl_list_add_after,
3001         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
3002         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
3003         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
3004         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
3005         gl_sortedlist_nx_add): New declarations.
3006         (struct gl_list_implementation): Rename and change methods accordingly.
3007         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
3008         (gl_list_nx_create): Renamed from gl_list_create.
3009         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
3010         (gl_list_nx_set_at): Renamed from gl_list_set_at.
3011         (gl_list_nx_add_first): Renamed from gl_list_add_first.
3012         (gl_list_nx_add_last): Renamed from gl_list_add_last.
3013         (gl_list_nx_add_before): Renamed from gl_list_add_before.
3014         (gl_list_nx_add_after): Renamed from gl_list_add_after.
3015         (gl_list_nx_add_at): Renamed from gl_list_add_at.
3016         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
3017         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
3018         gl_list_create_empty.
3019         (gl_list_nx_create): Renamed from gl_list_create.
3020         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
3021         (gl_list_nx_set_at): Renamed from gl_list_set_at.
3022         (gl_list_nx_add_first): Renamed from gl_list_add_first.
3023         (gl_list_nx_add_last): Renamed from gl_list_add_last.
3024         (gl_list_nx_add_before): Renamed from gl_list_add_before.
3025         (gl_list_nx_add_after): Renamed from gl_list_add_after.
3026         (gl_list_nx_add_at): Renamed from gl_list_add_at.
3027         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
3028         * lib/gl_array_list.c: Don't include xalloc.h.
3029         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
3030         NULL upon out-of-memory.
3031         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
3032         out-of-memory.
3033         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
3034         Change return type to 'int'.
3035         (gl_array_nx_set_at): Renamed from gl_array_set_at.
3036         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
3037         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
3038         upon out-of-memory.
3039         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
3040         upon out-of-memory.
3041         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
3042         upon out-of-memory.
3043         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
3044         upon out-of-memory.
3045         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
3046         out-of-memory.
3047         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
3048         Update.
3049         (gl_array_list_implementation): Update.
3050         * lib/gl_carray_list.c: Don't include xalloc.h.
3051         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
3052         Return NULL upon out-of-memory.
3053         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
3054         out-of-memory.
3055         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
3056         Change return type to 'int'.
3057         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
3058         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
3059         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
3060         upon out-of-memory.
3061         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
3062         upon out-of-memory.
3063         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
3064         out-of-memory.
3065         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
3066         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
3067         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
3068         Update.
3069         (gl_carray_list_implementation): Update.
3070         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
3071         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
3072         gl_linked_create_empty. Return NULL upon out-of-memory.
3073         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
3074         out-of-memory.
3075         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
3076         Change return type to 'int'. Return -1 upon out-of-memory.
3077         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
3078         out-of-memory.
3079         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
3080         upon out-of-memory.
3081         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
3082         upon out-of-memory.
3083         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
3084         NULL upon out-of-memory.
3085         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
3086         upon out-of-memory.
3087         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
3088         out-of-memory.
3089         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
3090         Update.
3091         * lib/gl_linked_list.c: Don't include xalloc.h.
3092         (gl_linked_list_implementation): Update.
3093         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
3094         (add_to_bucket): Change return type to 'int'.
3095         (gl_linkedhash_list_implementation): Update.
3096         * lib/gl_anytree_list1.h (free_subtree): New function.
3097         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
3098         gl_tree_create_empty. Return NULL upon out-of-memory.
3099         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
3100         Change return type to 'int'. Return -1 upon out-of-memory.
3101         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
3102         out-of-memory.
3103         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
3104         (gl_tree_remove_node): New function, moved here from
3105         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
3106         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
3107         Update.
3108         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
3109         malloc, not xmalloc. Return NULL upon out-of-memory.
3110         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
3111         out-of-memory.
3112         (gl_tree_remove_node_from_tree): New function, extracted from
3113         gl_tree_remove_node.
3114         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
3115         upon out-of-memory.
3116         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
3117         out-of-memory.
3118         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
3119         upon out-of-memory.
3120         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
3121         upon out-of-memory.
3122         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
3123         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
3124         not xmalloc. Return NULL upon out-of-memory.
3125         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
3126         out-of-memory.
3127         (gl_tree_remove_node_from_tree): New function, extracted from
3128         gl_tree_remove_node.
3129         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
3130         upon out-of-memory.
3131         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
3132         out-of-memory.
3133         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
3134         upon out-of-memory.
3135         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
3136         upon out-of-memory.
3137         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
3138         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
3139         gl_anytree_list1.h before gl_anyavltree_list2.h.
3140         (gl_avltree_list_implementation): Update.
3141         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
3142         gl_anytree_list1.h before gl_anyavltree_list2.h.
3143         (gl_rbtree_list_implementation): Update.
3144         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
3145         Change return type to 'int'. Return -1 upon out-of-memory. Use
3146         __builtin_expect.
3147         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
3148         (gl_avltreehash_list_implementation): Update.
3149         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
3150         (gl_rbtreehash_list_implementation): Update.
3151         * modules/array-list (Depends-on): Remove xalloc.
3152         * modules/carray-list (Depends-on): Likewise.
3153         * modules/linked-list (Depends-on): Likewise.
3154         * modules/linkedhash-list (Depends-on): Likewise.
3155         * modules/avltree-list (Depends-on): Likewise.
3156         * modules/rbtree-list (Depends-on): Likewise.
3157         * modules/avltreehash-list (Depends-on): Likewise.
3158         * modules/rbtreehash-list (Depends-on): Likewise.
3159
3160         * modules/xsublist: New file.
3161         * lib/gl_xsublist.h: New file.
3162         * lib/gl_xsublist.c: New file.
3163         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
3164         (gl_sublist_nx_create): New declaration.
3165         * lib/gl_sublist.c: Don't include xalloc.h.
3166         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
3167         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
3168         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
3169         Change return type to 'int'. Return -1 upon out-of-memory.
3170         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
3171         upon out-of-memory.
3172         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
3173         NULL upon out-of-memory.
3174         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
3175         upon out-of-memory.
3176         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
3177         NULL upon out-of-memory.
3178         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
3179         NULL upon out-of-memory.
3180         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
3181         upon out-of-memory.
3182         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
3183         (gl_sublist_list_implementation): Update.
3184         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
3185         upon out-of-memory.
3186         * modules/sublist (Depends-on): Remove xalloc.
3187
3188         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
3189         * tests/test-carray_list.c: Likewise.
3190         * tests/test-linked_list.c: Likewise.
3191         * tests/test-linkedhash_list.c: Likewise.
3192         * tests/test-avltree_list.c: Likewise.
3193         * tests/test-rbtree_list.c: Likewise.
3194         * tests/test-avltreehash_list.c: Likewise.
3195         * tests/test-rbtreehash_list.c: Likewise.
3196         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
3197         * modules/carray-list-tests (Makefile.am): Likewise.
3198         * modules/linked-list-tests (Makefile.am): Likewise.
3199         * modules/linkedhash-list-tests (Makefile.am): Likewise.
3200         * modules/avltree-list-tests (Makefile.am): Likewise.
3201         * modules/rbtree-list-tests (Makefile.am): Likewise.
3202         * modules/avltreehash-list-tests (Makefile.am): Likewise.
3203         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
3204
3205         * NEWS: Mention the changes.
3206
3207         * lib/clean-temp.c: Include gl_xlist.h.
3208         * modules/clean-temp (Depends-on): Add xlist.
3209
3210         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
3211         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
3212
3213         * tests/test-array_oset.c: Include gl_xlist.h.
3214         * modules/array-oset-tests (Depends-on): Add xlist.
3215
3216         Reported by José E. Marchesi <jemarch@gnu.org>.
3217
3218 2009-12-13  Bruno Haible  <bruno@clisp.org>
3219
3220         Move the malloc checking from module 'oset' to new module 'xoset'.
3221         * modules/xoset: New file.
3222         * lib/gl_xoset.h: New file.
3223         * lib/gl_xoset.c: New file.
3224         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
3225         declarations.
3226         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
3227         (struct gl_oset_implementation): Rename and change methods accordingly.
3228         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
3229         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3230         'int'. Mark as __warn_unused_result__.
3231         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
3232         gl_oset_create_empty.
3233         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3234         'int'.
3235         * lib/gl_array_oset.c: Don't include xalloc.h.
3236         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
3237         malloc, not xmalloc.
3238         (grow): Change return type to 'int'. Don't call xalloc_die.
3239         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
3240         to 'int'.
3241         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
3242         'int'.
3243         (gl_array_oset_implementation): Update.
3244         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
3245         gl_tree_create_empty.
3246         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
3247         'int'.
3248         * lib/gl_avltree_oset.c: Don't include xalloc.h.
3249         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3250         xmalloc.
3251         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3252         not xmalloc.
3253         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3254         xmalloc.
3255         (gl_avltree_oset_implementation): Update.
3256         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
3257         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3258         xmalloc.
3259         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3260         not xmalloc.
3261         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3262         xmalloc.
3263         (gl_rbtree_oset_implementation): Update.
3264         * modules/array-oset (Depends-on): Remove xalloc.
3265         * modules/avltree-oset (Depends-on): Likewise.
3266         * modules/rbtree-oset (Depends-on): Likewise.
3267         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
3268         * tests/test-avltree_oset.c: Likewise.
3269         * tests/test-rbtree_oset.c: Likewise.
3270         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
3271         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
3272         * modules/rbtree-oset-tests (Makefile.am): Likewise.
3273         * NEWS: Mention the change.
3274
3275 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
3276
3277         maint.mk: allow a project to override release-prep commands
3278         * top/maint.mk (alpha, beta, stable): Move release-preparatory
3279         commands into a new rule.
3280         (release-prep): New rule.
3281         (release-prep-hook): New overridable variable.
3282
3283 2009-12-13  Bruno Haible  <bruno@clisp.org>
3284
3285         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
3286
3287 2009-12-13  Jim Meyering  <meyering@redhat.com>
3288
3289         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
3290         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
3291
3292 2009-12-12  Bruno Haible  <bruno@clisp.org>
3293
3294         duplocale: Tweak.
3295         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
3296
3297 2009-12-12  Karl Berry  <karl@gnu.org>
3298
3299         * config/srclist.txt (strtoll.c): tab changes, no more sync.
3300
3301 2009-12-12  Bruno Haible  <bruno@clisp.org>
3302
3303         * m4/po.m4: Undo incorrect untabification.
3304
3305 2009-12-12  Bruno Haible  <bruno@clisp.org>
3306
3307         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
3308         * modules/c-strtod (Depends-on): Add locale.
3309         * modules/c-strtold (Depends-on): Likewise.
3310
3311 2009-12-12  Bruno Haible  <bruno@clisp.org>
3312
3313         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
3314
3315 2009-12-11  Eric Blake  <ebb9@byu.net>
3316
3317         setenv: relax requirement in light of POSIX ruling
3318         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
3319         not NULL.
3320         * tests/test-setenv.c (main): Relax test.
3321         * tests/test-unsetenv.c (main): Likewise.
3322         * doc/posix-functions/setenv.texi (setenv): Document this.
3323         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
3324
3325 2009-12-11  Bruno Haible  <bruno@clisp.org>
3326
3327         New module 'fd-safer-flag'.
3328         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
3329         * lib/dup-safer.c (dup_safer_flag): Remove function.
3330         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
3331         * lib/fd-safer.c (fd_safer_flag): Remove function.
3332         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
3333         * modules/cloexec (configure.ac): Drop indicator macro.
3334         * modules/fd-safer-flag: New file.
3335         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
3336         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
3337         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
3338
3339 2009-12-11  Bruno Haible  <bruno@clisp.org>
3340
3341         Tests for module 'nl_langinfo'.
3342         * modules/nl_langinfo-tests: New file.
3343         * tests/test-nl_langinfo.sh: New file.
3344         * tests/test-nl_langinfo.c: New file.
3345
3346         New module 'nl_langinfo'.
3347         * lib/nl_langinfo.c: New file.
3348         * m4/nl_langinfo.m4: New file.
3349         * modules/nl_langinfo: New file.
3350         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
3351
3352 2009-12-11  Bruno Haible  <bruno@clisp.org>
3353
3354         Tests for module 'langinfo'.
3355         * modules/langinfo-tests: New file.
3356         * tests/test-langinfo.c: New file.
3357
3358         New module 'langinfo'.
3359         * lib/langinfo.in.h: New file.
3360         * m4/langinfo_h.m4: New file.
3361         * modules/langinfo: New file.
3362         * doc/posix-headers/langinfo.texi: Mention the new module.
3363
3364 2009-12-11  Bruno Haible  <bruno@clisp.org>
3365
3366         * lib/config.charset: Untabify.
3367
3368 2009-12-11  Bruno Haible  <bruno@clisp.org>
3369
3370         * modules/unistd-safer (configure.ac): Drop indicator macro.
3371
3372 2009-12-11  Bruno Haible  <bruno@clisp.org>
3373
3374         Move pipe2-safer code to its own file.
3375         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
3376         * lib/pipe-safer.c (pipe2_safer): Remove function.
3377         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
3378         (Makefile.am): Add it to lib_SOURCES.
3379
3380 2009-12-10  Bruno Haible  <bruno@clisp.org>
3381
3382         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
3383
3384 2009-12-10  Bruno Haible  <bruno@clisp.org>
3385
3386         Declare which arguments expect non-NULL values, for GCC and clang.
3387         * build-aux/arg-nonnull.h: New file.
3388         * modules/arg-nonnull: New file.
3389         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
3390         (inet_ntop, inet_pton): Use it.
3391         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
3392         (closedir, dirfd, opendir, scandir, alphasort): Use it.
3393         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
3394         (open, openat): Use it.
3395         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
3396         (fnmatch): Use it.
3397         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
3398         (getopt, getopt_long, getopt_long_only): Use it.
3399         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
3400         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
3401         Use it.
3402         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
3403         (iconv_open): Use it.
3404         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
3405         (strtoimax, strtoumax): Use it.
3406         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
3407         (duplocale): Use it.
3408         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
3409         (frexp, frexpl): Use it.
3410         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
3411         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
3412         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
3413         (tsearch, tfind, tdelete, twalk): Use it.
3414         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
3415         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
3416         sigpending): Use it.
3417         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
3418         (posix_spawn, posix_spawnp, posix_spawnattr_init,
3419         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
3420         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
3421         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
3422         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
3423         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
3424         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
3425         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
3426         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
3427         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
3428         Use it.
3429         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
3430         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
3431         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
3432         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
3433         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
3434         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
3435         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
3436         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
3437         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
3438         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
3439         strtoull, unsetenv): Use it.
3440         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
3441         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
3442         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
3443         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3444         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3445         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
3446         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
3447         (strcasecmp, strncasecmp): Use it.
3448         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
3449         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
3450         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
3451         rpl_setsockopt): Use it.
3452         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
3453         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
3454         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
3455         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
3456         (gettimeofday): Use it.
3457         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
3458         (times): Use it.
3459         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
3460         (uname): Use it.
3461         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
3462         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
3463         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
3464         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
3465         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
3466         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
3467         unlinkat, write): Use it.
3468         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
3469         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
3470         * lib/argv-iter.h: Include arg-nonnull.h.
3471         (_ATTRIBUTE_NONNULL_): Remove macro.
3472         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
3473         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
3474         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
3475         optimization.
3476         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
3477         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
3478         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
3479         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
3480         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
3481         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
3482         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
3483         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
3484         * modules/arpa_inet (Depends-on): Add arg-nonnull.
3485         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
3486         * modules/dirent (Depends-on): Add arg-nonnull.
3487         (Makefile.am): Insert arg-nonnull.h into dirent.h.
3488         * modules/fcntl-h (Depends-on): Add arg-nonnull.
3489         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
3490         * modules/fnmatch (Depends-on): Add arg-nonnull.
3491         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
3492         * modules/getopt-posix (Depends-on): Add arg-nonnull.
3493         (Makefile.am): Insert arg-nonnull.h into getopt.h.
3494         * modules/glob (Depends-on): Add arg-nonnull.
3495         (Makefile.am): Insert arg-nonnull.h into glob.h.
3496         * modules/iconv_open (Depends-on): Add arg-nonnull.
3497         (Makefile.am): Insert arg-nonnull.h into iconv.h.
3498         * modules/inttypes (Depends-on): Add arg-nonnull.
3499         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
3500         * modules/locale (Depends-on): Add arg-nonnull.
3501         (Makefile.am): Insert arg-nonnull.h into locale.h.
3502         * modules/math (Depends-on): Add arg-nonnull.
3503         (Makefile.am): Insert arg-nonnull.h into math.h.
3504         * modules/netdb (Depends-on): Add arg-nonnull.
3505         (Makefile.am): Insert arg-nonnull.h into netdb.h.
3506         * modules/search (Depends-on): Add arg-nonnull.
3507         (Makefile.am): Insert arg-nonnull.h into search.h.
3508         * modules/signal (Depends-on): Add arg-nonnull.
3509         (Makefile.am): Insert arg-nonnull.h into signal.h.
3510         * modules/spawn (Depends-on): Add arg-nonnull.
3511         (Makefile.am): Insert arg-nonnull.h into spawn.h.
3512         * modules/stdio (Depends-on): Add arg-nonnull.
3513         (Makefile.am): Insert arg-nonnull.h into stdio.h.
3514         * modules/stdlib (Depends-on): Add arg-nonnull.
3515         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
3516         * modules/string (Depends-on): Add arg-nonnull.
3517         (Makefile.am): Insert arg-nonnull.h into string.h.
3518         * modules/strings (Depends-on): Add arg-nonnull.
3519         (Makefile.am): Insert arg-nonnull.h into strings.h.
3520         * modules/sys_socket (Depends-on): Add arg-nonnull.
3521         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
3522         * modules/sys_stat (Depends-on): Add arg-nonnull.
3523         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
3524         * modules/sys_time (Depends-on): Add arg-nonnull.
3525         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
3526         * modules/sys_times (Depends-on): Add arg-nonnull.
3527         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
3528         * modules/sys_utsname (Depends-on): Add arg-nonnull.
3529         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
3530         * modules/time (Depends-on): Add arg-nonnull.
3531         (Makefile.am): Insert arg-nonnull.h into time.h.
3532         * modules/unistd (Depends-on): Add arg-nonnull.
3533         (Makefile.am): Insert arg-nonnull.h into unistd.h.
3534         * modules/wchar (Depends-on): Add arg-nonnull.
3535         (Makefile.am): Insert arg-nonnull.h into wchar.h.
3536         * modules/argv-iter (Depends-on): Add arg-nonnull.
3537         * tests/test-canonicalize.c (null_ptr): New function.
3538         (main): Use it.
3539         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
3540         (main): Use it.
3541         * tests/test-memmem.c (null_ptr): New function.
3542         (main): Use it.
3543         Reported by Jim Meyering.
3544
3545 2009-12-10  Bruno Haible  <bruno@clisp.org>
3546
3547         Use spaces for indentation, not tabs.
3548         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3549         * m4/*.m4: Untabify.
3550         * build-aux/*.h: Untabify.
3551         * tests/**/*.[hc]: Untabify.
3552         * README: New section "Indent with spaces, not TABs", based on
3553         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
3554         * NEWS: Mention the change.
3555
3556 2009-12-10  Bruno Haible  <bruno@clisp.org>
3557
3558         pty test: Fix link error.
3559         * modules/pty-tests (Makefile.am): Add the default LDADD value to
3560         test_pty_LDADD.
3561
3562 2009-12-07  Simon Josefsson  <simon@josefsson.org>
3563
3564         * modules/pty: New file.
3565         * modules/pty-tests: New file.
3566         * m4/pty.m4: New file.
3567         * tests/test-pty.c: New file.
3568         * doc/glibc-headers/pty.texi: Modified.
3569         * doc/glibc-functions/forkpty.texi: Modified.
3570         * doc/glibc-functions/openpty.texi: Modified.
3571
3572 2009-12-10  Bruno Haible  <bruno@clisp.org>
3573
3574         Avoid syntax error in C++ mode.
3575         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
3576
3577 2009-12-10  Bruno Haible  <bruno@clisp.org>
3578
3579         Use sed with option -e.
3580         * gnulib-tool (func_version, func_emit_copyright_notice,
3581         func_emit_initmacro_end, func_import, func_create_testdir): Pass
3582         option -e to sed.
3583         * modules/link-warning (Makefile.am): Likewise.
3584
3585 2009-12-10  Jim Meyering  <meyering@redhat.com>
3586
3587         mgetgroups: do not write bytes beyond end of malloc'd buffer
3588         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
3589         username, we call getgroups with a one-element-shorter buffer,
3590         but still told it the length was original, max_n_groups.
3591
3592 2009-12-09  Eric Blake  <ebb9@byu.net>
3593
3594         cloexec: relax license
3595         * modules/cloexec (Maintainer): Add myself.
3596         (License): Use LGPL, not GPL.
3597
3598         link-warning: optimize generation
3599         * modules/link-warning (Makefile.am): Reduce process usage.
3600
3601 2009-12-09  Bruno Haible  <bruno@clisp.org>
3602
3603         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
3604         workaround was added on 2009-11-17.
3605
3606 2009-12-09  Jim Meyering  <meyering@redhat.com>
3607             Bruno Haible  <bruno@clisp.org>
3608
3609         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
3610         * modules/link-warning (Makefile.am): Make the comment-removing sed
3611         command more robust in the face of bootstrap-prepended comment lines.
3612
3613 2009-12-09  Bruno Haible  <bruno@clisp.org>
3614
3615         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
3616         most one group.
3617
3618 2009-12-09  Simon Josefsson <simon@josefsson.org>
3619             Bruno Haible  <bruno@clisp.org>
3620
3621         * build-aux/link-warning.h: Add copyright notice.
3622         * modules/link-warning (Makefile.am): Generate link-warning.h from
3623         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
3624         * NEWS: Mention change in link-warning module.
3625         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
3626         * modules/dirent (Makefile.am): Add dependency to dirent.h.
3627         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
3628         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
3629         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
3630         * modules/math (Makefile.am): Add dependency to math.h.
3631         * modules/search (Makefile.am): Add dependency to search.h.
3632         * modules/signal (Makefile.am): Add dependency to signal.h.
3633         * modules/spawn (Makefile.am): Add dependency to spawn.h.
3634         * modules/stdio (Makefile.am): Add dependency to stdio.h.
3635         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
3636         * modules/string (Makefile.am): Add dependency to string.h.
3637         * modules/strings (Makefile.am): Add dependency to strings.h.
3638         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
3639         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
3640         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
3641         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
3642         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
3643         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
3644         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
3645         * modules/unistd (Makefile.am): Add dependency to unistd.h.
3646         * modules/wchar (Makefile.am): Add dependency to wchar.h.
3647
3648 2009-12-09  Bruno Haible  <bruno@clisp.org>
3649
3650         fchdir: Optimize away rpl_fstat when possible.
3651         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
3652         REPLACE_OPEN_DIRECTORY.
3653         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
3654
3655 2009-12-09  Bruno Haible  <bruno@clisp.org>
3656
3657         * lib/fchdir.c: Update comment.
3658
3659 2009-12-09  Bruno Haible  <bruno@clisp.org>
3660
3661         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
3662
3663 2009-12-08  Eric Blake  <ebb9@byu.net>
3664
3665         fchdir: avoid memory leak on re-registration.
3666         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
3667
3668 2009-12-08  Jim Meyering  <meyering@redhat.com>
3669
3670         init.sh: avoid Solaris 10 /bin/sh portability problem
3671         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
3672         sourced script:
3673           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
3674           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
3675           bar
3676         tests/init.sh relied on that, accepting a --set-path=DIR argument,
3677         and two tests used that idiom.
3678         * tests/init.sh: Update suggested usage comments.
3679         (path_prepend_): New function, to be used in place
3680         of the --src-path=DIR option.
3681         (setup_): Move PATH-prepending code into path_prepend_.
3682         * tests/test-pread.sh: Adapt to new usage.
3683         * tests/test-xalloc-die.sh: Likewise.
3684
3685 2009-12-08  Simon Josefsson  <simon@josefsson.org>
3686
3687         * doc/gnulib.texi (Glibc pty.h): Add.
3688         * doc/glibc-functions/forkpty.texi: Add.
3689         * doc/glibc-functions/openpty.texi: Add.
3690         Suggested by Bruno Haible.
3691
3692 2009-12-08  Eric Blake  <ebb9@byu.net>
3693
3694         fchdir: fix logic bugs
3695         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
3696         * tests/test-fchdir.c (main): Enhance test.
3697         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
3698         is in use.
3699
3700         dup2: fix logic bugs
3701         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
3702         REPLACE_DUP2 to decide when rpl_dup2 is needed.
3703         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
3704         exists.
3705         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
3706
3707 2009-12-07  Eric Blake  <ebb9@byu.net>
3708
3709         unlink: fix m4 detection
3710         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
3711
3712         unistd-safer: add unit test
3713         * modules/unistd-safer-tests: New file.
3714         * tests/test-dup-safer.c: Likewise.
3715         * tests/test-cloexec.c (setmode): Avoid compiler warning.
3716         * tests/test-dup2.c (setmode): Likewise.
3717         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
3718
3719         cloexec: preserve text vs. binary across dup_cloexec
3720         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
3721         mode.
3722         * modules/dup2-tests (Depends-on): Add binary-io.
3723         * modules/cloexec-tests (Depends-on): Likewise.
3724         * tests/test-dup2.c (setmode, is_mode): New helpers.
3725         (main): Add tests that translation mode is preserved.
3726         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
3727         Reported by Bruno Haible.
3728
3729         mgetgroups: reduce duplicate listings
3730         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
3731         resulting array.
3732         * tests/test-chown.h (test_chown): Simplify client.
3733         * tests/test-lchown.h (test_lchown): Likewise.
3734
3735 2009-12-06  Bruno Haible  <bruno@clisp.org>
3736
3737         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
3738         value.
3739
3740 2009-12-06  Bruno Haible  <bruno@clisp.org>
3741
3742         * lib/progname.c: Include stdio.h, stdlib.h.
3743         (set_program_name): Reject a NULL argument.
3744
3745 2009-12-05  Eric Blake  <ebb9@byu.net>
3746
3747         pipe2-safer: new module
3748         * modules/pipe2-safer: New file.
3749         * lib/unistd-safer.h (pipe2_safer): New prototype.
3750         * lib/unistd--.h (pipe2): New wrapper.
3751         * lib/pipe-safer.c (pipe2_safer): New function.
3752         * modules/pipe (Depends-on): Add pipe2-safer.
3753         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
3754
3755         stdlib-safer: preserve cloexec flag for mkostemp[s]
3756         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
3757         fd_safer_flag.
3758
3759         unistd-safer: allow preservation of cloexec status via flag
3760         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
3761         prototypes.
3762         * lib/dup-safer.c (dup_safer_flag): New function.
3763         * lib/fd-safer.c (fd_safer_flag): Likewise.
3764         * modules/cloexec (configure.ac): Set witness.
3765
3766         test-dup2: enhance test
3767         * modules/dup2-tests (Depends-on): Add cloexec.
3768         * tests/test-dup2.c (main): Enhance test.
3769
3770         cloexec: add dup_cloexec
3771         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
3772         header and comments.
3773         * lib/cloexec.c (set_cloexec_flag): Add comments.
3774         (dup_cloexec): New function, with mingw implementation borrowed
3775         from...
3776         * lib/w32spawn.h (dup_noinherit): ...here.
3777         * modules/execute (Depends-on): Add cloexec.
3778         * modules/pipe (Depends-on): Likewise.
3779         * modules/cloexec (Depends-on): Add dup2.
3780         * modules/cloexec-tests (Files): New file.
3781         * tests/test-cloexec.c: Likewise.
3782
3783         test-xalloc-die: fix test for mingw
3784         * modules/xalloc-die-tests (Files): Add tests/init.sh.
3785         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
3786         directory and .exe suffix off argv[0] output.
3787
3788         test-fseeko: fix test for mingw
3789         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
3790         than undefining fseek, so test will pass on mingw.
3791
3792 2009-12-05  Bruno Haible  <bruno@clisp.org>
3793
3794         * lib/progname.h (set_program_name): Clarify specification.
3795         * lib/progname.c (set_program_name): Likewise.
3796         Reported by Jim Meyering.
3797
3798 2009-12-05  Jim Meyering  <meyering@redhat.com>
3799
3800         maint.mk: backslash-escape parens in default regexp
3801         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
3802         backslash-escape the literal parentheses.
3803
3804         maint.mk: news-date-check: use grep -E
3805         * top/maint.mk (today): Define a Make variable, not a...
3806         (news-date-check): ...shell variable.
3807         (news-date-regexp): Use the Make variable.
3808         Use grep's -E option.  Change the failing diagnostic to mention
3809         the variable, $(news-date-regexp).
3810
3811 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
3812
3813         maintainer-makefile: allow customization of NEWS entry format
3814         * top/maint.mk (news-date-regexp): New overridable variable.
3815         (news-date-check): Use it.
3816
3817 2009-12-04  Eric Blake  <ebb9@byu.net>
3818
3819         mgetgroups: add xgetgroups, and avoid ENOSYS failures
3820         * lib/mgetgroups.h (xgetgroups): New prototype.
3821         * lib/mgetgroups.c (xgetgroups): New wrapper.
3822         (mgetgroups): Handle ENOSYS.
3823         * modules/mgetgroups (Depends-on): Add realloc.
3824         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
3825
3826         mgetgroups: avoid argument promotion issues with -1
3827         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
3828         for invalid gid_t.
3829         * tests/test-chown.h (getegid, test_chown): Likewise.
3830         * tests/test-lchown.h (getegid, test_lchown): Likewise.
3831
3832 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
3833
3834         exclude: Fix header file problems.
3835         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
3836
3837 2009-12-01  Jim Meyering  <meyering@redhat.com>
3838
3839         fts: fts_open: do not let an empty string cause immediate failure
3840         This is required in support of GNU rm, for which the command
3841         "rm A '' B" must process and remove both A and B, in spite of
3842         the empty string argument.
3843         * lib/fts.c (fts_open): Do not let the presence of an empty string
3844         cause fts_open to fail immediately.  Most fts-using tools must be
3845         able to process all arguments, in order, and can be expected to
3846         diagnose such arguments themselves.
3847
3848 2009-11-30  Eric Blake  <ebb9@byu.net>
3849
3850         utimens: fix compilation error
3851         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
3852         Declare variable at right scope.
3853
3854 2009-11-29  Jim Meyering  <meyering@redhat.com>
3855
3856         bootstrap: handle perl-5.11's changed --version output
3857         * build-aux/bootstrap (get_version): Handle perl separately,
3858         since perl-5.11's --version output is different.
3859
3860 2009-11-28  Jim Meyering  <meyering@redhat.com>
3861
3862         userspec: depend on the inttostr module, too
3863         * modules/userspec (Depends-on): Add inttostr.
3864
3865         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
3866         * lib/userspec.c (parse_with_separator): Do not accept a user ID
3867         number of MAXUID when it evaluates to (uid_t) -1.
3868         Likewise for group ID.  Reported by Matt McCutchen in
3869         <http://savannah.gnu.org/bugs/?28113>
3870
3871         userspec: reformat to use spaces, not TABs
3872         * lib/userspec.c: Expand TABs to spaces.
3873         Add Emacs' "indent-tabs-mode: nil" hint.
3874
3875 2009-11-27  Eric Blake  <ebb9@byu.net>
3876
3877         getopt-gnu: flush out another BSD bug
3878         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
3879         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
3880         flush out BSD bug.
3881         * tests/test-getopt.h (test_getopt): End lists with NULL.
3882         * tests/test-getopt_long.h (test_getopt_long): Likewise.
3883         (test_getopt_long_posix): Enhance test.
3884         * modules/getopt-posix-tests (Depends-on): Add stdbool.
3885         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
3886         getopt-gnu.
3887         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3888         Likewise.
3889
3890 2009-11-27  Simon Josefsson  <simon@josefsson.org>
3891
3892         * modules/idpriv-droptemp-tests (Notice): Fix text.
3893
3894 2009-11-27  Jim Meyering  <meyering@redhat.com>
3895
3896         test-xalloc-die: avoid spurious failure due to libtool argv difference
3897         In a libtool-enabled project, this test would fail due to a difference
3898         in the emitted program name, e.g.,
3899         -test-xalloc-die: memory exhausted
3900         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
3901         Use program to avoid that.
3902         * modules/xalloc-die-tests (Depends-on): Add progname.
3903         * tests/test-xalloc-die.c: Include progname.h".
3904         (program_name): Remove decl.
3905         (main): Call set_program_name.
3906         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
3907
3908 2009-11-26  Richard Jones  <rjones@redhat.com>
3909
3910         w32sock: leave win32 error in place.
3911         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
3912
3913 2009-11-26  Eric Blake  <ebb9@byu.net>
3914
3915         init.sh: suggest to use skip_ and fail_ functions in comments
3916         * tests/init.sh: Add a sentence.
3917
3918 2009-11-25  Bruno Haible  <bruno@clisp.org>
3919
3920         init.sh: add documentation in comments
3921         * tests/init.sh: Add some developer and user documentation.
3922
3923 2009-11-26  Jim Meyering  <meyering@redhat.com>
3924
3925         init.sh: accommodate even those who specify bogus srcdir manually
3926         * tests/init.sh: Normally, srcdir is guaranteed by automake and
3927         configure-time tests to be sanitized, so that there is no need to
3928         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
3929         (with no double quotes) suffices.  However, since tests may be
3930         invoked manually, and since you may explicitly set srcdir to the
3931         name of a directory containing spaces, do quote its uses here.
3932         * tests/test-pread.sh: Likewise.
3933         Suggested by Bruno Haible.
3934
3935         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
3936         * tests/test-pread.sh: Write no data into the pipe, because
3937         test-pread actually reads none.  This avoids a diagnostic,
3938         "bash: echo: write error: Broken pipe", that arises in the unusual
3939         event something is ignoring SIGPIPE, and might be interpreted
3940         as some sort of failure.  Reported by Bruno Haible.
3941
3942 2009-11-25  Jim Meyering  <meyering@redhat.com>
3943
3944         test-pread: cover failure with ESPIPE and EINVAL
3945         * tests/test-pread.c (main): Test for failure, too.
3946         * tests/test-pread.sh: Invoke with stdin on a pipe.
3947         Suggested by Eric Blake.
3948
3949         pread: improvement and fix
3950         * modules/pread (Depends-on): Depend on lseek, for portability to
3951         e.g., mingw.  Suggested by Eric Blake.
3952         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
3953
3954         unistd.in.h: correct declaration of pread
3955         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
3956         Reported by Richard W.M. Jones.
3957
3958         test-pread.sh: distribute the test script
3959         * modules/pread-tests (Files): Include test-pread.sh.
3960
3961         test-pread.sh: clean up
3962         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
3963         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
3964         That is unnecessary, since it's always ".".
3965         Suggestion from Eric Blake.
3966
3967         test-pread.sh: make executable
3968         * tests/test-pread.sh: Set executable bit.
3969         Reported by Eric Blake.
3970
3971         correct typo in test-pread.sh
3972         * tests/test-pread.sh: Add #! line.
3973
3974         test pread
3975         * tests/test-pread.c: New file.
3976         * tests/test-pread.sh: Likewise.
3977         * modules/pread-tests: Likewise.
3978
3979         pread: new module
3980         * modules/pread: New file.
3981         * lib/unistd.in.h (pread): Define/declare.
3982         * lib/pread.c (pread): New file.
3983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
3984         * modules/unistd (Makefile.am): Substitute witnesses.
3985         * doc/posix-functions/pread.texi (pread): Update.
3986         * MODULES.html.sh: Add pread.
3987
3988 2009-11-25  Jim Meyering  <meyering@redhat.com>
3989
3990         tests/init.sh: new file to be used via most *.sh tests
3991         * tests/init.sh: New file.
3992
3993 2009-11-25  Eric Blake  <ebb9@byu.net>
3994
3995         utimens: work around older Linux failure with symlinks
3996         * lib/utimens.c (lutimensat_works_really): New variable.
3997         (fdutimens, lutimens): Use it to manage kernels that support
3998         nanosecond times on files, but not on symlinks.
3999         Reported by OndÅ™ej Vašík.
4000
4001         utimes: fix configure grammar
4002         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
4003
4004 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
4005
4006         regex: Fix fastmap for multibyte character ranges.
4007         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
4008         characters when a multibyte character range is included.
4009
4010 2009-11-22  Andy Wingo  <wingo@pobox.com>
4011
4012         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
4013         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
4014
4015 2009-11-24  Bruno Haible  <bruno@clisp.org>
4016
4017         doc: Most *_l functions exist in MacOS X 10.5.
4018         * doc/posix-functions/duplocale.texi: Update platforms list.
4019         * doc/posix-functions/freelocale.texi: Likewise.
4020         * doc/posix-functions/newlocale.texi: Likewise.
4021         * doc/posix-functions/uselocale.texi: Likewise.
4022         * doc/posix-functions/isalnum_l.texi: Likewise.
4023         * doc/posix-functions/isalpha_l.texi: Likewise.
4024         * doc/posix-functions/isblank_l.texi: Likewise.
4025         * doc/posix-functions/iscntrl_l.texi: Likewise.
4026         * doc/posix-functions/isdigit_l.texi: Likewise.
4027         * doc/posix-functions/isgraph_l.texi: Likewise.
4028         * doc/posix-functions/islower_l.texi: Likewise.
4029         * doc/posix-functions/isprint_l.texi: Likewise.
4030         * doc/posix-functions/ispunct_l.texi: Likewise.
4031         * doc/posix-functions/isspace_l.texi: Likewise.
4032         * doc/posix-functions/isupper_l.texi: Likewise.
4033         * doc/posix-functions/iswalnum_l.texi: Likewise.
4034         * doc/posix-functions/iswalpha_l.texi: Likewise.
4035         * doc/posix-functions/iswblank_l.texi: Likewise.
4036         * doc/posix-functions/iswcntrl_l.texi: Likewise.
4037         * doc/posix-functions/iswctype_l.texi: Likewise.
4038         * doc/posix-functions/iswdigit_l.texi: Likewise.
4039         * doc/posix-functions/iswgraph_l.texi: Likewise.
4040         * doc/posix-functions/iswlower_l.texi: Likewise.
4041         * doc/posix-functions/iswprint_l.texi: Likewise.
4042         * doc/posix-functions/iswpunct_l.texi: Likewise.
4043         * doc/posix-functions/iswspace_l.texi: Likewise.
4044         * doc/posix-functions/iswupper_l.texi: Likewise.
4045         * doc/posix-functions/iswxdigit_l.texi: Likewise.
4046         * doc/posix-functions/isxdigit_l.texi: Likewise.
4047         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
4048         * doc/posix-functions/strcasecmp_l.texi: Likewise.
4049         * doc/posix-functions/strcoll_l.texi: Likewise.
4050         * doc/posix-functions/strfmon_l.texi: Likewise.
4051         * doc/posix-functions/strftime_l.texi: Likewise.
4052         * doc/posix-functions/strncasecmp_l.texi: Likewise.
4053         * doc/posix-functions/strxfrm_l.texi: Likewise.
4054         * doc/posix-functions/tolower_l.texi: Likewise.
4055         * doc/posix-functions/toupper_l.texi: Likewise.
4056         * doc/posix-functions/towctrans_l.texi: Likewise.
4057         * doc/posix-functions/towlower_l.texi: Likewise.
4058         * doc/posix-functions/towupper_l.texi: Likewise.
4059         * doc/posix-functions/wcscoll_l.texi: Likewise.
4060         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
4061         * doc/posix-functions/wctrans_l.texi: Likewise.
4062         * doc/posix-functions/wctype_l.texi: Likewise.
4063         * doc/glibc-functions/strptime_l.texi: Likewise.
4064         * doc/glibc-functions/strtod_l.texi: Likewise.
4065         * doc/glibc-functions/strtof_l.texi: Likewise.
4066         * doc/glibc-functions/strtol_l.texi: Likewise.
4067         * doc/glibc-functions/strtold_l.texi: Likewise.
4068         * doc/glibc-functions/strtoll_l.texi: Likewise.
4069         * doc/glibc-functions/strtoul_l.texi: Likewise.
4070         * doc/glibc-functions/strtoull_l.texi: Likewise.
4071         * doc/glibc-functions/wcsftime_l.texi: Likewise.
4072         * doc/glibc-functions/wcstod_l.texi: Likewise.
4073         * doc/glibc-functions/wcstof_l.texi: Likewise.
4074         * doc/glibc-functions/wcstol_l.texi: Likewise.
4075         * doc/glibc-functions/wcstold_l.texi: Likewise.
4076         * doc/glibc-functions/wcstoll_l.texi: Likewise.
4077         * doc/glibc-functions/wcstoul_l.texi: Likewise.
4078         * doc/glibc-functions/wcstoull_l.texi: Likewise.
4079
4080 2009-11-24  Bruno Haible  <bruno@clisp.org>
4081
4082         duplocale: Fix logic bug.
4083         * lib/duplocale.c: Don't include <langinfo.h>.
4084         (_NL_LOCALE_NAME): Remove macro.
4085         (rpl_duplocale): Use setlocale instead of nl_langinfo.
4086         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
4087
4088 2009-11-23  Jim Meyering  <meyering@redhat.com>
4089
4090         test-update-copyright: don't hard-code /usr/bin/perl
4091         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
4092         perl to print the current year.  Gilles Espinasse reported that
4093         the replaced use of perl was hard-coded as /usr/bin/perl.
4094
4095 2009-11-23  Bruno Haible  <bruno@clisp.org>
4096
4097         duplocale: Add support for glibc 2.3.x.
4098         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
4099
4100 2009-11-22  Bruno Haible  <bruno@clisp.org>
4101
4102         vasnprintf: Tiny optimization.
4103         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
4104         MacOS X.
4105
4106 2009-11-22  Bruno Haible  <bruno@clisp.org>
4107
4108         Tests for module 'duplocale'.
4109         * modules/duplocale-tests: New file.
4110         * tests/test-duplocale.c: New file.
4111
4112         New module 'duplocale'.
4113         * m4/duplocale.m4: New file.
4114         * lib/locale.in.h (duplocale): New declaration.
4115         * lib/duplocale.c: New file.
4116         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
4117         gl_LOCALE_H_DEFAULTS): New macros.
4118         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
4119         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
4120         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
4121         REPLACE_DUPLOCALE.
4122         * modules/duplocale: New file.
4123         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
4124
4125 2009-11-22  Bruno Haible  <bruno@clisp.org>
4126
4127         * modules/locale-tests (configure.ac): Test for newlocale function.
4128         * tests/test-locale.c: When the system has extended locale functions,
4129         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
4130
4131         locale: Make locale_t available when possible.
4132         * lib/locale.in.h: Include <xlocale.h> when it exists.
4133         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
4134         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
4135         * modules/locale (Depends-on): Add extensions.
4136         (Makefile.am): Also substitute HAVE_XLOCALE_H.
4137         * doc/posix-headers/locale.texi: Document the problem with locale_t.
4138
4139 2009-11-22  Bruno Haible  <bruno@clisp.org>
4140
4141         Add comments.
4142         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
4143         invocation.
4144         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
4145         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4146         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
4147
4148 2009-11-22  Bruno Haible  <bruno@clisp.org>
4149
4150         error: account for the possibility of freopen (stdout).
4151         * lib/error.c: Include <unistd.h>.
4152         (flush_stdout): New function, extracted from error and error_at_line.
4153         Determine stdout's fd dynamically.
4154         (error, error_at_line): Invoke flush_stdout.
4155         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
4156         * modules/error (Depends-on): Add unistd.
4157
4158 2009-11-22  Bruno Haible  <bruno@clisp.org>
4159
4160         diffseq: Add comment.
4161         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
4162
4163 2009-11-22  Jim Meyering  <meyering@redhat.com>
4164
4165         c-stack: avoid defining an unused static function
4166         * lib/c-stack.c (find_stack_direction): Do not define this function
4167         when it will not be used.
4168
4169         diffseq: avoid spurious gcc warnings
4170         * lib/diffseq.h (IF_LINT2): Define.
4171         (compareseq): Use it to initialize two members of "part".
4172         This avoids two used-uninitialized warnings.
4173
4174 2009-11-21  Jim Meyering  <meyering@redhat.com>
4175
4176         c-stack: avoid "ignoring return value of `write'" warning
4177         * lib/c-stack.c: Include "ignore-value.h".
4178         (die): Explicitly ignore each write return value.
4179         * modules/c-stack (Depends-on): Add ignore-value.
4180
4181 2009-11-21  Bruno Haible  <bruno@clisp.org>
4182
4183         diffseq: reduce scope of variable 'best'.
4184         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
4185         variable, earlier used for two different purposes.
4186
4187 2009-11-21  Jim Meyering  <meyering@redhat.com>
4188
4189         diffseq: remove useless assignment to "best"
4190         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
4191         assignment.  At that point "best" is already guaranteed to be zero.
4192
4193 2009-11-20  Eric Blake  <ebb9@byu.net>
4194
4195         build: mention ftp redirector in release announcements
4196         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
4197         values that used to come from cfg.mk; mention FTP redirect URL.
4198         * build-aux/announce-gen: Mention the mirror list.
4199         Suggested by Karl Berry.
4200
4201         nanosleep: improve port to mingw
4202         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
4203         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
4204         LIB_NANOSLEEP, but only when needed.
4205         * modules/select (Link): Document LIBSOCKET.
4206         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
4207         enough.
4208
4209         nanosleep: work around cygwin bug
4210         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
4211         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
4212         bug.
4213         (getnow): Delete, not needed.
4214         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
4215         LIB_CLOCK_GETTIME.
4216         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
4217         clock-time, gettime.
4218         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
4219         bug.
4220         * modules/nanosleep-tests: New test.
4221         * tests/test-nanosleep.c: New file.
4222
4223         sleep: work around cygwin bug
4224         * lib/sleep.c (rpl_sleep): Work around the bug.
4225         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
4226         (gl_PREREQ_SLEEP): Delete unused macro.
4227         * modules/sleep (Depends-on): Add verify.
4228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
4229         * modules/unistd (Makefile.am): Substitute witness.
4230         * lib/unistd.in.h (sleep): Update prototype.
4231         * doc/posix-functions/sleep.texi (sleep): Document the bug.
4232         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
4233         * modules/sleep-tests (Depends-on): Check for alarm.
4234
4235 2009-11-20  Jim Meyering  <meyering@redhat.com>
4236
4237         maint.mk: improve sc_prohibit_magic_number_exit
4238         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
4239         so it does not match uses like System.exit(1).
4240         Add comments showing how to correct all offenders.
4241
4242 2009-11-19  Eric Blake  <ebb9@byu.net>
4243
4244         xalloc-die-tests: add missing library
4245         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
4246
4247         test-xvasprintf: silence compiler warnings
4248         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
4249         empty string from gcc.
4250
4251 2009-11-19  Jim Meyering  <meyering@redhat.com>
4252
4253         xfreopen: new module, from coreutils
4254         * modules/xfreopen: New module.
4255         * lib/xfreopen.c: New file.
4256         * lib/xfreopen.h: New file.
4257         * MODULES.html.sh (File stream based Input/Output"): Add it.
4258
4259 2009-11-19  Eric Blake  <ebb9@byu.net>
4260
4261         manywarnings: depend on warnings
4262         * modules/manywarnings (Depends-on): Add warnings.
4263
4264         build: avoid compiler warnings
4265         * lib/select.c (rpl_select): Delete unused variable.
4266         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
4267
4268 2009-11-18  Eric Blake  <ebb9@byu.net>
4269
4270         tests: avoid false negative with --with-packager
4271         * tests/test-version-etc.sh: Discard packager information.
4272         * tests/test-argp-version-etc-1.sh: Likewise.
4273         Reported by Mike Frysinger.
4274
4275         utimens: fix regression on Solaris
4276         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
4277         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
4278         can only change fd timestamps via futimesat.  Instead, use an
4279         additional witness macro to avoid BSD bug.
4280         Reported by Jim Meyering.
4281
4282 2009-11-17  Eric Blake  <ebb9@byu.net>
4283
4284         usleep: use it to simplify tests
4285         * modules/stat-time-tests (Depends-on): Add usleep.
4286         (configure.ac): Drop usleep check.
4287         * modules/chown-tests (Depends-on, configure.ac): Likewise.
4288         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
4289         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
4290         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
4291         * modules/openat-tests (Depends-on, configure.ac): Likewise.
4292         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
4293         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
4294         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
4295         Likewise.
4296         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
4297         * tests/test-lchown.h (nap): Likewise.
4298         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
4299         * tests/test-stat-time.c (nap): Likewise.
4300         * tests/test-utimens-common.h (nap): Update comments.
4301
4302         usleep: new module
4303         * modules/usleep: New file.
4304         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
4305         * lib/usleep.c (usleep): Likewise.
4306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
4307         * modules/unistd (Makefile.am): Substitute witnesses.
4308         * lib/unistd.in.h (usleep): Add declaration.
4309         * doc/pastposix-functions/usleep.texi (usleep): Document this.
4310         * MODULES.html.sh (Date and time): Likewise.
4311         * modules/usleep-tests (Depends-on): New test.
4312         * tests/test-usleep.c: New file.
4313
4314         chown: work around OpenBSD bug
4315         * lib/chown.c (rpl_chown): Work around the bug.
4316         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
4317         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
4318         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
4319         * modules/chown (Depends-on): Add stdbool.
4320         * modules/lchown (Depends-on): Likewise.
4321         * doc/posix-functions/chown.texi (chown): Document the bug.
4322         * doc/posix-functions/lchown.texi (lchown): Likewise.
4323         * tests/test-lchown.h (test_chown): Relax test.
4324
4325         mkstemp: avoid conflict with C++ keyword template
4326         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
4327         * lib/mkostemp.c (mkostemp): Likewise.
4328         * lib/mkostemps.c (mkostemps): Likewise.
4329         * lib/mkstemp.c (mkstemp): Likewise.
4330         * lib/mkstemps.c (mkstemps): Likewise.
4331
4332         xalloc-die-tests: optimize
4333         * tests/test-xalloc-die.sh: Reduce number of processes.
4334
4335 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4336
4337         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
4338         patch from ludo@gnu.org (Ludovic Courtès).
4339
4340 2009-11-17  Jim Meyering  <meyering@redhat.com>
4341
4342         version-etc: use proper license string
4343         * modules/version-etc (License): Use LGPL, not LGPLv3+.
4344         * modules/version-etc-fsf: Likewise.
4345
4346 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4347
4348         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
4349         printed to stdout.  Deal with EOL differences.
4350
4351 2009-11-17  Eric Blake  <ebb9@byu.net>
4352
4353         unsetenv: work around Solaris bug
4354         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
4355         * lib/unsetenv.c (rpl_unsetenv): Work around it.
4356         Reported by Jim Meyering.
4357
4358         vasnprintf: avoid compiler warnings
4359         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
4360         variables.
4361         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
4362
4363 2009-11-17  Simon Josefsson  <simon@josefsson.org>
4364
4365         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
4366         settings since xalloc-die is no longer the self test,
4367         xalloc-die.sh is.
4368
4369 2009-11-17  Jim Meyering  <meyering@redhat.com>
4370
4371         test-xalloc-die.sh: make the code agree with the commit log
4372         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
4373         at the end, just in case you happen to have a test-xalloc-die
4374         program in some other PATH directory.
4375
4376         test-xalloc-die.sh: fix a portability bug
4377         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
4378         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
4379         Otherwise, argv[0] (as often seen in diagnostics) would be too
4380         system-dependent, sometimes with, and sometimes without the leading "./".
4381
4382         version-etc-fsf: relax license to LGPLv3+
4383         * modules/version-etc-fsf (License): Relax license.
4384
4385 2009-11-16  Eric Blake  <ebb9@byu.net>
4386
4387         xalloc-die-tests: avoid printing null pointer
4388         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
4389         shell script.
4390         * tests/test-xalloc-die.c (program_name): Declare.
4391         * tests/test-xalloc-die.sh (tmpfiles): New file.
4392
4393         setenv, unsetenv: work around various bugs
4394         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
4395         (setenv) [HAVE_SETENV]: Work around bugs.
4396         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
4397         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
4398         for bugs.
4399         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
4400         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
4401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
4402         * modules/stdlib (Makefile.am): Update substitutions.
4403         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
4404         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
4405         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
4406         * modules/setenv-tests: New test.
4407         * modules/unsetenv-tests: Likewise.
4408         * tests/test-setenv.c: New file.
4409         * tests/test-unsetenv.c: Likewise.
4410
4411 2009-11-16  Jim Meyering  <meyering@redhat.com>
4412
4413         version-etc: relax license to LGPLv3+
4414         * modules/version-etc (License): Relax license.
4415
4416         better AC_REQUIRE expanded-before-required-warning avoidance
4417         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
4418         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
4419         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
4420         which is no longer needed.
4421
4422 2009-11-16  Eric Blake  <ebb9@byu.net>
4423
4424         test-freading: clean up temporary file
4425         * tests/test-freading.c (main): Remove file on success, and use
4426         ASSERT more liberally.
4427         Reported by Jim Meyering.
4428
4429 2009-11-16  Jim Meyering  <meyering@redhat.com>
4430
4431         avoid new AC_REQUIRE expanded-before-required warnings
4432         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
4433         merely using it.
4434         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
4435         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
4436
4437 2009-11-15  Simon Josefsson  <simon@josefsson.org>
4438
4439         * tests/test-xalloc-die.c: New file.
4440         * modules/xalloc-die-tests: New file.
4441         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
4442         XFAIL_TESTS so it can be appended by modules.
4443
4444 2009-11-15  Simon Josefsson  <simon@josefsson.org>
4445
4446         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
4447         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
4448
4449 2009-11-14  Eric Blake  <ebb9@byu.net>
4450
4451         fnmatch: avoid compiler warning
4452         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
4453         to silence compiler warning about mismatch signedness in ?:.
4454         Reported by Robert Millan.
4455
4456         intprops: add double-inclusion guard
4457         * lib/intprops.h: Allow idempotent includes.
4458         Suggested by Bruce Korb.
4459
4460         openat: detect Solaris fchownat bug
4461         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
4462         penalizing glibc chownat when only lchownat is broken.
4463         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
4464         trailing slash bugs.
4465         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
4466         * modules/openat-tests (Files): Include more files.
4467         (Depends-on): Add mgetgroups, sleep, stat-time.
4468         (configure.ac): Add additional checks.
4469         (Makefile.am): Build new test.
4470         * tests/test-fchownat.c: New file.
4471
4472         lchown: detect Solaris and FreeBSD bug
4473         * lib/lchown.c (rpl_lchown): Work around bug.
4474         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
4475         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4476         * modules/unistd (Makefile.am): Populate it.
4477         * lib/unistd.in.h (lchown): Update declaration.
4478         * doc/posix-functions/lchown.texi (lchown): Document the bug.
4479         * modules/lchown-tests: New file.
4480         * tests/test-lchown.h (test_lchown): Likewise.
4481         * tests/test-lchown.c (main): Likewise.
4482
4483         chown: detect Solaris and FreeBSD bug
4484         * lib/chown.c (rpl_chown): Work around bug.
4485         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
4486         (gl_PREREQ_CHOWN): Delete.
4487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4488         * modules/unistd (Makefile.am): Populate it.
4489         * lib/unistd.in.h (chown): Update declaration.
4490         * lib/lchown.c (chown): Update client.
4491         * modules/lchown (Depends-on): Add lstat.
4492         * doc/posix-functions/chown.texi (chown): Document the bug.
4493         * doc/posix-functions/getgroups.texi (getgroups): Document
4494         getgroups pitfall.
4495         * modules/chown-tests: New file.
4496         * tests/test-chown.h (test_chown): Likewise.
4497         * tests/test-chown.c (main): Likewise.
4498
4499 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
4500
4501         gnulib-tool: correctly detect absence of m4 directories
4502         * gnulib-tool: Avoid extra newline on data passed to wc -l.
4503
4504 2009-11-14  Jim Meyering  <meyering@redhat.com>
4505
4506         maint.mk: Prohibit inclusion of "xalloc.h" without use.
4507         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
4508
4509 2009-11-14  John W. Eaton  <jwe@gnu.org>
4510
4511         strftime.h: wrap funtion declaration in extern "C" block
4512         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
4513
4514 2009-11-13  Eric Blake  <ebb9@byu.net>
4515
4516         getgroups: avoid compiler warning
4517         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
4518
4519         getgroups: work around FreeBSD bug
4520         * lib/getgroups.c (rpl_getgroups): Work around the bug.
4521         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
4522         * doc/posix-functions/getgroups.texi (getgroups): Document it.
4523         * tests/test-getgroups.c (main): Fix buffer overrun.
4524
4525         getgroups: avoid compilation failure
4526         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
4527         * modules/getgroups (Depends-on): Add stdint.
4528
4529 2009-11-13  Jim Meyering  <meyering@redhat.com>
4530
4531         test-getgroups: avoid compilation failure
4532         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
4533
4534 2009-11-13  Eric Blake  <ebb9@byu.net>
4535
4536         mgetgroups: new module, taken from coreutils
4537         * modules/mgetgroups: New file.
4538         * lib/mgetgroups.h: Likewise.
4539         * lib/mgetgroups.c (mgetgroups): Likewise.
4540         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
4541         * MODULES.html.sh (Users and groups): Mention it.
4542
4543         getgroups: don't expose GETGROUPS_T to user
4544         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
4545         an element at a time if GETGROUPS_T is wrong size.
4546         * lib/getugroups.h (getugroups): Change signature.
4547         * lib/unistd.in.h (getgroups): Likewise.
4548         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
4549         signature needs fixing.
4550         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
4551         AC_TYPE_GETGROUPS.
4552         * modules/group-member (Depends-on): Add getgroups.
4553         * lib/group-member.c (group_info, get_group_info): Use gid_t.
4554         (group_member): Rely on getgroups replacement.
4555         * lib/getugroups.c (getugroups): Use gid_t.
4556         * tests/test-getgroups.c (main): Likewise.
4557         * NEWS: Mention the signature change.
4558         * doc/posix-functions/getgroups.texi (getgroups): Mention the
4559         problem with signature.
4560         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
4561         GETGROUPS_T is still useful for setgroups.
4562
4563         getgroups, getugroups: provide stubs for mingw
4564         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
4565         * lib/getugroups.c (getugroups): Likewise.
4566         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
4567         function.  Modernize replacement scheme.
4568         (gl_PREREQ_GETGROUPS): Delete.
4569         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
4570         * modules/getgroups (configure.ac): Declare witness.
4571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
4572         * modules/unistd (Depends-on): Substitute witness.
4573         * lib/unistd.in.h (getgroups): Declare replacement.
4574
4575         getgroups: avoid calling exit
4576         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
4577         drop xalloc.
4578         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
4579         dependencies.
4580         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
4581         exiting, in the rare case of malloc failure.
4582
4583         getgroups: fix logic error
4584         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
4585         has more than 20 groups.
4586         * modules/getgroups-tests: New test.
4587         * tests/test-getgroups.c: New file.
4588
4589 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4590
4591         * tests/test-base64.c: Improve.
4592
4593 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4594
4595         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
4596         Blake <ebb9@byu.net>.
4597
4598 2009-11-13  Simon Josefsson  <simon@josefsson.org>
4599
4600         * tests/test-xvasprintf.c: Add %s%s related checks.
4601
4602 2009-11-12  Eric Blake  <ebb9@byu.net>
4603
4604         version-etc: match standards.texi style
4605         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
4606         and use <> only for URLs.
4607
4608 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
4609
4610         fts: do not fail on a submount during traversal
4611         * lib/fts.c (fts_build): Read the stat info again after opening
4612         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
4613         Original report at http://bugzilla.redhat.com/501848.
4614
4615 2009-11-12  Jim Meyering  <meyering@redhat.com>
4616
4617         bootstrap: sync from coreutils
4618         * build-aux/bootstrap (bootstrap_epilogue): New function.
4619         Use git_modules_config in one more place.  This make bootstrap's
4620         --gnulib-srcdir option more useful for testing.
4621
4622         bootstrap: generalize autoheader check
4623         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
4624         AC_CONFIG_HEADERS.
4625
4626 2009-11-11  Eric Blake  <ebb9@byu.net>
4627
4628         mkfifoat: use new modules for Solaris and BSD bugs
4629         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
4630         * lib/mkfifoat.c (mknodat): Split...
4631         * lib/mknodat.c (mknodat): ...into new file.
4632         * modules/mkfifoat (Files): Ship new file.
4633         (Depends-on): Add mkfifo, mknod.
4634         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
4635         (Depends-on): Add symlink.
4636         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
4637         redundant with test_mkfifo.h.
4638         (do_mkfifoat, do_mknodat): New helpers.
4639
4640         mknod: new module
4641         * modules/mknod: New file.
4642         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
4643         * lib/mknod.c (mknod): Likewise.
4644         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
4645         defaults.
4646         * modules/sys_stat (Makefile.am): Substitute them.
4647         * lib/sys_stat.in.h (mknod): Declare replacement.
4648         * MODULES.html.sh (Support for systems lacking POSIX:2008):
4649         Document it.
4650         * doc/posix-functions/mknod.texi (mknod): Likewise.
4651         * modules/mknod-tests: New test.
4652         * tests/test-mknod.c: Likewise.
4653
4654         mkfifo: new module
4655         * modules/mkfifo: New file.
4656         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
4657         * lib/mkfifo.c (mkfifo): Likewise.
4658         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
4659         defaults.
4660         * modules/sys_stat (Makefile.am): Substitute them.
4661         * lib/sys_stat.in.h (mkfifo): Declare replacement.
4662         * MODULES.html.sh (Support for systems lacking POSIX:2008):
4663         Document it.
4664         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
4665         * modules/mkfifo-tests: New test.
4666         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
4667         from test-mkfifoat.c.
4668         * tests/test-mkfifo.c: New file.
4669
4670         readlink: detect FreeBSD bug
4671         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
4672         slash on symlink.
4673         * doc/posix-functions/readlink.texi (readlink): Document the bug.
4674         * tests/test-readlink.h (test_readlink): Enhance test.
4675
4676         symlink: detect FreeBSD bug
4677         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
4678         slash on symlink.
4679         * doc/posix-functions/symlink.texi (symlink): Document the bug.
4680         * tests/test-symlink.h (test_symlink): Enhance test.
4681
4682 2009-11-10  Eric Blake  <ebb9@byu.net>
4683
4684         link: detect FreeBSD bug
4685         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
4686         symlink.
4687         * doc/posix-functions/link.texi (link): Document the bug.
4688         * tests/test-link.h (test_link): Enhance test.
4689         * tests/test-linkat.c (main): Update caller.
4690
4691         unlink, remove: detect FreeBSD bug
4692         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
4693         slash on symlink.
4694         * doc/posix-functions/unlink.texi (unlink): Document the bug.
4695         * doc/posix-functions/remove.texi (remove): Likewise.
4696         * tests/test-unlink.h (test_unlink): Enhance test.
4697         * tests/test-remove.c (main): Likewise.
4698
4699 2009-11-09  Eric Blake  <ebb9@byu.net>
4700
4701         rename: detect FreeBSD bug
4702         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
4703         slash on symlink.
4704         * modules/renameat-tests (Depends-on): Add filenamecat.
4705         * tests/test-rename.h (test_rename): Allow one more errno.
4706         * tests/test-renameat.c (main): Likewise.
4707         * doc/posix-functions/rename.texi (rename): Document the bug.
4708
4709         open: detect FreeBSD bug
4710         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
4711         symlink.
4712         * doc/posix-functions/open.texi (open): Document the bug.
4713         * doc/posix-functions/utimes.texi (utimes): Likewise.
4714         * tests/test-open.h (test_open): Add parameters, and test symlink
4715         handling.
4716         * tests/test-open.c (main): Adjust caller.
4717         * tests/test-fcntl-safer.c (main): Likewise.
4718         * modules/open-tests (Depends-on): Add stdbool, symlink.
4719         * modules/fcntl-safer-tests (Depends-on): Likewise.
4720         * tests/test-openat.c (main): Add test-open tests.
4721
4722         stat: detect FreeBSD bug
4723         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
4724         symlink.
4725         * doc/posix-functions/stat.texi (stat): Document the bug.
4726         * tests/test-stat.h (test_stat_func): Add argument.
4727         * tests/test-stat.c (main): Adjust caller.
4728         * tests/test-fstatat.c (main): Likewise.
4729         * modules/stat-tests (Depends-on): Add stdbool, symlink.
4730         Reported by Jim Meyering.
4731
4732 2009-11-09  James Youngman  <jay@gnu.org>
4733
4734         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
4735         * lib/strftime.c: Correct placement of #include "ignore-value.h".
4736
4737 2009-11-08  Jim Meyering  <meyering@redhat.com>
4738
4739         utimens: remove invalid futimesat call
4740         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
4741         It used the file descriptor of the target file as the DIR_FD
4742         parameter and NULL as the file name.  That caused failure with
4743         errno == EFAULT on FreeBSD-8.0-rc2
4744
4745 2009-11-07  Eric Blake  <ebb9@byu.net>
4746
4747         fflush, freadseek: use fseeko, not fseek
4748         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4749         (clear_ungetc_buffer): Avoid potential problems on large files.
4750         * lib/freadseek.c (freadseek): Likewise.
4751         * modules/freadseek (Depends-on): Add fseeko.
4752         * modules/fseek (configure.ac): Set a witness.
4753         * tests/test-fflush.c (main): Use fseeko.
4754         * tests/test-fpurge.c (fseek): Disable link warning.
4755         * tests/test-freadable.c (fseek): Likewise.
4756         * tests/test-freading.c (fseek): Likewise.
4757         * tests/test-fseeko.c (fseek): Likewise.
4758         * tests/test-ftell.c (fseek): Likewise.
4759         * tests/test-ftello.c (fseek): Likewise.
4760         * tests/test-fwritable.c (fseek): Likewise.
4761         * tests/test-fwriting.c (fseek): Likewise.
4762
4763 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4764
4765         * modules/memchr (Depends-on): Drop getpagesize dependency.
4766
4767 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4768
4769         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
4770         Reported by Ludovic Courtès.
4771         * build-aux/pmccabe2html: Improve example usage.
4772         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
4773
4774 2009-11-06  Jim Meyering  <meyering@redhat.com>
4775
4776         do-release-commit-and-tag: New module.
4777         Automate the release-commit and tag process.
4778         * build-aux/do-release-commit-and-tag: New script, from coreutils.
4779         * modules/do-release-commit-and-tag: New file.
4780         * MODULES.html.sh (Support for maintaining and releasing): Add it.
4781
4782 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4783
4784         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
4785         because test-select.c uses inet_pton.
4786
4787 2009-11-06  Simon Josefsson  <simon@josefsson.org>
4788
4789         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
4790         GETADDRINFO_LIB.  Bump serial number.
4791         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
4792         Suggested by Eric Blake <ebb9@byu.net>.
4793
4794 2009-11-05  Eric Blake  <ebb9@byu.net>
4795
4796         strtod: detect darwin bug
4797         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
4798         Reported by Leo Davis.
4799
4800         freopen-safer: new module
4801         * modules/freopen-safer: New module.
4802         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
4803         * lib/freopen-safer.c (freopen_safer): New file.
4804         * lib/stdio-safer.h (freopen_safer): New declaration.
4805         * lib/stdio--.h (freopen): New override.
4806         * MODULES.html.sh (File stream based Input/Output): Mention it.
4807         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
4808         freopen-safer module.
4809         * doc/posix-functions/stderr.texi (stderr): Likewise.
4810         * doc/posix-functions/stdin.texi (stdin): Likewise.
4811         * doc/posix-functions/stdout.texi (stdout): Likewise.
4812         * modules/freopen-safer-tests: New test.
4813         * tests/test-reopen-safer.c: New file.
4814
4815 2009-11-05  Jim Meyering  <meyering@redhat.com>
4816
4817         maint.mk: Prohibit inclusion of "close-stream.h" without use.
4818         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
4819
4820 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4821
4822         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
4823
4824 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4825
4826         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
4827
4828 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4829
4830         Fix link error.
4831         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
4832         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4833
4834 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4835
4836         * tests/test-func.c: Also test value of __func__.
4837
4838 2009-11-05  Simon Josefsson  <simon@josefsson.org>
4839
4840         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
4841         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
4842
4843 2009-11-05  Bruno Haible  <bruno@clisp.org>
4844
4845         Fix link error.
4846         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
4847         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4848         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
4849
4850 2009-11-05  Bruno Haible  <bruno@clisp.org>
4851
4852         Tests for module 'inet_pton'.
4853         * modules/inet_pton-tests: New file.
4854         * tests/test-inet_pton.c: New file.
4855
4856 2009-11-05  Bruno Haible  <bruno@clisp.org>
4857
4858         Tests for module 'inet_ntop'.
4859         * modules/inet_ntop-tests: New file.
4860         * tests/test-inet_ntop.c: New file.
4861
4862 2009-11-04  Eric Blake  <ebb9@byu.net>
4863
4864         stdlib-safer: wrap all mkstemp variants
4865         * modules/mkostemp (configure.ac): Set witness.
4866         * modules/mkostemps (configure.ac): Likewise.
4867         * modules/mkstemps (configure.ac): Likewise.
4868         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
4869         (mkstemps_safer): Wrap more functions.
4870         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
4871         wrapping.
4872         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
4873         (mkstemps_safer): Implement the wrappers.
4874
4875         mkstemps, mkostemps: new modules
4876         * modules/mkostemps: New module.
4877         * modules/mkstemps: Likewise.
4878         * lib/mkostemps.c (mkostemps): New file.
4879         * lib/mkstemps.c (mkstemps): Likewise.
4880         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
4881         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
4882         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
4883         * modules/stdlib (Makefile.am): Substitute them.
4884         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
4885         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
4886         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
4887         * doc/gnulib.texi (Glibc stdlib.h): Include them.
4888         * MODULES.html.sh (File system functions): Mention them.
4889
4890         tempname: resync from glibc
4891         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
4892         same values for __GT_FILE as glibc.  Abort even when assertions
4893         are disabled.
4894         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
4895         match its value otherwise.  Allow idempotent inclusion.
4896         * lib/mkdtemp.c (mkdtemp): Adjust caller.
4897         * lib/mkostemp.c (mkostemp): Likewise.
4898         * lib/mkstemp.c (mkstemp): Likewise.
4899         * lib/tmpfile.c (tmpfile): Likewise.
4900         * NEWS: Document this.
4901
4902         utimens: fix use of futimens on older Linux
4903         * lib/utimens.c (fdutimens): Use updated, rather than original,
4904         timespec to avoid bug in older Linux kernel.
4905         Reported by Simon Josefsson.
4906
4907 2009-11-04  Bruno Haible  <bruno@clisp.org>
4908
4909         Make num_processors more flexible and consistent.
4910         * lib/nproc.h (enum nproc_query): New type.
4911         (num_processors): Add a 'query' argument.
4912         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
4913         (num_processors): Add a 'query' argument. Test the value of the
4914         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
4915         mingw, count the number of CPUs available for the current process.
4916         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
4917         Check for sched_getaffinity and sched_getaffinity_np.
4918         * modules/nproc (Depends-on): Add c-ctype, extensions.
4919         * NEWS: Mention the change.
4920
4921 2009-11-03  Bruno Haible  <bruno@clisp.org>
4922
4923         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
4924
4925 2009-11-03  Jim Meyering  <meyering@redhat.com>
4926
4927         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
4928         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
4929         if it is defined.
4930
4931 2009-11-02  Eric Blake  <ebb9@byu.net>
4932
4933         mktime, timegm: share common declaration
4934         * lib/mktime-internal.h: New file.
4935         * lib/mktime.c: Use it rather than open-coding a declaration.
4936         * lib/timegm.c: Likewise.
4937         * modules/mktime (Files): Ship it.
4938         * modules/timegm (Files): Likewise.
4939         Suggested by Bruno Haible.
4940
4941         test-update-copyright: update test to match script changes
4942         * tests/test-update-copyright.sh: Avoid hard-coding perl
4943         location.  Don't update *.bak created by earlier runs.
4944
4945 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
4946             Simon Josefsson  <simon@josefsson.org>
4947             Bruno Haible  <bruno@clisp.org>
4948
4949         Fix link error on Solaris 8.
4950         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
4951         also in libnsl. Define also INET_PTON_LIB.
4952         * modules/inet_pton (Link): New section.
4953
4954 2009-11-02  Simon Josefsson  <simon@josefsson.org>
4955             Bruno Haible  <bruno@clisp.org>
4956
4957         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
4958         * modules/inet_ntop (Link): New section.
4959         Reported by Boyan Kasarov <bkasarov@gmail.com>.
4960
4961 2009-11-02  Eric Blake  <ebb9@byu.net>
4962
4963         maint: avoid compiler warnings in m4 macros
4964         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
4965         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
4966
4967 2009-11-02  Simon Josefsson  <simon@josefsson.org>
4968
4969         * m4/pmccabe2html.m4: Remove file.
4970         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
4971         function.  Change maintainer.
4972         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
4973         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
4974         Courtès).
4975
4976 2009-10-31  Eric Blake  <ebb9@byu.net>
4977
4978         fseeko: fix m4 regression
4979         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
4980         regression from 2009-10-27.
4981         Reported by Ralf Wildenhues.
4982
4983 2009-10-31  Jim Meyering  <meyering@redhat.com>
4984
4985         inttostr: aesthetics and improved (compile-time) safety
4986         Define inttype_is_signed rather than inttype_is_unsigned,
4987         since the sole use is via "#if inttype_is_signed".
4988         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
4989         inttype_is_unsigned.
4990         * lib/offtostr.c (inttype_is_signed): Likewise.
4991         * lib/uinttostr.c (inttype_is_signed): Likewise.
4992         * lib/umaxtostr.c (inttype_is_signed): Likewise.
4993         * lib/inttostr.c (inttostr): Use verify to cross-check the
4994         inttype_is_signed value and the signedness of the actual type.
4995         * modules/inttostr (Depends-on): Add verify.
4996
4997 2009-10-30  Eric Blake  <ebb9@byu.net>
4998
4999         build: avoid compiler warnings
5000         * lib/fchmodat.c (lchmod): Mark unused variables.
5001         * lib/getopt.c (_getopt_initialize): Likewise.
5002         * lib/mktime.c (__mktime_internal): Provide prototype.
5003         * lib/inttostr.c (inttostr): Avoid compiler warning even with
5004         older gcc that do not understand #pragma GCC diagnostic.
5005         * lib/uinttostr.c (inttype_is_unsigned): Define.
5006         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
5007
5008 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
5009
5010         stat: fix compilation on AIX
5011         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
5012         only see struct stat64.
5013
5014 2009-10-30  Eric Blake  <ebb9@byu.net>
5015
5016         exclude: make more robust
5017         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
5018         rather than masking a coding bug.
5019         Suggested by Bruno Haible.
5020
5021 2009-10-30  Jim Meyering  <meyering@redhat.com>
5022
5023         perl scripts: remove #!/usr/bin/perl in favor of more portable...
5024         Rather than putting #!/usr/bin/perl on the first line,
5025         start with a variant of what's recommended by "man perlrun" that
5026         invokes the first "perl" program from your shell's search path.
5027         * build-aux/gitlog-to-changelog: Replace #!... as above.
5028         Add a "Local Variables" perl mode setting.
5029         Prompted by a patch from Ludovic Courtès.
5030         Improved by Eric Blake.
5031         * build-aux/useless-if-before-free: Likewise.
5032         * build-aux/announce-gen: Likewise.
5033         * build-aux/update-copyright: Likewise.
5034
5035 2009-10-29  Eric Blake  <ebb9@byu.net>
5036
5037         filenamecat-lgpl: adjust clients
5038         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
5039         filenamecat.
5040         * modules/renameat (Depends-on): Likewise.
5041
5042         filenamecat: split into filenamecat-lgpl
5043         * modules/filenamecat-lgpl: New module.
5044         * modules/filenamecat (Files): Move library-safe files into
5045         filenamecat-lgpl.
5046         (Depends-on): Add filenamecat-lgpl.
5047         (configure.ac): Declare witness.
5048         * lib/filenamecat.h (file_name_concat): Only declare when using
5049         GPL module.
5050         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
5051         Move...
5052         * lib/filenamecat-lgpl.c: ...into new file.
5053         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
5054         (gl_FILE_NAME_CONCAT): Use it.
5055         * MODULES.html.sh (File system functions): Mention new module.
5056
5057         argp: avoid memory leak
5058         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
5059         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
5060         base_name, since the latter malloc()s and can call exit().
5061         Leak introduced 2006-07-03.
5062
5063         dirname-lgpl: adjust clients that don't need full dirname
5064         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
5065         * modules/filenamecat (Depends-on): Likewise.
5066         * modules/linkat (Depends-on): Likewise.
5067         * modules/mkancesdirs (Depends-on): Likewise.
5068         * modules/mkdir (Depends-on): Likewise.
5069         * modules/openat (Depends-on): Likewise.
5070         * modules/savewd (Depends-on): Likewise.
5071         * modules/rename (Depends-on): Likewise.
5072         (License): Relax license.
5073         * modules/mkdir-tests (Depends-on): Drop progname.
5074         (Makefile.am): Delete unneeded LDADD.
5075         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
5076
5077         dirname: split into dirname-lgpl
5078         * modules/dirname-lgpl: New module.
5079         * modules/dirname (Files): Move library-safe files into
5080         dirname-lgpl.
5081         (Depends-on): Add dirname-lgpl.
5082         (configure.ac): Declare witness.
5083         * modules/double-slash-root (License): Relax license.
5084         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
5085         module.
5086         * lib/dirname.c (dir_len, mdir_name): Move...
5087         * lib/dirname-lgpl.c: ...into new file.
5088         * lib/basename.c (last_component, base_len): Move...
5089         * lib/basename-lgpl.c: ...into new file.
5090         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
5091         (gl_DIRNAME): Use it.
5092         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
5093         Mention new module.
5094         * modules/dirname-tests (Depends-on): Add progname.
5095         * tests/test-dirname.c (program_name): Delete.
5096
5097         mkdir: make safe for libraries
5098         * modules/mkdir (Depends-on): Drop xalloc.
5099         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
5100         exit.
5101
5102         tests: avoid some compiler warnings
5103         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
5104         literals.
5105         * tests/test-memchr.c (main): Avoid type mismatch.
5106         * tests/test-arpa_inet.c (main): Avoid unused parameters.
5107         * tests/test-base64.c (main): Likewise.
5108         * tests/test-getdelim.c (main): Likewise.
5109         * tests/test-gethostname.c (main): Likewise.
5110         * tests/test-getline.c (main): Likewise.
5111         * tests/test-netinet_in.c (main): Likewise.
5112         * tests/test-select.c (open_server_socket, main): Likewise.
5113         * tests/test-select-stdin.c (main): Likewise.
5114         * tests/test-sockets.c (main): Likewise.
5115         * tests/test-strsignal.c (main): Likewise.
5116         * tests/test-sys_select.c (main): Likewise.
5117         * tests/test-sys_socket.c (main): Likewise.
5118         * tests/test-u64.c (main): Likewise.
5119         * tests/test-xfprintf-posix.c (main): Likewise.
5120         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
5121
5122         sockets: avoid compiler warning
5123         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
5124
5125         maint: detect usage(1) and other suspicious exits
5126         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
5127
5128 2009-10-29  Jim Meyering  <meyering@redhat.com>
5129
5130         timespec: long-to-int truncation could make timespec_cmp malfunction
5131         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
5132         a multiple of 2^32 nanoseconds as no difference.
5133
5134 2009-10-28  Jim Meyering  <meyering@redhat.com>
5135
5136         fprintftime: wrap macro code argument in "do {...} while(0)"
5137         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
5138         cpy macro must be a statement that can be followed by a semicolon.
5139         Now that the else clause contains a comment and is hence longer
5140         than one line, I require curly braces.  That in turn requires
5141         that we wrap this code block in the standard do...while(0).
5142
5143         fprintftime: remove stray semicolon from previous change
5144         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
5145
5146         fprintftime: avoid a warning about ignored fwrite return value
5147         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
5148         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
5149         that is unsafe.
5150         * modules/fprintftime (Depends-on): Add ignore-value.
5151
5152         exclude: avoid an unwarranted warning
5153         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
5154
5155 2009-10-27  Eric Blake  <ebb9@byu.net>
5156
5157         fseek: avoid compilation failure when fflush is replaced
5158         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
5159         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
5160         module is in use.
5161         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
5162         module is not in use; since REPLACE_FSEEK worked otherwise.
5163         (GNULIB_FTELLO): Likewise for ftell.
5164         Reported by Ian Beckwith and others.
5165
5166 2009-10-27  Bruno Haible  <bruno@clisp.org>
5167
5168         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
5169         Reported by Jim Meyering.
5170
5171 2009-10-27  Jim Meyering  <jim@meyering.net>
5172             Bruno Haible  <bruno@clisp.org>
5173
5174         Avoid warning despite dropping the return value of fwrite.
5175         * lib/unicodeio.c: Include ignore-value.h.
5176         (fwrite_success_callback): Explicitly ignore fwrite's return value.
5177         * modules/unicodeio (Depends-on): Add ignore-value.
5178
5179 2009-10-26  Eric Blake  <ebb9@byu.net>
5180
5181         areadlinkat: fix fallback path
5182         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
5183         pointer and zero.
5184
5185 2009-10-22  Pádraig Brady  <P@draigBrady.com>
5186
5187         Use a better IO block size for modern systems
5188         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
5189         * lib/md2.c: Likewise.
5190         * lib/md4.c: Likewise.
5191         * lib/md5.c: Likewise.
5192         * lib/sha1.c: Likewise.
5193         * lib/sha256.c: Likewise.
5194         * lib/sha512.c: Likewise.
5195
5196 2009-10-22  Eric Blake  <ebb9@byu.net>
5197
5198         tests: avoid several compiler warnings
5199         * tests/test-getcwd.c (main): Avoid buffer underflow.
5200         * tests/test-getdate.c (main): String literals are not safe with
5201         putenv, so use setenv.  Declare unused argument.
5202         * modules/getdate-tests (Depends-on): Add setenv.
5203         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
5204         problems with string literals in char *.
5205         * tests/test-hash.c (main): Avoid shadowing declaration.
5206         (insert_new): Treat string literals as char const *.
5207         * tests/test-getopt.h (test_getopt): Likewise.
5208         (getopt_loop): Alter types to minimize casting elsewhere.
5209         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
5210         (test_getopt_long_posix): Likewise.
5211         (do_getopt_long): Add wrapper to minimize casting.
5212         * tests/test-atexit.c (clear_temp_file): Use void.
5213         * tests/test-areadlink-with-size.c (main): Declare unused
5214         arguments.
5215         * tests/test-areadlink.c (main): Likewise.
5216         * tests/test-areadlinkat-with-size.c (main): Likewise.
5217         * tests/test-areadlinkat.c (main): Likewise.
5218         * tests/test-canonicalize-lgpl.c (main): Likewise.
5219         * tests/test-canonicalize.c (main): Likewise.
5220         * tests/test-dirent-safer.c (main): Likewise.
5221         * tests/test-dirname.c (main): Likewise.
5222         * tests/test-dup2.c (main): Likewise.
5223         * tests/test-fchdir.c (main): Likewise.
5224         * tests/test-fcntl-h.c (main): Likewise.
5225         * tests/test-fcntl-safer.c (main): Likewise.
5226         * tests/test-fdopendir.c (main): Likewise.
5227         * tests/test-fdutimensat.c (main): Likewise.
5228         * tests/test-fflush.c (main): Likewise.
5229         * tests/test-filenamecat.c (main): Likewise.
5230         * tests/test-filevercmp.c (main): Likewise.
5231         * tests/test-fopen-safer.c (main): Likewise.
5232         * tests/test-fopen.c (main): Likewise.
5233         * tests/test-fpending.c (main): Likewise.
5234         * tests/test-fpurge.c (main): Likewise.
5235         * tests/test-freading.c (main): Likewise.
5236         * tests/test-fstatat.c (main): Likewise.
5237         * tests/test-fsync.c (main): Likewise.
5238         * tests/test-futimens.c (main): Likewise.
5239         * tests/test-getndelim2.c (main): Likewise.
5240         * tests/test-gettimeofday.c (main): Likewise.
5241         * tests/test-getopt.c (main): Likewise.
5242         * tests/test-i-ring.c (main): Likewise.
5243         * tests/test-inttypes.c (main): Likewise.
5244         * tests/test-link.c (main): Likewise.
5245         * tests/test-lstat.c (main): Likewise.
5246         * tests/test-math.c (main): Likewise.
5247         * tests/test-md5.c (main): Likewise.
5248         * tests/test-memchr2.c (main): Likewise.
5249         * tests/test-memrchr.c (main): Likewise.
5250         * tests/test-mkdir.c (main): Likewise.
5251         * tests/test-mkdirat.c (main): Likewise.
5252         * tests/test-mkfifoat.c (main): Likewise.
5253         * tests/test-open.c (main): Likewise.
5254         * tests/test-openat-safer.c (main): Likewise.
5255         * tests/test-openat.c (main): Likewise.
5256         * tests/test-quotearg.c (main): Likewise.
5257         * tests/test-rawmemchr.c (main): Likewise.
5258         * tests/test-readlink.c (main): Likewise.
5259         * tests/test-remove.c (main): Likewise.
5260         * tests/test-rename.c (main): Likewise.
5261         * tests/test-renameat.c (main): Likewise.
5262         * tests/test-rmdir.c (main): Likewise.
5263         * tests/test-sha1.c (main): Likewise.
5264         * tests/test-signal.c (main): Likewise.
5265         * tests/test-sigaction.c (main): Likewise.
5266         * tests/test-stat.c (main): Likewise.
5267         * tests/test-stat-time.c (main): Likewise.
5268         * tests/test-stddef.c (main): Likewise.
5269         * tests/test-stdint.c (main): Likewise.
5270         * tests/test-stdio.c (main): Likewise.
5271         * tests/test-stdlib.c (main): Likewise.
5272         * tests/test-strchrnul.c (main): Likewise.
5273         * tests/test-strerror.c (main): Likewise.
5274         * tests/test-string.c (main): Likewise.
5275         * tests/test-strtod.c (main): Likewise.
5276         * tests/test-strverscmp.c (main): Likewise.
5277         * tests/test-symlink.c (main): Likewise.
5278         * tests/test-symlinkat.c (main): Likewise.
5279         * tests/test-sys_stat.c (main): Likewise.
5280         * tests/test-sys_time.c (main): Likewise.
5281         * tests/test-time.c (main): Likewise.
5282         * tests/test-unistd.c (main): Likewise.
5283         * tests/test-unlink.c (main): Likewise.
5284         * tests/test-unlinkat.c (main): Likewise.
5285         * tests/test-utimens.c (main): Likewise.
5286         * tests/test-utimensat.c (main): Likewise.
5287         * tests/test-version-etc.c (main): Likewise.
5288         * tests/test-wchar.c (main): Likewise.
5289         * tests/test-wctype.c (main): Likewise.
5290         * tests/test-xprintf-posix.c (main): Likewise.
5291         * tests/test-posixtm.c (main): Likewise.
5292         (STREQ): Delete unused macro.
5293         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
5294         shadowed variables.
5295         * tests/test-memchr.c (main): Likewise.
5296
5297 2009-10-21  Eric Blake  <ebb9@byu.net>
5298
5299         areadlinkat: avoid failure on older glibc
5300         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
5301         rather than mis-comparing 0 against FUNC_RESULT of char*.
5302
5303 2009-10-21  Bruno Haible  <bruno@clisp.org>
5304
5305         * modules/stpncpy (License): Relicense under LGPLv2+.
5306         Reported by David Lutterkort <lutter@redhat.com>.
5307
5308 2009-10-20  Eric Blake  <ebb9@byu.net>
5309
5310         utimensat: work around Solaris 9 bug
5311         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
5312         has trailing slash bugs.
5313         * tests/test-lutimens.h (test_lutimens): Enhance test.
5314         * tests/test-utimens.h (test_utimens): Likewise.
5315         * doc/posix-functions/utime.texi (utime): Enhance documentation.
5316         * doc/posix-functions/utimes.texi (utimes): Likewise.
5317         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5318         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
5319         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
5320         * doc/posix-functions/futimens.texi (futimens): Likewise.
5321
5322         fdutimensat: new module
5323         * modules/fdutimensat: New file.
5324         * lib/fdutimensat.c (fdutimensat): Likewise.
5325         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
5326         * MODULES.html.sh (File system functions): Mention module.
5327         * modules/fdutimensat-tests: New test.
5328         * tests/test-fdutimensat.c: Likewise.
5329
5330         doc: regenerate INSTALL
5331         * doc/INSTALL: Reflect recent autoconf update.
5332         * doc/INSTALL.ISO: Likewise.
5333         * doc/INSTALL.UTF-8: Likewise.
5334
5335 2009-10-20  Pádraig Brady  <P@draigBrady.com>
5336
5337         acl: warn if ACL support is not detected
5338         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
5339
5340 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
5341
5342         * lib/nproc.h: Add extern "C" block for C++.
5343
5344 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
5345             Bruno Haible  <bruno@clisp.org>
5346
5347         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
5348         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
5349         * doc/posix-functions/isalpha.texi: Likewise.
5350         * doc/posix-functions/isblank.texi: Likewise.
5351         * doc/posix-functions/iscntrl.texi: Likewise.
5352         * doc/posix-functions/isdigit.texi: Likewise.
5353         * doc/posix-functions/isgraph.texi: Likewise.
5354         * doc/posix-functions/islower.texi: Likewise.
5355         * doc/posix-functions/isprint.texi: Likewise.
5356         * doc/posix-functions/ispunct.texi: Likewise.
5357         * doc/posix-functions/isspace.texi: Likewise.
5358         * doc/posix-functions/isupper.texi: Likewise.
5359         * doc/posix-functions/isxdigit.texi: Likewise.
5360
5361 2009-10-18  Bruno Haible  <bruno@clisp.org>
5362
5363         Tests for module 'isblank'.
5364         * modules/isblank-tests: New file.
5365         * tests/test-isblank.c: New file.
5366
5367         New module 'isblank'.
5368         * lib/isblank.c: New file.
5369         * m4/isblank.m4: New file.
5370         * modules/isblank: New file.
5371         * doc/posix-functions/isblank.texi: Mention the new module.
5372
5373 2009-10-18  Bruno Haible  <bruno@clisp.org>
5374
5375         New module 'ctype'.
5376         * lib/ctype.in.h: New file.
5377         * m4/ctype.m4: New file.
5378         * modules/ctype: New file.
5379         * doc/posix-headers/ctype.texi: Mention the new module.
5380
5381 2009-10-18  Jim Meyering  <meyering@redhat.com>
5382
5383         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
5384         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
5385         right after its initialization, rather than farther down.
5386         Keeping these in close proximity makes it easier to ensure
5387         that each such variable is initialized.  E.g.,
5388
5389             LIB_CLOCK_GETTIME=
5390             AC_SUBST([LIB_CLOCK_GETTIME])
5391
5392         This change also increments these serial numbers.
5393         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
5394         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5395         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5396
5397 2009-10-18  Bruno Haible  <bruno@clisp.org>
5398
5399         Don't let environment variables perturb build.
5400         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
5401         (gl_PREREQ_GETHRXTIME): ... not here.
5402
5403 2009-10-18  Bruno Haible  <bruno@clisp.org>
5404
5405         Avoid symlink attack in localcharset module.
5406         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
5407         (O_NOFOLLOW): Define fallback.
5408         (get_charset_aliases): Don't open the file if it is a symbolic link.
5409         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
5410         gl_FCNTL_H.
5411         (gl_FCNTL_H): Require it.
5412         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
5413         * modules/localcharset (Files): Add m4/fcntl_h.m4.
5414         Reported by Fergal Glynn <fglynn@veracode.com>.
5415
5416 2009-10-18  Bruno Haible  <bruno@clisp.org>
5417
5418         Implement nproc for mingw.
5419         * lib/nproc.c: Include <windows.h>
5420         (num_processors): On native Windows platforms, try GetSystemInfo.
5421
5422 2009-10-18  Bruno Haible  <bruno@clisp.org>
5423
5424         Implement nproc for IRIX.
5425         * lib/nproc.c: Include <sys/sysmp.h>.
5426         (num_processors): On IRIX systems, try sysmp.
5427         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
5428
5429 2009-10-18  Bruno Haible  <bruno@clisp.org>
5430
5431         Implement nproc for HP-UX.
5432         * lib/nproc.c: Include <sys/pstat.h>
5433         (num_processors): On HP-UX systems, try pstat_getdynamic.
5434         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
5435         pstat_getdynamic.
5436
5437 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
5438             Bruno Haible  <bruno@clisp.org>
5439
5440         Implement nproc for NetBSD, OpenBSD.
5441         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
5442         (ARRAY_SIZE): New macro.
5443         (num_processors): On BSD systems, try sysctl of HW_NCPU.
5444         * m4/nproc.m4: New file.
5445         * modules/nproc (Files): Add m4/nproc.m4.
5446         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
5447         (Makefile.am): Instead, augment lib_SOURCES.
5448
5449 2009-10-18  Bruno Haible  <bruno@clisp.org>
5450
5451         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
5452         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
5453         sys/param.h.
5454
5455 2009-10-16  Eric Blake  <ebb9@byu.net>
5456
5457         utimensat: new module
5458         * modules/utimensat: New file.
5459         * lib/utimensat.c (utimensat): Likewise.
5460         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5461         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
5462         so we can work around Linux bugs.
5463         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5464         * modules/sys_stat (Makefile.am): Substitute them.
5465         * lib/sys_stat.in.h (utimensat): Declare it.
5466         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5467         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5468         * modules/utimensat-tests: New test.
5469         * tests/test-utimensat.c: Likewise.
5470
5471         utimens: let lutimens work on non-symlinks
5472         * lib/utimens.c (lutimens): Fall back to utimens rather than
5473         failing with ENOSYS, when file is not a symlink.
5474         (utimens): Reduce redirection.
5475         * tests/test-lutimens.h (test_lutimens): Update test to cover
5476         non-symlinks.
5477         * tests/test-utimens.h (test_utimens): Update test to cover
5478         symlinks.
5479         * tests/test-utimens.c (main): Update caller.
5480
5481         utimens: cache whether utimensat syscall works
5482         * lib/utimens.c (utimensat_works_really): New cache variable.
5483         (fdutimens, lutimens): Use it to avoid failing syscall.
5484
5485         test-stat-time, test-utimens: improve portability
5486         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
5487         ext4 on alpha, and for cygwin.
5488         * tests/test-utimens-common.h: New file.
5489         (nap): Factor delays into single function.
5490         * tests/test-lutimens.h (test_lutimens): Use new header.
5491         * tests/test-futimens.h (test_futimens): Likewise.
5492         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
5493         timestamps to occur from same machine, as was done previously for
5494         test_utimens.
5495         * modules/utimens-tests (Files): Ship new file.
5496         * modules/futimens-tests (Files): Likewise.
5497         Reported in part by Jim Meyering.
5498
5499         sys_stat: sort replacement declarations
5500         * lib/sys_stat.in.h: Sort declarations.
5501         * lib/futimens.c (futimens): Fix typo.
5502
5503 2009-10-15  Jim Meyering  <meyering@redhat.com>
5504
5505         don't let environment settings perturb build
5506         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
5507         could cause a configure-time and/or build-time malfunction.
5508         Typically, a configure-time function-in-library test is performed
5509         via code like this:
5510
5511           LIB_VAR=
5512           AC_SUBST([LIB_VAR])
5513           prefix_saved_LIBS=$LIBS
5514             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
5515                        [test "$ac_cv_search_FUNC" = "none required" ||
5516                         LIB_VAR=$ac_cv_search_FUNC])
5517           LIBS=$prefix_saved_LIBS
5518
5519         However, in each of the files affected by this change, the LIB_VAR=
5520         initialization was omitted.  Thus, when set in the environment, its
5521         value would propagate into generated Makefiles when FUNC is not found
5522         in LIB_NAME.
5523         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
5524         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5525         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5526
5527 2009-10-14  Eric Blake  <ebb9@byu.net>
5528
5529         fchdir: avoid infinite recursion in mingw
5530         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
5531         recursing.
5532
5533         test-stat-time: port to mingw
5534         * tests/test-stat-time.c (force_unlink): Return a value.
5535         (test_ctime) [W32]: Fix compilation error.
5536         (nap): Don't call usleep with too large an argument.  Use
5537         force_unlink.
5538         * doc/pastposix-functions/usleep.texi (usleep): Document the
5539         portability issue.
5540
5541 2009-10-13  Jim Meyering  <meyering@redhat.com>
5542
5543         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
5544         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
5545         * modules/pipe-filter-ii: Likewise.
5546         * modules/sys_socket-tests: Likewise.
5547         * modules/tsearch-tests: Likewise.
5548         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
5549         (check): Depend on it.
5550
5551 2009-10-12  Eric Blake  <ebb9@byu.net>
5552
5553         utimens-tests: port to NFS file systems
5554         * tests/test-utimens.h (test_utimens): Refactor utimecmp
5555         comparisons to avoid spurious failures from timestamp drift
5556         between NFS machines.
5557
5558 2009-10-12  Eric Blake  <ebb9@byu.net>
5559
5560         stat-time-tests: minor cleanups
5561         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
5562         * tests/test-stat-time.c (nap): Separate assignment from call.
5563         Suggested by Paolo Bonzini and Bruno Haible.
5564
5565         sys_stat: guarantee struct timespec
5566         * lib/sys_stat.in.h (includes): Always include <time.h>
5567         * modules/sys_stat (Depends-on): Add time.
5568         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
5569         mode_t permission values.
5570         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
5571         get at subsecond timestamps.
5572
5573 2009-10-10  Eric Blake  <ebb9@byu.net>
5574
5575         futimens: new module
5576         * modules/futimens: New file.
5577         * lib/futimens.c (futimens): Likewise.
5578         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
5579         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
5580         we can work around Linux bugs.
5581         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5582         * modules/sys_stat (Makefile.am): Substitute them.
5583         * lib/sys_stat.in.h (futimens): Declare it.
5584         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5585         * doc/posix-functions/futimens.texi (futimens): Likewise.
5586         * modules/futimens-tests: New test.
5587         * tests/test-futimens.c: Likewise.
5588
5589         utimens: introduce fdutimens
5590         * lib/utimens.h (fdutimens): New prototype.
5591         * lib/utimens.c (gl_futimens): Move guts...
5592         (fdutimens): ...to new interface.
5593         * tests/test-utimens.c (do_fdutimens): Use it.
5594
5595         utimens: add UTIME_NOW and UTIME_OMIT support
5596         * lib/utimens.c (validate_timespec, update_timespec): New helper
5597         functions.
5598         (gl_futimens, lutimens): Use them.
5599         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
5600         stdbool, sys_stat.
5601         (Link): Mention resulting library dependency.
5602         * modules/utimecmp (Link): Likewise.
5603         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
5604         (Makefile.am): Pick up library dependency.
5605         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
5606         definition.
5607         * tests/test-sys_stat.c: Test the definitions.
5608         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
5609         * NEWS: Document library dependency.
5610
5611         utimecmp: support symlink timestamps
5612         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
5613         hashing when possible.  Use pathconf when available.
5614         (SYSCALL_RESOLUTION): Recognize tighter resolution.
5615         * modules/utimecmp (Depends-on): Add lstat.
5616
5617         utimens: add lutimens interface
5618         * lib/utimens.c (lutimens): New function.
5619         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
5620         * lib/utimens.h (lutimens): Declare new interface.
5621         * tests/test-utimens.c (main): Enhance test.
5622         * tests/test-lutimens.h (test_lutimens): New file.
5623         * modules/utimens-tests (Files): Distribute it.
5624         (Depends-on): Add symlink.
5625         (configure.ac): Check for usleep.
5626
5627         utimens: validate futimens usage
5628         * lib/utimens.c (gl_futimens): Require valid fd up front, using
5629         fewer syscalls on failure later on.  Avoid compiler warning on
5630         mingw.
5631         * modules/utimens (Depends-on): Add dup2.
5632
5633         utimens: add test
5634         * modules/utimens-tests: New test.
5635         * tests/test-utimens.h: New file.
5636         * tests/test-futimens.h: Likewise.
5637         * tests/test-utimens.c: Likewise.
5638
5639         doc: mention timestamp portability issues
5640         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
5641         instead.
5642         * doc/posix-functions/utime.texi (utime): Likewise.
5643         * doc/posix-functions/utimes.texi (utimes): Likewise.
5644         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
5645         instead.
5646         * doc/posix-functions/futimens.texi (futimens): Mention utimens
5647         module.
5648         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5649         Mention weakness with symlink timestamps.
5650         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
5651         to utimensat/futimens instead.
5652         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
5653
5654         test-dup2: enhance test
5655         * tests/test-dup2.c (main): Also check AT_FDCWD.
5656
5657         test-stat-time: avoid more spurious failures
5658         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
5659         xfs; and avoid race if the two timestamps cross quantization edge.
5660
5661         relocatable: prefer 'file system' over 'filesystem'
5662         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
5663         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
5664         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
5665         * doc/relocatable.texi (Enabling Relocatability): Likewise.
5666         * lib/relocatable.c (compute_curr_prefix): Likewise.
5667
5668 2009-10-10  Jim Meyering  <meyering@redhat.com>
5669
5670         stat-time-tests: check for the usleep function
5671         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
5672
5673 2009-10-10  Bruno Haible  <bruno@clisp.org>
5674
5675         * modules/xnanosleep: Put the Link section after the Include section.
5676
5677 2009-10-09  Eric Blake  <ebb9@byu.net>
5678
5679         dup2: work around FreeBSD 6.1 bug
5680         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
5681         * doc/posix-functions/dup2.texi (dup2): Document it.
5682         Reported by Nelson H. F. Beebe and Jim Meyering.
5683
5684         test-stat-time: port to buggy NFS clients
5685         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
5686         (test_ctime): Also skip test if mtime and ctime are skewed.
5687
5688         maint: prefer 'file system' over 'filesystem'
5689         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
5690         * doc/posix-functions/lstat.texi (lstat): Likewise.
5691         * lib/file-has-acl.c (file_has_acl): Likewise.
5692         * lib/fwriteerror.c [TEST]: Likewise.
5693         * tests/test-areadlink.h (test_areadlink): Likewise.
5694         * tests/test-areadlinkat-with-size.c (main): Likewise.
5695         * tests/test-areadlinkat.c (main): Likewise.
5696         * tests/test-canonicalize-lgpl.c (main): Likewise.
5697         * tests/test-canonicalize.c (main): Likewise.
5698         * tests/test-fstatat.c (main): Likewise.
5699         * tests/test-linkat.c (main): Likewise.
5700         * tests/test-lstat.h (test_lstat_func): Likewise.
5701         * tests/test-mkdir.h (test_mkdir): Likewise.
5702         * tests/test-readlink.h (test_readlink): Likewise.
5703         * tests/test-remove.c (main): Likewise.
5704         * tests/test-rename.h (test_rename): Likewise.
5705         * tests/test-renameat.c (main): Likewise.
5706         * tests/test-rmdir.h (test_rmdir_func): Likewise.
5707         * tests/test-symlink.h (test_symlink): Likewise.
5708         * tests/test-symlinkat.c (main): Likewise.
5709         * tests/test-unlink.h (test_unlink_func): Likewise.
5710         * tests/test-unlinkat.c (main): Likewise.
5711
5712         maint: make realtime library usage explicit
5713         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
5714         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
5715         * modules/settime (Link): Likewise.
5716         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
5717
5718         test-stat-time: speed up execution
5719         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
5720         warning on mingw.
5721         (nap): New helper function.
5722         (prepare_test): Use it to reduce sleep time.
5723         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
5724         execution.
5725         * modules/stat-time-tests (configure.ac): Check for usleep.
5726
5727 2009-10-09  Jim Meyering  <meyering@redhat.com>
5728
5729         selinux-h: always use getfilecon wrappers
5730         * lib/getfilecon.c: New file.
5731         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
5732         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
5733         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
5734         (fgetfilecon): Provide a stub.
5735         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
5736         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
5737         file unconditionally.
5738         When <selinux/selinux.h> is found, arrange to use wrappers.
5739         * modules/selinux-h (Files): Add getfilecon.c.
5740         (Makefile.am): Substitute include-next-related bits
5741         into the now-always-generated selinux/selinux.h file.
5742         * doc/glibc-functions/lgetfilecon.texi: New file.
5743         * doc/glibc-functions/fgetfilecon.texi: New file.
5744         * doc/glibc-functions/getfilecon.texi: New file.
5745         * doc/glibc-functions/getfilecon-desc.texi: New file.
5746         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
5747         which to pull in the new files.
5748         * MODULES.html.sh (Misc): Add selinux-h.
5749
5750 2009-10-08  Jim Meyering  <meyering@redhat.com>
5751
5752         unistd: fix comment typo
5753         * lib/unistd.in.h (euidaccess): Fix a comment typo.
5754
5755 2009-10-08  Eric Blake  <ebb9@byu.net>
5756
5757         areadlink: use SIZE_MAX consistently
5758         * modules/areadlink (Depends-on): Add stdint.
5759         * modules/areadlink-with-size (Depends-on): Likewise.
5760         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
5761         gives NULL; drop sys/types, since unistd gives size_t; and add
5762         stdint for SIZE_MAX.
5763         (SIZE_MAX): Rely on headers.
5764         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
5765         and add stdint.
5766         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
5767         (SIZE_MAX): Likewise.
5768         (INITIAL_BUF_SIZE): Turn into enum.
5769         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
5770
5771 2009-10-08  Jim Meyering  <meyering@redhat.com>
5772
5773         areadlinkat: avoid compilation failure
5774         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
5775         Fix typo in comment.
5776
5777 2009-10-07  Eric Blake  <ebb9@byu.net>
5778
5779         areadlinkat-with-size: new module
5780         * modules/areadlinkat-with-size: New module.
5781         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
5782         * lib/areadlink.h (areadlinkat): Declare it.
5783         * MODULES.html.sh (File system functions): Mention it.
5784         * modules/areadlinkat-with-size-tests: New test.
5785         * tests/test-areadlinkat-with-size.c: New file.
5786
5787         xreadlinkat: new module
5788         * modules/xreadlinkat: New module.
5789         * lib/xreadlinkat.c (xreadlinkat): New file.
5790         * lib/xreadlink.h (xreadlinkat): Declare it.
5791         * MODULES.html.sh (File system functions): Mention it.
5792
5793         areadlinkat: new module
5794         * lib/at-func.c (FUNC_FAIL): New define.
5795         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
5796         * modules/areadlinkat: New module.
5797         * lib/linkat.c (areadlinkat): Move...
5798         * lib/areadlinkat.c (areadlinkat): ...to new file.
5799         * lib/areadlink.h (areadlinkat): Declare it.
5800         * modules/linkat (Depends-on): Add areadlinkat.
5801         * MODULES.html.sh (File system functions): Mention it.
5802         * modules/areadlinkat-tests: New test.
5803         * tests/test-areadlinkat.c: New file.
5804
5805         areadlink, areadlink-with-size: add tests
5806         * modules/areadlink-tests: New test.
5807         * modules/areadlink-with-size-tests: Likewise.
5808         * tests/test-areadlink.h: New file.
5809         * tests/test-areadlink.c: Likewise.
5810         * tests/test-areadlink-with-size.c: Likewise.
5811
5812         maint: minor cleanups
5813         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
5814         _UNUSED_PARAMETER_ instead.
5815         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
5816         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
5817         * modules/linkat-tests (Files): Distribute test-link.h.
5818
5819         openat, utimens: whitespace cleanup
5820         * lib/openat.c: Prefer space throughout, rather than mix of 8
5821         spaces vs. tabs.
5822         * lib/at-func.c: Likewise.
5823         * lib/utimens.c: Likewise.
5824
5825         openat: avoid using wrong fd
5826         * lib/openat.c (openat_permissive): Reject user's fd if saving the
5827         working directory chooses same fd.
5828         * lib/at-func.c (AT_FUNC_NAME): Likewise.
5829
5830         mkdir, mkdirat: fix cygwin 1.5.x bug
5831         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
5832         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
5833         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
5834         bug.
5835         (gl_PREREQ_MKDIR): Delete unused macro.
5836         * modules/mkdir (Files): Track file rename.
5837         (configure.ac): Update macro name.
5838         * modules/openat (Depends-on): Add mkdir.
5839         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
5840
5841         mkdir, mkdirat: add tests
5842         * modules/mkdir-tests: New test.
5843         * tests/test-mkdir.h: New file.
5844         * tests/test-mkdir.c: Likewise.
5845         * tests/test-mkdirat.c: Likewise.
5846         * modules/openat-tests (Files): Add new files.
5847         (Makefile.am): Run new test.
5848
5849 2009-10-06  Eric Blake  <ebb9@byu.net>
5850
5851         doc: tweak *at function documentation
5852         * doc/posix-functions/faccessat.texi (faccessat): Mention
5853         known issue with replacement.
5854         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
5855         * doc/posix-functions/linkat.texi (linkat): Likewise.
5856         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
5857         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
5858         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5859         * doc/posix-functions/renameat.texi (renameat): Likewise.
5860         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5861
5862         openat: fix GNU/Hurd bug in unlinkat
5863         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
5864         broken.
5865         * doc/posix-functions/unlink.texi (unlink): Document this.
5866         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
5867
5868         fdopendir: fix GNU/Hurd bug
5869         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
5870         allowing non-directory fds.
5871         * lib/fdopendir.c (rpl_fdopendir): Work around it.
5872         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5873         * modules/dirent (Makefile.am): Substitute it.
5874         * lib/dirent.in.h (fdopendir): Declare replacement.
5875         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
5876         * tests/test-fdopendir.c (main): Test something other than
5877         /dev/null, since on Hurd that behaves like a directory.
5878
5879         test-symlink: port to GNU/Hurd
5880         * tests/test-symlink.h (test_symlink): Relax expected errno.
5881
5882         doc: tweak more cygwin information
5883         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
5884         now compatible with glibc.
5885         * doc/posix-functions/getopt.texi (getopt): Likewise.
5886
5887         getopt-gnu: add another test
5888         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
5889         guarantee behavior relied on by m4.
5890         * tests/test-getopt.c (main): Use it.
5891         * modules/getopt-posix-tests (Depends-on): Add setenv.
5892         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
5893
5894         getopt: fix compilation on darwin
5895         * lib/getopt.in.h (includes): Leave breadcrumbs during system
5896         include.
5897         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
5898         Reported by Ludovic Courtès.
5899
5900 2009-10-06  Bruno Haible  <bruno@clisp.org>
5901
5902         * modules/size_max (Description): Discourage its use.
5903         Reported by Simon Josefsson.
5904
5905 2009-10-06  Jim Meyering  <meyering@redhat.com>
5906
5907         linkat: avoid compilation failure
5908         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
5909
5910 2009-10-05  Eric Blake  <ebb9@byu.net>
5911
5912         linkat: support Linux 2.6.17
5913         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
5914         linkat on Linux, but allow cache variable override.
5915         * lib/linkat.c (rpl_linkat): Define override.
5916         * modules/linkat (Depends-on): Add symlinkat.
5917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
5918         * modules/unistd (Makefile.am): Substitute it.
5919         * lib/unistd.in.h (linkat): Declare replacement.
5920         Reported by Pádraig Brady.
5921
5922         quotearg: port test to systems with C.UTF-8 locale
5923         * tests/test-quotearg.c (struct result_strings): Add another
5924         member, differentiating between C.ASCII and C.UTF-8 handling.
5925         (compare_strings): Add parameter.
5926         (main): Adjust all callers.
5927
5928         getopt: avoid clash with FreeBSD _getopt_internal
5929         * lib/getopt.in.h (_getopt_internal): Override the name.
5930         * lib/getopt_int.h (includes): Pick up any overrides.
5931         Reported by Reuben Thomas.
5932
5933         hash: allow C89 compilation
5934         * lib/hash.c (check_tuning): Move declaration before statement.
5935         Reported by Reuben Thomas.
5936
5937 2009-10-05  Karl Berry  <karl@gnu.org>
5938
5939         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
5940
5941 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
5942             Bruno Haible  <bruno@clisp.org>
5943
5944         * lib/uname.c (uname): Use a table-driven algorithm to compute
5945         Windows NT versions.
5946
5947 2009-10-04  Bruno Haible  <bruno@clisp.org>
5948
5949         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
5950         program_invocation_short_name.
5951         * modules/progname (configure.ac): Test for presence of
5952         program_invocation_short_name.
5953         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
5954
5955 2009-10-04  Bruno Haible  <bruno@clisp.org>
5956
5957         * lib/progname.c (set_program_name): Fix comment.
5958         Reported by Jim Meyering.
5959
5960 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
5961             Bruno Haible  <bruno@clisp.org>
5962
5963         * lib/uname.c: Include <string.h>.
5964         (uname): Do only one call to GetVersionEx in the common case.
5965
5966 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
5967             Bruno Haible  <bruno@clisp.org>
5968
5969         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
5970         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
5971         (uname): Add support for Windows CE and various non-x86 CPU types.
5972
5973 2009-10-03  Bruno Haible  <bruno@clisp.org>
5974
5975         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
5976         invocation to tests/configure.ac.
5977         Reported by Ian Beckwith <ianb@erislabs.net>.
5978
5979 2009-10-02  Eric Blake  <ebb9@byu.net>
5980
5981         fchdir: avoid compiler warning
5982         * lib/fchdir.c (canonicalize_file_name)
5983         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
5984
5985         test-open: support mingw errno values
5986         * tests/test-open.h (test_open): Relax test.
5987         * tests/test-fopen.h (test_fopen): Likewise.
5988         * tests/test-openat-safer.c (main): Likewise.
5989
5990         open: fix opening directory on mingw
5991         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
5992
5993         test-open: on GNU/Hurd, /dev/null is a directory
5994         * tests/test-fopen.h (main): Rename...
5995         (test_fopen): ...to this.  Use a guaranteed non-directory when
5996         confirming open behavior on trailing slash.
5997         * tests/test-openat-safer.c (main): Likewise.
5998         * tests/test-open.h (main): Likewise....
5999         (test_open): ...to this.
6000         * tests/test-fopen.c (main): Adjust caller.
6001         * tests/test-fopen-safer.c (main): Likewise.
6002         * tests/test-open.c (main): Likewise.
6003         * tests/test-fcntl-safer.c (main): Likewise.
6004         Reported by Samuel Thibault.
6005
6006         rename, fchdir: don't ignore chdir failure
6007         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
6008         * lib/rename.c (rpl_rename) [W32]: Likewise.
6009         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
6010         an empty destination directory if source cannot be renamed,
6011         although there is still possibility for failure.
6012         * doc/posix-functions/rename.texi (rename): Document the race.
6013         Reported by Jim Meyering.
6014
6015         maint: cleanup whitespace in recent commits
6016         * lib/rename.c (rpl_rename): Remove tabs.
6017         * tests/test-link.h (test_link): Likewise.
6018         * lib/fchdir.c (get_name): Likewise.
6019         Reported by Jim Meyering.
6020
6021 2009-10-02  Ben Pfaff  <blp@gnu.org>
6022
6023         relocatable-prog-wrapper: Add missing dependency on
6024         double-slash-root.
6025         * modules/relocatable-prog-wrapper: Add dependency.
6026         Reported by Ian Beckwith <ianb@erislabs.net>.
6027
6028 2009-10-02  Eric Blake  <ebb9@byu.net>
6029
6030         renameat: fix Solaris bugs
6031         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
6032         needed fixing.
6033         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
6034         * modules/stdio (Makefile.am): Substitute it.
6035         * lib/stdio.in.h (renameat): Declare replacement.
6036         * lib/renameat.c (rpl_renameat): Implement fix.
6037
6038         renameat: new module
6039         * modules/renameat: New file.
6040         * lib/renameat.c (renameat): Likewise.
6041         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
6042         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
6043         * modules/stdio (Makefile.am): Substitute them.
6044         * lib/stdio.in.h (renameat): Declare it.
6045         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6046         * doc/posix-functions/renameat.texi (renameat): Likewise.
6047         * modules/renameat-tests: New test.
6048         * tests/test-renameat.c: Likewise.
6049
6050         rename: fix mingw bugs
6051         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
6052         directory overwrite bugs.
6053
6054         rename: fix another cygwin 1.5 bug
6055         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
6056         checks.
6057         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
6058         unnecessary cygwin workarounds.  Also work around bug with moving
6059         full directory onto an empty one.
6060         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
6061
6062         rename-dest-slash: merge into rename module
6063         * modules/rename-dest-slash (Status): Mark obsolete.
6064         (Depends-on): Add rename.
6065         (Files): Let rename do it all.
6066         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
6067         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
6068         * m4/rename-dest-slash.m4: ...so this file can be deleted.
6069         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
6070         * lib/rename.c (rpl_rename): Update comments.
6071
6072         rename: fix cygwin 1.5.x bugs
6073         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
6074         * lib/rename.c (rpl_rename): Work around them.
6075         * modules/rename (Depends-on): Add same-inode.
6076
6077         rename: fix Solaris 10 bug
6078         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
6079         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
6080         was the only bug.
6081
6082         rename: fix Solaris 9 bug
6083         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
6084         on non-directory.  Avoid calling exit.
6085         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
6086         strdup.
6087         * modules/rename-tests (Depends-on): Drop lstat.
6088         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
6089         (gl_PREREQ_RENAME): Delete unused macro.
6090
6091         rename-dest-slash: fix NetBSD bug
6092         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
6093         links.
6094         * modules/rename-dest-slash (Depends-on): Add same-inode.
6095
6096         rename-tests: new test, exposes several platform bugs
6097         * modules/rename-tests: New file.
6098         * tests/test-rename.h: Likewise.
6099         * tests/test-rename.c: Likewise.
6100         * doc/posix-functions/rename.texi (rename): Improve documentation,
6101         including bugs that will eventually be fixed in gnulib.
6102
6103 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
6104
6105         * lib/uname.c: Include <stdlib.h>
6106         (uname): Assume version info is available.
6107
6108 2009-10-02  Jim Meyering  <meyering@redhat.com>
6109
6110         gnu-web-doc-update: correct --help output
6111         * build-aux/gnu-web-doc-update: Make --help output relevant.
6112
6113         gnu-web-doc-update: add standard options
6114         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
6115
6116         gnu-web-doc-update: New module.
6117         Use this script to automatically update the on-line web documentation
6118         for your GNU project at http://www.gnu.org/software/$pkg/manual/
6119         * modules/gnu-web-doc-update: New file, from coreutils.
6120         * build-aux/gnu-web-doc-update: New script.
6121
6122 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
6123
6124         link: LoadLibrary is not needed.
6125         * lib/link.c: Use GetModuleHandle.
6126
6127 2009-10-01  Eric Blake  <ebb9@byu.net>
6128
6129         getopt: bump serial number
6130         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
6131         change.
6132
6133         tests: tighten link, rmdir, and remove tests
6134         * tests/test-link.h (includes): No need to use <config.h> here.
6135         Clean up if directory hard link was created, otherwise test for
6136         trailing '.'.
6137         * tests/test-linkat.c (main): Simplify.
6138         * tests/test-remove.c (main): Enhance test for trailing '.'.
6139         * tests/test-rmdir.h (test_rmdir_func): Likewise.
6140
6141 2009-10-01  Jim Meyering  <meyering@redhat.com>
6142
6143         maint.mk: requiring "make major" was annoying, for a "minor" release.
6144         What is intended is "stable", to contrast with alpha and beta,
6145         so require "make stable", not "make major".
6146         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
6147         (get_tool_versions): Likewise.
6148         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
6149
6150 2009-09-30  Ben Pfaff  <blp@gnu.org>
6151
6152         Fix broken build of replacement for Windows tmpfile().
6153         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
6154         flags argument added along with the 'mkostemp' module.
6155
6156 2009-09-28  Bruno Haible  <bruno@clisp.org>
6157
6158         Avoid identifier clash with POSIX function 'remove' defined as a macro.
6159         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
6160         to 'remove_elt'.
6161         (gl_list_remove): Update.
6162         * lib/gl_list.c (gl_list_remove): Update.
6163         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
6164         to 'remove_elt'.
6165         (gl_oset_remove): Update.
6166         * lib/gl_list.c (gl_oset_remove): Update.
6167         Reported by Eric Blake.
6168
6169 2009-09-28  Eric Blake  <ebb9@byu.net>
6170
6171         doc: mention yet more cygwin 1.7 status
6172         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
6173         cygwin.
6174         * doc/glibc-functions/execvpe.texi (execvpe): New file.
6175         * doc/gnulib.texi (Glibc unistd.h): Mention it.
6176
6177         argp: fix test failure
6178         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
6179         that are not upper-case.  Pass correct range to tolower.
6180
6181 2009-09-27  Jim Meyering  <meyering@redhat.com>
6182
6183         test-yesno: work around sparc-dash here-document infelicity
6184         Without this change, the literal \177 byte in a here document
6185         would make dash 0.5.5.1-3 access uninitialized memory.
6186         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
6187         Instead, use a marker, "@", and filter through tr to create the desired
6188         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
6189
6190 2009-09-27  Bruno Haible  <bruno@clisp.org>
6191
6192         Disable untested support for new flavours of ACLs on AIX.
6193         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
6194         progress.
6195         * lib/set-mode-acl.c (qset_acl): Likewise.
6196
6197 2008-12-07  Bruno Haible  <bruno@clisp.org>
6198
6199         Add support for new flavours of ACLs on AIX. (Untested.)
6200         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
6201         (file_has_acl): Add support for newer AIX.
6202         * lib/set-mode-acl.c (qset_acl): Likewise.
6203         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
6204         Rainer Tammer <tammer@tammer.net>.
6205
6206 2009-09-26  Eric Blake  <ebb9@byu.net>
6207
6208         argp: fix compilation of getopt
6209         * lib/getopt.in.h (includes): Use different guard than glibc.
6210         Reported by Sergey Poznyakoff.
6211
6212         doc: mention more cygwin 1.7 status
6213         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
6214         bug.
6215         * doc/posix-functions/execl.texi (execl): Likewise.
6216         * doc/posix-functions/execle.texi (execle): Likewise.
6217         * doc/posix-functions/execlp.texi (execlp): Likewise.
6218         * doc/posix-functions/execv.texi (execv): Likewise.
6219         * doc/posix-functions/execve.texi (execve): Likewise.
6220         * doc/posix-functions/execvp.texi (execvp): Likewise.
6221         * doc/glibc-functions/canonicalize_file_name.texi
6222         (canonicalize_file_name): Cygwin 1.7 now provides this.
6223         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
6224         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
6225         on AT_SYMLINK_NOFOLLOW.
6226
6227 2009-09-24  Eric Blake  <ebb9@byu.net>
6228
6229         test-linkat: make test more robust
6230         * tests/test-linkat.c (main): Avoid collision with EEXIST.
6231
6232         getopt: fix inclusion guards for cygwin
6233         * modules/getopt-posix (Depends-on): Add include-next.
6234         (Makefile.am): Substitute more items in replacement header.
6235         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
6236         <getopt.h>.
6237         * lib/getopt.in.h (includes): Use split inclusion guard, and
6238         prefer <getopt.h> over include <unistd.h> when one is present.
6239         (option): Also override name of 'struct option'.
6240
6241         same-inode: revert prior change; it is not yet ready
6242         * NEWS: Undo mention of this change.
6243         * lib/same-inode.h (same-inode.h): Undo tri-state change.
6244         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6245         * lib/cycle-check.c (cycle_check): Likewise.
6246         * lib/same.c (same_name): Likewise.
6247         * lib/at-func2.c (at_func2): Likewise.
6248
6249 2009-09-23  Eric Blake  <ebb9@byu.net>
6250
6251         linkat: new module
6252         * modules/linkat: New file.
6253         * lib/at-func2.c (at_func2): Likewise.
6254         * lib/linkat.c (linkat): Likewise.
6255         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6256         * lib/openat-priv.h (at_func2): Add declaration.
6257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6258         * modules/unistd (Makefile.am): Substitute them.
6259         * lib/unistd.in.h (linkat): Declare it.
6260         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6261         * doc/posix-functions/linkat.texi (linkat): Likewise.
6262         * doc/posix-functions/link.texi (link): Tweak wording.
6263         * tests/test-link.c (main): Move guts...
6264         * tests/test-link.h (test_link): ...into new file.
6265         * modules/linkat-tests: New test.
6266         * tests/test-linkat.c: Likewise.
6267         * modules/link-tests (Files): Ship new file.
6268         (Depends-on): Add stdbool.
6269
6270         dirname: add library-safe mdir_name
6271         * lib/dirname.h (mdir_name): New prototype.
6272         * lib/dirname.c (dir_name): Move guts...
6273         (mdir_name): ...to new function that avoids xalloc_die.
6274
6275         fchdir: another mingw fix
6276         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
6277         * lib/fchdir.c (get_name): New helper method; skips canonicalize
6278         on mingw (where it has not yet been ported), and make it optional
6279         elsewhere.
6280         (_gl_register_fd): Use it.
6281
6282         same-inode: make SAME_INODE tri-state, to port to mingw
6283         * NEWS: Mention this change.
6284         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
6285         st_ino always being 0.
6286         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6287         * lib/cycle-check.c (cycle_check): Likewise.
6288         * lib/same.c (same_name): Likewise.
6289
6290         lstat: avoid mingw compilation error
6291         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
6292         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
6293         lstat ourselves.
6294         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
6295         was adequate.
6296         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
6297         the checks for lstat.
6298         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
6299
6300         link: fix test failure on Solaris 9
6301         * lib/link.c (rpl_link): Don't assume link will catch bogus
6302         trailing slash on source.
6303
6304         test-symlinkat: enhance test
6305         * tests/test-readlink.c (main): Move guts...
6306         * tests/test-readlink.h (test_readlink): ...into new file.
6307         * tests/test-symlink.c (main): Move guts...
6308         * tests/test-symlink.h (test_symlink): ...into new file.
6309         * tests/test-symlinkat.c (main): Use new files for further
6310         coverage.
6311         (do_symlink, do_readlink): New helper functions.
6312         * modules/symlink-tests (Files): Ship new file.
6313         (Depends-on): Add stdbool.
6314         * modules/readlink-tests (Files): Ship new file.
6315         (Depends-on): Add stdbool.
6316         * modules/symlinkat-tests (Files): Use new files.
6317
6318 2009-09-23  Eric Blake  <ebb9@byu.net>
6319
6320         readlink: document portability issue with symlink length
6321         * doc/posix-functions/lstat.texi (lstat): Mention that some file
6322         systems have bogus st_size on symlinks, and mention the
6323         areadlink-with-size module.
6324         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
6325         * doc/posix-functions/readlink.texi (readlink): Mention the
6326         areadlink module, and ERANGE failure.
6327         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6328         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
6329
6330         readlink: fix Solaris 9 bug with trailing slash
6331         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
6332         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
6333         * doc/posix-functions/readlink.texi (readlink): Document this.
6334         * modules/readlink-tests: New test.
6335         * tests/test-readlink.c: Likewise.
6336
6337         readlink: fix cygwin 1.5.x bug with return type
6338         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
6339         * lib/unistd.in.h (readlink): Use ssize_t.
6340         * lib/readlink.c (readlink): Likewise.
6341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6342         * modules/unistd (Makefile.am): Substitute it.
6343         * lib/unistd.in.h (readlink): Declare replacement.
6344         * doc/posix-functions/readlink.texi (readlink): Document this.
6345
6346         symlink: use throughout gnulib
6347         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
6348         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
6349         symlink is not used.
6350         * modules/symlinkat (Depends-on): Add symlink.
6351         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6352         * modules/canonicalize-tests (Depends-on): Likewise.
6353         * modules/lstat-tests (Depends-on): Likewise.
6354         * modules/openat-tests (Depends-on): Likewise.
6355         * modules/remove-tests (Depends-on): Likewise.
6356         * modules/rmdir-tests (Depends-on): Likewise.
6357         * modules/unlink-tests (Depends-on): Likewise.
6358         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
6359         * tests/test-canonicalize.c (symlink): Likewise.
6360         * tests/test-fstatat.c (symlink): Likewise.
6361         * tests/test-lstat.c (symlink): Likewise.
6362         * tests/test-remove.c (symlink): Likewise.
6363         * tests/test-rmdir.c (symlink): Likewise.
6364         * tests/test-unlink.c (symlink): Likewise.
6365         * tests/test-unlinkat.c (symlink): Likewise.
6366
6367         symlink: new module, for Solaris 9 bug
6368         * modules/symlink: New file.
6369         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6370         * lib/symlink.c: Likewise.
6371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6372         * modules/unistd (Makefile.am): Substitute them.
6373         * lib/unistd.in.h (symlink): Declare replacement.
6374         * MODULES.html.sh (File system functions): Mention it.
6375         * doc/posix-functions/symlink.texi (symlink): Likewise.
6376         * modules/symlink-tests: New test.
6377         * tests/test-symlink.c: Likewise.
6378
6379 2009-09-23  Bruno Haible  <bruno@clisp.org>
6380
6381         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
6382         when needed.
6383         Test case: gnulib-tool --import --with-tests atexit inttypes.
6384         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
6385
6386 2009-09-23  Bruno Haible  <bruno@clisp.org>
6387
6388         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
6389         subcommand, not in a subshell.
6390
6391 2009-09-22  Eric Blake  <ebb9@byu.net>
6392
6393         unistd: sort replacement declarations
6394         * lib/unistd.in.h: Sort declarations.
6395
6396         open, openat: minor optimization
6397         * lib/open.c (open): If open succeeded, len is non-zero.
6398         * lib/openat.c (rpl_openat): Likewise.
6399
6400         link-follow: ensure correct result
6401         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
6402         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
6403         distinguish between possible failures.
6404
6405 2009-09-21  Eric Blake  <ebb9@byu.net>
6406
6407         fts: avoid compiler warning
6408         * lib/fts.c (dirent_inode_sort_may_be_useful)
6409         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
6410
6411 2009-09-19  Bruno Haible  <bruno@clisp.org>
6412
6413         * lib/progreloc.c (canonicalize_file_name): New declaration.
6414
6415 2009-09-19  Eric Blake  <ebb9@byu.net>
6416
6417         link: fix quoting
6418         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
6419
6420         openat: fix openat bugs on Solaris 9
6421         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
6422         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
6423         * modules/openat (Depends-on): Add open.
6424         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
6425         * modules/fcntl-h (Makefile.am): Substitute it.
6426         * lib/fcntl.in.h (openat): Declare replacement.
6427         * doc/posix-functions/openat.texi (openat): Document this.
6428
6429         openat: move fstatat and unlinkat into correct files
6430         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
6431         compiled.
6432         * lib/openat.c (fstatat, unlinkat): Move...
6433         * lib/fstatat.c (fstatat): ...into correct files.
6434         * lib/unlinkat.c (unlinkat): Likewise.
6435
6436         openat: fix unlinkat bugs on Solaris 9
6437         * lib/unlinkat.c (unlinkat): New file.
6438         * modules/openat (Depends-on): Add unlink.
6439         (Files): Distribute it.
6440         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
6441         trailing slash behavior is broken.
6442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6443         * modules/unistd (Makefile.am): Substitute it.
6444         * lib/unistd.in.h (unlinkat): Declare replacement.
6445         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
6446
6447         openat: fix fstatat bugs on Solaris 9
6448         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
6449         stat.
6450         * doc/posix-functions/fstatat.texi (fstatat): Document this.
6451
6452         test-unlinkat: enhance test, to expose Solaris 9 bug
6453         * tests/test-unlink.c (main): Factor guts...
6454         * tests/test-unlink.h (test_rmdir_func): ...into new file.
6455         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
6456         * tests/test-rmdir.c (main): Adjust caller.
6457         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
6458         (unlinker): New helper function.
6459         (rmdirat): Enhance check.
6460         * modules/rmdir-tests (Depends-on): Add stdbool.
6461         * modules/unlink-tests (Depends-on): Likewise.
6462         (Files): Add test-unlink.h.
6463         * modules/openat-tests (Files): Likewise.
6464         (Depends-on): Add unlinkdir.
6465
6466         test-fstatat: new test, to expose Solaris 9 bugs
6467         * tests/test-stat.c (main): Factor guts...
6468         * tests/test-stat.h (test_stat_func): ...into new file.
6469         * tests/test-lstat.c (main): Factor guts...
6470         * tests/test-lstat.h (test_lstat_func): ...into new file.
6471         * tests/test-fstatat.c: New file.
6472         * modules/stat-tests (Files): Add test-stat.h.
6473         * modules/lstat-tests (Files): Add test-lstat.h.
6474         (Depends-on): Add stdbool.
6475         * modules/openat-tests (Depends-on): Add pathmax.
6476         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
6477         (Makefile.am): Run new test.
6478
6479         remove: new module, for mingw and Solaris 9 bugs
6480         * modules/remove: New file.
6481         * lib/remove.c: Likewise.
6482         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
6483         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
6484         * modules/stdio (Makefile.am): Use them.
6485         * lib/stdio.in.h (remove): Declare replacement.
6486         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6487         * doc/posix-functions/remove.texi (remove): Likewise.
6488         * modules/remove-tests: New test.
6489         * tests/test-remove.c: Likewise.
6490
6491         unlink: new module, for Solaris 9 bug
6492         * modules/unlink: New file.
6493         * lib/unlink.c: Likewise.
6494         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6496         * modules/unistd (Makefile.am): Use them.
6497         * lib/unistd.in.h (stat): Declare replacement.
6498         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6499         * doc/posix-functions/unlink.texi (unlink): Likewise.
6500         * modules/unlink-tests: New test.
6501         * tests/test-unlink.c: Likewise.
6502
6503         lstat: fix Solaris 9 bug
6504         * lib/lstat.c (lstat): Also check for trailing slash on
6505         non-symlink, non-directories.  Use stat module to simplify logic.
6506         * doc/posix-functions/lstat.texi (lstat): Document it.
6507         * modules/lstat-tests (Depends-on): Add errno, same-inode.
6508         (configure.ac): Check for symlink.
6509         * tests/test-lstat.c (main): Add more tests.
6510
6511         stat: add as dependency to other modules
6512         * modules/chown (Depends-on): Add stat.
6513         * modules/euidaccess (Depends-on): Likewise.
6514         * modules/fchdir (Depends-on): Likewise.
6515         * modules/isdir (Depends-on): Likewise.
6516         * modules/link (Depends-on): Likewise.
6517         * modules/lstat (Depends-on): Likewise.
6518         * modules/mkdir-p (Depends-on): Likewise.
6519         * modules/modechange (Depends-on): Likewise.
6520         * modules/open (Depends-on): Likewise.
6521         * modules/readlink (Depends-on): Likewise.
6522         * modules/same (Depends-on): Likewise.
6523
6524         stat: fix Solaris 9 bug
6525         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
6526         slash.
6527         * lib/stat.c (rpl_stat): Work around it.
6528         * doc/posix-functions/stat.texi (stat): Update documentation.
6529
6530         stat: new module, for mingw bug
6531         * modules/stat: New file.
6532         * lib/stat.c: Likewise.
6533         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6534         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
6535         * modules/sys_stat (Makefile.am): Use them.
6536         * lib/sys_stat.in.h (stat): Declare replacement.
6537         * lib/openat.c (fstatat): Deal with lstat and stat being function
6538         macros.
6539         * modules/openat (Depends-on): Add inline.
6540         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6541         * doc/posix-functions/stat.texi (stat): Likewise.
6542         * modules/stat-tests: New test.
6543         * tests/test-stat.c: Likewise.
6544
6545 2009-09-19  Jim Meyering  <meyering@redhat.com>
6546
6547         syntax-check: detect unnecessary inclusion of canonicalize.h
6548         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
6549
6550 2009-09-19  Eric Blake  <ebb9@byu.net>
6551
6552         canonicalize-lgpl: adjust clients to use correct header
6553         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
6554         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
6555         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
6556         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
6557         * lib/progreloc.c (includes): Likewise.
6558
6559 2009-09-19  Jim Meyering  <meyering@redhat.com>
6560
6561         test-posixtm.c: correct a comment
6562         * tests/test-posixtm.c: Correct first-line comment.
6563         Spotted by Eric Blake.
6564
6565 2009-09-16  Jim Meyering  <meyering@redhat.com>
6566
6567         posixtm-tests: make T const-correct; add a test case
6568         * tests/test-posixtm.c (T): Declare const.
6569         Add a test for -(2^31+1).
6570         Remove useless can-succeed-only-in-2002 test.
6571
6572         posixtm-tests: adjust the sole failing test
6573         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
6574         expected output matches what mktime now produces.  Cross-checked via
6575         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
6576
6577         posixtm: move #ifdef'd tests into a new module
6578         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
6579         * tests/test-posixtm.c: ... this new file.
6580         * modules/posixtm-tests: New module.
6581
6582 2009-09-19  Eric Blake  <ebb9@byu.net>
6583
6584         openat: simplify use of at-func.c
6585         * lib/at-func.c (includes): Include prerequisites here, to
6586         simplify requirements on client files.
6587         * lib/openat-priv.h: Add double-inclusion guard.
6588         * lib/faccessat.c (includes): Simplify.
6589         * lib/fchmodat.c (includes): Likewise.
6590         * lib/fchownat.c (includes): Likewise.
6591         * lib/mkdirat.c (includes): Likewise.
6592         * lib/mkfifoat.c (includes): Likewise.
6593         * lib/symlinkat.c (includes): Likewise.
6594
6595         openat: allow return of fd 0
6596         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
6597         * modules/save-cwd (Depends-on): Replace fcntl-safer with
6598         unistd-safer.
6599         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
6600         <fcntl.h>; this module does not leak fds.
6601         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
6602         must be allowed to return 0, leaving openat_safer to add the
6603         safety.
6604         (openat_permissive): Avoid writing to just-opened fd 2 if
6605         restoring the current directory fails.
6606         * lib/openat-die.c (openat_restore_fail): Add comment.
6607         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
6608         (save_cwd): Guarantee safe fd, but without use of open_safer.
6609         * tests/test-openat.c: New test.
6610         * modules/openat-tests (Files, Makefile.am): Distribute and build
6611         new file.
6612
6613         relocatable-prog-wrapper: fix build
6614         * modules/relocatable-prog-wrapper (Files): Update name of
6615         canonicalize m4 file, broken on 2009-09-17.
6616         Reported by emad hajjar <aleppos@hotmail.com>.
6617
6618 2009-09-19  Bruno Haible  <bruno@clisp.org>
6619
6620         * lib/safe-alloc.h: Use the standard header with GPL copyright.
6621         * lib/safe-alloc.c: Likewise.
6622         Reported by Ian Beckwith <ianb@erislabs.net>.
6623
6624 2009-09-18  Bruno Haible  <bruno@clisp.org>
6625
6626         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
6627         Reported by <erobles@sensacd.com.mx>.
6628
6629 2009-09-17  Eric Blake  <ebb9@byu.net>
6630
6631         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
6632         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
6633         slashes when checking if last component is missing.
6634         * tests/test-canonicalize.c (main): Test this.
6635
6636         canonicalize, canonicalize-lgpl: honor // if distinct from /
6637         * modules/canonicalize (Files): Add double-slash-root.m4.
6638         * modules/canonicalize-lgpl (Files): Likewise.
6639         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
6640         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
6641         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
6642         fallback definition.
6643         (canonicalize_filename_mode): Use it to protect //.
6644         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
6645         (__realpath): Likewise.
6646         * tests/test-canonicalize.c (main): Test this.
6647         * tests/test-canonicalize-lgpl.c (main): Likewise.
6648         * modules/canonicalize-tests (Depends-on): Add same-inode.
6649         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6650
6651         canonicalize-lgpl: fix glibc bug with trailing slash
6652         * m4/canonicalize-lgpl.m4: Move contents...
6653         * m4/canonicalize.m4: ...here.
6654         (gl_CANONICALIZE_LGPL): Factor realpath check...
6655         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
6656         glibc 2.3.5 bug, fixed 2005-04-27.
6657         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
6658         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
6659         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
6660         * modules/canonicalize-lgpl (Files): Manage file rename.
6661         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
6662         * modules/stdlib (Makefile.am): Substitute witness.
6663         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
6664         is needed.
6665         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
6666         replacement is required.
6667         * lib/canonicalize.c (canonicalize_file_name): Likewise.
6668         * doc/glibc-functions/canonicalize_file_name.texi
6669         (canonicalize_file_name): Document this.
6670         * doc/posix-functions/realpath.texi (realpath): Likewise.
6671
6672         canonicalize-lgpl: reject non-directory with trailing slash
6673         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
6674         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
6675         catches failures in glibc 2.3.5.
6676         * tests/test-canonicalize.c (main): Likewise.
6677
6678         canonicalize-lgpl: use native realpath if it works
6679         * lib/canonicalize-lgpl.c (realpath): Guard with
6680         FUNC_REALPATH_WORKS.
6681         * lib/stdlib.in.h (realpath): Make declaration optional based on
6682         HAVE_REALPATH.
6683         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
6684         native realpath works.
6685         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
6686         * modules/stdlib (Makefile.am): Substitute witness.
6687
6688         canonicalize, canonicalize-lgpl: use <stdlib.h>
6689         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
6690         (Include): Mention <stdlib.h>.
6691         (configure.ac): Mention functions we provide.
6692         * modules/canonicalize (configure.ac): Likewise.
6693         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
6694         realpath if canonicalize_file_name is missing.
6695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
6696         * modules/stdlib (Makefile.am): Substitute witnesses.
6697         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
6698         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
6699         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
6700         * NEWS: Document this.
6701         * doc/glibc-functions/canonicalize_file_name.texi
6702         (canonicalize_file_name): Likewise.
6703         * doc/posix-functions/realpath.texi (realpath): Likewise.
6704         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
6705
6706         test-canonicalize: consolidate into single C program
6707         * tests/test-canonicalize.sh: Delete; move setup into...
6708         * tests/test-canonicalize.c (main): ...the program, making it
6709         easier to run in debugger.  Add some tests.
6710         * modules/canonicalize-tests (Files): Remove unused file.
6711         (Depends-on): Add progname.
6712         (configure.ac, Makefile.am): Simplify.
6713
6714         test-canonicalize-lgpl: consolidate into single C program
6715         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
6716         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
6717         easier to run in debugger.  Add some tests.
6718         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
6719         (configure.ac, Makefile.am): Simplify.
6720
6721         canonicalize: avoid resolvepath
6722         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
6723         unnecessary checks.
6724         * lib/canonicalize.c (includes): Simplify.
6725         (canonicalize_file_name): Drop resolvepath implementation.
6726         * modules/canonicalize (Depends-on): Drop filenamecat.
6727
6728         canonicalize: don't lose errno
6729         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
6730         over calls to free.
6731
6732         canonicalize: simplify errno handling
6733         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
6734         assignment.
6735
6736         canonicalize, canonicalize-lgpl: update module dependencies
6737         * modules/canonicalize (Depends-on): Add extensions, lstat,
6738         pathmax, stdlib.
6739         (Files): Drop pathmax.h.
6740         (configure.ac): Adjust macro name.
6741         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
6742         lstat, stdlib, sys_stat.
6743         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
6744         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
6745         extensions.
6746         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
6747         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
6748         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
6749         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
6750         declaration, if available.
6751         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
6752         we can rely on the readlink module.
6753         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
6754         (includes): Use <unistd.h> unconditionally.
6755
6756 2009-09-17  Eric Blake  <ebb9@byu.net>
6757
6758         maint: make Include sections of modules consistent
6759         * modules/alloca: Use only header name; no need to list #include.
6760         * modules/alloca-opt: Likewise.
6761         * modules/arpa_inet: Likewise.
6762         * modules/canon-host: Likewise.
6763         * modules/configmake: Likewise.
6764         * modules/dirent: Likewise.
6765         * modules/eealloc: Likewise.
6766         * modules/environ: Likewise.
6767         * modules/fchdir: Likewise.
6768         * modules/fcntl: Likewise.
6769         * modules/fcntl-h: Likewise.
6770         * modules/gethrxtime: Likewise.
6771         * modules/gettime: Likewise.
6772         * modules/ignore-value: Likewise.
6773         * modules/inet_ntop: Likewise.
6774         * modules/inet_pton: Likewise.
6775         * modules/inttypes: Likewise.
6776         * modules/isnand-nolibm: Likewise.
6777         * modules/isnanf-nolibm: Likewise.
6778         * modules/mbchar: Likewise.
6779         * modules/mbfile: Likewise.
6780         * modules/mbiter: Likewise.
6781         * modules/mbuiter: Likewise.
6782         * modules/netdb: Likewise.
6783         * modules/netinet_in: Likewise.
6784         * modules/nproc: Likewise.
6785         * modules/pagealign_alloc: Likewise.
6786         * modules/poll: Likewise.
6787         * modules/printf-frexp: Likewise.
6788         * modules/pthread: Likewise.
6789         * modules/putenv: Likewise.
6790         * modules/random_r: Likewise.
6791         * modules/relocatable-prog: Likewise.
6792         * modules/search: Likewise.
6793         * modules/select: Likewise.
6794         * modules/selinux-h: Likewise.
6795         * modules/settime: Likewise.
6796         * modules/signal: Likewise.
6797         * modules/size_max: Likewise.
6798         * modules/socklen: Likewise.
6799         * modules/ssize_t: Likewise.
6800         * modules/stdarg: Likewise.
6801         * modules/stdbool: Likewise.
6802         * modules/stddef: Likewise.
6803         * modules/stdint: Likewise.
6804         * modules/stdio: Likewise.
6805         * modules/stdlib: Likewise.
6806         * modules/string: Likewise.
6807         * modules/strings: Likewise.
6808         * modules/sys_file: Likewise.
6809         * modules/sys_ioctl: Likewise.
6810         * modules/sys_select: Likewise.
6811         * modules/sys_socket: Likewise.
6812         * modules/sys_stat: Likewise.
6813         * modules/sys_time: Likewise.
6814         * modules/sys_times: Likewise.
6815         * modules/sys_utsname: Likewise.
6816         * modules/sys_wait: Likewise.
6817         * modules/sysexits: Likewise.
6818         * modules/time: Likewise.
6819         * modules/times: Likewise.
6820         * modules/tmpfile: Likewise.
6821         * modules/trim: Likewise.
6822         * modules/unistd: Likewise.
6823         * modules/wchar: Likewise.
6824         * modules/wctype: Likewise.
6825
6826 2009-09-17  Bruno Haible  <bruno@clisp.org>
6827
6828         Make getdate.y compile on QNX and NetBSD 5 / i386.
6829         * m4/getdate.m4 (gl_GETDATE): Conditionally define
6830         TIME_T_FITS_IN_LONG_INT.
6831         * lib/getdate.y (long_time_t): New type.
6832         (relative_time): Change type of 'seconds' field to long_time_t.
6833         (get_date): Update types of local variables. Check against overflow
6834         during conversion from long_time_t to time_t.
6835         Reported by Matt Kraai <kraai@ftbfs.org>
6836         and Hasso Tepper <hasso@netbsd.org>.
6837
6838 2009-09-17  Bruno Haible  <bruno@clisp.org>
6839
6840         * modules/COPYING: Update copyright years.
6841         * modules/README: Likeiwse.
6842         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
6843         Reported by Ian Beckwith <ianb@erislabs.net>.
6844
6845 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
6846
6847         * users.txt: Update references for gnuit package.
6848
6849 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
6850
6851         * m4/getdelim.m4: Fix typo in copyright line.
6852
6853 2009-09-17  Bruno Haible  <bruno@clisp.org>
6854
6855         * lib/atoll.c: Use the standard header with GPL copyright.
6856         * lib/argz.in.h: Likewise.
6857         * lib/glob.c: Likewise.
6858         * lib/glob-libc.h: Likewise.
6859         * lib/random_r.c: Likewise.
6860         * lib/siglist.h: Likewise.
6861         * lib/strsignal.c: Likewise.
6862         Reported by Ian Beckwith <ianb@erislabs.net>.
6863
6864 2009-09-17  Eric Blake  <ebb9@byu.net>
6865
6866         rmdir: ensure correct dependency order
6867         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
6868
6869 2009-09-17  Bruno Haible  <bruno@clisp.org>
6870
6871         Disable assertion that fails on NetBSD 5 / i386.
6872         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
6873         Reported by Sam Steingold <sds@gnu.org>
6874         and Hasso Tepper <hasso@netbsd.org>.
6875
6876 2009-09-16  Eric Blake  <ebb9@byu.net>
6877
6878         unlinkdir: port to mingw
6879         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
6880         on which no one can unlink a directory.
6881
6882         stdlib: sort witness names
6883         * modules/stdlib (Makefile.am): Sort replacements.
6884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
6885         * lib/stdlib.in.h: Likewise.
6886
6887         parse-duration-tests: avoid link failure
6888         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
6889         LIBINTL.
6890         Reported by Tom G. Christensen.
6891
6892         openat-tests: ensure unlinkat behaves like rmdir
6893         * tests/test-rmdir.c (main): Factor guts...
6894         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
6895         * modules/rmdir-tests (Files): Ship new file.
6896         * modules/openat-tests: New test.
6897         * tests/test-unlinkat.c: Likewise.
6898
6899         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
6900         * modules/rmdir-errno (Status, Notice): Now obsolete.
6901
6902         rmdir: work around cygwin 1.5.x and mingw bugs
6903         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
6904         * lib/rmdir.c (rmdir): Work around it.
6905         * modules/rmdir (Status, Notice): No longer obsolete.
6906         (Files): Add dos.m4.
6907         (Depends-on): Add unistd.
6908         (configure.ac): Set witnesses.
6909         (License): Relax to LGPLv2+.
6910         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
6911         * modules/unistd (Makefile.am): Substitute witnesses.
6912         * lib/unistd.in.h (rmdir): Declare replacement.
6913         * doc/posix-functions/rmdir.texi (rmdir): Document this.
6914         * modules/rmdir-tests: New tests.
6915         * tests/test-rmdir.c: Likewise.
6916
6917 2009-09-15  Eric Blake  <ebb9@byu.net>
6918
6919         fchdir: improve use of replacement functions
6920         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
6921         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
6922         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
6923         REPLACE_CLOSEDIR.
6924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
6925         * modules/sys_stat (Makefile.am): Substitute correct witness.
6926         * modules/dirent (Makefile.am): Likewise.
6927         * modules/unistd (Makefile.am): Likewise.
6928         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
6929         * lib/unistd.in.h (dup): Likewise.
6930         * lib/sys_stat.in.h (fstat): Likewise.
6931
6932         maint: ignore gnulib-tool temp files
6933         * .gitignore: Ignore files created during gnulib-tool --test.
6934
6935 2009-09-13  Jim Meyering  <meyering@redhat.com>
6936
6937         posixtm: don't reject a time that specify "60" as the number of seconds
6938         * lib/posixtm.c (posixtime): The code to reject invalid dates
6939         would also reject a time specified with the .60 suffix.
6940         But POSIX allows that, in order to accommodate leap seconds.
6941         So don't reject it.
6942         (main): Adjust tests accordingly.
6943         * modules/posixtm (Depends-on): Add stpcpy.
6944
6945 2009-09-11  Jim Meyering  <meyering@redhat.com>
6946
6947         announce-gen: include [$release_type] in emitted Subject:
6948         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
6949         e.g., [stable] in the emitted Subject: line.
6950
6951 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6952
6953         Remove obsolete macros from several modules.
6954         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
6955         obsolete Autoconf macros with their modern counterparts.
6956         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
6957         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
6958         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
6959         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
6960         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
6961         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6962         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6963         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6964         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6965         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
6966         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6967         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6968         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
6969         * m4/sockets.m4 (gl_SOCKETS): Likewise.
6970         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
6971         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
6972         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
6973         * m4/time_r.m4 (gl_TIME_R): Likewise.
6974         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6975         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
6976         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
6977
6978         Fix copyright header in build-aux scripts.
6979         * build-aux/git-version-gen: Fix copyright header to match GPLv3
6980         recommendation.
6981         * build-aux/ncftpput-ftp: Likewise.
6982         * build-aux/update-copyright: Likewise.
6983
6984 2009-09-09  Eric Blake  <ebb9@byu.net>
6985
6986         test-link: allow Linux choice of errno
6987         * tests/test-link.c (main): Relax test for alternate error.
6988
6989         strndup: fix improper m4 caching
6990         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
6991         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
6992         (gl_PREREQ_STRNDUP): Delete.
6993         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
6994         * modules/string (Makefile.am): Substitute it.
6995         * lib/string.in.h (strndup): Modernize prototype.
6996
6997         getcwd: port to mingw
6998         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
6999         different from the POSIX assumptions made throughout the getcwd
7000         module; fortunately, the mingw getcwd does not need replacement.
7001         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
7002         * modules/getcwd-tests: New test.
7003         * tests/test-getcwd.c: Likewise.
7004
7005         link: fix platform bugs
7006         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
7007         * lib/link.c (link): Work around them.  Fix related mingw bug.
7008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
7009         * modules/unistd (Makefile.am): Substitute it.
7010         * lib/unistd.in.h (link): Declare replacement.
7011         * doc/posix-functions/link.texi (link): Document this.
7012         * modules/link (Depends-on): Add strdup-posix, sys_stat.
7013
7014         test-link: consolidate into single C program, test more cases
7015         * tests/test-link.sh: Delete.
7016         * tests/test-link.c: Test more error conditions.  Exposes bugs on
7017         at least Cygwin and Solaris.
7018         * modules/link-tests (Files): Remove unused file.
7019         (Depends-on): Add errno, sys_stat.
7020         (Makefile.am): Simplify.
7021
7022 2009-09-08  Bruno Haible  <bruno@clisp.org>
7023
7024         Work around towlower, towupper bug on mingw.
7025         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
7026         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
7027         * doc/posix-functions/towlower.texi: Mention the mingw bug.
7028         * doc/posix-functions/towupper.texi: Likewise.
7029         Reported by Eric Blake.
7030
7031 2009-09-08  Jim Meyering  <meyering@redhat.com>
7032
7033         build: don't try to run autoheader if we don't use it
7034         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
7035         is not used in configure.ac.
7036
7037 2009-09-08  Eric Blake  <ebb9@byu.net>
7038
7039         euidaccess: fix compilation error
7040         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
7041
7042         rawmemchr: relax license
7043         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
7044         okay.
7045         Reported by Jim Meyering.
7046
7047         mkfifoat: new module
7048         * modules/mkfifoat: New file.
7049         * lib/mkfifoat.c: Likewise.
7050         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
7051         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7052         * modules/sys_stat (Makefile.am): Use them.
7053         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
7054         * MODULES.html.sh (File system functions): Mention module.
7055         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
7056         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
7057         * modules/mkfifoat-tests: New test.
7058         * tests/test-mkfifoat.c: Likewise.
7059
7060         strchrnul: relax license
7061         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
7062         okay.
7063         Reported by Jim Meyering.
7064
7065 2009-09-08  Eric Blake  <ebb9@byu.net>
7066
7067         fstatat: fix compilation on Solaris
7068         * lib/fstatat.c (includes): Add fcntl.h.
7069         Reported by Pádraig Brady.
7070
7071 2009-09-07  Eric Blake  <ebb9@byu.net>
7072
7073         rename: modernize replacement
7074         * modules/rename (Depends-on): Add stdio.
7075         (configure.ac): Declare witness.
7076         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
7077         stdio take care of replacement.
7078         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
7079         * modules/stdio (Makefile.am): Substitute them.
7080         * lib/stdio.in.h (rename): Declare replacement.
7081         * lib/rename.c (includes): Allow cross-compilation to non-windows
7082         machines.
7083         * doc/posix-functions/rename.texi (rename): Improve
7084         documentation.
7085
7086         stdio: sort witness names
7087         * modules/stdio (Makefile.am): Sort replacements.
7088         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7089         * lib/stdio.in.h: Likewise.
7090
7091         getcwd: minor cleanups
7092         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
7093         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
7094
7095         openat: provide more convenience names
7096         * modules/faccessat (configure.ac): Add C witness.
7097         * lib/unistd.in.h (readlinkat): Fix typo.
7098         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
7099         convenience wrappers.
7100         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
7101         wrappers in syntax checks.
7102
7103 2009-09-06  Eric Blake  <ebb9@byu.net>
7104
7105         doc: fix comments in recent patches
7106         * lib/faccessat.c: Mention correct function.
7107         * lib/fchmodat.c: Likewise.
7108         * lib/fchownat.c: Likewise.
7109         * lib/symlinkat.c: Likewise.
7110         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
7111         constants.
7112
7113         faccessat, symlinkat: continue cleanup of previous patch
7114         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
7115         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
7116         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
7117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
7118         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
7119         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
7120         set.
7121
7122 2009-09-06  Bruno Haible  <bruno@clisp.org>
7123
7124         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
7125         (fstatat): Declare if GNULIB_FSTATAT is set.
7126         (mkdirat): Declare if GNULIB_MKDIRAT is set.
7127         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
7128         (unlinkat): Declare if GNULIB_UNLINKAT is set.
7129         * modules/fcntl-h (Files): Remove m4/openat.m4.
7130         * modules/sys_stat (Files): Remove m4/openat.m4.
7131         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
7132         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
7133         * modules/unistd (Files): Remove m4/openat.m4.
7134         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
7135         GNULIB_OPENAT.
7136         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
7137         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
7138         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7139         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
7140         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
7141         gl_OPENAT_DEFAULTS.
7142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
7143         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
7144         Don't require gl_OPENAT_DEFAULTS.
7145         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
7146         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
7147         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
7148         (gl_OPENAT_DEFAULTS): Remove macro.
7149
7150 2009-09-06  Bruno Haible  <bruno@clisp.org>
7151
7152         * modules/openat (configure.ac): Remove unneeded witness.
7153
7154 2009-09-06  Bruno Haible  <bruno@clisp.org>
7155
7156         Set errno to ENOSYS when a function is entirely unsupported.
7157         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
7158         EOPNOTSUPP.
7159         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
7160         * modules/chown (Depends-on): Remove errno.
7161
7162 2009-09-06  Bruno Haible  <bruno@clisp.org>
7163
7164         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
7165
7166 2009-09-06  Bruno Haible  <bruno@clisp.org>
7167
7168         * lib/sys_stat.in.h: Fix preprocessor command indentation.
7169
7170 2009-09-06  Ben Pfaff  <blp@gnu.org>
7171             Bruno Haible  <bruno@clisp.org>
7172
7173         Work around a glibc bug in strtok_r.
7174         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
7175         Undefine if UNDEFINE_STRTOK_R is set.
7176         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
7177         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7178         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
7179         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
7180         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
7181         UNDEFINE_STRTOK_R.
7182         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
7183
7184 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
7185
7186         exclude: minor fix
7187         * lib/exclude.c: Include wctype.h
7188
7189 2009-09-06  Akim Demaille  <demaille@gostai.com>
7190
7191         bootstrap: improve error message
7192         * build-aux/bootstrap (find_tool): Upon failure, report the list
7193         of candidates.
7194         Honor the initial value of the envvar.
7195
7196 2009-09-05  Eric Blake  <ebb9@byu.net>
7197
7198         symlinkat: new module
7199         * modules/symlinkat: New file.
7200         * lib/symlinkat.c: Likewise.
7201         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
7202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7203         * modules/unistd (Makefile.am): Use them.
7204         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
7205         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
7206         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
7207         * MODULES.html.sh (File system functions): Mention module.
7208         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7209         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7210         * modules/symlinkat-tests: New test.
7211         * tests/test-symlinkat.c: Likewise.
7212
7213         test-openat-safer: add more checks
7214         * tests/test-openat-safer.c (main): Check more code paths.
7215
7216 2009-09-05  Jim Meyering  <meyering@redhat.com>
7217
7218         syntax-check: detect unnecessary inclusion of openat.h
7219         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
7220
7221 2009-09-05  Bruno Haible  <bruno@clisp.org>
7222
7223         Support towlower, towupper.
7224         * doc/posix-functions/towlower.texi: Mention module wctype.
7225         * doc/posix-functions/towupper.texi: Likewise.
7226         * lib/wctype.in.h (towlower, towupper): New functions.
7227         * tests/test-wctype.c: Include stdio.h, stdlib.h.
7228         (ASSERT): New macro.
7229         (e): New variable.
7230         (main): Test also towlower, towupper. Test WEOF argument.
7231         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
7232
7233 2009-09-05  Bruno Haible  <bruno@clisp.org>
7234
7235         Fix conversion behaviour when the input is invalid.
7236         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
7237         mark occurring in first pass of indirect conversion.
7238         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
7239         input.
7240         Found by clang's static analyzer.
7241
7242 2009-09-05  Bruno Haible  <bruno@clisp.org>
7243
7244         * tests/test-striconveh.c (main): Test indirect conversion on platforms
7245         where direct conversion is possible.
7246
7247 2009-09-04  Eric Blake  <ebb9@byu.net>
7248
7249         openat: fail with ENOENT on empty name
7250         * lib/openat-proc.c (openat_proc_name): Special-case the empty
7251         buffer.
7252
7253         link-follow: fix logic bug in prior patch
7254         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
7255         reversed sense of yes and no in prior patch.  Avoid confusing
7256         compilation failure with desired semantics.
7257
7258         link-follow: accomodate mingw and cross-compilation
7259         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
7260         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
7261         cross-compilation results to -1, to make linkat easier to
7262         implement when cross-compiling.  Trivially support mingw.
7263         * modules/link-follow (configure.ac): Call new name.
7264         * NEWS: Mention this.
7265
7266 2009-09-03  Eric Blake  <ebb9@byu.net>
7267
7268         faccessat: compile replacement
7269         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
7270         needed.
7271
7272         fts: fix compilation error
7273         * lib/fts.c (includes): Re-add "openat.h", for
7274         openat_needs_fchdir.
7275
7276         faccessat: new module
7277         * modules/faccessat: New file.
7278         * lib/faccessat.c: Likewise.
7279         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
7280         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7281         * modules/unistd (Makefile.am): Use it.
7282         * lib/unistd.in.h (faccessat): Declare it.
7283         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
7284         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
7285         * MODULES.html.sh (File system functions): Mention it.
7286         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
7287         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7288
7289         euidaccess: prefer POSIX over non-standard implementation
7290         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
7291         * lib/euidaccess.c (euidaccess): Use it if available.
7292
7293         openat: make template easier to use
7294         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
7295         AT_FUNC_F2 to be undefined.
7296         (VALIDATE_FLAG): New macro; use it to reject bad flags.
7297         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
7298         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
7299         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
7300         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
7301         Likewise.
7302         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
7303         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
7304         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
7305         Likewise.
7306
7307         openat: declare in POSIX headers
7308         * NEWS: Mention this.
7309         * modules/openat (configure.ac): Declare witnesses.
7310         (Depends-on): Add fcntl-h, sys_stat, unistd.
7311         (Include): Mention correct headers.
7312         * modules/fcntl-h (Depends-on): Add link-warning.
7313         (Files): Add openat.m4.
7314         (Makefile.am): Substitute witnesses.
7315         * modules/sys_stat (Files, Makefile.am): Likewise.
7316         * modules/unistd (Files, Makefile.am): Likewise.
7317         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
7318         (gl_OPENAT_DEFAULTS): New macro.
7319         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
7320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
7321         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
7322         (SYS_STAT_H): Remove unused variable.
7323         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
7324         * lib/fcntl--.h (includes): Remove unneeded header.
7325         * lib/openat-safer.c (includes): Likewise.
7326         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
7327         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
7328         appropriate headers.
7329         (__OPENAT_PREFIX): Delete.
7330         * lib/fcntl.in.h (openat): Provide declaration.
7331         (AT_FDCWD): Fix Solaris bug.
7332         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
7333         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
7334         * lib/fchmodat.c (includes):  Adjust to find declaration.
7335         * lib/fchownat.c (includes): Likewise.
7336         * lib/mkdirat.c (includes): Likewise.
7337         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
7338         still visible.
7339
7340 2009-09-02  Eric Blake  <ebb9@byu.net>
7341
7342         errno: use consistently
7343         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
7344         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
7345         * lib/canonicalize.c (ELOOP): Likewise.
7346         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
7347         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
7348         * lib/lchown.c (EOPNOTSUPP): Likewise.
7349         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
7350         * lib/savewd.c (ESTALE): Likewise.
7351         * lib/settime.c (ENOSYS): Likewise.
7352         * lib/utimens.c (ENOSYS): Likewise.
7353         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
7354         * lib/chdir-safer.c (ELOOP): Likewise.
7355         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
7356         * modules/c-stack (Depends-on): Add errno.
7357         * modules/canonicalize (Depends-on): Likewise.
7358         * modules/chdir-safer (Depends-on): Likewise.
7359         * modules/fdopendir (Depends-on): Likewise.
7360         * modules/inet_ntop (Depends-on): Likewise.
7361         * modules/inet_pton (Depends-on): Likewise.
7362         * modules/lchown (Depends-on): Likewise.
7363         * modules/openat (Depends-on): Likewise.
7364         * modules/savewd (Depends-on): Likewise.
7365         * modules/settime (Depends-on): Likewise.
7366         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
7367
7368         fts: avoid leaking fds
7369         * modules/fts (Depends-on): Add cloexec.
7370         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
7371         flag.
7372
7373         fts: make directory fds more robust
7374         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
7375         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
7376
7377         backupfile, chdir-long, fts, savedir: make safer
7378         * lib/backupfile.c (includes): Use "dirent--.h", since
7379         numbered_backup can write to stderr during readdir.
7380         * lib/savedir.c (includes): Likewise.
7381         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
7382         emulation can write to stderr on failure.
7383         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
7384         * lib/getcwd.c: Document why opendir_safer is unused.
7385         * lib/glob.c: Likewise.
7386         * lib/scandir.c: Likewise.
7387         * lib/openat-proc.c: Likewise, for open_safer.
7388         * modules/backupfile (Depends-on): Add dirent-safer.
7389         * modules/savedir (Depends-on): Likewise.
7390         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
7391         * modules/chdir-long (Depends-on): Add openat-safer.
7392
7393         openat-safer: new module
7394         * modules/openat-safer: New file.
7395         * lib/openat-safer.c: Likewise.
7396         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
7397         * lib/fcntl-safer.h (openat_safer): Declare.
7398         * lib/fcntl--.h (openat): Override.
7399         * MODULES.html.sh (File descriptor based I/O): Mention it.
7400         * lib/openat.h: Add double-inclusion guards.
7401         * lib/openat.c (includes): Only include "fcntl-safer.h", not
7402         "fcntl--.h", so we can implement openat.
7403         * modules/openat-safer-tests: New test.
7404         * tests/test-openat-safer.c: New file.
7405
7406         dirent-safer: new module
7407         * modules/dirent-safer: New file.
7408         * lib/dirent--.h: Likewise.
7409         * lib/dirent-safer.h: Likewise.
7410         * lib/opendir-safer.c: Likewise.
7411         * m4/dirent-safer.m4: Likewise.
7412         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
7413         * modules/dirent-safer-tests: New test.
7414         * tests/test-dirent-safer.c: New file.
7415         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
7416
7417         fdopendir: optimize on mingw
7418         * lib/unistd.in.h (_gl_directory_name): New prototype.
7419         * lib/fchdir.c (_gl_directory_name): Implement it.
7420         (fchdir): Use it to simplify implementation.
7421         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
7422         fchdir, when available, to avoid calling [f]chdir().
7423
7424         fdopendir: split into its own module
7425         * lib/openat.c (fdopendir): Move...
7426         * lib/fdopendir.c: ...into new file.
7427         * modules/fdopendir: New module.
7428         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
7429         * modules/openat (Depends-on): Add fdopendir.
7430         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
7431         fdopendir here.
7432         * modules/savedir (Depends-on): Only need fdopendir, not full
7433         openat.
7434         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
7435         * lib/openat.h (fdopendir): Drop prototype.
7436         * lib/dirent.in.h (fdopendir): Provide prototype.
7437         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
7438         * modules/dirent (Makefile.am): Substitute them.
7439         * MODULES.html.sh (File system functions): Mention it.
7440         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
7441         * modules/fdopendir-tests: New file.
7442         * tests/test-fdopendir.c: Likewise.
7443
7444         fchdir: use more consistent macro convention
7445         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
7446         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
7447         REPLACE_FCHDIR, rather than relying on config.h macros.
7448         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
7449         inside a single make-time REPLACE_FCHDIR block, rather than using
7450         the config.h FCHDIR_REPLACEMENT.
7451         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
7452         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
7453         Manage fstat replacement.
7454         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
7455         REPLACE_FCHDIR.
7456         * modules/sys_stat (Files): Add m4/unistd_h.m4.
7457         (Makefile.am): Substitute REPLACE_FCHDIR.
7458         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
7459         FCHDIR_REPLACEMENT.
7460         * lib/dup-safer.c (dup_safer): Likewise.
7461         * lib/dup2.c (rpl_dup2): Likewise.
7462         * lib/dup3.c (rpl_dup3): Likewise.
7463         * lib/open.c (rpl_open): Likewise.
7464
7465         fchdir: simplify error handling, and support dup3
7466         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
7467         stdbool, malloc-posix, realloc-posix.
7468         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
7469         (ensure_dirs_slot): Return false on allocation failure.
7470         (rpl_dup2): Delete.
7471         (_gl_register_dup): New function.
7472         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
7473         (_gl_register_fd): Close fd on allocation failure.
7474         * lib/fcntl.in.h (_gl_register_fd): Update signature.
7475         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
7476         prototype.
7477         (rpl_dup2_fchdir): Delete prototype.
7478         * lib/open.c (open): Update caller.
7479         * lib/dup2.c (dup2): Track fchdir metadata.
7480         * lib/dup3.c (dup3): Likewise.
7481         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
7482         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
7483
7484 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7485
7486         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
7487         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
7488         don't pass arguments to AC_OUTPUT.
7489
7490 2009-09-02  Bruno Haible  <bruno@clisp.org>
7491
7492         * modules/mkdtemp (License): Relicense under LGPLv2+.
7493         Reported by Paolo Bonzini.
7494
7495 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7496
7497         Replace uses of obsolete autoconf macros in Jim's modules.
7498         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
7499         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
7500         can evoke a warning from autoconf when run with -Wobsolete
7501         enabled.  They were declared obsolete for good reasons (see
7502         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
7503         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
7504         should not continue using the deprecated macros.
7505         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
7506         obsolete Autoconf macros with modern counterparts.
7507         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7508         * m4/dos.m4 (gl_AC_DOS): Likewise.
7509         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
7510         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
7511         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
7512         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
7513         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
7514         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
7515         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
7516         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
7517         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
7518         Likewise.
7519         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7520         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
7521         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
7522         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
7523         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
7524         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
7525
7526 2009-09-01  Eric Blake  <ebb9@byu.net>
7527
7528         fchdir: fix off-by-one bug in previous patch
7529         * lib/fchdir.c (rpl_fstat): Use correct bounds.
7530         (_gl_unregister_fd): Delete useless if.
7531
7532 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
7533
7534         maint.mk: sort the list of syntax-check rules
7535         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
7536         easier to get a sense of progress when the rules are run sequentially
7537         and take a long time.
7538
7539 2009-09-01  Simon Josefsson  <simon@josefsson.org>
7540
7541         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
7542         * modules/netinet_in: Likewise.
7543         * modules/sys_file: Likewise.
7544         * modules/sys_ioctl: Likewise.
7545         * modules/sys_select: Likewise.
7546         * modules/sys_socket: Likewise.
7547         * modules/sys_stat: Likewise.
7548         * modules/sys_time: Likewise.
7549         * modules/sys_times: Likewise.
7550         * modules/sys_utsname: Likewise.
7551         * modules/sys_wait: Likewise.
7552
7553 2009-09-01  Jim Meyering  <meyering@redhat.com>
7554
7555         fts: help ensure that return values are not ignored
7556         * lib/fts_.h (__GNUC_PREREQ): Define.
7557         (__attribute_warn_unused_result__): Define.
7558         (fts_children, fts_close, fts_open, fts_read): Declare with
7559         __attribute_warn_unused_result__.
7560
7561         fts: fts_close now fails also when closing a dir file descriptor fails
7562         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
7563         and propagate to caller, along with errno.
7564
7565         announce-gen: correct formatting in --help output
7566         * build-aux/announce-gen (usage): Move the one-line description in
7567         --help output "up", to where it belongs, just after Usage:.
7568
7569 2009-08-31  Eric Blake  <ebb9@byu.net>
7570
7571         fchdir: port to mingw
7572         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
7573         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
7574         opened, then use a substitute.
7575         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
7576         replacement.
7577         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
7578         (_gl_register_fd): No need to check stat if open already filters
7579         all directories.
7580         (fchdir): Fix error condition to match POSIX.
7581         * modules/fchdir (Depends-on): Add sys_stat.
7582         * doc/posix-functions/open.texi (open): Document the limitation.
7583         * modules/fchdir-tests: New file.
7584         * tests/test-fchdir.c: Likewise.
7585
7586         canonicalize: allow cross-testing from cygwin to mingw
7587         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
7588         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
7589         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
7590         Likewise.
7591         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
7592         target does not support symlinks.
7593         * tests/test-canonicalize-lgpl.sh: Likewise.
7594
7595         chown: avoid compilation warning on mingw
7596         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
7597         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
7598         mingw.
7599         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
7600         * modules/chown (Depends-on): Add errno.
7601
7602 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
7603
7604         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
7605         command.
7606
7607 2009-08-31  Jim Meyering  <meyering@redhat.com>
7608
7609         canonicalize: remove useless initialization
7610         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
7611         initialization of local, "end".
7612
7613 2009-08-30  Bruno Haible  <bruno@clisp.org>
7614
7615         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
7616         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
7617         ENOSYS.
7618
7619 2009-08-30  Bruno Haible  <bruno@clisp.org>
7620
7621         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
7622         /usr/xpg4/bin/tr when it exists.
7623         * tests/test-pipe-filter-gi1.sh: Likewise.
7624
7625 2009-08-30  Bruno Haible  <bruno@clisp.org>
7626
7627         Work around deficient /usr/bin/id program on Solaris.
7628         * tests/test-file-has-acl.sh (ID): New variable.
7629         * tests/test-set-mode-acl.sh (ID): Likewise.
7630         * tests/test-copy-acl.sh (ID): Likewise.
7631         * tests/test-copy-file.sh (ID): Likewise.
7632
7633 2009-08-30  Bruno Haible  <bruno@clisp.org>
7634
7635         New module 'xstriconveh'.
7636         * lib/xstriconveh.h: New file.
7637         * lib/xstriconveh.c: New file.
7638         * modules/xstriconveh: New file.
7639
7640 2009-08-30  Bruno Haible  <bruno@clisp.org>
7641
7642         Make it easier to use mem_cd_iconveh.
7643         * lib/striconveh.h (iconveh_t): New type.
7644         (iconveh_open, iconveh_close): New declarations.
7645         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
7646         with a single 'const iconveh_t *' argument.
7647         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
7648         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
7649         with a single 'const iconveh_t *' argument.
7650         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
7651         * tests/test-striconveh.c (main): Update.
7652         * NEWS: Mention the change.
7653
7654 2009-08-30  Bruno Haible  <bruno@clisp.org>
7655
7656         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
7657         problem.
7658
7659 2009-08-30  Bruno Haible  <bruno@clisp.org>
7660
7661         Work around iconv_open problem on Solaris.
7662         * lib/iconv_open-solaris.gperf: New file.
7663         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
7664         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
7665         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
7666         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
7667         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
7668         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
7669
7670 2009-08-29  Jim Meyering  <meyering@redhat.com>
7671
7672         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
7673         * top/maint.mk (cvs-check): Remove target; it was just an alias
7674         to the better-named vc-diff-check.
7675         (maintainer-distcheck): Remove rule.  It was used only from
7676         the (alpha/beta/major) target, and all of its commands but one
7677         were coreutils-specific.
7678         (vc-dist): Remove rule.
7679         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
7680         Run vc-diff-check, not vc-dist.
7681         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
7682
7683 2009-08-27  Bruno Haible  <bruno@clisp.org>
7684
7685         * tests/test-bitrotate.c (main): Remove test that uses a shift count
7686         of 0.
7687
7688 2009-08-27  Bruno Haible  <bruno@clisp.org>
7689
7690         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
7691         compilers.
7692         * doc/func.texi: Document the SunPRO C bug.
7693
7694 2009-08-27  Bruno Haible  <bruno@clisp.org>
7695
7696         Fix link error on Solaris.
7697         * tests/test-parse-duration.c (xstrdup): Remove function.
7698
7699 2009-08-26  Pádraig Brady  <P@draigbrady.com>
7700
7701         ignore-value: handle pointer types, too
7702         * lib/ignore-value.h (__attribute__): Remove definition.
7703         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
7704         of a more concise and more-often effective "(void) i" statement.
7705         (ignore_ptr): New function to suppress warnings from functions that
7706         return pointers, and to make it explicit that one function doesn't
7707         handle all cases.
7708
7709 2009-08-25  Bruno Haible  <bruno@clisp.org>
7710
7711         dup2: work around a Linux bug.
7712         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
7713         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
7714         * doc/posix-functions/dup2.texi: Mention the Linux bug.
7715         Reported by Simon Josefsson.
7716
7717 2009-08-25  Jim Meyering  <meyering@redhat.com>
7718
7719         libguestfs uses gnulib
7720         * users.txt: Add libguestfs.
7721
7722 2009-08-24  Eric Blake  <ebb9@byu.net>
7723
7724         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
7725         * lib/pipe2.c (includes): Add binary-io.h.
7726         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
7727
7728 2009-08-24  Bruno Haible  <bruno@clisp.org>
7729
7730         Tolerate declared but missing accept4 syscall.
7731         * lib/accept4.c (accept4): Invoke original accept4 function first, if
7732         available.
7733         * lib/sys_socket.in.h (accept4): If the function is already present,
7734         override it.
7735         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
7736         * modules/accept4 (Makefile.am): Compile accept4.c always.
7737         Reported by Paolo Bonzini and Eric Blake.
7738
7739 2009-08-23  Bruno Haible  <bruno@clisp.org>
7740
7741         New module 'accept4'.
7742         * lib/sys_socket.in.h (accept4): New declaration.
7743         * lib/accept4.c: New file.
7744         * m4/accept4.m4: New file.
7745         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7746         GNULIB_ACCEPT4, HAVE_ACCEPT4.
7747         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
7748         HAVE_ACCEPT4.
7749         * modules/accept4: New file.
7750         * doc/glibc-functions/accept4.texi: Mention the new module.
7751
7752 2009-08-24  Jim Meyering  <meyering@redhat.com>
7753
7754         progname: also set global program_invocation_name, when possible
7755         Before this change, a libtool-enabled program that calls glibc's
7756         error function would report the program name as
7757         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
7758         * modules/progname (configure.ac): Check for a declaration of
7759         program_invocation_name.
7760         * lib/progname.c:  Include <errno.h>.
7761         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
7762         Set program_invocation_name.
7763
7764 2009-08-23  Bruno Haible  <bruno@clisp.org>
7765
7766         * lib/dup3.c: Include <string.h>.
7767
7768 2009-08-23  Bruno Haible  <bruno@clisp.org>
7769
7770         * lib/dup3.c (dup3): Test only once whether the system actually exists.
7771         * lib/pipe2.c (pipe2): Likewise.
7772         Suggested by Eric Blake.
7773
7774 2009-08-23  Bruno Haible  <bruno@clisp.org>
7775
7776         Tolerate declared but missing dup3 syscall.
7777         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
7778         * lib/unistd.in.h (dup3): If the function is already present,
7779         override it.
7780         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
7781         * modules/dup3 (Makefile.am): Compile dup3.c always.
7782         Reported by Paolo Bonzini.
7783
7784 2009-08-23  Bruno Haible  <bruno@clisp.org>
7785
7786         Tolerate declared but missing pipe2 syscall.
7787         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
7788         available.
7789         * lib/unistd.in.h (pipe2): If the function is already present,
7790         override it.
7791         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
7792         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
7793         Reported by Paolo Bonzini.
7794
7795 2009-08-23  Bruno Haible  <bruno@clisp.org>
7796
7797         * lib/pipe2.c (pipe2): Move #ifs inside function.
7798
7799 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
7800
7801         quotearg: document limitations of quote_these_too
7802         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
7803         those limitations are created.
7804         * lib/quotearg.h (set_char_quoting): Document that digits and
7805         letters that are special after backslash are not permitted.
7806         (quotearg_char): Cross-reference set_char_quoting documentation.
7807
7808 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
7809
7810         quotearg: implement custom_quoting_style
7811         * lib/quotearg.c: (struct quoting_options): Add left_quote and
7812         right_quote fields.
7813         (set_custom_quoting): New public function.
7814         (quotearg_buffer_restyled): Add left_quote and right_quote
7815         arguments, handle them very much like locale quoting, and update
7816         all uses.
7817         (quotearg_n_custom): New public function.
7818         (quotearg_n_custom_mem): New public function.
7819         (quotearg_custom): New public function.
7820         (quotearg_custom_mem): New public function.
7821         * lib/quotearg.h: Prototype and document new public functions.
7822         (enum quoting_style): For escape_quoting_style and
7823         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
7824         ignored even though they're otherwise like c_quoting_style.
7825         Add custom_quoting_style member and document with comparison to
7826         clocale_quoting_style.
7827         * tests/test-quotearg.c (custom_quotes): New array.
7828         (custom_results): New array.
7829         (main): Extend to test custom quoting.
7830
7831 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
7832
7833         quotearg: fix right quote escaping when it's in quote_these_too
7834         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
7835         quote, be sure to prepend only one backslash.
7836         * tests/test-quotearg.c (use_quote_double_quotes): New function.
7837         (main): Test it.
7838
7839 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
7840
7841         quotearg-tests: test escaping of embedded locale quotes
7842         * tests/test-quotearg.c (struct result_strings): Add member for
7843         new input.
7844         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
7845         (inputs): Add new input.
7846         (results_g): Add expected results.
7847         (flag_results): Likewise.
7848         (locale_results): Likewise.
7849         (compare_strings): Check those.
7850
7851 2009-08-23  Bruno Haible  <bruno@clisp.org>
7852
7853         Tests for module 'dup3'.
7854         * modules/dup3-tests: New file.
7855         * tests/test-dup3.c: New file.
7856
7857         New module 'dup3'.
7858         * lib/unistd.in.h (dup3): New declaration.
7859         * lib/dup3.c: New file.
7860         * m4/dup3.m4: New file.
7861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
7862         HAVE_DUP3.
7863         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
7864         * modules/dup3: New file.
7865         * doc/glibc-functions/dup3.texi: Mention the new module.
7866
7867 2009-08-23  Bruno Haible  <bruno@clisp.org>
7868
7869         Tweak the dup2 test.
7870         * tests/test-dup2.c (main): Create the test file empty. Verify that an
7871         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
7872         the test file is still empty. Fix argument order of lseek.
7873
7874 2009-08-23  Bruno Haible  <bruno@clisp.org>
7875
7876         Avoid test link errors when the modules getopt-gnu, gettext are used.
7877         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
7878         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7879
7880 2009-08-23  Bruno Haible  <bruno@clisp.org>
7881
7882         Fix getdtablesize() on mingw.
7883         * lib/getdtablesize.c (getdtablesize): Implement differently.
7884         * lib/unistd.in.h (getdtablesize): Improve comment.
7885
7886 2009-08-23  Bruno Haible  <bruno@clisp.org>
7887
7888         New module 'mkostemp'.
7889         Based on Ulrich Drepper's 2007-08-10 change in glibc.
7890         * lib/stdlib.in.h (mksotemp): New declaration.
7891         * lib/mkostemp.c: New file, from glibc with modifications.
7892         * lib/tempname.h (GT_FILE): Remove outdated comment.
7893         (gen_tempname): Add flags argument.
7894         * lib/tempname.c (__GT_BIGFILE): Remove macro.
7895         (__GT_FILE): Map to 1.
7896         (small_open, large_open): Remove macros.
7897         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
7898         * lib/mkstemp.c (mkstemp): Update.
7899         * lib/mkdtemp.c (mkdtemp): Likewise.
7900         * m4/mkostemp.m4: New file.
7901         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
7902         HAVE_MKOSTEMP.
7903         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
7904         HAVE_MKOSTEMP.
7905         * modules/mkostemp: New file, based on modules/mkstemp.
7906         * doc/glibc-functions/mkostemp.texi: Mention the new module.
7907         * NEWS: Mention the change.
7908
7909 2009-08-23  Bruno Haible  <bruno@clisp.org>
7910
7911         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
7912         Reported by Eric Blake.
7913
7914 2009-08-23  Bruno Haible  <bruno@clisp.org>
7915
7916         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
7917         Reported by Eric Blake.
7918
7919 2009-08-23  Bruno Haible  <bruno@clisp.org>
7920
7921         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
7922         * modules/pipe2 (Depends-on): Likewise.
7923
7924 2009-08-23  Eric Blake  <ebb9@byu.net>
7925
7926         fcntl-h: add O_TTY_INIT support
7927         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
7928         * tests/test-fcntl-h.c (o): Test it.
7929         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7930
7931         fcntl-h: rename from fcntl, in preparation for fcntl(2)
7932         * modules/fcntl: Move <fcntl.h> header replacement...
7933         * modules/fcntl-h: ...to new name, so as not to collide with
7934         like-named function.
7935         * tests/test-fcntl.c: Rename...
7936         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
7937         * modules/fcntl-tests: Rename...
7938         * modules/fcntl-h-tests: ...to this.  Update test file name.
7939         * modules/chdir-long (Depends-on): Update clients.
7940         * modules/chdir-safer (Depends-on): Likewise.
7941         * modules/fcntl-safer (Depends-on): Likewise.
7942         * modules/fts (Depends-on): Likewise.
7943         * modules/mkancesdirs (Depends-on): Likewise.
7944         * modules/mkdir-p (Depends-on): Likewise.
7945         * modules/open (Depends-on): Likewise.
7946         * modules/savewd (Depends-on): Likewise.
7947         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
7948         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7949
7950 2009-08-22  Bruno Haible  <bruno@clisp.org>
7951
7952         * modules/binary-io (License): Relicense under LGPL.
7953         * modules/pipe2 (License): Likewise.
7954
7955 2009-08-22  Bruno Haible  <bruno@clisp.org>
7956
7957         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
7958         return value.
7959         * lib/pipe-filter-gi.c (filter_init): Likewise.
7960         Reported by Eric Blake.
7961
7962 2009-08-22  Bruno Haible  <bruno@clisp.org>
7963
7964         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
7965         * modules/pipe (Depends-on): Add pipe2.
7966
7967 2009-08-22  Bruno Haible  <bruno@clisp.org>
7968
7969         Tests for module 'pipe2'.
7970         * modules/pipe2-tests: New file.
7971         * tests/test-pipe2.c: New file.
7972
7973         New module 'pipe2'.
7974         * lib/unistd.in.h (pipe2): New declaration.
7975         * lib/pipe2.c: New file.
7976         * m4/pipe2.m4: New file.
7977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
7978         HAVE_PIPE2.
7979         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
7980         * modules/pipe2: New file.
7981         * doc/glibc-functions/pipe2.texi: Mention the new module.
7982
7983 2009-08-22  Bruno Haible  <bruno@clisp.org>
7984
7985         Reference some new glibc functions.
7986         * doc/glibc-functions/accept4.texi: New file.
7987         * doc/glibc-functions/dup3.texi: New file.
7988         * doc/glibc-functions/mkostemp.texi: New file.
7989         * doc/glibc-functions/pipe2.texi: New file.
7990         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
7991         (Glibc sys/socket.h): Refer to accept4.
7992         (Glibc unistd.h): Refer to dup3, pipe2.
7993         Reported by Eric Blake.
7994
7995 2009-08-22  Jim Meyering  <meyering@redhat.com>
7996             Bruno Haible  <bruno@clisp.org>
7997
7998         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
7999         This makes it so packages using automake-1.11's silent-rules option
8000         can print e.g., a single "GEN    configmake.h" line, rather than
8001         the 30+ statements that perform the job.  If you want to see the
8002         actual commands, you can still run "make V=1".
8003         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
8004         so that make output is abbreviated when those variables are defined
8005         appropriately.
8006         * modules/argz: Likewise.
8007         * modules/arpa_inet: Likewise.
8008         * modules/byteswap: Likewise.
8009         * modules/configmake: Likewise.
8010         * modules/dirent: Likewise.
8011         * modules/errno: Likewise.
8012         * modules/fcntl: Likewise.
8013         * modules/float: Likewise.
8014         * modules/fnmatch: Likewise.
8015         * modules/getopt-posix: Likewise.
8016         * modules/glob: Likewise.
8017         * modules/iconv_open: Likewise.
8018         * modules/inttypes: Likewise.
8019         * modules/localcharset: Likewise.
8020         * modules/locale: Likewise.
8021         * modules/math: Likewise.
8022         * modules/netdb: Likewise.
8023         * modules/netinet_in: Likewise.
8024         * modules/poll: Likewise.
8025         * modules/posix_spawnp-tests: Likewise.
8026         * modules/sched: Likewise.
8027         * modules/search: Likewise.
8028         * modules/selinux-h: Likewise.
8029         * modules/signal: Likewise.
8030         * modules/spawn: Likewise.
8031         * modules/stdarg: Likewise.
8032         * modules/stdbool: Likewise.
8033         * modules/stddef: Likewise.
8034         * modules/stdint: Likewise.
8035         * modules/stdio: Likewise.
8036         * modules/stdlib: Likewise.
8037         * modules/string: Likewise.
8038         * modules/strings: Likewise.
8039         * modules/sys_file: Likewise.
8040         * modules/sys_ioctl: Likewise.
8041         * modules/sys_select: Likewise.
8042         * modules/sys_socket: Likewise.
8043         * modules/sys_stat: Likewise.
8044         * modules/sys_time: Likewise.
8045         * modules/sys_times: Likewise.
8046         * modules/sys_utsname: Likewise.
8047         * modules/sys_wait: Likewise.
8048         * modules/sysexits: Likewise.
8049         * modules/time: Likewise.
8050         * modules/unistd: Likewise.
8051         * modules/wchar: Likewise.
8052         * modules/wctype: Likewise.
8053
8054 2009-08-22  Jim Meyering  <meyering@redhat.com>
8055
8056         announce-gen: detect write failure
8057         * build-aux/announce-gen: Add Coda at end.
8058         Remove equivalent-but-more-verbose block at top.
8059
8060 2009-08-19  Akim Demaille  <demaille@gostai.com>
8061
8062         bootstrap: --help to stdout.
8063         * bootstrap (usage): Don't send --help to stderr.
8064         Use a here doc instead of a long string.
8065
8066 2009-08-21  Eric Blake  <ebb9@byu.net>
8067
8068         test-popen-safer: split from test-popen
8069         * tests/test-popen.c (main): Move...
8070         * tests/test-popen.h: ...into new file.
8071         * tests/test-popen-safer2.c: New file.
8072         * modules/popen-tests (Files): Add test-popen.h.
8073         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
8074         Suggested by Bruno Haible.
8075
8076         test-fcntl-safer: split from test-open
8077         * tests/test-open.c (main): Move...
8078         * tests/test-open.h: ...into new file.
8079         * tests/test-fcntl-safer.c: New file.
8080         * modules/open-tests (Files): Add test-open.h.
8081         * modules/fcntl-safer-tests: New file.
8082         Suggested by Bruno Haible.
8083
8084         test-fopen-safer: split from test-fopen
8085         * tests/test-fopen.c (main): Move...
8086         * tests/test-fopen.h: ...into new file.
8087         * tests/test-fopen-safer.c: New file.
8088         * modules/fopen-tests (Files): Add test-fopen.h.
8089         * modules/fopen-safer-tests: New file.
8090         Suggested by Bruno Haible.
8091
8092 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
8093
8094         popen-safer: test O_CLOEXEC at run-time.
8095         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
8096
8097 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
8098
8099         fcntl: move more flags to the header
8100         * lib/cloexec.c: Do not define FD_CLOEXEC here.
8101         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
8102         * lib/fcntl.in.h: Do both things here.
8103
8104 2009-08-21  Jim Meyering  <meyering@redhat.com>
8105
8106         consistently remove $@-t before redirecting to it
8107         * modules/argz: Remove $@-t and $@ before redirecting to the former.
8108         * modules/alloca-opt: Likewise.
8109         * modules/byteswap: Likewise.
8110         * modules/fnmatch: Likewise.
8111         * modules/getopt-posix: Likewise.
8112         * modules/glob: Likewise.
8113         * modules/poll: Likewise.
8114         * modules/posix_spawnp-tests: Likewise.
8115         * modules/sys_socket: Likewise.
8116         * modules/sysexits: Likewise.
8117
8118 2009-08-21  Eric Blake  <ebb9@byu.net>
8119
8120         popen: simplify access to original popen
8121         * lib/popen.c (rpl_popen): No need to worry about popen being a
8122         macro.
8123         Reported by Bruno Haible.
8124
8125 2009-08-20  Eric Blake  <ebb9@byu.net>
8126
8127         build: avoid some compiler warnings
8128         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
8129         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
8130         type.
8131         (new_exclude_segment, excluded_file_pattern_p)
8132         (excluded_file_name_p): Reduce scope.
8133         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
8134         old-style declaration.
8135
8136 2009-08-20  Simon Josefsson  <simon@josefsson.org>
8137
8138         * tests/test-exclude1.sh: Handle Windows EOL.
8139         * tests/test-exclude2.sh: Likewise.
8140         * tests/test-exclude3.sh: Likewise.
8141         * tests/test-exclude4.sh: Likewise.
8142         * tests/test-exclude5.sh: Likewise.
8143         * tests/test-exclude6.sh: Likewise.
8144         * tests/test-exclude7.sh: Likewise.
8145
8146 2009-08-19  Akim Demaille  <demaille@gostai.com>
8147
8148         bootstrap: find sha1sum when named gsha1sum.
8149         * bootstrap (find_tool): New.
8150         ($SHA1SUM): New.
8151         Use it.
8152
8153 2009-08-20  Jim Meyering  <meyering@redhat.com>
8154
8155         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
8156         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
8157         expression that converts "." in a file name to "\." in the resulting
8158         regexp.  Start with a dummy statement, so that prior shell variable
8159         definitions are expanded portably.  Reported by Simon Josefsson.
8160
8161 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
8162
8163         Fix polling for writeability of a screen buffer.
8164         * lib/poll.c: Distinguish input and screen buffers for the
8165         Win32 implementation.
8166         * lib/select.c: Likewise.
8167
8168 2009-08-19  Eric Blake  <ebb9@byu.net>
8169
8170         popen-safer: prevent popen from clobbering std descriptors
8171         * modules/popen-safer: New file.
8172         * lib/popen-safer.c: Likewise.
8173         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
8174         * lib/stdio--.h (popen): Provide override.
8175         * lib/stdio-safer.h (popen_safer): Provide declaration.
8176         * tests/test-popen.c (includes): Partially test this.
8177         * modules/popen-safer-tests: New file, for more tests.
8178         * tests/test-popen-safer.c: Likewise.
8179         * MODULES.html.sh (file stream based Input/Output): Mention it.
8180
8181         tests: test some of the *-safer modules
8182         * modules/fopen-safer (Depends-on): Add fopen.
8183         * modules/fcntl-safer (Depends-on): Add fcntl.
8184         * modules/stdlib-safer (Depends-on): Add stdlib.
8185         (configure.ac): Set indicator.
8186         * modules/unistd-safer (configure.ac): Likewise.
8187         * modules/tmpfile-safer (configure.ac): Likewise.
8188         (Depends-on): Add tmpfile.
8189         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
8190         active.
8191         * tests/test-fopen.c (includes): Test safer versions when they are
8192         in use.
8193         * tests/test-open.c (includes): Likewise.
8194
8195         popen: fix cygwin 1.5 bug when stdin closed
8196         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
8197         * modules/popen: New file.
8198         * modules/popen-tests: Likewise.
8199         * tests/test-popen.c: Likewise.
8200         * m4/popen.m4: Likewise.
8201         * lib/popen.c: Likewise.
8202         * lib/stdio.in.h (popen): New declaration.
8203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
8204         * modules/stdio (Makefile.am): Likewise.
8205         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
8206
8207 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
8208
8209         maint.mk: give full control over update-copyright exclusions
8210         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
8211         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
8212         (update-copyright): Don't force inclusion of top-level
8213         ChangeLog.  Don't force exclusion of all COPYING files, but make
8214         them the default exclusion instead.
8215
8216 2009-08-16  Bruno Haible  <bruno@clisp.org>
8217
8218         Fix test failures on Solaris 10.
8219         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
8220         tests when Solaris iconv() is used.
8221         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
8222         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
8223         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
8224         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
8225         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
8226
8227 2009-08-16  Bruno Haible  <bruno@clisp.org>
8228
8229         Fix test failures on Solaris 10.
8230         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
8231         'tr' program and pass it as first argument.
8232         * tests/test-pipe-filter-gi1.sh: Likewise.
8233         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
8234         program as first argument.
8235         * tests/test-pipe-filter-gi1.c (main): Likewise.
8236
8237 2009-08-16  Eric Blake  <ebb9@byu.net>
8238
8239         fpurge: fix previous commits
8240         * modules/fpurge (Makefile.am): Make replacement conditional,
8241         partially reverting 2007-04-29 change; missed in previous
8242         attempt.
8243         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
8244         is missing.
8245
8246 2009-08-16  Bruno Haible  <bruno@clisp.org>
8247
8248         Clarify fpurge's effect on the file position.
8249         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
8250         * tests/test-fpurge.c (main): Make a second pass for checking the file
8251         position.
8252
8253 2009-08-16  Bruno Haible  <bruno@clisp.org>
8254
8255         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
8256         declaration of fpurge is missing.
8257         * tests/test-fpurge.c (main): Check that the file has not more contents
8258         than expected. Close the file before removing it.
8259
8260 2009-08-15  Eric Blake  <ebb9@byu.net>
8261
8262         fpurge: don't wrap working cygwin implementation
8263         * lib/fpurge.c (fpurge): Fix comment typo.
8264         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
8265         1.7 to avoid replacement.
8266         * tests/test-fpurge.c (main): Enhance test.
8267
8268 2009-08-15  Eric Blake  <ebb9@byu.net>
8269         and Jim Meyering  <meyering@redhat.com>
8270
8271         test-update-copyright: skip if perl is insufficient
8272         * tests/test-update-copyright.sh: Failure to run maintainer tool
8273         should not cause testsuite failure on cygwin 1.5.
8274
8275 2009-08-14  Eric Blake  <ebb9@byu.net>
8276
8277         doc: mention more functions added in cygwin 1.7.0
8278         * doc/posix-headers/limits.texi (limits.h): Update for recent
8279         cygwin additions.
8280         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
8281         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8282         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
8283         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
8284         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
8285
8286 2009-08-14  Eric Blake  <ebb9@byu.net>
8287
8288         maint.mk: simplify update-copyright rule
8289         * top/maint.mk (update-copyright-local): Delete, and document how
8290         to do it in cfg.mk instead.
8291         (update-copyright-exclude-regexp): Delete, and document how to do
8292         it in .x-update-copyright instead.
8293         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
8294         exclude ChangeLog.
8295
8296 2009-08-14  Bruno Haible  <bruno@clisp.org>
8297
8298         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
8299
8300 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8301
8302         maint.mk: support update-copyright-env
8303         * top/maint.mk (update-copyright-env): Define place-holder.
8304         (update-copyright): Expand $(update-copyright-env) before
8305         invoking update-copyright.
8306
8307 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8308
8309         update-copyright: implement forced reformatting
8310         * build-aux/update-copyright: Implement and document
8311         UPDATE_COPYRIGHT_FORCE.
8312         * tests/test-update-copyright.sh: Test it.
8313
8314 2009-08-14  Eric Blake  <ebb9@byu.net>
8315         and Bruno Haible  <bruno@clisp.org>
8316
8317         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
8318         * tests/test-locale.c: Revert previous patch related to NULL.
8319         * tests/test-stdio.c: Likewise.
8320         * tests/test-stdlib.c: Likewise.
8321         * tests/test-string.c: Likewise.
8322         * tests/test-unistd.c: Likewise.
8323         * modules/time-tests (Depends-on): Add verify.
8324         * modules/wchar-tests (Depends-on): Likewise.
8325         * tests/test-time.c: Test for NULL compliance.
8326         * tests/test-wchar.c: Likewise.
8327         * modules/locale (Depends-on): Add stddef.
8328         * modules/stdio (Depends-on): Likewise.
8329         * modules/stdlib (Depends-on): Likewise.
8330         * modules/string (Depends-on): Likewise.
8331         * modules/time (Depends-on): Likewise.
8332         * modules/unistd (Depends-on): Likewise.
8333         * modules/wchar (Depends-on): Likewise.
8334         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
8335         * lib/stdlib.in.h (includes): Likewise.
8336         * lib/string.in.h (includes): Likewise.
8337         * lib/time.in.h (includes): Likewise.
8338         * lib/unistd.in.h (includes): Likewise.
8339         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
8340         replaced.
8341         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8342         * m4/stddef_h.m4: New file.
8343         * modules/stddef: Likewise.
8344         * lib/stddef.in.h: Likewise.
8345         * modules/stddef-tests: Likewise.
8346         * tests/test-stddef.c: Likewise.
8347         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
8348         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
8349         * doc/posix-headers/locale.texi (locale.h): Likewise.
8350         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
8351         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8352         * doc/posix-headers/string.texi (string.h): Likewise.
8353         * doc/posix-headers/time.texi (time.h): Likewise.
8354         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
8355         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
8356
8357 2009-08-14  Eric Blake  <ebb9@byu.net>
8358
8359         doc: improve git diff of texinfo files
8360         * .gitattributes: Add rule for *.texi files, with hint on how to
8361         use it.
8362         Copied from m4, and based on a report by Bruno Haible.
8363
8364 2009-08-14  Bruno Haible  <bruno@clisp.org>
8365
8366         Disable multithread support by default on Cygwin 1.5.x for real.
8367         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
8368
8369 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
8370
8371         update-copyright: much ado about intervals
8372         * build-aux/update-copyright: Implement and document
8373         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
8374         of copyright year intervals.
8375         Also, document UPDATE_COPYRIGHT_YEAR.
8376         * tests/test-update-copyright.sh: Test it.
8377
8378         update-copyright: convert 2-digit to 4-digit years
8379         * build-aux/update-copyright: Implement and document.
8380         * tests/test-update-copyright.sh: Update.
8381
8382 2009-08-14  Jim Meyering  <meyering@redhat.com>
8383
8384         test-exclude: avoid coreutils "make check" failure
8385         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
8386         just as in test-argmatch.c.
8387
8388 2009-08-13  Eric Blake  <ebb9@byu.net>
8389
8390         test-dup2: fix bad assumption
8391         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
8392         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
8393
8394         test-version-etc: fix CRLF portability issue
8395         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
8396         recognize \r.
8397         * tests/test-argp-version-etc-1.sh: Likewise.
8398
8399         getopt: update client modules
8400         * modules/argp (Depends-on): Use getopt-gnu.
8401         * modules/git-merge-changelog (Depends-on): Likewise.
8402         * modules/long-options (Depends-on): Likewise.
8403         * modules/xstrtol (Depends-on): Likewise.
8404
8405 2009-08-13  Simon Josefsson  <simon@josefsson.org>
8406
8407         * tests/test-version-etc.sh: Don't fail on different
8408         project/version.  Don't fail on CRLF differences.  Rewrite to use
8409         multiple -e instead of multiple sed forks, suggested by Eric Blake
8410         <ebb9@byu.net>.
8411         * tests/test-argp-version-etc-1.sh: Likewise.
8412
8413 2009-08-13  Simon Josefsson  <simon@josefsson.org>
8414
8415         * tests/test-version-etc.sh: Don't fail on different
8416         project/version.
8417
8418 2009-08-12  Bruno Haible  <bruno@clisp.org>
8419
8420         Tests for modules 'getopt-posix', 'getopt-gnu'.
8421         * modules/getopt-posix-tests: New file.
8422         * tests/test-getopt.c: New file.
8423         * tests/test-getopt.h: New file.
8424         * tests/test-getopt_long.h: New file.
8425
8426         New modules 'getopt-posix', 'getopt-gnu'.
8427         * modules/getopt-gnu: New file, renamed from modules/getopt.
8428         * modules/getopt-posix: New file.
8429         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
8430         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
8431         (gl_GETOPT): Remove macro.
8432         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
8433         Disable the test against BSD systems that declare optreset. Test
8434         against mingw bug. Test against lack of support of optional arguments
8435         on many platforms.
8436         * doc/glibc-headers/getopt.texi: Update module name and list of
8437         relevant platforms.
8438         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
8439         'getopt-gnu' and more portability problems.
8440         * NEWS: Mention the changes.
8441
8442 2009-08-12  Bruno Haible  <bruno@clisp.org>
8443
8444         Ensure that optarg etc. get declared by <unistd.h>.
8445         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
8446         AC_USE_SYSTEM_EXTENSIONS.
8447         * modules/getopt (Depends-on): Add 'extensions'.
8448
8449 2009-08-12  Bruno Haible  <bruno@clisp.org>
8450
8451         Avoid test link errors.
8452         * modules/pipe-filter-ii-tests (Makefile.am): Define
8453         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
8454         * modules/pipe-filter-gi-tests (Makefile.am): Define
8455         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
8456         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8457
8458 2009-08-12  Bruno Haible  <bruno@clisp.org>
8459
8460         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
8461         gl_GETOPT_SUBSTITUTE before.
8462         (gl_GETOPT): Use it.
8463         * m4/argp.m4 (gl_ARGP): Update.
8464         Reported by Sergey Poznyakoff.
8465
8466         * m4/getopt.m4: Reorder macros.
8467         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
8468         (gl_GETOPT_SUBSTITUTE): Remove macro.
8469
8470 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
8471
8472         Minor improvement in gitlog-to-changelog
8473
8474         * build-aux/gitlog-to-changelog: New option `--format' makes
8475         output format string configurable.
8476
8477 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
8478
8479         Optimize exclude: use hash tables for non-wildcard patterns.
8480
8481         * lib/exclude.c: Include hash.h and mbuiter.h
8482         (struct exclude_pattern, exclude_segment): New data types.
8483         (struct exclude): Rewrite.
8484         (fnmatch_pattern_has_wildcards): New function.
8485         (new_exclude_segment, free_exclude_segment): New functions.
8486         (excluded_file_pattern_p, excluded_file_name_p): New functions.
8487         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
8488         * lib/exclude.h (is_fnmatch_pattern): New prototype.
8489         * modules/exclude: Depend on hash and mbuiter.
8490
8491         * modules/exclude-tests: New file.
8492         * tests/test-exclude.c: New file.
8493         * tests/test-exclude1.sh: New file.
8494         * tests/test-exclude2.sh: New file.
8495         * tests/test-exclude3.sh: New file.
8496         * tests/test-exclude4.sh: New file.
8497         * tests/test-exclude5.sh: New file.
8498         * tests/test-exclude6.sh: New file.
8499         * tests/test-exclude7.sh: New file.
8500
8501 2009-08-12  Bruno Haible  <bruno@clisp.org>
8502
8503         Ensure that getopt() gets declared by <unistd.h>.
8504         * lib/unistd.in.h: Conditionally include getopt.h.
8505         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
8506         Set GNULIB_UNISTD_H_GETOPT.
8507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8508         GNULIB_UNISTD_H_GETOPT.
8509         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
8510
8511 2009-08-12  Bruno Haible  <bruno@clisp.org>
8512
8513         Clarify logic.
8514         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
8515         gl_replace_getopt instead of GETOPT_H.
8516
8517 2009-08-12  Bruno Haible  <bruno@clisp.org>
8518
8519         * m4/getopt.m4: Add comments.
8520
8521 2009-08-12  Bruno Haible  <bruno@clisp.org>
8522
8523         Disable multithread support by default on Cygwin 1.5.x.
8524         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
8525         set gl_use_threads=no if not specified otherwise.
8526
8527 2009-08-11  Bruno Haible  <bruno@clisp.org>
8528
8529         Avoid compilation error on NetBSD 5.0.
8530         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
8531         * tests/test-stdio.c: Likewise.
8532         * tests/test-stdlib.c: Likewise.
8533         * tests/test-string.c: Likewise.
8534         * tests/test-unistd.c: Likewise.
8535         Reported by Greg Troxel <gdt@ir.bbn.com>
8536         at <https://savannah.gnu.org/support/?106973>.
8537
8538 2009-08-11  Bruno Haible  <bruno@clisp.org>
8539
8540         * modules/dup2-tests (Depends-on): Remove close.
8541
8542         Undo 2009-07-19 commit.
8543         * modules/acl-tests (Depends-on): Remove close.
8544         * modules/binary-io-tests (Depends-on): Likewise.
8545         * modules/closein-tests (Depends-on): Likewise.
8546         * modules/flock-tests (Depends-on): Likewise.
8547         * modules/fsync-tests (Depends-on): Likewise.
8548         * modules/lseek-tests (Depends-on): Likewise.
8549         * modules/pipe-tests (Depends-on): Likewise.
8550         * modules/posix_spawn-tests (Depends-on): Likewise.
8551         * modules/posix_spawnp-tests (Depends-on): Likewise.
8552         * modules/stat-time-tests (Depends-on): Likewise.
8553         * modules/yesno-tests (Depends-on): Likewise.
8554
8555 2009-08-10  Bruno Haible  <bruno@clisp.org>
8556
8557         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
8558
8559 2009-08-10  Bruno Haible  <bruno@clisp.org>
8560
8561         Fix a gcc warning.
8562         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
8563
8564 2009-08-10  Bruno Haible  <bruno@clisp.org>
8565
8566         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
8567         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
8568         not only the first time.
8569         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
8570         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
8571         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
8572         is 1, not only the the first time.
8573
8574 2009-08-10  Bruno Haible  <bruno@clisp.org>
8575
8576         Make it possible to use module 'gethostname' without module 'close'.
8577         * lib/unistd.in.h (close): Evoke a link error only if
8578         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
8579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8580         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8581         * modules/unistd (Makefile.am): Substitute
8582         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8583         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
8584         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
8585         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
8586         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8587         * modules/sys_ioctl (Makefile.am): Substitute
8588         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8589         * modules/socket (configure.ac): On native Windows, set
8590         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
8591         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8592         Reported by Sam Steingold <sds@gnu.org>.
8593
8594 2009-08-10  Bruno Haible  <bruno@clisp.org>
8595
8596         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
8597         * modules/ioctl (configure.ac): Likewise.
8598
8599 2009-08-10  Bruno Haible  <bruno@clisp.org>
8600
8601         Avoid collision between gnulib wrapper and libintl wrapper.
8602         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
8603         already defined in intl/printf.c.
8604         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
8605         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
8606
8607 2009-08-09  Bruno Haible  <bruno@clisp.org>
8608
8609         Make <sys/select.h> really self-contained, also on Solaris 10.
8610         * lib/sys_select.in.h: Include <string.h>.
8611         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
8612         Solaris 10 problem.
8613         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
8614         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
8615         Reported by Jim Meyering.
8616
8617 2009-08-09  Bruno Haible  <bruno@clisp.org>
8618
8619         Avoid warnings from 'aclocal' that are due to a use of macro name
8620         AM_XGETTEXT_OPTION that is not defined in automake.
8621         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
8622         automake.
8623         * modules/error (configure.ac): Likewise.
8624         * modules/propername (configure.ac): Likewise.
8625         * modules/vasprintf (configure.ac): Likewise.
8626         * modules/verror (configure.ac): Likewise.
8627         * modules/xprintf (configure.ac): Likewise.
8628         * modules/xvasprintf (configure.ac): Likewise.
8629
8630 2009-08-08  Bruno Haible  <bruno@clisp.org>
8631
8632         Avoid compilation error in C++ mode.
8633         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
8634         Reported by Sam Steingold <sds@gnu.org>.
8635
8636 2009-08-08  Bruno Haible  <bruno@clisp.org>
8637
8638         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
8639         for the various Unix platforms.
8640         * doc/posix-headers/limits.texi: Update platforms list regarding
8641         HOST_NAME_MAX.
8642         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8643
8644 2009-08-07  Jim Meyering  <meyering@redhat.com>
8645
8646         selinux-at: fix typo in a comment
8647         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
8648         Spotted by Paolo Bonzini.
8649
8650         selinux-at: remove redundant m4 code, add documentation
8651         * modules/selinux-at (configure.ac): Remove redundant code.
8652         LIB_SELINUX is already set via the dependent module, selinux-h.
8653         (Include): Add quotes around selinux-at.h.
8654         * lib/selinux-at.h: Add documentation.
8655         Reported by Bruno Haible in
8656         http://marc.info/?l=gnulib-bug&m=124958988300749
8657
8658 2009-08-07  Bruno Haible  <bruno@clisp.org>
8659
8660         Avoid link error on MacOS X 10.3 and 10.4.
8661         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
8662         on non-ELF systems.
8663         * lib/argp-pv.c (argp_program_version): Likewise.
8664         Reported by Simon Josefsson.
8665
8666 2009-08-07  Simon Josefsson  <simon@josefsson.org>
8667
8668         * tests/test-version-etc.sh: Use $EXEEXT.
8669
8670 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
8671
8672         update-copyright: update documentation to point to maint.mk
8673         * build-aux/update-copyright: Here.
8674
8675 2009-08-06  Jim Meyering  <meyering@redhat.com>
8676
8677         maint.mk: support update-copyright-local
8678         * top/maint.mk (update-copyright-local): Define place-holder.
8679         (update-copyright): Depend on $(update-copyright-local).
8680
8681 2009-08-06  Jim Meyering  <meyering@redhat.com>
8682
8683         selinux-at: new module
8684         Initially written for coreutils, this module will soon be
8685         used by findutils, too.
8686         * MODULES.html.sh [Misc]: Add selinux-at.
8687         * lib/selinux-at.h: New file, from coreutils.
8688         * lib/selinux-at.c: Likewise.
8689         * modules/selinux-at: Likewise.
8690         (License): Change from LGPL to GPL, since it depends
8691         on the GPL'd openat module.
8692
8693         doc: update README
8694         * README: Remove references to cogito.
8695         Remove cvs-repo-updating instructions from 2007.
8696         Don't imply that CVS is better if you have limited disk space.
8697
8698 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8699
8700         update-copyright: support C-style comments
8701         * build-aux/update-copyright: Implement and document.
8702         * tests/test-update-copyright.sh: Test.
8703
8704 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8705
8706         update-copyright: support omitted "(C)"
8707         * build-aux/update-copyright: Implement and document.  Also,
8708         allow variable whitespace before "(C)".
8709         * tests/test-update-copyright.sh: Test.
8710
8711 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8712
8713         update-copyright: don't trip on non-FSF copyright statements
8714         * build-aux/update-copyright: Fix so that the first correctly
8715         formatted FSF copyright statement is recognized no matter what
8716         appears before it.  Update documentation.
8717         * tests/test-update-copyright.sh: Test that.
8718
8719 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8720
8721         update-copyright: clean up code a little
8722         * build-aux/update-copyright: Append "_re" to the name of any
8723         variable holding a regular expression.
8724         Replace "old" and "new" with "stmt" in variable names.
8725         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
8726         handled correctly.
8727         Format code more consistently.
8728
8729 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
8730
8731         update-copyright-tests: improve portability
8732         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
8733         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
8734
8735 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
8736
8737         update-copyright: support @copyright{} and &copy;
8738         * build-aux/update-copyright: Implement and document.
8739         * tests/test-update-copyright.sh: Test.
8740
8741 2009-08-04  Jim Meyering  <meyering@redhat.com>
8742
8743         update-copyright-tests: correctly test EOL=\r\n handling
8744         * tests/test-update-copyright.sh: Put \r at the end of some lines
8745         for the dos-eol tests.  Based on a patch by Joel E. Denny.
8746
8747         maint.mk: make update-copyright exclusion list more configurable
8748         * top/maint.mk (update-copyright): Default to excluding COPYING,
8749         but allow an override, in case someone does want to update that file.
8750
8751         maint.mk: don't update copyright date in COPYING
8752         * top/maint.mk (update-copyright): Exclude COPYING.
8753
8754         maint.mk: add a copyright-updating rule
8755         * top/maint.mk (update-copyright): New rule.
8756         Derived from coreutils/Makefile.am.
8757
8758         update-copyright: rename some variables
8759         * build-aux/update-copyright: Rename a few variables for clarity.
8760         Tweak syntax.  List Joel E. Denny as coauthor.
8761
8762 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
8763
8764         update-copyright: fix bug for 2-digit last year and add tests
8765         * build-aux/update-copyright: Fix bug.
8766         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
8767         specified.
8768         * modules/update-copyright-tests: New
8769         * tests/test-update-copyright.sh: New.
8770
8771 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
8772
8773         update-copyright: handle leading tabs in line prefix
8774         * build-aux/update-copyright: Count leading tabs as 8 spaces
8775         when computing margin.  This helps with the formatting of
8776         ChangeLogs, for example.
8777         Fix documentation a little.
8778
8779 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
8780
8781         update-copyright: support EOL=\r\n
8782         * build-aux/update-copyright: Implement that.
8783
8784 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
8785
8786         update-copyright: automatically format copyright statements
8787         * build-aux/update-copyright: Implement that.
8788         Also, be a little more predictable and safer by always failing
8789         when the full copyright format is not perfectly recognized as an
8790         unbroken whole.  Discussed at
8791         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
8792         Rewrite documentation.
8793
8794 2009-08-03  Bruno Haible  <bruno@clisp.org>
8795
8796         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
8797
8798 2009-08-02  Bruno Haible  <bruno@clisp.org>
8799
8800         Tests for module 'uname'.
8801         * modules/uname-tests: New file.
8802         * tests/test-uname.c: New file.
8803
8804         New module 'uname'.
8805         * lib/uname.c: New file.
8806         * m4/uname.m4: New file.
8807         * modules/uname: New file.
8808         * doc/posix-functions/uname.texi: Mention the new module.
8809
8810 2009-08-02  Bruno Haible  <bruno@clisp.org>
8811
8812         Tests for module 'sys_utsname'.
8813         * modules/sys_utsname-tests: New file.
8814         * tests/test-sys_utsname.c: New file.
8815
8816         New module 'sys_utsname'.
8817         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
8818         * m4/sys_utsname_h.m4: New file.
8819         * modules/sys_utsname: New file.
8820         * doc/posix-headers/sys_utsname.texi: Mention the new module.
8821
8822 2009-08-02  Bruno Haible  <bruno@clisp.org>
8823
8824         Implicitly initialize the sockets library.
8825         * lib/gethostname.c: Include sockets.h.
8826         (rpl_gethostname): Invoke gl_sockets_startup.
8827         * lib/socket.c: Include sockets.h.
8828         (rpl_socket): Invoke gl_sockets_startup.
8829         * modules/gethostname (Depends-on): Add sockets.
8830         * modules/socket (Depends-on): Likewise.
8831         * tests/test-poll.c: Don't include sockets.h.
8832         (main): Don't invoke gl_sockets_startup.
8833         * tests/test-select.c: Don't include sockets.h.
8834         (main): Don't invoke gl_sockets_startup.
8835
8836 2009-08-02  Bruno Haible  <bruno@clisp.org>
8837
8838         Allow multiple calls to gl_sockets_startup.
8839         * lib/sockets.c (initialized_sockets_version): New variable.
8840         (gl_sockets_startup): Do nothing if already called for this or a higher
8841         version.
8842         (gl_sockets_cleanup): Reset initialized_sockets_version.
8843
8844 2009-08-03  Simon Josefsson  <simon@josefsson.org>
8845
8846         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
8847         different project/version.
8848
8849 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
8850             Bruno Haible  <bruno@clisp.org>
8851
8852         Tests for module 'pipe-filter-gi'.
8853         * modules/pipe-filter-gi-tests: New file.
8854         * tests/test-pipe-filter-gi1.sh: New file.
8855         * tests/test-pipe-filter-gi1.c: New file.
8856         * tests/test-pipe-filter-gi2.sh: New file.
8857         * tests/test-pipe-filter-gi2-main.c: New file.
8858         * tests/test-pipe-filter-gi2-child.c: New file.
8859
8860         New module 'pipe-filter-gi'.
8861         * lib/pipe-filter-gi.c: New file.
8862         * modules/pipe-filter-gi: New file.
8863
8864 2009-08-02  Bruno Haible  <bruno@clisp.org>
8865             Paolo Bonzini  <bonzini@gnu.org>
8866
8867         Tests for module 'pipe-filter-ii'.
8868         * modules/pipe-filter-ii-tests: New file.
8869         * tests/test-pipe-filter-ii1.sh: New file.
8870         * tests/test-pipe-filter-ii1.c: New file.
8871         * tests/test-pipe-filter-ii2.sh: New file.
8872         * tests/test-pipe-filter-ii2-main.c: New file.
8873         * tests/test-pipe-filter-ii2-child.c: New file.
8874
8875         New module 'pipe-filter-ii'.
8876         * lib/pipe-filter.h: New file.
8877         * lib/pipe-filter-ii.c: New file.
8878         * lib/pipe-filter-aux.h: New file.
8879         * modules/pipe-filter-ii: New file.
8880
8881 2009-08-02  Simon Josefsson  <simon@josefsson.org>
8882
8883         * lib/gc-libgcrypt.c: Change copyright to FSF.
8884         * lib/gc-gnulib.c: Likewise.
8885
8886 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
8887
8888         * lib/gethostname.c: Include limits.h.
8889
8890 2009-08-02  Simon Josefsson  <simon@josefsson.org>
8891             Bruno Haible  <bruno@clisp.org>
8892
8893         Ensure HOST_NAME_MAX as part of the gethostname module.
8894         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
8895         define also HOST_NAME_MAX.
8896         * tests/test-gethostname.c: Include <limits.h>.
8897         (main): Check also HOST_NAME_MAX.
8898         * doc/posix-headers/limits.texi: Document the mingw problem.
8899
8900 2009-08-02  Bruno Haible  <bruno@clisp.org>
8901
8902         * lib/gethostname.c (gethostname): Fix handling of large len argument.
8903         Add comments.
8904
8905 2009-03-31  Simon Josefsson  <simon@josefsson.org>
8906
8907         * lib/gethostname.c: Add Windows wrapper.
8908         * m4/gethostname.m4: Look for gethostname in -lws2_32.
8909         * modules/gethostname: Depend on sys_socket & errno, for also
8910         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
8911         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
8912
8913 2009-07-31  Jim Meyering  <meyering@redhat.com>
8914
8915         getloadavg: fix symbol name in comment
8916         * lib/getloadavg.c: Correct a typo I introduced when adding
8917         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
8918         Matt Kraai spotted the problem.
8919
8920 2009-07-29  Matt Kraai  <mkraai@beckman.com>
8921
8922         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
8923         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
8924         code also if ! defined N_NAME_POINTER.
8925         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
8926         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
8927         but the n_name member is a 12-byte array.
8928
8929 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
8930
8931         update-copyright: generalize comment handling
8932         * build-aux/update-copyright: Handle copyright statements
8933         within more comment styles.
8934         Document usage.
8935         Report any file with an external copyright holder or parse failure.
8936
8937 2009-07-29  Jim Meyering  <meyering@redhat.com>
8938
8939         mktime: correct setting of REPLACE_MKTIME
8940         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
8941
8942         update-copyright: new module
8943         * modules/update-copyright: New file.
8944         * build-aux/update-copyright: New file.
8945         * MODULES.html.sh (maint+release support): Add update-copyright.
8946
8947 2009-07-27  Bruno Haible  <bruno@clisp.org>
8948
8949         Fix compilation error when <ctime> is used and mktime is replaced.
8950         * lib/time.in.h (mktime): New declaration.
8951         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
8952         REPLACE_MKTIME instead of defining mktime in config.h.
8953         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
8954         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
8955         Reported by Ross McFarland <rwmcfa1@neces.com>.
8956
8957 2009-07-27  Bruno Haible  <bruno@clisp.org>
8958
8959         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
8960         Reported by Matt Kraai <mkraai@beckman.com>.
8961
8962 2009-07-25  Jim Meyering  <meyering@redhat.com>
8963
8964         maint.mk: avoid warnings about missing files
8965         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
8966         diagnostic when .prev-version does not exist.
8967         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
8968         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
8969         nonexistent cfg.mk.
8970         Suggestions from Simon Josefsson.
8971
8972 2009-07-25  Bruno Haible  <bruno@clisp.org>
8973
8974         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
8975         defined as macros. Needed on QNX 6.4.1.
8976         Reported by Matt Kraai <mkraai@beckman.com>.
8977
8978 2009-07-23  Jim Meyering  <meyering@redhat.com>
8979
8980         maint.mk: invoke "make dist" with a working value of XZ_OPT
8981         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
8982
8983 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
8984
8985         Make fseeko.c compile on QNX.
8986         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
8987
8988 2009-07-22  Peter Simons  <simons@cryp.to>
8989
8990         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
8991         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
8992         * lib/md4.h: Likewise.
8993         * lib/md5.h: Likewise.
8994         * lib/sha1.h: Likewise.
8995         * lib/sha256.h: Likewise.
8996         * lib/sha512.h: Likewise.
8997
8998         tests-sha1: don't assign literal string to 'char *' variable
8999         * tests/test-sha1.c (main): Declare locals with "const" to match
9000         attributes of the right hand side.
9001
9002 2009-07-21  Eric Blake  <ebb9@byu.net>
9003
9004         dup2: fix more mingw problems
9005         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
9006         fd to itself.
9007         * doc/posix-functions/dup2.texi (dup2): Document the bug.
9008         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
9009         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
9010         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
9011         care of mingw bugs.
9012
9013 2009-07-21  Jim Meyering  <meyering@redhat.com>
9014
9015         vc-list-files: avoid failure when /bin/sh is dash
9016         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
9017         On some Debian based systems, /bin/sh is a symlink to dash, and running
9018         this command would omit the "/" following each 'tests' prefix:
9019           dash -x build-aux/vc-list-files -C . tests
9020         That is because bash and dash work differently:
9021           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
9022           bash ok
9023           dash odd
9024
9025 2009-07-21  Eric Blake  <ebb9@byu.net>
9026
9027         dup2-tests: test previous patch
9028         * modules/dup2-tests: New file.
9029         * tests/test-dup2.c: Likewise.
9030         * tests/test-open.c (main): Avoid unspecified behavior.
9031         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
9032         test.
9033
9034         dup2: work around mingw and cygwin 1.5 bug
9035         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
9036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9037         * modules/unistd (Makefile.am): Substitute it.
9038         * lib/unistd.in.h (dup2): Declare the replacement.
9039         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
9040         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
9041         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
9042         * modules/execute (Depends-on): Add dup2.
9043         * modules/fseterr (Depends-on): Likewise.
9044         * modules/pipe (Depends-on): Likewise.
9045         * modules/posix_spawn-internal (Depends-on): Likewise.
9046
9047 2009-07-21  Bruno Haible  <bruno@clisp.org>
9048
9049         * modules/.gitattributes: New file.
9050
9051 2009-07-20  Bruno Haible  <bruno@clisp.org>
9052
9053         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
9054         (main): Use it.
9055
9056 2009-07-20  Eric Blake  <ebb9@byu.net>
9057
9058         test-pipe: make a bit more robust.
9059         * tests/test-pipe.c (myerr): Allow error messages regardless of
9060         what we do to stderr.
9061         (test_pipe): Rearrange to avoid deadlock.
9062         (child_main): Try a larger read, to ensure we avoided deadlock.
9063         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
9064         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
9065         if misused.
9066
9067 2009-07-19  Jim Meyering  <meyering@redhat.com>
9068
9069         fts: avoid false-positive cycle-detection
9070         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
9071         for each new command line argument.
9072
9073 2009-07-19  Bruno Haible  <bruno@clisp.org>
9074
9075         Fix build error on mingw with the modules sys_select and unistd.
9076         * modules/acl-tests (Depends-on): Add close.
9077         * modules/binary-io-tests (Depends-on): Likewise.
9078         * modules/closein-tests (Depends-on): Likewise.
9079         * modules/flock-tests (Depends-on): Likewise.
9080         * modules/fsync-tests (Depends-on): Likewise.
9081         * modules/lseek-tests (Depends-on): Likewise.
9082         * modules/pipe-tests (Depends-on): Likewise.
9083         * modules/posix_spawn-tests (Depends-on): Likewise.
9084         * modules/posix_spawnp-tests (Depends-on): Likewise.
9085         * modules/stat-time-tests (Depends-on): Likewise.
9086         * modules/yesno-tests (Depends-on): Likewise.
9087
9088 2009-07-19  Bruno Haible  <bruno@clisp.org>
9089
9090         Unify conditionals.
9091         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
9092         macros, not at the compiler macros.
9093         * lib/pipe.c: Likewise.
9094         * lib/execute.c: Likewise.
9095         * lib/spawni.c: Likewise.
9096
9097 2009-07-19  Bruno Haible  <bruno@clisp.org>
9098
9099         Fix handling of closed stdin/stdout/stderr on mingw.
9100         * lib/w32spawn.h: Include unistd.h.
9101         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
9102         file descriptor with O_NOINHERIT flag.
9103         (fd_safer_noinherit): New function, based on fd-safer.c.
9104         (dup_safer_noinherit): New function, based on dup-safer.c.
9105         (undup_safer_noinherit): New function.
9106         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
9107         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
9108         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
9109         instead of fd_safer.
9110         * tests/test-pipe.c: Include <windows.h>.
9111         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
9112
9113         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
9114         from main.
9115         (test_pipe): Pass an extra argument for disambiguation.
9116         (main): Invoke parent_main or child_main.
9117
9118         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
9119         consistently.
9120
9121 2009-07-18  Eric Blake  <ebb9@byu.net>
9122
9123         test-pipe: fix mingw build
9124         * tests/test-pipe.c (main): Avoid fcntl on mingw.
9125
9126 2009-07-18  Bruno Haible  <bruno@clisp.org>
9127
9128         * modules/pipe-tests (Makefile.am): Fix typo.
9129
9130 2009-07-18  Eric Blake  <ebb9@byu.net>
9131
9132         error: fix mingw build
9133         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
9134         Reported by Bruno Haible.
9135
9136         error: avoid undefined use of stdout
9137         * lib/error.c (error, error_at_line): Check that fd 1 is open
9138         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
9139         is handling faults and the close_stdout module wants to report the
9140         detection of closed stdout as an error.
9141
9142 2009-07-17  Eric Blake  <ebb9@byu.net>
9143
9144         pipe: be robust in face of closed fds
9145         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
9146         should cause child to misbehave.
9147         * modules/pipe-tests: New module.
9148         * tests/test-pipe.c: New file.
9149         * tests/test-pipe.sh: New file.
9150         Reported by Akim Demaille.
9151
9152 2009-07-14  Bruno Haible  <bruno@clisp.org>
9153
9154         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
9155         Reported by anonymous kc.
9156
9157 2009-07-07  Jim Meyering  <meyering@redhat.com>
9158
9159         maint.mk: don't look for translatable strings in *.m4 or *.mk
9160         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
9161         when searching for translatable strings.
9162
9163 2009-07-05  Jim Meyering  <meyering@redhat.com>
9164
9165         remove superfluous parentheses in STREQ definition
9166         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
9167         * lib/getugroups.c (STREQ): Likewise.
9168         * lib/fnmatch.c (STREQ): Likewise.
9169         Spotted by Bruno Haible.
9170
9171 2009-07-04  Jim Meyering  <meyering@redhat.com>
9172
9173         argv-iter: new module
9174         * MODULES.html.sh: Add argv-iter.
9175         * lib/argv-iter.c, lib/argv-iter.h: New files.
9176         * modules/argv-iter: New file.
9177         * modules/argv-iter-tests: New file.
9178         * tests/test-argv-iter.c: Test it.
9179
9180 2009-07-04  Bruno Haible  <bruno@clisp.org>
9181
9182         Fix assertion.
9183         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
9184         contains more exact copies of a given entry than file2, leave the extra
9185         copies unpaired rather than aborting.
9186         Reported by Eric Blake.
9187
9188 2009-07-02  Bruno Haible  <bruno@clisp.org>
9189
9190         Speedup git-merge-changelog for git cherry-pick.
9191         * lib/git-merge-changelog.c (struct entries_mapping): New type.
9192         (entries_mapping_get): New function, extracted from compute_mapping.
9193         (entries_mapping_reverse_get): New function.
9194         (compute_mapping): Add a 'full' argument. Return the result in a
9195         'struct entries_mapping'.
9196         (main): Update. Access the mappings through entries_mapping_get.
9197         Reported by Eric Blake.
9198
9199 2009-07-02  Bruno Haible  <bruno@clisp.org>
9200
9201         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
9202         best_i.
9203
9204 2009-07-02  Bruno Haible  <bruno@clisp.org>
9205
9206         Speed up approximate search for matching ChangeLog entries.
9207         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
9208         argument. Call fstrcmp_bounded instead of fstrcmp.
9209         (compute_mapping, try_split_merged_entry, main): Update callers.
9210
9211 2009-07-02  Bruno Haible  <bruno@clisp.org>
9212
9213         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
9214
9215 2009-06-30  Bruno Haible  <bruno@clisp.org>
9216
9217         Reduce the number of uc_is_cased calls.
9218         * lib/unicase.h (casing_suffix_context_t): Add
9219         'first_char_except_ignorable' field.
9220         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
9221         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
9222         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
9223         Update initializer.
9224         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
9225         case-ignorable characters.
9226         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
9227         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
9228         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
9229         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
9230         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
9231
9232 2009-06-30  Bruno Haible  <bruno@clisp.org>
9233
9234         Tests for module 'unicase/ignorable'.
9235         * modules/unicase/ignorable-tests: New file.
9236         * tests/unicase/test-ignorable.c: New file, generated by
9237         gen-uni-tables.
9238
9239         Tests for module 'unicase/cased'.
9240         * modules/unicase/cased-tests: New file.
9241         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
9242         * tests/unicase/test-predicate-part1.h: New file, derived from
9243         tests/unictype/test-predicate-part1.h.
9244         * tests/unicase/test-predicate-part2.h: New file, same as
9245         tests/unictype/test-predicate-part2.h.
9246
9247         Fix evaluation of "Before C" condition of FINAL_SIGMA.
9248         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
9249         (output_casing_properties): New function.
9250         (main): Call it.
9251         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
9252         * lib/unicase/cased.c: Include unictype/bitmap.h.
9253         (uc_is_cased): Define through a bitmap lookup.
9254         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
9255         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
9256         (uc_is_case_ignorable): Define through a bitmap lookup.
9257         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
9258         lib/unictype/bitmap.h.
9259         (Depends-on): Add inline. Clean up.
9260         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
9261         lib/unictype/bitmap.h.
9262         (Depends-on): Add inline. Clean up.
9263         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
9264         recognition.
9265         * tests/unicase/test-u16-tolower.c (main): Likewise.
9266         * tests/unicase/test-u32-tolower.c (main): Likewise.
9267
9268 2009-06-30  Bruno Haible  <bruno@clisp.org>
9269
9270         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
9271         * lib/unicase/u16-casemap.c: Likewise.
9272         * lib/unicase/u32-casemap.c: Likewise.
9273
9274 2009-06-29  Bruno Haible  <bruno@clisp.org>
9275
9276         Define u32_casefold as a wrapper around u32_ct_casefold.
9277         * lib/unicase/u32-casefold.c: Update.
9278         * modules/unicase/u32-casefold (Depends-on): Add
9279         unicase/u32-ct-casefold, unicase/empty-prefix-context,
9280         unicase/empty-suffix-context. Clean up.
9281
9282         Define u16_casefold as a wrapper around u16_ct_casefold.
9283         * lib/unicase/u16-casefold.c: Update.
9284         * modules/unicase/u16-casefold (Depends-on): Add
9285         unicase/u16-ct-casefold, unicase/empty-prefix-context,
9286         unicase/empty-suffix-context. Clean up.
9287
9288         Define u8_casefold as a wrapper around u8_ct_casefold.
9289         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
9290         * lib/unicase/u8-casefold.c: Update.
9291         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
9292         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9293
9294         Define u32_totitle as a wrapper around u32_ct_totitle.
9295         * lib/unicase/u32-totitle.c: Update.
9296         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
9297         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9298
9299         Define u16_totitle as a wrapper around u16_ct_totitle.
9300         * lib/unicase/u16-totitle.c: Update.
9301         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
9302         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9303
9304         Define u8_totitle as a wrapper around u8_ct_totitle.
9305         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
9306         functions.
9307         (FUNC): Delegate to U_CT_TOTITLE.
9308         * lib/unicase/u8-totitle.c: Update.
9309         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
9310         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9311
9312         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
9313         invocation.
9314         * modules/unicase/u32-tolower (Depends-on): Add
9315         unicase/empty-prefix-context, unicase/empty-suffix-context.
9316
9317         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
9318         invocation.
9319         * modules/unicase/u16-tolower (Depends-on): Add
9320         unicase/empty-prefix-context, unicase/empty-suffix-context.
9321
9322         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
9323         * modules/unicase/u8-tolower (Depends-on): Add
9324         unicase/empty-prefix-context, unicase/empty-suffix-context.
9325
9326         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
9327         invocation.
9328         * modules/unicase/u32-toupper (Depends-on): Add
9329         unicase/empty-prefix-context, unicase/empty-suffix-context.
9330
9331         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
9332         invocation.
9333         * modules/unicase/u16-toupper (Depends-on): Add
9334         unicase/empty-prefix-context, unicase/empty-suffix-context.
9335
9336         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
9337         * modules/unicase/u8-toupper (Depends-on): Add
9338         unicase/empty-prefix-context, unicase/empty-suffix-context.
9339
9340         New module 'unicase/u32-ct-casefold'.
9341         * lib/unicase/u32-ct-casefold.c: New file.
9342         * modules/unicase/u32-ct-casefold: New file.
9343
9344         New module 'unicase/u16-ct-casefold'.
9345         * lib/unicase/u16-ct-casefold.c: New file.
9346         * modules/unicase/u16-ct-casefold: New file.
9347
9348         New module 'unicase/u8-ct-casefold'.
9349         * lib/unicase/u8-ct-casefold.c: New file.
9350         * lib/unicase/u-ct-casefold.h: New file, derived from
9351         lib/unicase/u-casefold.h.
9352         * modules/unicase/u8-ct-casefold: New file.
9353
9354         New module 'unicase/u32-ct-totitle'.
9355         * lib/unicase/u32-ct-totitle.c: New file.
9356         * modules/unicase/u32-ct-totitle: New file.
9357
9358         New module 'unicase/u16-ct-totitle'.
9359         * lib/unicase/u16-ct-totitle.c: New file.
9360         * modules/unicase/u16-ct-totitle: New file.
9361
9362         New module 'unicase/u8-ct-totitle'.
9363         * lib/unicase/u8-ct-totitle.c: New file.
9364         * lib/unicase/u-ct-totitle.h: New file, derived from
9365         lib/unicase/u-totitle.h.
9366         * modules/unicase/u8-ct-totitle: New file.
9367
9368         New module 'unicase/u32-ct-tolower'.
9369         * lib/unicase/u32-ct-tolower.c: New file.
9370         * modules/unicase/u32-ct-tolower: New file.
9371
9372         New module 'unicase/u16-ct-tolower'.
9373         * lib/unicase/u16-ct-tolower.c: New file.
9374         * modules/unicase/u16-ct-tolower: New file.
9375
9376         New module 'unicase/u8-ct-tolower'.
9377         * lib/unicase/u8-ct-tolower.c: New file.
9378         * modules/unicase/u8-ct-tolower: New file.
9379
9380         New module 'unicase/u32-ct-toupper'.
9381         * lib/unicase/u32-ct-toupper.c: New file.
9382         * modules/unicase/u32-ct-toupper: New file.
9383
9384         New module 'unicase/u16-ct-toupper'.
9385         * lib/unicase/u16-ct-toupper.c: New file.
9386         * modules/unicase/u16-ct-toupper: New file.
9387
9388         New module 'unicase/u8-ct-toupper'.
9389         * lib/unicase/u8-ct-toupper.c: New file.
9390         * modules/unicase/u8-ct-toupper: New file.
9391
9392         Add context arguments to u*_casemap functions.
9393         * lib/unicase/unicasemap.h: Include unicase.h.
9394         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
9395         suffix_context arguments.
9396         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
9397         functions.
9398         (FUNC): Add prefix_context and suffix_context arguments. Use
9399         uc_is_cased and uc_is_case_ignorable.
9400         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
9401         * lib/unicase/u16-casemap.c: Likewise.
9402         * lib/unicase/u32-casemap.c: Likewise.
9403         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
9404         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9405         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
9406         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9407         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
9408         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9409
9410         New module 'unicase/u32-suffix-context'.
9411         * lib/unicase/u32-suffix-context.c: New file.
9412         * modules/unicase/u32-suffix-context: New file.
9413
9414         New module 'unicase/u16-suffix-context'.
9415         * lib/unicase/u16-suffix-context.c: New file.
9416         * modules/unicase/u16-suffix-context: New file.
9417
9418         New module 'unicase/u8-suffix-context'.
9419         * lib/unicase/u8-suffix-context.c: New file.
9420         * lib/unicase/u-suffix-context.h: New file.
9421         * modules/unicase/u8-suffix-context: New file.
9422
9423         New module 'unicase/empty-suffix-context'.
9424         * lib/unicase/empty-suffix-context.c: New file.
9425         * modules/unicase/empty-suffix-context: New file.
9426
9427         New module 'unicase/u32-prefix-context'.
9428         * lib/unicase/u32-prefix-context.c: New file.
9429         * modules/unicase/u32-prefix-context: New file.
9430
9431         New module 'unicase/u16-prefix-context'.
9432         * lib/unicase/u16-prefix-context.c: New file.
9433         * modules/unicase/u16-prefix-context: New file.
9434
9435         New module 'unicase/u8-prefix-context'.
9436         * lib/unicase/u8-prefix-context.c: New file.
9437         * lib/unicase/u-prefix-context.h: New file.
9438         * lib/unicase/context.h: New file.
9439         * modules/unicase/u8-prefix-context: New file.
9440
9441         New module 'unicase/empty-prefix-context'.
9442         * lib/unicase/empty-prefix-context.c: New file.
9443         * modules/unicase/empty-prefix-context: New file.
9444
9445         New module 'unicase/ignorable'.
9446         * lib/unicase/ignorable.c: New file.
9447         * modules/unicase/ignorable: New file.
9448
9449         New module 'unicase/cased'.
9450         * lib/unicase/caseprop.h: New file.
9451         * lib/unicase/cased.c: New file.
9452         * modules/unicase/cased: New file.
9453
9454         New functions for case mapping of substrings.
9455         * lib/unicase.h (casing_prefix_context_t): New type.
9456         (unicase_empty_prefix_context): New variable.
9457         (u8_casing_prefix_context, u16_casing_prefix_context,
9458         u32_casing_prefix_context, u8_casing_prefixes_context,
9459         u16_casing_prefixes_context, u32_casing_prefixes_context): New
9460         declarations.
9461         (casing_suffix_context_t): New type.
9462         (unicase_empty_suffix_context): New variable.
9463         (u8_casing_suffix_context, u16_casing_suffix_context,
9464         u32_casing_suffix_context, u8_casing_suffixes_context,
9465         u16_casing_suffixes_context, u32_casing_suffixes_context,
9466         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
9467         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
9468         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
9469         declarations.
9470
9471 2009-06-28  Jim Meyering  <meyering@redhat.com>
9472
9473         boostrap: indent only with spaces
9474         * build-aux/bootstrap: Indent only with spaces, never TABs.
9475
9476         bootstrap: split long lines
9477         * build-aux/bootstrap: Keep line length < 80.
9478
9479         bootstrap: sync from coreutils
9480         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
9481         just as autoreconf does.  Verify a list of prerequisite
9482         package-name,version-number pairs if defined in bootstrap.conf.
9483         Refer to README-prereq, if prerequisites are not satisfied.
9484
9485 2009-06-27  Eric Blake  <ebb9@byu.net>
9486
9487         tests: add test for bogus NULL definition
9488         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
9489         * tests/test-stdlib.c: Likewise.
9490         * tests/test-string.c: Likewise.
9491         * tests/test-locale.c: Likewise.
9492         * tests/test-unistd.c: Likewise.
9493         * modules/stdio-tests (Depends-on): Add verify.
9494         * modules/stdlib-tests (Depends-on): Likewise.
9495         * modules/string-tests (Depends-on): Likewise.
9496         * modules/locale-tests (Depends-on): Likewise.
9497         * modules/unistd-tests (Depends-on): Likewise.
9498
9499 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
9500
9501         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
9502         self-explaining comment.
9503         * m4/selinux-selinux-h: Update serial.
9504         (gl_LIBSELINUX): New macro, adding a warning for missing development
9505         packages to code extracted from...
9506         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
9507         Add warning for missing development packages here, too.
9508
9509 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
9510
9511         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
9512
9513 2009-06-25  Eric Blake  <ebb9@byu.net>
9514
9515         version-etc: fix regression
9516         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
9517         gcc.
9518         (version_etc): Use it, to catch bugs with trailing NULL.
9519         * lib/version-etc.c (version_etc_arn): Delete unused argument.
9520         (version_etc_va): Fix logic bug.
9521         * modules/version-etc-tests: Add test.
9522         * tests/test-version-etc.c: New file.
9523         * tests/test-version-etc.sh: Likewise.
9524
9525 2009-06-25  Sam Steingold  <sds@gnu.org>
9526
9527         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
9528         mbtowc declaration.
9529
9530 2009-06-25  Eric Blake  <ebb9@byu.net>
9531
9532         fpurge: migrate into <stdio.h>
9533         * lib/fpurge.h: Delete...
9534         * lib/stdio.in.h (fpurge): ...and declare here, instead.
9535         * lib/fpurge.c (fpurge): Change declaring header.
9536         * modules/fpurge (Files): Drop deleted file.
9537         (Depends-on): Add stdio.
9538         (configure.ac): Set witness.
9539         * modules/stdio (Makefile.am): Support fpurge macros.
9540         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9541         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
9542         * lib/fflush.c: Update client.
9543         * tests/test-fpurge.c: Likewise.
9544         * NEWS: Mention the change.
9545
9546 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9547
9548         * lib/argp-version-etc.c (program_authors): Add const
9549         qualifier.
9550         * lib/version-etc.c: Fix typos in the comments.
9551         * modules/argp-version-etc: Depends on version-etc.
9552
9553 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9554
9555         argp-version-etc: new module.
9556
9557         * lib/argp-version-etc.c: New file.
9558         * lib/argp-version-etc.h: New file.
9559         * modules/argp-version-etc: New file.
9560         * modules/argp-version-etc-tests: New file.
9561         * tests/test-argp-version-etc.c: New test.
9562         * tests/test-argp-version-etc-1.sh: New test.
9563
9564 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
9565
9566         Provide additional interfaces and documentation for version-etc
9567         module.
9568
9569         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
9570         interfaces.
9571         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
9572         prototypes.
9573
9574 2009-06-24  Bruno Haible  <bruno@clisp.org>
9575
9576         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
9577         HAVE_LIB${NAME} macro.
9578         Reported by Sam Steingold <sds@gnu.org>.
9579
9580 2009-06-23  Simon Josefsson  <simon@josefsson.org>
9581
9582         * modules/hash-tests (test_hash_LDADD): Link to libintl when
9583         needed.
9584
9585 2009-06-21  Bruno Haible  <bruno@clisp.org>
9586
9587         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
9588         work.
9589         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
9590         together with LIB${NAME}, LTLIB${NAME}.
9591         Reported by Sam Steingold <sds@gnu.org>.
9592
9593 2009-06-20  Jim Meyering  <meyering@redhat.com>
9594
9595         tests: make sc_require_test_exit_idiom more generic
9596         * top/maint.mk (Exit_witness_file): New overridable variable.
9597         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
9598         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
9599
9600 2009-06-19  Jim Meyering  <meyering@redhat.com>
9601
9602         hash: reverse order of src/dst parameters in an internal interface
9603         * lib/hash.c (transfer_entries): Reverse order of parameters to
9604         put DST before SRC.  Adjust callers.
9605
9606         tests: test-hash: avoid wholesale duplication
9607         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
9608         Instead, use a loop and add a single conditional.
9609
9610         tests: test-hash: allow seed selection via a command line argument
9611         * tests/test-hash.c (get_seed): New function.
9612         (main): Use it.
9613
9614 2009-06-19  Eric Blake  <ebb9@byu.net>
9615
9616         hash: avoid memory leak on allocation failure
9617         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
9618         failure.  Factor repeated algorithm...
9619         (transfer_entries): ...into new helper routine.
9620         (hash_delete): React to hash_rehash return value.
9621
9622         hash: reduce memory pressure in hash_rehash no-op case
9623         * lib/hash.c (next_prime): Avoid overflow.
9624         (hash_initialize): Factor bucket size computation...
9625         (compute_bucket_size): ...into new helper function.
9626         (hash_rehash): Use new function and open coding to reduce memory
9627         pressure, and avoid a memory leak in USE_OBSTACK code.
9628         Reported by Jim Meyering.
9629
9630 2009-06-18  Eric Blake  <ebb9@byu.net>
9631
9632         hash: make rotation more obvious
9633         * modules/hash (Depends-on): Add bitrotate and stdint.
9634         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
9635         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
9636         (SIZE_MAX): Rely on headers for definition.
9637         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
9638         (raw_hasher): Use rotr_sz.
9639         Suggested by Jim Meyering.
9640
9641         hash: fix memory leak in last patch
9642         * lib/hash.c (hash_rehash): Avoid memory leak.
9643
9644         hash: avoid no-op rehashing
9645         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
9646
9647         hash: provide default callback functions
9648         * lib/hash.c (raw_hasher, raw_comparator): New functions.
9649         (hash_initialize): Use them as defaults.
9650         * tests/test-hash.c (main): Test this.
9651
9652         hash: minor optimization
9653         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
9654         when possible.
9655         (hash_initialize): Document this promise.
9656         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
9657         * tests/test-hash.c (hash_compare_strings): Test this.
9658
9659 2009-06-18  Bruno Haible  <bruno@clisp.org>
9660
9661         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
9662         going to be replaced anyway.
9663
9664 2009-06-18  Bruno Haible  <bruno@clisp.org>
9665
9666         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
9667         in one place.
9668         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
9669         be replaced anyway.
9670
9671 2009-06-18  Eric Blake  <ebb9@byu.net>
9672
9673         hash: check for resize before insertion
9674         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
9675         threshold before insertion, so that a pathological hash_rehash
9676         that fills every bucket can still trigger another rehash.
9677
9678 2009-06-18  Jim Meyering  <meyering@redhat.com>
9679
9680         hash-tests: add a loop around the small tests
9681         * tests/test-hash.c (main): Repeat small tests with selected
9682         small initial table sizes.
9683
9684 2009-06-17  Eric Blake  <ebb9@byu.net>
9685
9686         hash: minor cleanups
9687         * lib/hash.h (hash_entry): Make opaque, by moving...
9688         * lib/hash.c (hash_entry): ...here.
9689         (hash_insert): Clarify restrictions on what can be inserted.
9690         (hash_get_next): Clarify when it is safe to remove an element
9691         during traversal.
9692         (check_tuning): Skip verification when tuning is known safe.
9693         (hash_initialize): Clarify restrictions on tuning.
9694
9695 2009-06-17  Jim Meyering  <jim@meyering.net>
9696         and Eric Blake  <ebb9@byu.net>
9697
9698         hash-tests: new module
9699         * modules/hash-tests: New file.
9700         * tests/test-hash.c: New file.
9701
9702 2009-06-17  Eric Blake  <ebb9@byu.net>
9703
9704         strstr-simple: document new module
9705         * MODULES.html.sh: Document new module.
9706
9707         strstr, strcasestr: replace on platforms with broken memchr
9708         * modules/strstr: Split into...
9709         * modules/strstr-simple: ...new module that does not care about
9710         performance, but does care about glibc bug.
9711         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
9712         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
9713         if platform memchr is broken, per Debian bug 521737.
9714         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
9715         memchr.
9716         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
9717         * doc/posix-functions/strstr.texi (strstr): Document the fix.
9718         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9719         * modules/mountlist (Depends-on): Add strstr-simple.
9720         * modules/gen-uni-tables (Depends-on): Likewise.
9721         * modules/argz (Depends-on): Add strstr.
9722
9723 2009-06-17  Bruno Haible  <bruno@clisp.org>
9724
9725         * modules/posix_spawn-internal (Depends-on): Add errno.
9726
9727 2009-06-17  Bruno Haible  <bruno@clisp.org>
9728
9729         Define missing ESTALE on Interix 3.5.
9730         * lib/errno.in.h (ESTALE): Assign a value if missing.
9731         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
9732         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
9733         missing.
9734         * doc/posix-headers/errno.texi: Mention the Interix bug.
9735         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
9736
9737 2009-06-15  Eric Blake  <ebb9@byu.net>
9738
9739         memchr, memchr2: add valgrind exception
9740         * lib/memchr.valgrind: New file.
9741         * lib/memchr2.valgrind: New file.
9742         * modules/memchr (Files): Distribute valgrind file.
9743         * modules/memchr2 (Files): Likewise.
9744
9745         docs: memchr is no longer obsolete
9746         * MODULES.html.sh: Move memchr from obsolete to string.h section.
9747         * lib/string.in.h (memchr): Simplify logic.
9748
9749 2009-06-14  Jim Meyering  <meyering@redhat.com>
9750
9751         link-follow: fix the "checking..." message to not mention trailing slash
9752         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
9753         never considered trailing slashes.
9754
9755 2009-06-14  Bruno Haible  <bruno@clisp.org>
9756
9757         * m4/memchr.m4: Mention also the bug on IA-64.
9758         * doc/posix-functions/memchr.texi: Likewise.
9759
9760 2009-06-12  Eric Blake  <ebb9@byu.net>
9761
9762         memchr: detect broken x86_64 and alpha implementations
9763         * modules/memchr-tests (Depends-on): Move mmap detection...
9764         * modules/memchr (Depends-on): ...here.
9765         (configure.ac): Set indicator.
9766         * lib/string.in.h (memchr): Declare replacement.
9767         * modules/string (Makefile.am): Trigger replacement.
9768         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
9769         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
9770         bugs.
9771         * doc/posix-functions/memchr.texi (memchr): Document the bug.
9772         * modules/getpagesize (License): Relax license.
9773
9774 2009-06-11  Bruno Haible  <bruno@clisp.org>
9775
9776         * lib/idpriv.h: Add more references.
9777
9778 2009-06-08  Bruno Haible  <bruno@clisp.org>
9779
9780         Tests for module 'idpriv-droptemp'.
9781         * modules/idpriv-droptemp-tests: New file.
9782         * tests/test-idpriv-droptemp.sh: New file.
9783         * tests/test-idpriv-droptemp.su.sh: New file.
9784         * tests/test-idpriv-droptemp.c: New file.
9785
9786         New module 'idpriv-droptemp'.
9787         * lib/idpriv-droptemp.c: New file.
9788         * modules/idpriv-droptemp: New file.
9789
9790 2009-06-08  Bruno Haible  <bruno@clisp.org>
9791
9792         Tests for module 'idpriv-drop'.
9793         * modules/idpriv-drop-tests: New file.
9794         * tests/test-idpriv-drop.sh: New file.
9795         * tests/test-idpriv-drop.su.sh: New file.
9796         * tests/test-idpriv-drop.c: New file.
9797
9798         New module 'idpriv-drop'.
9799         * lib/idpriv.h: New file.
9800         * lib-idpriv-drop.c: New file.
9801         * m4/idpriv.m4: New file.
9802         * modules/idpriv-drop: New file.
9803
9804 2009-06-08  Bruno Haible  <bruno@clisp.org>
9805
9806         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
9807         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9808         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9809         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9810         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9811         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9812         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9813
9814 2009-06-08  Eric Blake  <ebb9@byu.net>
9815
9816         test-strstr: use memory fence, when possible
9817         * tests/test-strstr.c (main): Use memory fence, in order to be
9818         more likely to trigger Debian bug 521737.
9819         * modules/strstr-tests (Files): Pull in additional files.
9820
9821         memchr: no longer obsolete, for wider field testing
9822         * modules/memchr (Status, Notice): Delete, this module is no
9823         longer obsolete.
9824         * modules/vasnprintf (Depends-on): Add memchr.
9825
9826 2009-06-07  Jim Meyering  <meyering@redhat.com>
9827
9828         hash: declare some functions with the warn_unused_result attribute
9829         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
9830
9831 2009-06-07  Bruno Haible  <bruno@clisp.org>
9832
9833         * tests/test-alignof.c: Don't test int64_t if it does not exist.
9834         Reported by Eric Blake.
9835
9836 2009-06-06  Eric Blake  <ebb9@byu.net>
9837
9838         test-alignof: fix typo with long double
9839         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
9840         compiler error.
9841
9842 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
9843
9844         Escape non-texinfo { and }s.
9845         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
9846         markup error.
9847
9848 2009-06-04  Jim Meyering  <meyering@redhat.com>
9849
9850         gitlog-to-changelog: don't infloop on an empty commit log
9851         * build-aux/gitlog-to-changelog: Warn about an empty log message.
9852         Reported by Boris Petersen <transacid@centerim.org>.
9853
9854 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
9855
9856         version-etc: extend for packagers
9857         Add three new configure options, intended for packagers:
9858           --with-packager="packager name"
9859           --with-packager-version="packager-specific version"
9860           --with-packager-bug-reports="packager bug reporting"
9861         An example with coreutils:
9862           $ ./configure \
9863             --with-packager=Gentoo \
9864             --with-packager-bug-report=http://bugs.gentoo.org/ \
9865             --with-packager-version="patchset 1.6"
9866           $ ./src/ls --version | head -n2
9867           ls (GNU coreutils) 7.1-dirty
9868           Packaged by Gentoo (patchset 1.6)
9869         Note that the bug reporting info via --help doesn't show up because
9870         coreutils uses its own custom emit_bug_reporting_address() implementation
9871         in src/system.h.  If it didn't, it'd look like:
9872           $ ./src/ls --help | tail -n4
9873           Report bugs to <bug-coreutils@gnu.org>.
9874           Report Gentoo bugs to <http://bugs.gentoo.org/>.
9875           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
9876           General help using GNU software: <http://www.gnu.org/gethelp/>.
9877         * lib/version-etc.c: Print new information, if provided.
9878         * m4/version-etc.m4: New file.
9879         * modules/version-etc (Files): Add m4/version-etc.m4.
9880         (configure.ac): Add gl_VERSION_ETC.
9881
9882 2009-05-31  Bruno Haible  <bruno@clisp.org>
9883
9884         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
9885         and 'int64_t'.
9886         * modules/alignof-tests (Dependencies): Add stdint.
9887         Reported by Eric Blake.
9888
9889 2009-05-31  Bruno Haible  <bruno@clisp.org>
9890
9891         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
9892         restriction due to compiler bugs.
9893         Reported by Eric Blake.
9894
9895 2009-05-31  Simon Josefsson  <simon@josefsson.org>
9896             Bruno Haible  <bruno@clisp.org>
9897
9898         Fix test-alignof failure.
9899         * lib/alignof.h (alignof_slot): New macro.
9900         (alignof_type): New macro, with the same semantics as the previous
9901         'alignof'.
9902         (alignof): Alias to alignof_slot.
9903         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
9904         check that the results are usable as constant expressions.
9905
9906 2009-05-31  Bruno Haible  <bruno@clisp.org>
9907
9908         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
9909         * tests/test-memchr.c (main): Check that memchr does not read past the
9910         first occurrence of the byte.
9911         * tests/test-strstr.c (main): Update comment.
9912         Suggested by Eric Blake.
9913
9914 2009-05-30  Bruno Haible  <bruno@clisp.org>
9915
9916         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
9917         detail how to use dumpbin.
9918         Reported by David Byron <dbyron@dbyron.com>.
9919
9920 2009-06-02  Simon Josefsson  <simon@josefsson.org>
9921
9922         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
9923
9924 2009-06-02  Simon Josefsson  <simon@josefsson.org>
9925
9926         * m4/manywarnings.m4: Add GCC 4.4 warnings.
9927
9928 2009-05-28  Bruno Haible  <bruno@clisp.org>
9929
9930         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
9931         build-aux/ files.
9932
9933 2009-05-28  Simon Josefsson  <simon@josefsson.org>
9934
9935         * gnulib-tool (func_import): Transform license on build-aux/ files too.
9936
9937 2009-05-27  Simon Josefsson  <simon@josefsson.org>
9938
9939         * gnulib-tool (sed_transform_main_lib_file)
9940         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
9941         regexps.
9942
9943 2009-05-26  Simon Josefsson  <simon@josefsson.org>
9944
9945         * tests/test-strstr.c: Add another self-test.
9946         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
9947         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
9948
9949 2009-05-23  Bruno Haible  <bruno@clisp.org>
9950
9951         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
9952         change.
9953
9954 2009-05-21  Bruno Haible  <bruno@clisp.org>
9955
9956         Simplify use of mode_t varargs.
9957         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
9958         uses 'mode_t' or 'int'.
9959         * lib/openat.c (openat): Likewise.
9960         * lib/open-safer.c (open_safer): Likewise.
9961         * m4/mode_t.m4: New file.
9962         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
9963         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
9964         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
9965         * modules/open (Files): Add m4/mode_t.m4.
9966         * modules/openat (Files): Likewise.
9967         * modules/fcntl-safer (Files): Likewise.
9968         Suggested by Eric Blake.
9969
9970 2009-05-21  Pádraig Brady  <P@draigbrady.com>
9971
9972         * doc/glibc-functions/fallocate.texi: New file.
9973         * doc/gnulib.texi: Include it.
9974
9975 2009-05-21  Eric Blake  <ebb9@byu.net>
9976             Bruno Haible  <bruno@clisp.org>
9977
9978         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
9979         invocations.
9980         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
9981
9982 2009-05-21  Eric Blake  <ebb9@byu.net>
9983             Bruno Haible  <bruno@clisp.org>
9984
9985         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
9986         include_next. Fix of 2008-11-20 commit.
9987         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
9988         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
9989         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
9990         NEXT_MATH_H.
9991         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
9992         instead of NEXT_MATH_H.
9993
9994 2009-05-21  Bruno Haible  <bruno@clisp.org>
9995
9996         Avoid redefinition warnings for SIZE_MAX.
9997         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
9998         Reported by Simon Josefsson.
9999
10000 2009-05-21  Bruno Haible  <bruno@clisp.org>
10001
10002         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
10003         AC_CACHE_VAL.
10004
10005 2009-05-20  Bruno Haible  <bruno@clisp.org>
10006
10007         Make zeroptr.h work on mingw.
10008         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
10009         mprotect.
10010         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
10011         * modules/memchr2-tests (configure.ac): Likewise.
10012         * modules/memcmp-tests (configure.ac): Likewise.
10013         * modules/memmem-tests (configure.ac): Likewise.
10014         * modules/memrchr-tests (configure.ac): Likewise.
10015         Reported by Simon Josefsson.
10016
10017 2009-05-20  Simon Josefsson  <simon@josefsson.org>
10018
10019         * tests/test-glob.c: Include string.h for strcmp prototype.
10020
10021 2009-05-20  Simon Josefsson  <simon@josefsson.org>
10022
10023         * modules/getdelim (Depends-on): Add explicit stdint, although it
10024         was implicitly already pulled in via realloc-posix.
10025         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
10026
10027 2009-05-20  Simon Josefsson  <simon@josefsson.org>
10028
10029         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
10030         G. Christensen" <tgc@jupiterrise.com>.
10031         * m4/sys_socket_h.m4: Check for sa_family_t.
10032         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
10033         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
10034         * tests/test-sys_socket.c: Check that sa_family_t works.
10035
10036 2009-05-18  Eric Blake  <ebb9@byu.net>
10037
10038         maint.mk: allow gnulib_dir in VPATH build
10039         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
10040
10041 2009-05-15  Jim Meyering  <meyering@redhat.com>
10042
10043         maint.mk: Give gnulib_dir a default definition.
10044         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
10045         Thus, most packages no longer need to specify this variable in cfg.mk
10046
10047 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
10048
10049         rename.m4: fix typos that would make non-mingw cross-configure fail
10050         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
10051
10052 2009-05-13  Eric Blake  <ebb9@byu.net>
10053
10054         mmap-anon: avoid out-of-order autoconf expansion
10055         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
10056         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
10057         * modules/memchr-tests (Depends-on): Add extensions.
10058         * modules/memchr2-tests (Depends-on): Add extensions.
10059         * modules/memcmp-tests (Depends-on): Add extensions.
10060         * modules/memmem-tests (Depends-on): Add extensions.
10061         * modules/memrchr-tests (Depends-on): Add extensions.
10062
10063 2009-05-13  Bruno Haible  <bruno@clisp.org>
10064
10065         Make some tests ISO C 99 compliant.
10066         * tests/zerosize-ptr.h: New file.
10067         * tests/test-memchr.c: Include zerosize-ptr.h.
10068         (main): Use a zero-size object pointer instead of NULL.
10069         * tests/test-memchr2.c: Include zerosize-ptr.h.
10070         (main): Use a zero-size object pointer instead of NULL.
10071         * tests/test-memcmp.c: Include zerosize-ptr.h.
10072         (main): Use a zero-size object pointer instead of NULL.
10073         * tests/test-memmem.c: Include zerosize-ptr.h.
10074         (main): Use a zero-size object pointer instead of NULL.
10075         * tests/test-memrchr.c: Include zerosize-ptr.h.
10076         (main): Use a zero-size object pointer instead of NULL.
10077         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
10078         m4/mmap-anon.m4.
10079         (Depends-on): Add getpagesize.
10080         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10081         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
10082         m4/mmap-anon.m4.
10083         (Depends-on): Add getpagesize.
10084         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10085         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
10086         m4/mmap-anon.m4.
10087         (Depends-on): Add getpagesize.
10088         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10089         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
10090         m4/mmap-anon.m4.
10091         (Depends-on): Add getpagesize.
10092         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10093         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
10094         m4/mmap-anon.m4.
10095         (Depends-on): Add getpagesize.
10096         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10097
10098 2009-05-12  Bruno Haible  <bruno@clisp.org>
10099
10100         Tests for module 'alignof'.
10101         * modules/alignof-tests: New file.
10102         * tests/test-alignof.c: New file.
10103
10104 2009-05-12  Bruno Haible  <bruno@clisp.org>
10105
10106         Fix alignof macro.
10107         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
10108         vendor compilers that are always correct.
10109
10110 2009-05-12  Bruno Haible  <bruno@clisp.org>
10111
10112         Make the MAP_ANONYMOUS detection work on HP-UX 11.
10113         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
10114         not whether its fully works.
10115
10116 2009-05-12  Bruno Haible  <bruno@clisp.org>
10117
10118         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
10119
10120 2009-05-12  Jim Meyering  <meyering@redhat.com>
10121
10122         * top/maint.mk: Adjust backslash alignment.
10123
10124 2009-05-11  Simon Josefsson  <simon@josefsson.org>
10125
10126         * top/maint.mk: Make $(srcdir)/build-aux configurable.
10127
10128 2009-05-11  Eric Blake  <ebb9@byu.net>
10129
10130         argp: avoid undefined behavior
10131         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
10132         macros.
10133
10134 2009-05-08  Simon Josefsson  <simon@josefsson.org>
10135
10136         * tests/test-vc-list-files-git.sh: Do git config of user.email and
10137         user.name to prevent git commit from complaining.
10138
10139 2009-05-10  Bruno Haible  <bruno@clisp.org>
10140
10141         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
10142         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
10143         it rewrites every file name only once.
10144         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
10145
10146 2009-05-08  Bruno Haible  <bruno@clisp.org>
10147
10148         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
10149         instead of 'max'.
10150
10151 2009-05-08  Simon Josefsson  <simon@josefsson.org>
10152
10153         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
10154         sockaddr_storage test.
10155
10156 2009-05-07  Simon Josefsson  <simon@josefsson.org>
10157
10158         * modules/sys_socket (Makefile.am): Substitute
10159         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
10160         * m4/sys_socket_h.m4: Check for sockaddr_storage.
10161         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
10162         * tests/test-sys_socket.c: Check sockaddr_storage.
10163
10164 2009-05-08  Bruno Haible  <bruno@clisp.org>
10165
10166         New module 'alignof'.
10167         * lib/alignof.h: New file.
10168         * modules/alignof: New file.
10169
10170 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10171             Bruno Haible  <bruno@clisp.org>
10172
10173         Fix test-file-has-acl on FreeBSD.
10174         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
10175         mask is implicitly added.
10176         * tests/test-file-has-acl.c: Include <signal.h>.
10177         (main): Terminate the test after 5 seconds.
10178         * modules/acl-tests (configure.ac): Check for alarm function.
10179
10180 2009-05-04  Bruno Haible  <bruno@clisp.org>
10181
10182         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
10183         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
10184         * modules/errno (configure.ac): Drop AC_REQUIRE.
10185         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
10186         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
10187
10188 2009-05-04  Simon Josefsson  <simon@josefsson.org>
10189
10190         * modules/glob-tests: New module.
10191         * tests/test-glob.c: Add.
10192
10193 2009-05-04  Simon Josefsson  <simon@josefsson.org>
10194
10195         * modules/fnmatch-tests: New module.
10196         * tests/test-fnmatch.c: Add.
10197
10198 2009-05-04  Eric Blake  <ebb9@byu.net>
10199
10200         maint: make the new no-submodule-changes rule VPATH-safe
10201         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
10202
10203 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10204             Bruno Haible  <bruno@clisp.org>
10205
10206         acl: Fix infinite loop on FreeBSD.
10207         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
10208         of return value from acl_get_entry.
10209         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
10210         Likewise.
10211
10212 2009-05-03  Bruno Haible  <bruno@clisp.org>
10213
10214         * lib/acl-internal.h (acl_entries): Clarify return value.
10215         * lib/acl_entries.c (acl_entries): Likewise.
10216
10217 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10218
10219         Bug fix in acl module.
10220         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
10221
10222 2009-05-03  Bruno Haible  <bruno@clisp.org>
10223
10224         Create gperf-generated file in the source dir, not in the build dir.
10225         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
10226         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
10227         * modules/unicase/locale-language (unicase/locale-languages.h):
10228         Likewise.
10229         * modules/unicase/special-casing (unicase/special-casing-table.h):
10230         Likewise.
10231         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
10232         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
10233         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
10234         Reported by Ralf Wildenhues.
10235
10236 2009-05-03  Bruno Haible  <bruno@clisp.org>
10237
10238         * modules/fnmatch (Description, configure.ac): Taken from
10239         fnmatch-posix.
10240         * modules/fnmatch-posix: Turn into a symbolic reference to the
10241         'fnmatch' module, and deprecate.
10242         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
10243
10244 2009-05-03  Bruno Haible  <bruno@clisp.org>
10245
10246         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
10247         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
10248         Reported by Ralf Wildenhues.
10249
10250 2009-05-04  Simon Josefsson  <simon@josefsson.org>
10251
10252         * m4/fnmatch.m4: Fix fnmatch re-define.
10253
10254 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
10255
10256         priv-set: new module and tests; adapt write-any-file
10257         * lib/priv-set.c: New file.
10258         * lib/priv-set.h: New file.
10259         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
10260         * lib/write-any-file.c: Simplify by using priv-set module.
10261         * m4/priv-set.m4: New file.
10262         * modules/priv-set: New file.
10263         * modules/unlinkdir: Add dependency on priv-set module.
10264         * modules/write-any-file: Likewise.
10265
10266         Tests for module 'priv-set'.
10267         * modules/priv-set-tests: New file.
10268         * tests/test-priv-set.c: New file.
10269
10270 2009-05-03  Jim Meyering  <meyering@redhat.com>
10271             Bruno Haible  <bruno@clisp.org>
10272
10273         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
10274         use the converted UTF-8 variant of the name instead.
10275
10276 2009-05-03  Jim Meyering  <meyering@redhat.com>
10277
10278         tests: tighten some getdate tests
10279         * tests/test-getdate.c (main): Tighten tests: require equality,
10280         not just greater than.  Set TZ envvar to UTC0.
10281
10282 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
10283
10284         getdate: correctly interpret "next monday" when run on a Monday
10285         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
10286         that e.g., "next tues" (when run on a tuesday) results in a date
10287         that is one week in the future, and not today's date.
10288         I.e., add a week when the wday is the same as the current one.
10289         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
10290         and earlier by Martin Bernreuther and Jan Minář.
10291         * tests/test-getdate.c (main): Check that "next DAY" is always in
10292         the future and that "last DAY" is always in the past.
10293
10294 2009-05-02  Jim Meyering  <meyering@redhat.com>
10295
10296         build: ensure that a release build fails when a submodule is unclean
10297         * top/maint.mk (no-submodule-changes): New rule.
10298         (alpha beta major): Depend on it.
10299
10300 2009-05-02  Bruno Haible  <bruno@clisp.org>
10301
10302         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
10303         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
10304         shell variable gl_fnmatch_required to detect which variant is
10305         requested.
10306         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
10307         gl_FUNC_FNMATCH_POSIX.
10308         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
10309         exclude fnmatch-posix.
10310
10311 2009-05-02  Bruno Haible  <bruno@clisp.org>
10312
10313         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
10314         * modules/mbsrtowcs (License): Change to LGPLv2+.
10315         * modules/strnlen1 (License): Likewise.
10316         Reported by Simon Josefsson.
10317
10318 2009-05-02  Bruno Haible  <bruno@clisp.org>
10319
10320         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
10321         "cross".
10322         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
10323         gnulib-tool was called with option --source-base=lib.
10324
10325 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10326
10327         Use automake *-local hooks without commands, for extensibility.
10328         * modules/localcharset (Makefile.am): Rename install-exec-local
10329         rule to install-exec-localcharset, and make it a prerequisite of
10330         install-exec-local.  Likewise, rename the uninstall-local rule to
10331         uninstall-localcharset, and make it a prerequisite of the former.
10332
10333 2009-05-01  Bruno Haible  <bruno@clisp.org>
10334
10335         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
10336         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10337         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
10338         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
10339         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
10340         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10341         m4/locale-zh.m4, m4/codeset.m4.
10342
10343         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10344         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
10345         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10346         m4/locale-zh.m4.
10347
10348         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
10349         REPLACE_WCRTOMB if mbstate_t must be replaced.
10350         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
10351         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
10352
10353 2009-05-01  Bruno Haible  <bruno@clisp.org>
10354
10355         Avoid compiler warnings when redefining macros defined by <libintl.h>.
10356         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
10357         dngettext, dcngettext, textdomain, bindtextdomain,
10358         bind_textdomain_codeset): Undefine before redefining.
10359
10360 2009-04-30  Bruno Haible  <bruno@clisp.org>
10361
10362         Fix bug introduced on 2009-04-25.
10363         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
10364         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
10365         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
10366         is defined.
10367         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
10368         is defined.
10369         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
10370         is defined.
10371         Reported by Elbert_Pol <elbert.pol@gmail.com>.
10372
10373 2009-04-28  Bruno Haible  <bruno@clisp.org>
10374
10375         Comment tweaks.
10376         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
10377         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
10378         * lib/unicase.h (u*_casexfrm): Likewise.
10379         Reported by Paolo Bonzini.
10380
10381 2009-04-28  Bruno Haible  <bruno@clisp.org>
10382
10383         Fix a compilation error.
10384         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
10385         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
10386         Reported by Jim Meyering.
10387
10388 2009-04-27  Bruno Haible  <bruno@clisp.org>
10389
10390         New module 'libunistring'.
10391         * modules/libunistring: New file.
10392         * m4/libunistring.m4: New file.
10393         * MODULES.html.sh (Unicode string functions): Add it.
10394
10395 2009-04-27  Eric Blake  <ebb9@byu.net>
10396
10397         maint.mk: allow package-specific header to provide <config.h>
10398         * top/maint.mk (sc_require_config_h): New variable.
10399         (sc_require_config_h, sc_require_config_h_first): Use it.
10400
10401 2009-04-27  Simon Josefsson  <simon@josefsson.org>
10402
10403         * top/maint.mk (sc_avoid_if_before_free): Except
10404         useless-if-before-free script.
10405
10406 2009-04-27  Eric Blake  <ebb9@byu.net>
10407
10408         maintainer-makefile: depend on all required helper scripts
10409         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
10410         useless-if-before-free.
10411         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
10412         version, rather than assuming gnulib checkout is available.
10413         Reported by Simen Josefsson.
10414
10415 2009-04-26  Bruno Haible  <bruno@clisp.org>
10416
10417         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
10418         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
10419         "../" or "..".
10420
10421 2009-04-26  Bruno Haible  <bruno@clisp.org>
10422
10423         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
10424         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
10425         AC_LIB_HAVE_LINKFLAGS.
10426
10427 2009-04-26  Bruno Haible  <bruno@clisp.org>
10428
10429         Simplify calling convention of u*_conv_from_encoding.
10430         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
10431         u32_conv_from_encoding): Expect a resultbuf argument and return the
10432         result directly as a pointer.
10433         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
10434         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
10435         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
10436         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
10437         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
10438         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10439         Update.
10440         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
10441         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
10442         * lib/vasnprintf.c (VASNPRINTF): Update.
10443         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
10444         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
10445         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
10446         * NEWS: Mention the change.
10447
10448 2009-04-26  Bruno Haible  <bruno@clisp.org>
10449
10450         Simplify calling convention of u*_conv_to_encoding.
10451         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
10452         u32_conv_to_encoding): Expect a resultbuf argument and return the
10453         result directly as a pointer.
10454         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10455         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
10456         freeing scaled_offsets if mem_iconveha failed.
10457         * lib/unicase/u-casexfrm.h (FUNC): Update.
10458         * lib/uninorm/u-normxfrm.h (FUNC): Update.
10459         * lib/vasnprintf.c (VASNPRINTF): Update.
10460         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
10461         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
10462         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
10463         * NEWS: Mention the change.
10464
10465 2009-04-26  Bruno Haible  <bruno@clisp.org>
10466
10467         Avoid test failures on AIX and OSF/1.
10468         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
10469         malloc(0).
10470         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10471         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10472         Likewise.
10473         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
10474         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
10475         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
10476         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
10477         * doc/posix-functions/malloc.texi: Document the portability problem
10478         related to malloc(0).
10479
10480 2009-04-26  Bruno Haible  <bruno@clisp.org>
10481
10482         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
10483         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
10484         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
10485
10486 2009-04-25  Bruno Haible  <bruno@clisp.org>
10487
10488         Avoid link error when creating a namespace clean library.
10489         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
10490         as macro with arguments if already defined as an alias.
10491         * lib/signbitf.c (gl_signbitf): Don't undefine.
10492         * lib/signbitd.c (gl_signbitd): Don't undefine.
10493         * lib/signbitl.c (gl_signbitl): Don't undefine.
10494
10495 2009-04-25  Jim Meyering  <meyering@redhat.com>
10496
10497         vc-list-files: fix another quoting bug
10498         * build-aux/vc-list-files: Avoid sed backslash expansion
10499         of pathological directory names.
10500
10501 2009-04-25  Eric Blake  <ebb9@byu.net>
10502
10503         vc-list-files: fix shell quoting error
10504         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
10505         timestamp.
10506
10507 2009-04-25  Jim Meyering  <meyering@redhat.com>
10508
10509         vc-list-files: restore lost functionality with subdir argument
10510         * build-aux/vc-list-files: When given a non-"." sub-directory
10511         argument, substitute the $dir/ prefix back onto each resulting name.
10512         Otherwise, coreutils' root_tests check would fail.
10513
10514 2009-04-24  Eric Blake  <ebb9@byu.net>
10515
10516         vc-list-files: ignore git symlinks
10517         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
10518         than ls-files, to ignore git symlinks.
10519
10520         maint.mk: import improvements from m4
10521         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
10522         (move_if_change): Delete unused macro.
10523         (news-date-check, vc-diff-check): Support VPATH builds.
10524         (announcement): Likewise.  Split --bootstrap-tools list...
10525         (boostrap-tools): ...into separate list, which can be overridden
10526         in cfg.mk.
10527         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
10528         requiring dependency on useless-if-before-free module.
10529         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
10530         Support VPATH builds.
10531
10532 2009-04-24  Jim Meyering  <meyering@redhat.com>
10533
10534         maint.mk: remove coreutils-specific rules and variables
10535         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
10536         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
10537         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
10538
10539         maint.mk: remove obsolete rule
10540         * top/maint.mk (rel-check): Remove rule.
10541         (WGET, WGETFLAGS): Remove now-unused variables.
10542
10543 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10544
10545         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
10546         consistency.
10547
10548         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
10549         '$(PATH_SEPARATOR)' instead of ':'.
10550
10551 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10552
10553         * lib/getopt1.c (main): Use 'const' for static array.
10554
10555 2009-04-24  Simon Josefsson  <simon@josefsson.org>
10556
10557         * top/maint.mk: Sync with coreutils.
10558         * NEWS: Explain incompatibilities.
10559
10560 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10561             Bruno Haible  <bruno@clisp.org>
10562
10563         Fix cross-compilation results.
10564         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
10565         statement, as third argument of AC_TRY_RUN.
10566         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10567         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10568         Likewise.
10569         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10570         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10571         Likewise.
10572         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10573         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
10574         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
10575
10576 2009-04-20  Bruno Haible  <bruno@clisp.org>
10577
10578         Avoid test failure on mingw.
10579         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
10580
10581 2009-04-20  Bruno Haible  <bruno@clisp.org>
10582
10583         Avoid compilation error on mingw.
10584         * modules/localename-tests (Depends-on): Add locale.
10585
10586 2009-04-19  Bruno Haible  <bruno@clisp.org>
10587
10588         Support for building a shared library on Windows platforms.
10589         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
10590         (main): Test the presence of UNINORM_NFC here.
10591         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
10592         (main): Test the presence of UNINORM_NFD here.
10593         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
10594         (main): Test the presence of UNINORM_NFKC here.
10595         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
10596         (main): Test the presence of UNINORM_NFKD here.
10597
10598 2009-04-19  Bruno Haible  <bruno@clisp.org>
10599
10600         Avoid a compiler warning.
10601         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
10602         Change type of variable 'sequence'.
10603
10604 2009-04-19  Bruno Haible  <bruno@clisp.org>
10605
10606         * modules/configmake (Makefile.am): When the contents of configmake.h
10607         does not change, arrange to preserve its modification time.
10608
10609 2009-04-17  Simon Josefsson  <simon@josefsson.org>
10610
10611         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
10612         gettext domain.
10613
10614 2009-04-16  Jim Meyering  <meyering@redhat.com>
10615
10616         useless-if-before-free: improve conversion code
10617         * build-aux/useless-if-before-free: Adjust code-in-comment to match
10618         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
10619
10620 2009-04-14  Bruno Haible  <bruno@clisp.org>
10621
10622         * modules/fcntl (Depends-on): Add extensions.
10623         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
10624
10625 2009-04-12  Ben Pfaff  <blp@gnu.org>
10626
10627         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
10628         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
10629
10630 2009-03-20  Ben Pfaff  <blp@gnu.org>
10631
10632         Make rename replace existing destinations on Windows.
10633         * m4/rename.m4: Add test for Mingw.
10634         * lib/rename.c: Add rename replacement that uses MoveFileEx with
10635         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
10636         * doc/posix-functions/rename.texi: Document.
10637
10638 2009-04-10  Bruno Haible  <bruno@clisp.org>
10639
10640         New include file "iconveh.h".
10641         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
10642         * lib/striconveh.h: Include it.
10643         (enum iconv_ilseq_handler): Remove definition.
10644         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
10645         striconveh.h.
10646         * lib/striconveha.c: Include striconveh.h.
10647         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
10648         * modules/striconveh (Files): Add lib/iconveh.h.
10649         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
10650         lib/striconveh.h.
10651
10652 2009-04-10  Bruno Haible  <bruno@clisp.org>
10653
10654         * lib/uniconv.h: Update comment.
10655
10656 2009-04-10  Bruno Haible  <bruno@clisp.org>
10657
10658         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
10659         always.
10660         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
10661         * lib/unistr/u16-mbtouc-aux.c: Likewise.
10662         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
10663         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
10664         "unistring-notinline.h", so that the function gets defined always.
10665         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
10666         * lib/unistr/u8-uctomb.c: Likewise.
10667         * lib/unistr/u16-mbtouc.c: Likewise.
10668         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
10669         * lib/unistr/u16-uctomb.c: Likewise.
10670         * lib/unistr/u32-mbtouc.c: Likewise.
10671         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
10672         * lib/unistr/u32-uctomb.c: Likewise.
10673
10674 2009-04-10  Bruno Haible  <bruno@clisp.org>
10675
10676         Mark 'utime' obsolete.
10677         * modules/utime (Status, Notice): New sections.
10678         Suggested by Jim Meyering.
10679
10680         Fix cross-compile guess for utime test.
10681         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
10682         autoconf.
10683         * doc/posix-functions/utime.texi: Give more precisions.
10684         Reported by Jan <ipif@ymail.com>.
10685
10686 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
10687
10688         filevercmp: correct today's change
10689         * lib/filevercmp.c: Also handle coreutils' test inputs.
10690         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
10691
10692         Fix regression in 'filevercmp' module. Thanks Sven Joachim
10693         for reporting it.
10694         * lib/filevercmp.c: Special handle for "", "." and "..".
10695         * tests/test-filevercmp.c: Enlarge the set suite.
10696
10697 2009-04-07  Jim Meyering  <meyering@redhat.com>
10698
10699         useless-if-before-free: show how to remove braced useless free, too
10700         * build-aux/useless-if-before-free: still only in a comment, though.
10701
10702 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
10703
10704         maint.mk: import changes to syntax-check macros from coreutils
10705         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
10706         Use them in the relevant macros.
10707
10708 2009-04-06  Bruno Haible  <bruno@clisp.org>
10709
10710         Fix unportable use of bit-fields.
10711         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
10712         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
10713         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
10714
10715 2009-04-06  Bruno Haible  <bruno@clisp.org>
10716
10717         Avoid test failures on AIX and OSF/1.
10718         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
10719         that malloc(0) = NULL.
10720         * tests/unicase/test-u8-tolower.c (check): Likewise.
10721         * tests/unicase/test-u8-totitle.c (check): Likewise.
10722         * tests/unicase/test-u8-toupper.c (check): Likewise.
10723         * tests/unicase/test-u16-casefold.c (check): Likewise.
10724         * tests/unicase/test-u16-tolower.c (check): Likewise.
10725         * tests/unicase/test-u16-totitle.c (check): Likewise.
10726         * tests/unicase/test-u16-toupper.c (check): Likewise.
10727         * tests/unicase/test-u32-casefold.c (check): Likewise.
10728         * tests/unicase/test-u32-tolower.c (check): Likewise.
10729         * tests/unicase/test-u32-totitle.c (check): Likewise.
10730         * tests/unicase/test-u32-toupper.c (check): Likewise.
10731         * tests/uninorm/test-u8-nfc.c (check): Likewise.
10732         * tests/uninorm/test-u8-nfd.c (check): Likewise.
10733         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
10734         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
10735         * tests/uninorm/test-u16-nfc.c (check): Likewise.
10736         * tests/uninorm/test-u16-nfd.c (check): Likewise.
10737         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
10738         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
10739         * tests/uninorm/test-u32-nfc.c (check): Likewise.
10740         * tests/uninorm/test-u32-nfd.c (check): Likewise.
10741         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
10742         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
10743
10744 2009-04-05  Bruno Haible  <bruno@clisp.org>
10745
10746         Work around an autoconf limitation.
10747         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
10748         comment line if it would be longer than 3 KB.
10749
10750 2009-04-05  Bruno Haible  <bruno@clisp.org>
10751
10752         Avoid test failure with libiconv-1.13.
10753         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
10754         of the expected test results.
10755
10756 2009-04-05  Bruno Haible  <bruno@clisp.org>
10757
10758         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
10759         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
10760         that it should be installed.
10761
10762 2009-04-05  Bruno Haible  <bruno@clisp.org>
10763
10764         * gnulib-tool: New option --copy-file.
10765         (func_usage): Document it.
10766         (func_dest_tmpfilename): Moved out of func_import.
10767         (func_add_file, func_update_file): New functions, extracted from
10768         func_import.
10769         (func_import): Update.
10770
10771 2009-04-05  Karl Berry  <karl@gnu.org>
10772
10773         * README: prominently mention gnulib-tool.
10774         Rearrange sections so getting the code is near the top.
10775
10776 2009-04-05  Bruno Haible  <bruno@clisp.org>
10777
10778         * lib/unicase.h: Mention u*_cmp2.
10779         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
10780         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
10781         * lib/unicase/ulc-casecmp.c: Likewise.
10782         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
10783         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
10784         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
10785         unistr/u8-cmp.
10786         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
10787         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
10788         unistr/u16-cmp.
10789         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
10790         unistr/u32-cmp.
10791
10792         * lib/uninorm.h: Mention u*_cmp2.
10793         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
10794         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
10795         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
10796         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
10797         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
10798         unistr/u8-cmp.
10799         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
10800         unistr/u16-cmp.
10801         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
10802         unistr/u32-cmp.
10803
10804         New module 'unistr/u32-cmp2'.
10805         * lib/unistr/u32-cmp2.c: New file.
10806         * modules/unistr/u32-cmp2: New file.
10807
10808         New module 'unistr/u16-cmp2'.
10809         * lib/unistr/u16-cmp2.c: New file.
10810         * modules/unistr/u16-cmp2: New file.
10811
10812         New module 'unistr/u8-cmp2'.
10813         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
10814         * lib/unistr/u8-cmp2.c: New file.
10815         * lib/unistr/u-cmp2.h: New file.
10816         * modules/unistr/u8-cmp2: New file.
10817
10818 2009-04-05  Bruno Haible  <bruno@clisp.org>
10819
10820         * lib/unictype.h (uc_property_is_valid): New macro.
10821         * tests/unictype/test-pr_byname.c (main): Use it.
10822
10823         * lib/unistr.h: Doc fixes.
10824         * lib/uniconv.h: Doc fixes.
10825         * lib/unictype.h: Doc fixes.
10826
10827 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
10828
10829         Port coreutils 7.2 to Solaris 8.
10830
10831         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
10832         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
10833         for Solaris 8.  This is a bit of a hack, as it means it's the
10834         caller's responsibility to add -lnsl if needed, but most likely it
10835         won't be needed since only getaddrinfo uses this and getaddrinfo
10836         isn't needed on Solaris 8.
10837
10838         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
10839         problem to Solaris 8 encountered with coreutils 7.2, which
10840         resulted in a message "fnmatch.c:292: warning: passing argument 4
10841         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
10842         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
10843
10844 2009-04-03  Simon Josefsson  <simon@josefsson.org>
10845
10846         * m4/ld-version-script.m4: Add FIXME comment.
10847
10848 2009-04-02  Simon Josefsson  <simon@josefsson.org>
10849
10850         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
10851         SOVERSION variable.
10852
10853 2009-04-02  Bruno Haible  <bruno@clisp.org>
10854
10855         * Makefile (info, html, dvi, pdf): Combine the rules.
10856         Suggested by Jim Meyering.
10857
10858 2009-04-01  Bruno Haible  <bruno@clisp.org>
10859
10860         * Makefile (info, html, dvi, pdf): New targets.
10861         Reported by Reuben Thomas <rrt@sc3d.org>.
10862
10863 2009-04-01  Bruno Haible  <bruno@clisp.org>
10864
10865         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
10866         can be put into PATH.
10867         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
10868
10869 2009-04-01  Bruno Haible  <bruno@clisp.org>
10870
10871         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
10872
10873 2009-04-01  Bruno Haible  <bruno@clisp.org>
10874
10875         Rename module 'visibility'.
10876         * modules/lib-symbol-visibility: Renamed from modules/visibility.
10877         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
10878         * doc/gnulib.texi: Update.
10879         * MODULES.html.sh (Misc): Update.
10880         * NEWS: Mention the change.
10881
10882 2009-04-01  Simon Josefsson  <simon@josefsson.org>
10883
10884         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
10885         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
10886         Eric Blake <ebb9@byu.net> for review.
10887         * MODULES.html.sh: Add lib-msvc-compat.
10888         * doc/gnulib.texi: Link to new section.
10889         * m4/ld-output-def.m4: New file.
10890         * doc/ld-output-def.texi: New file.
10891
10892 2009-04-01  Simon Josefsson  <simon@josefsson.org>
10893
10894         Rename ld-version-script to lib-symbol-versions.  Suggested by
10895         Bruno Haible <bruno@clisp.org>.
10896         * modules/ld-version-script: Renamed to lib-symbol-versions.
10897         * doc/ld-version-script.texi: Fix module name.
10898         * MODULES.html.sh: Add lib-symbol-versions.
10899
10900 2009-03-31  Simon Josefsson  <simon@josefsson.org>
10901
10902         * modules/u64-tests: New file.
10903         * tests/test-u64.c: New file.
10904
10905 2009-03-04  Simon Josefsson  <simon@josefsson.org>
10906
10907         * MODULES.html.sh: Mention u64.
10908         * modules/u64: New module.
10909         * modules/crypto/sha512: Depend on u64 module instead of providing
10910         u64.h.
10911
10912 2009-03-27  Eric Blake  <ebb9@byu.net>
10913
10914         test-strerror: make debugging EAI_SYSTEM easier
10915         * modules/getaddrinfo-tests (Depends-on): Add strerror.
10916         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
10917         failure was EAI_SYSTEM.
10918
10919 2009-03-25  Bruno Haible  <bruno@clisp.org>
10920
10921         Fix a problem with --enable-relocatable on Solaris 7.
10922         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
10923         since 2008-02-24.
10924
10925 2009-03-25  Eric Blake  <ebb9@byu.net>
10926
10927         test-sockets: avoid gcc warning
10928         * tests/test-sockets.c (main): Silence compiler warning.
10929
10930 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
10931
10932         New modules nproc, pthread, contributed by Glen Lenker.
10933
10934         * MODULES.html.sh: Add pthread, nproc.
10935         * lib/nproc.c: New file.
10936         * lib/nproc.h: New file.
10937         * lib/pthread.in.h: New file.
10938         * m4/pthread.m4: New file.
10939         * modules/nproc: New file.
10940         * modules/pthread: New file.
10941
10942 2009-03-24  Simon Josefsson  <simon@josefsson.org>
10943
10944         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
10945         New variable.
10946
10947 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
10948
10949         filevercmp: handle simple~ and numbered.~3~ backup suffixes
10950         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
10951         * tests/test-filevercmp.c: Add tests for backup suffixes.
10952
10953 2009-03-24  Simon Josefsson  <simon@josefsson.org>
10954
10955         * modules/stdlib (Depends-on): Add stdint, needed when defining
10956         struct random_data on, for example, HP-UX 10.20.  Reported by
10957         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10958
10959 2009-03-24  Simon Josefsson  <simon@josefsson.org>
10960
10961         * lib/readline.c (readline): Call fflush on stdout after printing
10962         prompt.
10963
10964 2009-03-20  Bruno Haible  <bruno@clisp.org>
10965
10966         Remove dependency from 'close' module to -lws2_32 on native Windows.
10967         * lib/close-hook.h: New file.
10968         * lib/close-hook.c: New file.
10969         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
10970         w32sock.h.
10971         (_gl_close_fd_maybe_socket): Remove function.
10972         (rpl_close): Invoke execute_all_close_hooks instead of
10973         _gl_close_fd_maybe_socket.
10974         * lib/sockets.c: Include close-hook.h, w32sock.h.
10975         (close_fd_maybe_socket): New function, essentially from lib/close.c.
10976         (close_sockets_hook): New variable.
10977         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
10978         (gl_sockets_cleanup): Unregister it.
10979         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
10980         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
10981         * modules/close-hook: New file.
10982         * modules/close (Files): Remove lib/w32sock.h.
10983         (Depends-on): Add close-hook.
10984         (Link): Remove section.
10985         * modules/sockets (Files): Add lib/w32sock.h.
10986         (Depends-on): Add close-hook.
10987         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
10988         invocation.
10989         * NEWS: Mention that LIB_CLOSE is gone.
10990
10991 2009-03-23  Eric Blake  <ebb9@byu.net>
10992
10993         signal-tests: test previous patch
10994         * tests/test-signal.c: New file.
10995         * modules/signal-tests: Likewise.
10996
10997         signal.h: always support 'volatile sig_atomic_t'
10998         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
10999         (gl_SIGNAL_H_DEFAULTS): Add a default.
11000         * modules/signal (Makefile.am): Substitute if needed.
11001         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
11002         users can blindly add volatile.
11003         * doc/posix-headers/signal.texi (signal.h): Document it.
11004         Reported by Matthew Woehlke.
11005
11006 2009-03-23  Jim Meyering  <meyering@redhat.com>
11007
11008         pathmax: PATH_MAX: use pathconf only when available
11009         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
11010         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
11011         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
11012         This avoids a link failure in a PSP cross-compilation environment
11013         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
11014
11015         * lib/vasnprintf.c (divide): Fix typo in comment.
11016
11017 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11018
11019         * gnulib-tool (func_filter_filelist): Fix comment.
11020
11021 2009-03-20  Bruno Haible  <bruno@clisp.org>
11022
11023         Make sockets.h self-contained.
11024         * lib/sockets.c: Include sockets.h first.
11025         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
11026
11027 2009-03-19  Eric Blake  <ebb9@byu.net>
11028
11029         doc: mention more functions added in cygwin 1.7.0
11030         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
11031         addition.
11032         * doc/posix-functions/log2f.texi: Likewise.
11033
11034 2009-03-19  Jim Meyering  <meyering@redhat.com>
11035
11036         fsusage: avoid syntax error due to statement-before-declaration
11037         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
11038         after all declarations.  Reported by Matthew Woehlke in
11039         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
11040
11041 2009-03-18  Eric Blake  <ebb9@byu.net>
11042
11043         build-aux/compile: sync from automake
11044         * build-aux/compile: New file, from automake.
11045         * config/srclist.txt: Mention build-aux/compile.
11046
11047 2009-03-17  Bruno Haible  <bruno@clisp.org>
11048
11049         * lib/git-merge-changelog.c: Fix typo in comment.
11050         Reported by Reuben Thomas <rrt@sc3d.org>.
11051
11052 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
11053
11054         * m4/regex.m4: update and improve help for
11055         --without-included-regex.
11056
11057 2009-03-17  Simon Josefsson  <simon@josefsson.org>
11058
11059         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
11060         failure on missing include files.
11061
11062 2009-03-17  Eric Blake  <ebb9@byu.net>
11063
11064         doc: mention more functions added in cygwin 1.7.0
11065         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
11066         addition.
11067         * doc/posix-functions/fwscanf.texi: Likewise.
11068         * doc/posix-functions/swprintf.texi: Likewise.
11069         * doc/posix-functions/swscanf.texi: Likewise.
11070         * doc/posix-functions/vfwprintf.texi: Likewise.
11071         * doc/posix-functions/vfwscanf.texi: Likewise.
11072         * doc/posix-functions/vswprintf.texi: Likewise.
11073         * doc/posix-functions/vswscanf.texi: Likewise.
11074         * doc/posix-functions/vwprintf.texi: Likewise.
11075         * doc/posix-functions/vwscanf.texi: Likewise.
11076         * doc/posix-functions/wcscasecmp.texi: Likewise.
11077         * doc/posix-functions/wcsdup.texi: Likewise.
11078         * doc/posix-functions/wcsftime.texi: Likewise.
11079         * doc/posix-functions/wcsncasecmp.texi: Likewise.
11080         * doc/posix-functions/wprintf.texi: Likewise.
11081         * doc/posix-functions/wscanf.texi: Likewise.
11082         * doc/glibc-functions/gethostbyname2.texi: Likewise.
11083
11084 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11085
11086         maint.mk: really add $(AM_MAKEFLAGS)
11087         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
11088         was inadvertently omitted in the last commit.
11089         Spotted by Bruno Haible.
11090
11091         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
11092         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
11093         $(AM_MAKEFLAGS)' rather than plain `make'.
11094
11095         gnulib-tool: execute $MAKE not make
11096         * gnulib-tool: Default $MAKE to 'make'.
11097         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
11098         than make.  Initialize $MAKE in the do-autobuild script.
11099
11100         gnulib-tool: use $MAKE not make in generated files
11101         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
11102         make, in generated files.  Initialize $MAKE in the do-autobuild
11103         script.
11104
11105         * top/GNUmakefile (_have-git-version-gen): Fix typo.
11106
11107         GNUmakefile: disable parallelism only for multiple, recursive targets
11108         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
11109         additions in the Makefile.
11110         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
11111         by Automake.
11112         (.NOTPARALLEL): Only disable parallel builds if multiple targets
11113         are listed on the command line and at least one of them is
11114         listed in $(ALL_RECURSIVE_TARGETS).
11115
11116 2009-03-14  Bruno Haible  <bruno@clisp.org>
11117
11118         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
11119         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
11120         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
11121         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
11122         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
11123         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
11124         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
11125         unistr/u8-uctomb.
11126         * modules/unistr/u8-strchr (Depends-on): Likewise.
11127         * modules/unistr/u8-strrchr (Depends-on): Likewise.
11128         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
11129         unistr/u16-uctomb.
11130         * modules/unistr/u16-strchr (Depends-on): Likewise.
11131         * modules/unistr/u16-strrchr (Depends-on): Likewise.
11132
11133 2009-03-12  Bruno Haible  <bruno@clisp.org>
11134
11135         Work around select() bug on Interix 3.5.
11136         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
11137         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
11138         * m4/select.m4: New file.
11139         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
11140         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
11141         * modules/select (Files): Add m4/select.m4.
11142         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
11143         * modules/nanosleep (Depends-on): Add select.
11144         * modules/poll (Depends-on): Likewise.
11145         * doc/posix-functions/select.texi: Mention the Interix bug.
11146         Reported by Markus Duft <mduft@gentoo.org>.
11147
11148         * lib/select.c: Renamed from lib/winsock-select.c.
11149         * modules/select (Files): Add lib/select.c, remove
11150         lib/winsock-select.c.
11151         (configure.ac): Update.
11152
11153 2009-03-12  Jim Meyering  <meyering@redhat.com>
11154
11155         avoid gcc warnings about unused macro definitions
11156         * lib/readtokens.c (STREQ): Remove unused definition.
11157         * lib/xmalloc.c (SIZE_MAX): Likewise.
11158         * lib/openat-die.c (N_): Likewise.
11159         * lib/mountlist.c (SIZE_MAX): Remove definition.
11160         Instead, include <stdint.h>.
11161         * lib/readutmp.c: Likewise.
11162         * modules/readutmp (Depends-on): Add stdint.
11163         * modules/mountlist (Depends-on): Add stdint.
11164         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
11165
11166 2009-03-10  Bruno Haible  <bruno@clisp.org>
11167
11168         Tests for module 'mbmemcasecoll'.
11169         * modules/mbmemcasecoll-tests: New file.
11170         * tests/test-mbmemcasecoll1.sh: New file.
11171         * tests/test-mbmemcasecoll2.sh: New file.
11172         * tests/test-mbmemcasecoll3.sh: New file.
11173         * tests/test-mbmemcasecoll.c: New file.
11174
11175         New module 'mbmemcasecoll'.
11176         * lib/mbmemcasecoll.h: New file.
11177         * lib/mbmemcasecoll.c: New file.
11178         * modules/mbmemcasecoll: New file.
11179
11180         * tests/test-mbmemcasecmp.h: New file, extracted from
11181         tests/test-mbmemcasecmp.c.
11182         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
11183         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
11184         (main): Update.
11185         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
11186
11187 2009-03-09  Bruno Haible  <bruno@clisp.org>
11188
11189         Tests for module 'mbmemcasecmp'.
11190         * modules/mbmemcasecmp-tests: New file.
11191         * tests/test-mbmemcasecmp1.sh: New file.
11192         * tests/test-mbmemcasecmp2.sh: New file.
11193         * tests/test-mbmemcasecmp3.sh: New file.
11194         * tests/test-mbmemcasecmp.c: New file.
11195
11196         New module 'mbmemcasecmp'.
11197         * lib/mbmemcasecmp.h: New file.
11198         * lib/mbmemcasecmp.c: New file.
11199         * modules/mbmemcasecmp: New file.
11200
11201 2009-03-09  Bruno Haible  <bruno@clisp.org>
11202
11203         Tests for module 'unicase/ulc-casecoll'.
11204         * modules/unicase/ulc-casecoll-tests: New file.
11205         * tests/unicase/test-ulc-casecoll1.sh: New file.
11206         * tests/unicase/test-ulc-casecoll2.sh: New file.
11207         * tests/unicase/test-ulc-casecoll.c: New file.
11208
11209         New module 'unicase/ulc-casecoll'.
11210         * lib/unicase.h (ulc_casecoll): New declaration.
11211         * lib/unicase/ulc-casecoll.c: New file.
11212         * modules/unicase/ulc-casecoll: New file.
11213
11214         New module 'unicase/ulc-casexfrm'.
11215         * lib/unicase.h (ulc_casexfrm): New declaration.
11216         * lib/unicase/ulc-casexfrm.c: New file.
11217         * modules/unicase/ulc-casexfrm: New file.
11218
11219 2009-03-09  Bruno Haible  <bruno@clisp.org>
11220
11221         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
11222         invocations.
11223
11224         * m4/mbscasecmp.m4: Remove file.
11225         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
11226         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
11227
11228         * m4/mbscasestr.m4: Remove file.
11229         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
11230         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
11231
11232         * m4/mbschr.m4: Remove file.
11233         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
11234         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
11235
11236         * m4/mbscspn.m4: Remove file.
11237         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
11238         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
11239
11240         * m4/mbslen.m4: Remove file.
11241         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
11242         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
11243
11244         * m4/mbsncasecmp.m4: Remove file.
11245         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
11246         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
11247
11248         * m4/mbsnlen.m4: Remove file.
11249         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
11250         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
11251
11252         * m4/mbspbrk.m4: Remove file.
11253         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
11254         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
11255
11256         * m4/mbspcasecmp.m4: Remove file.
11257         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
11258         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
11259
11260         * m4/mbsrchr.m4: Remove file.
11261         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
11262         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
11263
11264         * m4/mbssep.m4: Remove file.
11265         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
11266         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
11267
11268         * m4/mbsspn.m4: Remove file.
11269         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
11270         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
11271
11272         * m4/mbsstr.m4: Remove file.
11273         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
11274         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
11275
11276         * m4/mbstok_r.m4: Remove file.
11277         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
11278         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
11279
11280         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
11281
11282         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
11283         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
11284
11285         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
11286
11287 2009-03-08  Bruno Haible  <bruno@clisp.org>
11288
11289         Tests for module 'unicase/ulc-casecmp'.
11290         * modules/unicase/ulc-casecmp-tests: New file.
11291         * tests/unicase/test-ulc-casecmp1.sh: New file.
11292         * tests/unicase/test-ulc-casecmp2.sh: New file.
11293         * tests/unicase/test-ulc-casecmp.c: New file.
11294
11295         New module 'unicase/ulc-casecmp'.
11296         * lib/unicase.h (ulc_casecmp): New declaration.
11297         * lib/unicase/ulc-casecmp.c: New file.
11298         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
11299         'const SRC_UNIT *'.
11300         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
11301         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
11302         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
11303         * modules/unicase/ulc-casecmp: New file.
11304
11305         Tests for module 'unicase/u32-is-cased'.
11306         * modules/unicase/u32-is-cased-tests: New file.
11307         * tests/unicase/test-u32-is-cased.c: New file.
11308
11309         Tests for module 'unicase/u16-is-cased'.
11310         * modules/unicase/u16-is-cased-tests: New file.
11311         * tests/unicase/test-u16-is-cased.c: New file.
11312
11313         Tests for module 'unicase/u8-is-cased'.
11314         * modules/unicase/u8-is-cased-tests: New file.
11315         * tests/unicase/test-u8-is-cased.c: New file.
11316         * tests/unicase/test-is-cased.h: New file.
11317
11318         New module 'unicase/u32-is-cased'.
11319         * lib/unicase/u32-is-cased.c: New file.
11320         * modules/unicase/u32-is-cased: New file.
11321
11322         New module 'unicase/u16-is-cased'.
11323         * lib/unicase/u16-is-cased.c: New file.
11324         * modules/unicase/u16-is-cased: New file.
11325
11326         New module 'unicase/u8-is-cased'.
11327         * lib/unicase/u8-is-cased.c: New file.
11328         * lib/unicase/u-is-cased.h: New file.
11329         * modules/unicase/u8-is-cased: New file.
11330
11331         Tests for module 'unicase/u32-is-casefolded'.
11332         * modules/unicase/u32-is-casefolded-tests: New file.
11333         * tests/unicase/test-u32-is-casefolded.c: New file.
11334
11335         Tests for module 'unicase/u16-is-casefolded'.
11336         * modules/unicase/u16-is-casefolded-tests: New file.
11337         * tests/unicase/test-u16-is-casefolded.c: New file.
11338
11339         Tests for module 'unicase/u8-is-casefolded'.
11340         * modules/unicase/u8-is-casefolded-tests: New file.
11341         * tests/unicase/test-u8-is-casefolded.c: New file.
11342         * tests/unicase/test-is-casefolded.h: New file.
11343
11344         New module 'unicase/u32-is-casefolded'.
11345         * lib/unicase/u32-is-casefolded.c: New file.
11346         * modules/unicase/u32-is-casefolded: New file.
11347
11348         New module 'unicase/u16-is-casefolded'.
11349         * lib/unicase/u16-is-casefolded.c: New file.
11350         * modules/unicase/u16-is-casefolded: New file.
11351
11352         New module 'unicase/u8-is-casefolded'.
11353         * lib/unicase/u8-is-casefolded.c: New file.
11354         * modules/unicase/u8-is-casefolded: New file.
11355
11356         Tests for module 'unicase/u32-is-titlecase'.
11357         * modules/unicase/u32-is-titlecase-tests: New file.
11358         * tests/unicase/test-u32-is-titlecase.c: New file.
11359
11360         Tests for module 'unicase/u16-is-titlecase'.
11361         * modules/unicase/u16-is-titlecase-tests: New file.
11362         * tests/unicase/test-u16-is-titlecase.c: New file.
11363
11364         Tests for module 'unicase/u8-is-titlecase'.
11365         * modules/unicase/u8-is-titlecase-tests: New file.
11366         * tests/unicase/test-u8-is-titlecase.c: New file.
11367         * tests/unicase/test-is-titlecase.h: New file.
11368
11369         New module 'unicase/u32-is-titlecase'.
11370         * lib/unicase/u32-is-titlecase.c: New file.
11371         * modules/unicase/u32-is-titlecase: New file.
11372
11373         New module 'unicase/u16-is-titlecase'.
11374         * lib/unicase/u16-is-titlecase.c: New file.
11375         * modules/unicase/u16-is-titlecase: New file.
11376
11377         New module 'unicase/u8-is-titlecase'.
11378         * lib/unicase/u8-is-titlecase.c: New file.
11379         * modules/unicase/u8-is-titlecase: New file.
11380
11381         Tests for module 'unicase/u32-is-lowercase'.
11382         * modules/unicase/u32-is-lowercase-tests: New file.
11383         * tests/unicase/test-u32-is-lowercase.c: New file.
11384
11385         Tests for module 'unicase/u16-is-lowercase'.
11386         * modules/unicase/u16-is-lowercase-tests: New file.
11387         * tests/unicase/test-u16-is-lowercase.c: New file.
11388
11389         Tests for module 'unicase/u8-is-lowercase'.
11390         * modules/unicase/u8-is-lowercase-tests: New file.
11391         * tests/unicase/test-u8-is-lowercase.c: New file.
11392         * tests/unicase/test-is-lowercase.h: New file.
11393
11394         New module 'unicase/u32-is-lowercase'.
11395         * lib/unicase/u32-is-lowercase.c: New file.
11396         * modules/unicase/u32-is-lowercase: New file.
11397
11398         New module 'unicase/u16-is-lowercase'.
11399         * lib/unicase/u16-is-lowercase.c: New file.
11400         * modules/unicase/u16-is-lowercase: New file.
11401
11402         New module 'unicase/u8-is-lowercase'.
11403         * lib/unicase/u8-is-lowercase.c: New file.
11404         * modules/unicase/u8-is-lowercase: New file.
11405
11406         Tests for module 'unicase/u32-is-uppercase'.
11407         * modules/unicase/u32-is-uppercase-tests: New file.
11408         * tests/unicase/test-u32-is-uppercase.c: New file.
11409
11410         Tests for module 'unicase/u16-is-uppercase'.
11411         * modules/unicase/u16-is-uppercase-tests: New file.
11412         * tests/unicase/test-u16-is-uppercase.c: New file.
11413
11414         Tests for module 'unicase/u8-is-uppercase'.
11415         * modules/unicase/u8-is-uppercase-tests: New file.
11416         * tests/unicase/test-u8-is-uppercase.c: New file.
11417         * tests/unicase/test-is-uppercase.h: New file.
11418
11419         New module 'unicase/u32-is-uppercase'.
11420         * lib/unicase/u32-is-uppercase.c: New file.
11421         * modules/unicase/u32-is-uppercase: New file.
11422
11423         New module 'unicase/u16-is-uppercase'.
11424         * lib/unicase/u16-is-uppercase.c: New file.
11425         * modules/unicase/u16-is-uppercase: New file.
11426
11427         New module 'unicase/u8-is-uppercase'.
11428         * lib/unicase/u8-is-uppercase.c: New file.
11429         * modules/unicase/u8-is-uppercase: New file.
11430
11431         New module 'unicase/u32-is-invariant'.
11432         * lib/unicase/u32-is-invariant.c: New file.
11433         * modules/unicase/u32-is-invariant: New file.
11434
11435         New module 'unicase/u16-is-invariant'.
11436         * lib/unicase/u16-is-invariant.c: New file.
11437         * modules/unicase/u16-is-invariant: New file.
11438
11439         New module 'unicase/u8-is-invariant'.
11440         * lib/unicase/u8-is-invariant.c: New file.
11441         * lib/unicase/invariant.h: New file.
11442         * lib/unicase/u-is-invariant.h: New file.
11443         * modules/unicase/u8-is-invariant: New file.
11444
11445         Tests for module 'unicase/u32-casecoll'.
11446         * modules/unicase/u32-casecoll-tests: New file.
11447         * tests/unicase/test-u32-casecoll.c: New file.
11448
11449         Tests for module 'unicase/u16-casecoll'.
11450         * modules/unicase/u16-casecoll-tests: New file.
11451         * tests/unicase/test-u16-casecoll.c: New file.
11452
11453         Tests for module 'unicase/u8-casecoll'.
11454         * modules/unicase/u8-casecoll-tests: New file.
11455         * tests/unicase/test-u8-casecoll.c: New file.
11456
11457         New module 'unicase/u32-casecoll'.
11458         * lib/unicase/u32-casecoll.c: New file.
11459         * modules/unicase/u32-casecoll: New file.
11460
11461         New module 'unicase/u16-casecoll'.
11462         * lib/unicase/u16-casecoll.c: New file.
11463         * modules/unicase/u16-casecoll: New file.
11464
11465         New module 'unicase/u8-casecoll'.
11466         * lib/unicase/u8-casecoll.c: New file.
11467         * lib/unicase/u-casecoll.h: New file.
11468         * modules/unicase/u8-casecoll: New file.
11469
11470         New module 'unicase/u32-casexfrm'.
11471         * lib/unicase/u32-casexfrm.c: New file.
11472         * modules/unicase/u32-casexfrm: New file.
11473
11474         New module 'unicase/u16-casexfrm'.
11475         * lib/unicase/u16-casexfrm.c: New file.
11476         * modules/unicase/u16-casexfrm: New file.
11477
11478         New module 'unicase/u8-casexfrm'.
11479         * lib/unicase/u8-casexfrm.c: New file.
11480         * lib/unicase/u-casexfrm.h: New file.
11481         * modules/unicase/u8-casexfrm: New file.
11482
11483         Tests for module 'unicase/u32-casecmp'.
11484         * modules/unicase/u32-casecmp-tests: New file.
11485         * tests/unicase/test-u32-casecmp.c: New file.
11486
11487         Tests for module 'unicase/u16-casecmp'.
11488         * modules/unicase/u16-casecmp-tests: New file.
11489         * tests/unicase/test-u16-casecmp.c: New file.
11490
11491         Tests for module 'unicase/u8-casecmp'.
11492         * modules/unicase/u8-casecmp-tests: New file.
11493         * tests/unicase/test-u8-casecmp.c: New file.
11494         * tests/unicase/test-casecmp.h: New file.
11495
11496         New module 'unicase/u32-casecmp'.
11497         * lib/unicase/u32-casecmp.c: New file.
11498         * modules/unicase/u32-casecmp: New file.
11499
11500         New module 'unicase/u16-casecmp'.
11501         * lib/unicase/u16-casecmp.c: New file.
11502         * modules/unicase/u16-casecmp: New file.
11503
11504         New module 'unicase/u8-casecmp'.
11505         * lib/unicase/u8-casecmp.c: New file.
11506         * lib/unicase/u-casecmp.h: New file.
11507         * modules/unicase/u8-casecmp: New file.
11508
11509         Tests for module 'unicase/u32-casefold'.
11510         * modules/unicase/u32-casefold-tests: New file.
11511         * tests/unicase/test-u32-casefold.c: New file.
11512
11513         Tests for module 'unicase/u16-casefold'.
11514         * modules/unicase/u16-casefold-tests: New file.
11515         * tests/unicase/test-u16-casefold.c: New file.
11516
11517         Tests for module 'unicase/u8-casefold'.
11518         * modules/unicase/u8-casefold-tests: New file.
11519         * tests/unicase/test-u8-casefold.c: New file.
11520
11521         New module 'unicase/u32-casefold'.
11522         * lib/unicase/u32-casefold.c: New file.
11523         * modules/unicase/u32-casefold: New file.
11524
11525         New module 'unicase/u16-casefold'.
11526         * lib/unicase/u16-casefold.c: New file.
11527         * modules/unicase/u16-casefold: New file.
11528
11529         New module 'unicase/u8-casefold'.
11530         * lib/unicase/u8-casefold.c: New file.
11531         * lib/unicase/u-casefold.h: New file.
11532         * modules/unicase/u8-casefold: New file.
11533
11534         New module 'unicase/tocasefold'.
11535         * lib/unicase/casefold.h: New file.
11536         * lib/unicase/tocasefold.c: New file.
11537         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
11538         * modules/unicase/tocasefold: New file.
11539
11540         Tests for module 'unicase/u32-totitle'.
11541         * modules/unicase/u32-totitle-tests: New file.
11542         * tests/unicase/test-u32-totitle.c: New file.
11543
11544         Tests for module 'unicase/u16-totitle'.
11545         * modules/unicase/u16-totitle-tests: New file.
11546         * tests/unicase/test-u16-totitle.c: New file.
11547
11548         Tests for module 'unicase/u8-totitle'.
11549         * modules/unicase/u8-totitle-tests: New file.
11550         * tests/unicase/test-u8-totitle.c: New file.
11551
11552         New module 'unicase/u32-totitle'.
11553         * lib/unicase/u32-totitle.c: New file.
11554         * modules/unicase/u32-totitle: New file.
11555
11556         New module 'unicase/u16-totitle'.
11557         * lib/unicase/u16-totitle.c: New file.
11558         * modules/unicase/u16-totitle: New file.
11559
11560         New module 'unicase/u8-totitle'.
11561         * lib/unicase/u8-totitle.c: New file.
11562         * lib/unicase/u-totitle.h: New file.
11563         * modules/unicase/u8-totitle: New file.
11564
11565         Tests for module 'unicase/u32-tolower'.
11566         * modules/unicase/u32-tolower-tests: New file.
11567         * tests/unicase/test-u32-tolower.c: New file.
11568
11569         Tests for module 'unicase/u16-tolower'.
11570         * modules/unicase/u16-tolower-tests: New file.
11571         * tests/unicase/test-u16-tolower.c: New file.
11572
11573         Tests for module 'unicase/u8-tolower'.
11574         * modules/unicase/u8-tolower-tests: New file.
11575         * tests/unicase/test-u8-tolower.c: New file.
11576
11577         New module 'unicase/u32-tolower'.
11578         * lib/unicase/u32-tolower.c: New file.
11579         * modules/unicase/u32-tolower: New file.
11580
11581         New module 'unicase/u16-tolower'.
11582         * lib/unicase/u16-tolower.c: New file.
11583         * modules/unicase/u16-tolower: New file.
11584
11585         New module 'unicase/u8-tolower'.
11586         * lib/unicase/u8-tolower.c: New file.
11587         * modules/unicase/u8-tolower: New file.
11588
11589         Tests for module 'unicase/u32-toupper'.
11590         * modules/unicase/u32-toupper-tests: New file.
11591         * tests/unicase/test-u32-toupper.c: New file.
11592
11593         Tests for module 'unicase/u16-toupper'.
11594         * modules/unicase/u16-toupper-tests: New file.
11595         * tests/unicase/test-u16-toupper.c: New file.
11596
11597         Tests for module 'unicase/u8-toupper'.
11598         * modules/unicase/u8-toupper-tests: New file.
11599         * tests/unicase/test-u8-toupper.c: New file.
11600
11601         New module 'unicase/u32-toupper'.
11602         * lib/unicase/u32-toupper.c: New file.
11603         * modules/unicase/u32-toupper: New file.
11604
11605         New module 'unicase/u16-toupper'.
11606         * lib/unicase/u16-toupper.c: New file.
11607         * modules/unicase/u16-toupper: New file.
11608
11609         New module 'unicase/u8-toupper'.
11610         * lib/unicase/u8-toupper.c: New file.
11611         * modules/unicase/u8-toupper: New file.
11612
11613         New module 'unicase/u32-casemap'.
11614         * lib/unicase/u32-casemap.c: New file.
11615         * modules/unicase/u32-casemap: New file.
11616
11617         New module 'unicase/u16-casemap'.
11618         * lib/unicase/u16-casemap.c: New file.
11619         * modules/unicase/u16-casemap: New file.
11620
11621         New module 'unicase/u8-casemap'.
11622         * lib/unicase/unicasemap.h: New file.
11623         * lib/unicase/u8-casemap.c: New file.
11624         * lib/unicase/u-casemap.h: New file.
11625         * modules/unicase/u8-casemap: New file.
11626
11627         New module 'unicase/special-casing'.
11628         * lib/unicase/special-casing.h: New file.
11629         * lib/unicase/special-casing.c: New file.
11630         * lib/unicase/special-casing-table.gperf: New file, generated by
11631         gen-uni-tables.c.
11632         * modules/unicase/special-casing: New file.
11633
11634         Tests for module 'unicase/locale-language'.
11635         * modules/unicase/locale-language-tests: New file.
11636         * tests/unicase/test-locale-language.sh: New file.
11637         * tests/unicase/test-locale-language.c: New file.
11638
11639         New module 'unicase/locale-language'.
11640         * lib/unicase/locale-language.c: New file.
11641         * lib/unicase/locale-languages.gperf: New file.
11642         * modules/unicase/locale-language: New file.
11643
11644         Generate more tables for case conversion and case folding.
11645         * lib/gen-uni-tables.c (SCC_*): New enum items.
11646         (struct special_casing_rule): New type.
11647         (casing_rules, num_casing_rules, allocated_casing_rules): New
11648         variables.
11649         (add_casing_rule, fill_casing_rules): New functions.
11650         (struct casefold_rule): New type.
11651         (casefolding_rules, num_casefolding_rules,
11652         allocated_casefolding_rules): New variables.
11653         (fill_casefolding_rules): New function.
11654         (unicode_casefold): New variable.
11655         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
11656         sort_casing_rules, output_casing_rules): New functions.
11657         (main): Accept to more arguments: SpecialCasing.txt and
11658         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
11659         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
11660         Output mapping for casefolding.
11661
11662         * lib/unicase.h: Include stdbool.h, uninorm.h.
11663         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
11664         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
11665         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
11666         arguments.
11667         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
11668         resultp arguments.
11669         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
11670         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
11671         resultp arguments.
11672         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
11673         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
11674         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
11675         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
11676         declarations.
11677         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
11678
11679 2009-03-08  Bruno Haible  <bruno@clisp.org>
11680
11681         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
11682         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
11683         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
11684         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
11685
11686 2009-03-07  Bruno Haible  <bruno@clisp.org>
11687
11688         Adjust u*_normcmp, u*_normcoll API.
11689         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
11690         u16_normcoll, u32_normcoll): Change failure conventions.
11691         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
11692         errno and return -1.
11693         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
11694
11695 2009-03-07  Bruno Haible  <bruno@clisp.org>
11696
11697         Tests for module 'uninorm/u32-normcoll'.
11698         * modules/uninorm/u32-normcoll-tests: New file.
11699         * tests/uninorm/test-u32-normcoll.c: New file.
11700
11701         Tests for module 'uninorm/u16-normcoll'.
11702         * modules/uninorm/u16-normcoll-tests: New file.
11703         * tests/uninorm/test-u16-normcoll.c: New file.
11704
11705         Tests for module 'uninorm/u8-normcoll'.
11706         * modules/uninorm/u8-normcoll-tests: New file.
11707         * tests/uninorm/test-u8-normcoll.c: New file.
11708
11709 2009-03-07  Bruno Haible  <bruno@clisp.org>
11710
11711         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
11712         tests/uninorm/test-u32-normcmp.c.
11713         * tests/uninorm/test-u32-normcmp.c: Include it.
11714         (test_nonascii): New function, extracted from main. Add some more
11715         tests.
11716         (main): Invoke test_ascii and test_nonascii.
11717         * modules/uninorm/u32-normcmp-tests (Files): Add
11718         tests/uninorm/test-u32-normcmp.h.
11719         (Depends-on): Remove uninorm/u32-normcmp.
11720
11721         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
11722         tests/uninorm/test-u16-normcmp.c.
11723         * tests/uninorm/test-u16-normcmp.c: Include it.
11724         (test_nonascii): New function, extracted from main. Add some more
11725         tests.
11726         (main): Invoke test_ascii and test_nonascii.
11727         * modules/uninorm/u16-normcmp-tests (Files): Add
11728         tests/uninorm/test-u16-normcmp.h.
11729         (Depends-on): Remove uninorm/u16-normcmp.
11730
11731         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
11732         tests/uninorm/test-u8-normcmp.c.
11733         * tests/uninorm/test-u8-normcmp.c: Include it.
11734         (test_nonascii): New function, extracted from main. Add some more
11735         tests.
11736         (main): Invoke test_ascii and test_nonascii.
11737         * modules/uninorm/u8-normcmp-tests (Files): Add
11738         tests/uninorm/test-u8-normcmp.h.
11739         (Depends-on): Remove uninorm/u8-normcmp.
11740
11741 2009-03-07  Bruno Haible  <bruno@clisp.org>
11742
11743         New module 'uninorm/u32-normcoll'.
11744         * lib/uninorm/u32-normcoll.c: New file.
11745         * modules/uninorm/u32-normcoll: New file.
11746
11747         New module 'uninorm/u16-normcoll'.
11748         * lib/uninorm/u16-normcoll.c: New file.
11749         * modules/uninorm/u16-normcoll: New file.
11750
11751         New module 'uninorm/u8-normcoll'.
11752         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
11753         declarations.
11754         * lib/uninorm/u8-normcoll.c: New file.
11755         * lib/uninorm/u-normcoll.h: New file.
11756         * modules/uninorm/u8-normcoll: New file.
11757
11758         New module 'uninorm/u32-normxfrm'.
11759         * lib/uninorm/u32-normxfrm.c: New file.
11760         * modules/uninorm/u32-normxfrm: New file.
11761
11762         New module 'uninorm/u16-normxfrm'.
11763         * lib/uninorm/u16-normxfrm.c: New file.
11764         * modules/uninorm/u16-normxfrm: New file.
11765
11766         New module 'uninorm/u8-normxfrm'.
11767         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
11768         declarations.
11769         * lib/uninorm/u8-normxfrm.c: New file.
11770         * lib/uninorm/u-normxfrm.h: New file.
11771         * modules/uninorm/u8-normxfrm: New file.
11772
11773 2009-03-07  Bruno Haible  <bruno@clisp.org>
11774
11775         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
11776         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
11777         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
11778
11779 2009-03-07  Bruno Haible  <bruno@clisp.org>
11780
11781         New module 'memxfrm'.
11782         * lib/memxfrm.h: New file.
11783         * lib/memxfrm.c: New file.
11784         * modules/memxfrm: New file.
11785
11786 2009-03-07  Bruno Haible  <bruno@clisp.org>
11787
11788         New module 'memcmp2'.
11789         * lib/memcmp2.h: New file.
11790         * lib/memcmp2.c: New file.
11791         * modules/memcmp2: New file.
11792
11793 2009-03-07  Bruno Haible  <bruno@clisp.org>
11794
11795         Tests for module 'uninorm/decomposing-form'.
11796         * modules/uninorm/decomposing-form-tests: New file.
11797         * tests/uninorm/test-decomposing-form.c: New file.
11798
11799         New module 'uninorm/decomposing-form'.
11800         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
11801         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
11802         Add 'decomposing_variant' field.
11803         * lib/uninorm/decomposing-form.c: New file.
11804         * lib/uninorm/nfc.c (uninorm_nfc): Update.
11805         * lib/uninorm/nfd.c (uninorm_nfd): Update.
11806         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
11807         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
11808         * modules/uninorm/decomposing-form: New file.
11809         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
11810         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
11811
11812 2009-03-07  Bruno Haible  <bruno@clisp.org>
11813
11814         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
11815         strings.
11816
11817 2009-03-06  Bruno Haible  <bruno@clisp.org>
11818
11819         Tests for module 'uninorm/u32-normcmp'.
11820         * tests/uninorm/test-u32-normcmp.c: New file.
11821         * modules/uninorm/u32-normcmp-tests: New file.
11822
11823         Tests for module 'uninorm/u16-normcmp'.
11824         * tests/uninorm/test-u16-normcmp.c: New file.
11825         * modules/uninorm/u16-normcmp-tests: New file.
11826
11827         Tests for module 'uninorm/u8-normcmp'.
11828         * tests/uninorm/test-u8-normcmp.c: New file.
11829         * modules/uninorm/u8-normcmp-tests: New file.
11830
11831         New module 'uninorm/u32-normcmp'.
11832         * lib/uninorm/u32-normcmp.c: New file.
11833         * modules/uninorm/u32-normcmp: New file.
11834
11835         New module 'uninorm/u16-normcmp'.
11836         * lib/uninorm/u16-normcmp.c: New file.
11837         * modules/uninorm/u16-normcmp: New file.
11838
11839         New module 'uninorm/u8-normcmp'.
11840         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
11841         declarations.
11842         * lib/uninorm/u8-normcmp.c: New file.
11843         * lib/uninorm/u-normcmp.h: New file.
11844         * modules/uninorm/u8-normcmp: New file.
11845
11846 2009-03-06  Bruno Haible  <bruno@clisp.org>
11847
11848         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
11849         Reported by Eric Blake.
11850
11851 2009-03-06  Eric Blake  <ebb9@byu.net>
11852             Bruno Haible  <bruno@clisp.org>
11853
11854         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
11855         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
11856         condition.
11857         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
11858         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
11859         condition.
11860         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
11861
11862 2009-03-06  Eric Blake  <ebb9@byu.net>
11863
11864         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
11865         to avoid compiler warnings.
11866         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
11867
11868 2009-03-05  Bruno Haible  <bruno@clisp.org>
11869
11870         * tests/test-ftell.c (main): Disable test beyond end of file on
11871         FreeMiNT.
11872         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
11873
11874 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
11875
11876         * lib/filevercmp.c: Move hidden files up in ordering.
11877         * tests/test-filevercmp.c: Add tests for hidden files.
11878
11879 2009-03-04  Bruno Haible  <bruno@clisp.org>
11880
11881         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
11882         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
11883         AM_CFLAGS.
11884         Reported by Simon Josefsson.
11885
11886 2009-03-03  Bruno Haible  <bruno@clisp.org>
11887
11888         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
11889         Reported by Simon Josefsson.
11890
11891         * doc/ld-version-script.texi: Update node reference.
11892
11893 2009-03-03  Bruno Haible  <bruno@clisp.org>
11894
11895         * modules/visibility (License): Change to 'unlimited'.
11896         Suggested by Simon Josefsson.
11897
11898 2009-03-03  Jim Meyering  <meyering@redhat.com>
11899
11900         unlinkdir: cannot_unlink_dir may modify process state
11901         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
11902         it's neither thread-safe nor appropriate for use in a library.
11903
11904 2009-03-03  Eric Blake  <ebb9@byu.net>
11905
11906         test-closein: silence test under Darwin
11907         * tests/test-closein.sh: Ignore stderr from cat, since we don't
11908         care if it dies from EPIPE or EBADF.
11909
11910 2009-03-03  Bruno Haible  <bruno@clisp.org>
11911
11912         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
11913         earlier.
11914         * doc/visibility.texi: Fix @node and @section.
11915
11916 2009-03-03  Simon Josefsson  <simon@josefsson.org>
11917
11918         * doc/gnulib.texi: Link to sections for ld version script and
11919         visibility.
11920         * doc/visibility.texi: Add @node and @section.
11921         * modules/ld-version-script: New module.
11922         * m4/ld-version-script.m4: New file.
11923         * doc/ld-version-script.texi: New file.
11924
11925 2009-03-02  David Lutterkort  <lutter@redhat.com>
11926
11927         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
11928         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11929
11930 2009-03-02  Bruno Haible  <bruno@clisp.org>
11931
11932         * doc/visibility.texi: Mention libtool's -export-symbols option.
11933
11934 2009-03-02  Jim Meyering  <meyering@redhat.com>
11935
11936         announce-gen: new option: --no-print-checksums
11937         * build-aux/announce-gen (usage): Describe it.
11938         (print_checksums): Print a newline here, not in the [*] footnote.
11939         (main): Honor it.
11940
11941 2009-03-01  Bruno Haible  <bruno@clisp.org>
11942
11943         Use socklen_t in the native Windows replacements prototypes.
11944         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
11945         instead of 'int'.
11946         * lib/getsockopt.c (rpl_getsockopt): Likewise.
11947         * lib/setsockopt.c (rpl_setsockopt): Likewise.
11948         * modules/getsockopt (Depends-on): Add socklen.
11949         * modules/setsockopt (Depends-on): Add socklen.
11950
11951 2009-03-01  Bruno Haible  <bruno@clisp.org>
11952
11953         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
11954         least 4.2.
11955
11956 2009-03-01  Eric Blake  <ebb9@byu.net>
11957             Bruno Haible  <bruno@clisp.org>
11958
11959         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
11960         error messages.
11961         * lib/wait-process.c (wait_subprocess): Omit error message about
11962         deadly signal sent to the child of termsigp != NULL.
11963
11964 2009-03-01  Eric Blake  <ebb9@byu.net>
11965
11966         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
11967
11968 2009-03-01  Bruno Haible  <bruno@clisp.org>
11969
11970         Avoid a gcc warning.
11971         * tests/test-sched.c (b): Make global.
11972         Reported by Eric Blake.
11973
11974 2009-01-19  Martin Lambers  <marlam@marlam.de>
11975
11976         Provide POSIX semantics for socket timeout options on W32.
11977         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
11978         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
11979         * modules/setsockopt: Depend on sys_time module for struct timeval.
11980         * modules/getsockopt: Depend on sys_time module for struct timeval.
11981
11982 2009-03-01  Simon Josefsson  <simon@josefsson.org>
11983
11984         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
11985         __USE_GNU, for consistency with netdb.in.h.
11986         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11987
11988 2009-03-01  Bruno Haible  <bruno@clisp.org>
11989
11990         More support for FreeMiNT.
11991         * lib/fseeko.c (rpl_fseeko): Complete last commit.
11992         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11993
11994 2009-03-01  Bruno Haible  <bruno@clisp.org>
11995
11996         More support for FreeMiNT.
11997         * lib/fpurge.c (fpurge): Correct last commit.
11998         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11999
12000 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12001
12002         Fix unportable awk script in vc-list-files.
12003         * build-aux/vc-list-files: In the replacement awk script, use
12004         substr with a second argument of 1, not zero.
12005         Report by Simon Josefsson.
12006
12007 2009-02-28  Bruno Haible  <bruno@clisp.org>
12008
12009         More support for FreeMiNT.
12010         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
12011         to FreeMiNT today.
12012         * lib/fwriting.c (fwriting): Likewise.
12013         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
12014
12015 2009-02-28  Bruno Haible  <bruno@clisp.org>
12016
12017         * tests/test-freadseek.c (main): Disable test beyond end of file on
12018         FreeMiNT.
12019         * tests/test-ftello.c (main): Likewise.
12020         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
12021
12022 2009-02-28  Bruno Haible  <bruno@clisp.org>
12023
12024         Add tentative support for FreeMiNT.
12025         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
12026         * lib/fpurge.c (fpurge): Likewise.
12027         * lib/freadable.c (freadable): Likewise.
12028         * lib/freading.c (freading): Likewise.
12029         * lib/freadptr.c (freadptr): Likewise.
12030         * lib/freadseek.c (freadptrinc): Likewise.
12031         * lib/fseeko.c (rpl_fseeko): Likewise.
12032         * lib/fseterr.c (fseterr): Likewise.
12033         * lib/fwritable.c (fwritable): Likewise.
12034         * lib/fwriting.c (fwriting): Likewise.
12035         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
12036         Hourihane.
12037         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12038
12039 2009-02-28  Bruno Haible  <bruno@clisp.org>
12040
12041         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
12042         SIGCHLD.
12043         Reported by Jim Meyering.
12044
12045 2009-02-28  Bruno Haible  <bruno@clisp.org>
12046
12047         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
12048         Mention the results of these tests on various platforms.
12049         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
12050         order.
12051         * doc/posix-functions/printf.texi: Likewise.
12052         * doc/posix-functions/snprintf.texi: Likewise.
12053         * doc/posix-functions/sprintf.texi: Likewise.
12054         * doc/posix-functions/vfprintf.texi: Likewise.
12055         * doc/posix-functions/vprintf.texi: Likewise.
12056         * doc/posix-functions/vsnprintf.texi: Likewise.
12057         * doc/posix-functions/vsprintf.texi: Likewise.
12058         * doc/glibc-functions/obstack_printf.texi: Likewise.
12059         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12060
12061 2009-02-28  Bruno Haible  <bruno@clisp.org>
12062
12063         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
12064         Reported by Loïc Minier <lool@dooz.org>.
12065
12066 2009-02-27  Bruno Haible  <bruno@clisp.org>
12067
12068         * gnulib-tool (func_import): Make the sed expression used to create the
12069         sed script for updating the .gitignore file POSIX compliant.
12070         Reported by Eric Blake.
12071
12072 2009-02-27  Bruno Haible  <bruno@clisp.org>
12073
12074         * gnulib-tool (sed): Don't alias as "sed --posix".
12075         Reported by Eric Blake.
12076
12077 2009-02-27  Bruno Haible  <bruno@clisp.org>
12078
12079         Avoid test link errors.
12080         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
12081         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
12082         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
12083         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
12084         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12085
12086 2009-02-27  Bruno Haible  <bruno@clisp.org>
12087
12088         Avoid spurious "(cached)" in configure output.
12089         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
12090         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
12091         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12092         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12093         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12094         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12095         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12096         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12097         Reported by Eric Blake.
12098
12099 2009-02-27  Eric Blake  <ebb9@byu.net>
12100
12101         printf: fix regression in previous patch
12102         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
12103
12104 2009-02-27  Bruno Haible  <bruno@clisp.org>
12105
12106         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
12107         value.
12108         * lib/stdint.in.h: Likewise.
12109         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
12110
12111 2009-02-27  Eric Blake  <ebb9@byu.net>
12112
12113         doc: mention more functions added in cygwin 1.7.0
12114         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
12115         addition.
12116         * doc/posix-functions/open_wmemstream.texi: Likewise.
12117         * doc/posix-functions/wcsnlen.texi: Likewise.
12118         * doc/posix-functions/wcsnrtombs.texi: Likewise.
12119         * doc/posix-functions/wcstod.texi: Likewise.
12120         * doc/posix-functions/wcstof.texi: Likewise.
12121         * doc/posix-functions/wcstoimax.texi: Likewise.
12122         * doc/posix-functions/wcstok.texi: Likewise.
12123         * doc/posix-functions/wcstoumax.texi: Likewise.
12124
12125         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
12126         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
12127         * doc/posix-functions/fprintf.texi: Update.
12128         * doc/posix-functions/printf.texi: Update.
12129         * doc/posix-functions/snprintf.texi: Update.
12130         * doc/posix-functions/sprintf.texi: Update.
12131         * doc/posix-functions/vfprintf.texi: Update.
12132         * doc/posix-functions/vprintf.texi: Update.
12133         * doc/posix-functions/vsnprintf.texi: Update.
12134         * doc/posix-functions/vsprintf.texi: Update.
12135         * doc/glibc-functions/obstack_printf.texi: Update.
12136         * doc/glibc-functions/obstack_vprintf.texi: Update.
12137
12138 2009-02-26  Eric Blake  <ebb9@byu.net>
12139
12140         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
12141         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
12142         compilation bug by using runtime conversion.
12143         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12144         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
12145         * modules/ceill-tests (Files): Use nan.h.
12146         * modules/floorl-tests (Files): Likewise.
12147         * modules/frexpl-tests (Files): Likewise.
12148         * modules/isnanl-tests (Files): Likewise.
12149         * modules/ldexpl-tests (Files): Likewise.
12150         * modules/roundl-tests (Files): Likewise.
12151         * modules/truncl-tests (Files): Likewise.
12152         * tests/test-ceill.c (main): Use a working NaN.
12153         * tests/test-floorl.c (main): Likewise.
12154         * tests/test-frexpl.c (main): Likewise.
12155         * tests/test-isnan.c (test_long_double): Likewise.
12156         * tests/test-isnanl.h (main): Likewise.
12157         * tests/test-ldexpl.h (main): Likewise.
12158         * tests/test-roundl.h (main): Likewise.
12159         * tests/test-truncl.h (main): Likewise.
12160         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
12161
12162 2009-02-26  Eric Blake  <ebb9@byu.net>
12163             Bruno Haible  <bruno@clisp.org>
12164
12165         Work around a *printf bug with %ls on Solaris.
12166         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
12167         precision is specified, sprintf stops converting the wide string
12168         argument when the number of bytes that have been produced by this
12169         conversion equals or exceeds the precision.
12170         * doc/posix-functions/fprintf.texi: Update.
12171         * doc/posix-functions/printf.texi: Update.
12172         * doc/posix-functions/snprintf.texi: Update.
12173         * doc/posix-functions/sprintf.texi: Update.
12174         * doc/posix-functions/vfprintf.texi: Update.
12175         * doc/posix-functions/vprintf.texi: Update.
12176         * doc/posix-functions/vsnprintf.texi: Update.
12177         * doc/posix-functions/vsprintf.texi: Update.
12178         * doc/glibc-functions/obstack_printf.texi: Update.
12179         * doc/glibc-functions/obstack_vprintf.texi: Update.
12180
12181 2009-02-26  Eric Blake  <ebb9@byu.net>
12182
12183         stdlib: favor compiler check of random.h
12184         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
12185         to avoid an ObjC random.h installed by Swarm.
12186
12187 2009-02-26  Bruno Haible  <bruno@clisp.org>
12188
12189         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
12190         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
12191         Reported by Gary V. Vaughan <gary@gnu.org>.
12192
12193 2009-02-26  Bruno Haible  <bruno@clisp.org>
12194
12195         Fix *printf behaviour regarding the %ls directive.
12196         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
12197         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
12198         NEED_PRINTF_DIRECTIVE_LS.
12199         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
12200         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12201         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12202         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
12203         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
12204         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
12205         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
12206         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12207         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12208         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12209         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12210         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
12211         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12212         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12213         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12214         * doc/posix-functions/fprintf.texi: Update.
12215         * doc/posix-functions/printf.texi: Update.
12216         * doc/posix-functions/snprintf.texi: Update.
12217         * doc/posix-functions/sprintf.texi: Update.
12218         * doc/posix-functions/vfprintf.texi: Update.
12219         * doc/posix-functions/vprintf.texi: Update.
12220         * doc/posix-functions/vsnprintf.texi: Update.
12221         * doc/posix-functions/vsprintf.texi: Update.
12222         * doc/glibc-functions/obstack_printf.texi: Update.
12223         * doc/glibc-functions/obstack_vprintf.texi: Update.
12224         Reported by Eric Blake.
12225
12226 2009-02-25  Bruno Haible  <bruno@clisp.org>
12227
12228         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
12229         with known value.
12230         Reported by Gary V. Vaughan <gary@gnu.org>.
12231
12232 2009-02-25  Bruno Haible  <bruno@clisp.org>
12233
12234         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
12235         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
12236         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
12237         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
12238         Reported by Gary V. Vaughan <gary@gnu.org>.
12239
12240 2009-02-25  Bruno Haible  <bruno@clisp.org>
12241
12242         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
12243         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
12244         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
12245         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
12246         Reported by Gary V. Vaughan <gary@gnu.org>.
12247
12248 2009-02-25  Eric Blake  <ebb9@byu.net>
12249
12250         tests: skip fseek/ftell tests if ungetc is broken
12251         * m4/ungetc.m4: New file.
12252         * modules/fseek-tests: Split test, so ungetc dependency is
12253         separate from rest of test.
12254         * modules/fseeko-tests: Likewise.
12255         * modules/ftell-tests: Likewise.
12256         * modules/ftello-tests: Likewise.
12257         * tests/test-fseek.c (main): Isolate ungetc dependency.
12258         * tests/test-fseeko.c (main): Likewise.
12259         * tests/test-ftell.c (main): Likewise.
12260         * tests/test-ftello.c (main): Likewise.
12261         * tests/test-fseek2.sh: New file.
12262         * tests/test-fseeko2.sh: Likewise.
12263         * tests/test-ftell2.sh: Likewise.
12264         * tests/test-ftello2.sh: Likewise.
12265
12266 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
12267
12268         test-getaddrinfo: fix usage of skip return code 77
12269         * tests/test-gettaddrinfo.c: Return skip code 77 only
12270         for first occurance of skip (4x77 is not 77)
12271
12272 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
12273
12274         strtod: avoid C99 decl-after-statement
12275         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
12276
12277 2009-02-24  Eric Blake  <ebb9@byu.net>
12278
12279         strtod: detect HP-UX 11.31 bug
12280         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
12281         Reported by Gary V. Vaughan.
12282
12283 2009-02-23  Bruno Haible  <bruno@clisp.org>
12284
12285         Fix invalid read past end of memory block.
12286         * lib/vasnprintf.c (DCHAR_SET): Define.
12287         (local_wcslen): Define only when needed.
12288         (local_strnlen, local_wcsnlen): New functions.
12289         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
12290         directives that involve a conversion ourselves.
12291         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
12292         wcsnlen, mbrtowc, wcrtomb.
12293         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
12294         * tests/test-vasprintf-posix.c (test_function): Likewise.
12295         * tests/test-snprintf-posix.h (test_function): Likewise.
12296         * tests/test-sprintf-posix.h (test_function): Likewise.
12297         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12298
12299 2009-02-22  Bruno Haible  <bruno@clisp.org>
12300
12301         Implement new clarified decomposition of Hangul syllables.
12302         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
12303         of type LTV, return only a pairwise decomposition.
12304         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
12305         Likewise.
12306         * tests/uninorm/test-decomposition.c (main): Updated expected result.
12307         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
12308         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
12309
12310 2009-02-22  Bruno Haible  <bruno@clisp.org>
12311
12312         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
12313         zero-length results and shrink excess allocated memory.
12314         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
12315         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
12316         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
12317         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
12318         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
12319         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
12320         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
12321         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
12322         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
12323         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
12324         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
12325         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
12326
12327 2009-02-21  Bruno Haible  <bruno@clisp.org>
12328
12329         * doc/gnulib.texi: Include safe-alloc.texi earlier.
12330         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
12331         spaces after a period. Put a space between a macro name and its
12332         argument list. Trivial rewordings.
12333         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
12334         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
12335         (main): Return 0 explicitly.
12336
12337 2009-02-21  Bruno Haible  <bruno@clisp.org>
12338
12339         Tests for module 'uninorm/filter'.
12340         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
12341         * modules/uninorm/filter-tests: New file.
12342
12343         New module 'uninorm/filter'.
12344         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
12345         uninorm_filter_flush, uninorm_filter_free): New declarations.
12346         * lib/uninorm/uninorm-filter.c: New file.
12347         * modules/uninorm/filter: New file.
12348
12349 2009-02-21  Bruno Haible  <bruno@clisp.org>
12350
12351         Tests for module 'uninorm/nfkc'.
12352         * tests/uninorm/test-nfkc.c: New file.
12353         * tests/uninorm/test-u8-nfkc.c: New file.
12354         * tests/uninorm/test-u16-nfkc.c: New file.
12355         * tests/uninorm/test-u32-nfkc.c: New file.
12356         * tests/uninorm/test-u32-nfkc-big.sh: New file.
12357         * tests/uninorm/test-u32-nfkc-big.c: New file.
12358         * modules/uninorm/nfkc-tests: New file.
12359
12360         New module 'uninorm/nfkc'.
12361         * lib/uninorm/nfkc.c: New file.
12362         * modules/uninorm/nfkc: New file.
12363
12364         Tests for module 'uninorm/nfkd'.
12365         * tests/uninorm/test-nfkd.c: New file.
12366         * tests/uninorm/test-u8-nfkd.c: New file.
12367         * tests/uninorm/test-u16-nfkd.c: New file.
12368         * tests/uninorm/test-u32-nfkd.c: New file.
12369         * tests/uninorm/test-u32-nfkd-big.sh: New file.
12370         * tests/uninorm/test-u32-nfkd-big.c: New file.
12371         * modules/uninorm/nfkd-tests: New file.
12372
12373         New module 'uninorm/nfkd'.
12374         * lib/uninorm/nfkd.c: New file.
12375         * modules/uninorm/nfkd: New file.
12376
12377         Tests for module 'uninorm/nfc'.
12378         * tests/uninorm/test-nfc.c: New file.
12379         * tests/uninorm/test-u8-nfc.c: New file.
12380         * tests/uninorm/test-u16-nfc.c: New file.
12381         * tests/uninorm/test-u32-nfc.c: New file.
12382         * tests/uninorm/test-u32-nfc-big.sh: New file.
12383         * tests/uninorm/test-u32-nfc-big.c: New file.
12384         * modules/uninorm/nfc-tests: New file.
12385
12386         New module 'uninorm/nfc'.
12387         * lib/uninorm/nfc.c: New file.
12388         * modules/uninorm/nfc: New file.
12389
12390         Tests for module 'uninorm/nfd'.
12391         * tests/uninorm/test-nfd.c: New file.
12392         * tests/uninorm/test-u8-nfd.c: New file.
12393         * tests/uninorm/test-u16-nfd.c: New file.
12394         * tests/uninorm/test-u32-nfd.c: New file.
12395         * tests/uninorm/test-u32-nfd-big.sh: New file.
12396         * tests/uninorm/test-u32-nfd-big.c: New file.
12397         * tests/uninorm/test-u32-normalize-big.h: New file.
12398         * tests/uninorm/test-u32-normalize-big.c: New file.
12399         * tests/uninorm/NormalizationTest.txt: New file, created from
12400         Unicode 5.1.0 NormalizationTest.txt.
12401         * modules/uninorm/nfd-tests: New file.
12402
12403         New module 'uninorm/nfd'.
12404         * lib/uninorm/nfd.c: New file.
12405         * modules/uninorm/nfd: New file.
12406
12407         New module 'uninorm/u32-normalize'.
12408         * lib/uninorm/u32-normalize.c: New file.
12409         * modules/uninorm/u32-normalize: New file.
12410
12411         New module 'uninorm/u16-normalize'.
12412         * lib/uninorm/u16-normalize.c: New file.
12413         * modules/uninorm/u16-normalize: New file.
12414
12415         New module 'uninorm/u8-normalize'.
12416         * lib/uninorm/u8-normalize.c: New file.
12417         * lib/uninorm/normalize-internal.h: New file.
12418         * lib/uninorm/u-normalize-internal.h: New file.
12419         * modules/uninorm/u8-normalize: New file.
12420
12421         New module 'uninorm/decompose-internal'.
12422         * lib/uninorm/decompose-internal.c: New file.
12423         * modules/uninorm/decompose-internal: New file.
12424
12425         Tests for module 'uninorm/composition'.
12426         * tests/uninorm/test-composition.c: New file.
12427         * modules/uninorm/composition-tests: New file.
12428
12429         New module 'uninorm/composition'.
12430         * lib/uninorm/composition.c: New file.
12431         * lib/uninorm/composition-table.gperf: New file, generated by
12432         gen-uni-tables.
12433         * modules/uninorm/composition: New file.
12434
12435         Tests for module 'uninorm/compat-decomposition'.
12436         * tests/uninorm/test-compat-decomposition.c: New file.
12437         * modules/uninorm/compat-decomposition-tests: New file.
12438
12439         New module 'uninorm/compat-decomposition'.
12440         * lib/uninorm/decompose-internal.h: New file.
12441         * lib/uninorm/compat-decomposition.c: New file.
12442         * modules/uninorm/compat-decomposition: New file.
12443
12444         Tests for module 'uninorm/canonical-decomposition'.
12445         * tests/uninorm/test-canonical-decomposition.c: New file.
12446         * modules/uninorm/canonical-decomposition-tests: New file.
12447
12448         New module 'uninorm/canonical-decomposition'.
12449         * lib/uninorm/canonical-decomposition.c: New file.
12450         * modules/uninorm/canonical-decomposition: New file.
12451
12452         Tests for module 'uninorm/decomposition'.
12453         * tests/uninorm/test-decomposition.c: New file.
12454         * modules/uninorm/decomposition-tests: New file.
12455
12456         New module 'uninorm/decomposition'.
12457         * lib/uninorm/decomposition.c: New file.
12458         * modules/uninorm/decomposition: New file.
12459
12460         New module 'uninorm/decomposition-table'.
12461         * lib/uninorm/decomposition-table.h: New file.
12462         * lib/uninorm/decomposition-table.c: New file.
12463         * lib/uninorm/decomposition-table1.h: New file, generated by
12464         gen-uni-tables.
12465         * lib/uninorm/decomposition-table2.h: New file, generated by
12466         gen-uni-tables.
12467         * modules/uninorm/decomposition-table: New file.
12468
12469         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
12470         (UC_DECOMP_*): New enumeration items.
12471         (get_decomposition): New function.
12472         (struct decomp_table): New type.
12473         (output_decomposition, output_decomposition_tables): New functions.
12474         (unicode_composition_exclusions): New variable.
12475         (fill_composition_exclusions, debug_output_composition_tables): New
12476         functions.
12477         (main): Accept one more argument. Invoke fill_composition_exclusions.
12478         Output decomposition and composition tables.
12479
12480         New module 'uninorm/base'.
12481         * lib/uninorm.h: New file.
12482         * lib/unictype.h: Update comment.
12483         * modules/uninorm/base: New file.
12484
12485 2009-02-21  David Lutterkort  <lutter@redhat.com>
12486
12487         Tests for module 'safe-alloc'.
12488         * tests/test-safe-alloc.c: New file.
12489         * modules/safe-alloc-tests: New file.
12490
12491         New module 'safe-alloc'.
12492         * lib/safe-alloc.h: New file.
12493         * lib/safe-alloc.c: New file.
12494         * m4/safe-alloc.m4: New file.
12495         * modules/safe-alloc: New file.
12496         * doc/safe-alloc.texi: New file.
12497         * doc/gnulib.texi: Include it.
12498         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12499         safe-alloc.
12500
12501 2009-02-18  Bruno Haible  <bruno@clisp.org>
12502
12503         Fix link error on non-glibc systems.
12504         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
12505         variable.
12506         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12507
12508 2009-02-18  Jim Meyering  <meyering@redhat.com>
12509
12510         fts: avoid used-uninitialized error due to recent change
12511         * lib/fts.c (fts_read): Guard uses of the new member,
12512         parent->fts_n_dirs_remaining, since it's not relevant for
12513         the parent of a directory specified on the command-line.
12514
12515 2009-02-17  James Youngman  <jay@gnu.org>
12516             Bruno Haible  <bruno@clisp.org>
12517
12518         * m4/include_next.m4: Reformulate comment.
12519
12520 2009-02-16  Jim Meyering  <meyering@redhat.com>
12521
12522         fts: add #if guards so that the fts_lgpl module still builds
12523         * lib/fts.c: Guard just-added hash-table-using parts with
12524         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
12525         Reported by Simon Josefsson.
12526
12527 2009-02-15  Bruno Haible  <bruno@clisp.org>
12528
12529         * modules/array-mergesort-tests: New file.
12530         * tests/test-array-mergesort.c: New file.
12531
12532         New module 'array-mergesort'.
12533         * modules/array-mergesort: New file.
12534         * lib/array-mergesort.h: New file.
12535
12536 2009-02-15  Bruno Haible  <bruno@clisp.org>
12537
12538         Fix 2009-02-07 commit.
12539         * lib/gen-uni-tables.c (output_predicate, output_category,
12540         output_combclass, output_bidi_category, output_decimal_digit,
12541         output_digit, output_numeric, output_mirror, output_scripts,
12542         output_ident_category, output_simple_mapping): Fix format directives.
12543         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
12544
12545 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
12546
12547         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
12548         fixes are available from IBM.
12549
12550 2009-02-13  Jim Meyering  <meyering@redhat.com>
12551
12552         fts: arrange not to stat non-directories in more cases
12553         This makes GNU find (when it doesn't need to stat each file)
12554         *much* more efficient at traversing reiserfs file systems.
12555         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
12556         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
12557         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
12558         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
12559         (leaf_optimization_applies): New function.
12560         (LCO_hash, LCO_compare): New helper functions.
12561         (link_count_optimize_ok): New function.
12562         (fts_stat): Initialize new member (if dir).
12563         (fts_read): Decrement parent's fts_n_dirs_remaining count if
12564         we've just stat'ed a directory.  Skip the stat call when possible.
12565         ---
12566         Note this AFS-related exchange:
12567         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
12568         and note find's pioctl call in find/fstype.c.
12569         But that is necessary only if you want to enable the
12570         optimization for AFS, and for now, I don't.
12571
12572         fts: move a function definition "up" (no semantic change)
12573         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
12574         "up" to precede upcoming use of a related function.
12575
12576 2009-02-11  Jim Meyering  <meyering@redhat.com>
12577
12578         fts: correct internal computation of nlinks (optimization-related)
12579         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
12580         whether the current entry is a directory, so don't test it.
12581
12582 2009-02-10  Bruno Haible  <bruno@clisp.org>
12583
12584         Tests for module 'uniwbrk/ulc-wordbreaks'.
12585         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
12586         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
12587         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
12588
12589         Tests for module 'uniwbrk/u32-wordbreaks'.
12590         * modules/uniwbrk/u32-wordbreaks-tests: New file.
12591         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
12592
12593         Tests for module 'uniwbrk/u16-wordbreaks'.
12594         * modules/uniwbrk/u16-wordbreaks-tests: New file.
12595         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
12596
12597         Tests for module 'uniwbrk/u8-wordbreaks'.
12598         * modules/uniwbrk/u8-wordbreaks-tests: New file.
12599         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
12600
12601 2009-02-10  Bruno Haible  <bruno@clisp.org>
12602
12603         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
12604         property.
12605         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
12606         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
12607         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
12608
12609 2009-02-10  Simon Josefsson  <simon@josefsson.org>
12610
12611         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
12612         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
12613
12614 2009-02-10  Bruno Haible  <bruno@clisp.org>
12615
12616         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
12617         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
12618         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
12619         * lib/unilbrk/u8-possible-linebreaks.c: Update.
12620         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
12621         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
12622
12623 2009-02-09  Simon Josefsson  <simon@josefsson.org>
12624
12625         * lib/sockets.h (gl_fd_to_handle): New function.
12626
12627         * tests/test-sockets.c: Call gl_fd_to_handle.
12628
12629 2009-02-09  Bruno Haible  <bruno@clisp.org>
12630
12631         * doc/havelib.texi: Document the conventions on bi-arch systems.
12632
12633 2009-02-08  Bruno Haible  <bruno@clisp.org>
12634
12635         Document the AC_LIB_LINKFLAGS macro.
12636         * doc/havelib.texi: New file, mostly written on 2005-05-24.
12637         * doc/gnulib.texi: Include it.
12638
12639 2009-02-08  Bruno Haible  <bruno@clisp.org>
12640
12641         Fix wrong order of sections, compared to TOC.
12642         * doc/gnulib.texi: Include relocatable-maint.texi after the
12643         "Regular expressions" node, not before.
12644
12645 2009-02-08  Bruno Haible  <bruno@clisp.org>
12646
12647         Tests for module 'unicase/totitle'.
12648         * modules/unicase/totitle-tests: New file.
12649
12650         Tests for module 'unicase/tolower'.
12651         * modules/unicase/tolower-tests: New file.
12652
12653         Tests for module 'unicase/toupper'.
12654         * modules/unicase/toupper-tests: New file.
12655         * tests/unicase/test-mapping-part1.h: New file.
12656         * tests/unicase/test-mapping-part2.h: New file.
12657
12658         New module 'unicase/totitle'.
12659         * modules/unicase/totitle: New file.
12660         * lib/unicase/totitle.c: New file.
12661
12662         New module 'unicase/tolower'.
12663         * modules/unicase/tolower: New file.
12664         * lib/unicase/tolower.c: New file.
12665
12666         New module 'unicase/toupper'.
12667         * modules/unicase/toupper: New file.
12668         * lib/unicase/toupper.c: New file.
12669         * lib/unicase/simple-mapping.h: New file.
12670
12671         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
12672         (mapping_table): New structure.
12673         (output_simple_mapping): New function.
12674         (main): Invoke output_simple_mapping_test and output_simple_mapping.
12675         * modules/gen-uni-tables (Description): Update.
12676         * lib/unicase/toupper.h: New file, automatically generated by
12677         gen-uni-tables.
12678         * lib/unicase/tolower.h: New file, automatically generated by
12679         gen-uni-tables.
12680         * lib/unicase/totitle.h: New file, automatically generated by
12681         gen-uni-tables.
12682         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
12683         gen-uni-tables.
12684         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
12685         gen-uni-tables.
12686         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
12687         gen-uni-tables.
12688
12689         New module 'unicase/base'.
12690         * modules/unicase/base: New file.
12691         * lib/unicase.h: New file.
12692
12693 2009-02-08  Bruno Haible  <bruno@clisp.org>
12694
12695         New module 'uniwbrk/ulc-wordbreaks'.
12696         * modules/uniwbrk/ulc-wordbreaks: New file.
12697         * lib/uniwbrk/ulc-wordbreaks.c: New file.
12698
12699         New module 'uniwbrk/u32-wordbreaks'.
12700         * modules/uniwbrk/u32-wordbreaks: New file.
12701         * lib/uniwbrk/u32-wordbreaks.c: New file.
12702
12703         New module 'uniwbrk/u16-wordbreaks'.
12704         * modules/uniwbrk/u16-wordbreaks: New file.
12705         * lib/uniwbrk/u16-wordbreaks.c: New file.
12706
12707         New module 'uniwbrk/u8-wordbreaks'.
12708         * modules/uniwbrk/u8-wordbreaks: New file.
12709         * lib/uniwbrk/u8-wordbreaks.c: New file.
12710         * lib/uniwbrk/u-wordbreaks.h: New file.
12711
12712         New module 'uniwbrk/table'.
12713         * modules/uniwbrk/table: New file.
12714         * lib/uniwbrk/wbrktable.h: New file.
12715         * lib/uniwbrk/wbrktable.c: New file.
12716
12717         New module 'uniwbrk/wordbreak-property'.
12718         * modules/uniwbrk/wordbreak-property: New file.
12719         * lib/uniwbrk/wordbreak-property.c: New file.
12720
12721         * lib/gen-uni-tables.c (WBP_*): New enum items.
12722         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
12723         (unicode_org_wbp): New variable.
12724         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
12725         New functions.
12726         (wbp_table): New structure.
12727         (output_wbp, output_wbrk_tables): New functions.
12728         (main): Accept additional argument. Invoke fill_org_wbp,
12729         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
12730         output_wbrk_tables.
12731         * modules/gen-uni-tables (Description): Update.
12732         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
12733         gen-uni-tables.
12734
12735         New module 'uniwbrk/base'.
12736         * modules/uniwbrk/base: New file.
12737         * lib/uniwbrk.h: New file.
12738
12739 2009-02-08  Bruno Haible  <bruno@clisp.org>
12740
12741         Update to Unicode 5.1.0.
12742         * lib/gen-uni-tables.c (is_property_alphabetic): Include
12743         U+2185..U+2188.
12744         (is_property_default_ignorable_code_point): Don't include characters
12745         of category Cc or Cs and not-a-characters.
12746         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
12747         U+0D79, U+109E, U+109F, U+A60C.
12748         * lib/unictype/bidi_of.h: Regenerated.
12749         * lib/unictype/blocks.h: Regenerated.
12750         * lib/unictype/categ_C.h: Regenerated.
12751         * lib/unictype/categ_Cf.h: Regenerated.
12752         * lib/unictype/categ_Cn.h: Regenerated.
12753         * lib/unictype/categ_L.h: Regenerated.
12754         * lib/unictype/categ_Ll.h: Regenerated.
12755         * lib/unictype/categ_Lm.h: Regenerated.
12756         * lib/unictype/categ_Lo.h: Regenerated.
12757         * lib/unictype/categ_Lu.h: Regenerated.
12758         * lib/unictype/categ_M.h: Regenerated.
12759         * lib/unictype/categ_Mc.h: Regenerated.
12760         * lib/unictype/categ_Me.h: Regenerated.
12761         * lib/unictype/categ_Mn.h: Regenerated.
12762         * lib/unictype/categ_N.h: Regenerated.
12763         * lib/unictype/categ_Nd.h: Regenerated.
12764         * lib/unictype/categ_Nl.h: Regenerated.
12765         * lib/unictype/categ_No.h: Regenerated.
12766         * lib/unictype/categ_P.h: Regenerated.
12767         * lib/unictype/categ_Pd.h: Regenerated.
12768         * lib/unictype/categ_Pe.h: Regenerated.
12769         * lib/unictype/categ_Pf.h: Regenerated.
12770         * lib/unictype/categ_Pi.h: Regenerated.
12771         * lib/unictype/categ_Po.h: Regenerated.
12772         * lib/unictype/categ_Ps.h: Regenerated.
12773         * lib/unictype/categ_S.h: Regenerated.
12774         * lib/unictype/categ_Sk.h: Regenerated.
12775         * lib/unictype/categ_Sm.h: Regenerated.
12776         * lib/unictype/categ_So.h: Regenerated.
12777         * lib/unictype/categ_of.h: Regenerated.
12778         * lib/unictype/combining.h: Regenerated.
12779         * lib/unictype/ctype_alnum.h: Regenerated.
12780         * lib/unictype/ctype_alpha.h: Regenerated.
12781         * lib/unictype/ctype_graph.h: Regenerated.
12782         * lib/unictype/ctype_lower.h: Regenerated.
12783         * lib/unictype/ctype_print.h: Regenerated.
12784         * lib/unictype/ctype_punct.h: Regenerated.
12785         * lib/unictype/ctype_upper.h: Regenerated.
12786         * lib/unictype/decdigit.h: Regenerated.
12787         * lib/unictype/digit.h: Regenerated.
12788         * lib/unictype/mirror.h: Regenerated.
12789         * lib/unictype/numeric.h: Regenerated.
12790         * lib/unictype/pr_alphabetic.h: Regenerated.
12791         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
12792         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
12793         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
12794         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
12795         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
12796         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
12797         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
12798         * lib/unictype/pr_combining.h: Regenerated.
12799         * lib/unictype/pr_dash.h: Regenerated.
12800         * lib/unictype/pr_decimal_digit.h: Regenerated.
12801         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
12802         * lib/unictype/pr_deprecated.h: Regenerated.
12803         * lib/unictype/pr_diacritic.h: Regenerated.
12804         * lib/unictype/pr_extender.h: Regenerated.
12805         * lib/unictype/pr_format_control.h: Regenerated.
12806         * lib/unictype/pr_grapheme_base.h: Regenerated.
12807         * lib/unictype/pr_grapheme_extend.h: Regenerated.
12808         * lib/unictype/pr_grapheme_link.h: Regenerated.
12809         * lib/unictype/pr_id_continue.h: Regenerated.
12810         * lib/unictype/pr_id_start.h: Regenerated.
12811         * lib/unictype/pr_ideographic.h: Regenerated.
12812         * lib/unictype/pr_ignorable_control.h: Regenerated.
12813         * lib/unictype/pr_lowercase.h: Regenerated.
12814         * lib/unictype/pr_math.h: Regenerated.
12815         * lib/unictype/pr_numeric.h: Regenerated.
12816         * lib/unictype/pr_other_alphabetic.h: Regenerated.
12817         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
12818         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
12819         * lib/unictype/pr_other_id_continue.h: Regenerated.
12820         * lib/unictype/pr_other_lowercase.h: Regenerated.
12821         * lib/unictype/pr_other_math.h: Regenerated.
12822         * lib/unictype/pr_punctuation.h: Regenerated.
12823         * lib/unictype/pr_sentence_terminal.h: Regenerated.
12824         * lib/unictype/pr_soft_dotted.h: Regenerated.
12825         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
12826         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
12827         * lib/unictype/pr_unified_ideograph.h: Regenerated.
12828         * lib/unictype/pr_uppercase.h: Regenerated.
12829         * lib/unictype/pr_xid_continue.h: Regenerated.
12830         * lib/unictype/pr_xid_start.h: Regenerated.
12831         * lib/unictype/pr_zero_width.h: Regenerated.
12832         * lib/unictype/scripts.h: Regenerated.
12833         * lib/unictype/scripts_byname.gperf: Regenerated.
12834         * lib/unictype/sy_java_ident.h: Regenerated.
12835         * lib/unilbrk/lbrkprop1.h: Regenerated.
12836         * lib/unilbrk/lbrkprop2.h: Regenerated.
12837         * tests/unictype/test-categ_C.c: Regenerated.
12838         * tests/unictype/test-categ_Cf.c: Regenerated.
12839         * tests/unictype/test-categ_Cn.c: Regenerated.
12840         * tests/unictype/test-categ_L.c: Regenerated.
12841         * tests/unictype/test-categ_Ll.c: Regenerated.
12842         * tests/unictype/test-categ_Lm.c: Regenerated.
12843         * tests/unictype/test-categ_Lo.c: Regenerated.
12844         * tests/unictype/test-categ_Lu.c: Regenerated.
12845         * tests/unictype/test-categ_M.c: Regenerated.
12846         * tests/unictype/test-categ_Mc.c: Regenerated.
12847         * tests/unictype/test-categ_Me.c: Regenerated.
12848         * tests/unictype/test-categ_Mn.c: Regenerated.
12849         * tests/unictype/test-categ_N.c: Regenerated.
12850         * tests/unictype/test-categ_Nd.c: Regenerated.
12851         * tests/unictype/test-categ_Nl.c: Regenerated.
12852         * tests/unictype/test-categ_No.c: Regenerated.
12853         * tests/unictype/test-categ_P.c: Regenerated.
12854         * tests/unictype/test-categ_Pd.c: Regenerated.
12855         * tests/unictype/test-categ_Pe.c: Regenerated.
12856         * tests/unictype/test-categ_Pf.c: Regenerated.
12857         * tests/unictype/test-categ_Pi.c: Regenerated.
12858         * tests/unictype/test-categ_Po.c: Regenerated.
12859         * tests/unictype/test-categ_Ps.c: Regenerated.
12860         * tests/unictype/test-categ_S.c: Regenerated.
12861         * tests/unictype/test-categ_Sk.c: Regenerated.
12862         * tests/unictype/test-categ_Sm.c: Regenerated.
12863         * tests/unictype/test-categ_So.c: Regenerated.
12864         * tests/unictype/test-ctype_alnum.c: Regenerated.
12865         * tests/unictype/test-ctype_alpha.c: Regenerated.
12866         * tests/unictype/test-ctype_graph.c: Regenerated.
12867         * tests/unictype/test-ctype_lower.c: Regenerated.
12868         * tests/unictype/test-ctype_print.c: Regenerated.
12869         * tests/unictype/test-ctype_punct.c: Regenerated.
12870         * tests/unictype/test-ctype_upper.c: Regenerated.
12871         * tests/unictype/test-decdigit.h: Regenerated.
12872         * tests/unictype/test-digit.h: Regenerated.
12873         * tests/unictype/test-numeric.h: Regenerated.
12874         * tests/unictype/test-pr_alphabetic.c: Regenerated.
12875         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
12876         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
12877         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
12878         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
12879         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
12880         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
12881         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
12882         * tests/unictype/test-pr_combining.c: Regenerated.
12883         * tests/unictype/test-pr_dash.c: Regenerated.
12884         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
12885         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
12886         * tests/unictype/test-pr_deprecated.c: Regenerated.
12887         * tests/unictype/test-pr_diacritic.c: Regenerated.
12888         * tests/unictype/test-pr_extender.c: Regenerated.
12889         * tests/unictype/test-pr_format_control.c: Regenerated.
12890         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
12891         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
12892         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
12893         * tests/unictype/test-pr_id_continue.c: Regenerated.
12894         * tests/unictype/test-pr_id_start.c: Regenerated.
12895         * tests/unictype/test-pr_ideographic.c: Regenerated.
12896         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
12897         * tests/unictype/test-pr_lowercase.c: Regenerated.
12898         * tests/unictype/test-pr_math.c: Regenerated.
12899         * tests/unictype/test-pr_numeric.c: Regenerated.
12900         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
12901         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
12902         Regenerated.
12903         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
12904         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
12905         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
12906         * tests/unictype/test-pr_other_math.c: Regenerated.
12907         * tests/unictype/test-pr_punctuation.c: Regenerated.
12908         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
12909         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
12910         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
12911         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
12912         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
12913         * tests/unictype/test-pr_uppercase.c: Regenerated.
12914         * tests/unictype/test-pr_xid_continue.c: Regenerated.
12915         * tests/unictype/test-pr_xid_start.c: Regenerated.
12916         * tests/unictype/test-pr_zero_width.c: Regenerated.
12917
12918         Update to Unicode 5.1.0.
12919         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
12920         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
12921         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
12922         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
12923         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
12924         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
12925         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
12926         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
12927         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
12928         (nonspacing_table_ind): Update.
12929         * tests/uniwidth/test-uc_width2.sh: Update expected result.
12930
12931         Update to Unicode 5.1.0.
12932         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
12933         code transform.
12934         * lib/uniname/uniname.c (unicode_character_name,
12935         unicode_name_character): Add the range 0x1Fxxx to the code transform.
12936         * lib/uniname/uninames.h: Regenerated.
12937         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
12938
12939 2009-02-07  Bruno Haible  <bruno@clisp.org>
12940
12941         Merge gen-ctype and gen-lbrk into a single program.
12942         * lib/gen-uni-tables.c: New file, incorporating
12943         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
12944         Add directory prefixes to the names of the generated files.
12945         * lib/unictype/gen-ctype.c: Remove file.
12946         * lib/unilbrk/gen-lbrk.c: Remove file.
12947         * modules/gen-uni-tables: New file.
12948         * modules/unictype/gen-ctype: Remove file.
12949         * modules/unilbrk/gen-lbrk: Remove file.
12950
12951 2009-02-07  Bruno Haible  <bruno@clisp.org>
12952
12953         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
12954
12955         New module 'unistr/u32-strcoll'.
12956         * modules/unistr/u32-strcoll: New file.
12957         * lib/unistr/u32-strcoll.c: New file.
12958
12959         New module 'unistr/u16-strcoll'.
12960         * modules/unistr/u16-strcoll: New file.
12961         * lib/unistr/u16-strcoll.c: New file.
12962
12963         New module 'unistr/u8-strcoll'.
12964         * modules/unistr/u8-strcoll: New file.
12965         * lib/unistr/u8-strcoll.c: New file.
12966         * lib/unistr/u-strcoll.h: New file.
12967
12968 2009-02-07  Bruno Haible  <bruno@clisp.org>
12969
12970         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
12971         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
12972         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
12973         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
12974         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
12975         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
12976
12977 2009-02-07  Bruno Haible  <bruno@clisp.org>
12978
12979         Make 64-bit clean.
12980         * lib/unictype/gen-ctype.c (output_predicate, output_category,
12981         output_combclass, output_bidi_category, output_decimal_digit,
12982         output_digit, output_numeric, output_mirror, output_scripts,
12983         output_ident_category): Use proper width specifier in format strings.
12984
12985 2009-02-07  Bruno Haible  <bruno@clisp.org>
12986
12987         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
12988         failure behaviour.
12989
12990 2009-02-07  Jim Meyering  <meyering@redhat.com>
12991
12992         regex: avoid compilation failure with upcoming gcc-4.4
12993         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
12994         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
12995         "... error: integer overflow in preprocessor expression".
12996
12997 2009-02-05  Ben Pfaff  <blp@gnu.org>
12998
12999         Fix link errors on Windows when close module is used.
13000         * modules/close: Add $(LIB_CLOSE) to Link section.
13001         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
13002         $(LIB_CLOSE) on Windows.
13003
13004 2009-02-05  Jim Meyering  <meyering@redhat.com>
13005
13006         still avoid unused-parameter warnings, but do it cleanly
13007         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
13008         (get_fs_usage): Cast to void instead.
13009         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
13010         (dev_from_mount_options, read_file_system_list): Cast to void.
13011         Prompted by Bruno Haible.
13012
13013 2009-02-04  Jim Meyering  <meyering@redhat.com>
13014
13015         fsusage.c: correct copyright year
13016         * lib/fsusage.c: Reflect year in which the change is pushed into
13017
13018         avoid misc. warnings
13019         * lib/fsusage.c (UNUSED_PARAM): Define.
13020         (get_fs_usage): Mark parameter "disk" as unused.
13021         * lib/getugroups.c (getgrent): Use "void" in prototype.
13022         * lib/mountlist.c: Mark unused parameters.
13023         (read_file_system_list): Declare a local with "const".
13024         * lib/nanosleep.c (getnow): Declare static.
13025         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
13026
13027         dirfd: set errno upon failure
13028         * lib/dirfd.c: Include <errno.h>.
13029         Set errno to ENOTSUP when returning -1.
13030         * modules/dirfd (Depends-on): Add errno.
13031         Suggested by John Kodis <kodis@comcast.net>.
13032
13033 2009-02-01  Bruno Haible  <bruno@clisp.org>
13034
13035         Don't assume sizeof (long) >= sizeof (void *).
13036         * lib/memcmp.c: Include stdint.h.
13037         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
13038         srcp2 to 'const byte *'.
13039         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
13040         types to uintptr_t.
13041         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
13042         * modules/memcmp (Depends-on): Add stdint.
13043         Reported by Ozkan Sezer <sezeroz@gmail.com>.
13044
13045 2009-01-30  Eric Blake  <ebb9@byu.net>
13046
13047         fix more require-before-expand issues
13048         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
13049         expand, AC_PROG_AWK.
13050         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
13051
13052 2009-01-28  Eric Blake  <ebb9@byu.net>
13053
13054         version-etc: use consistent URL formatting
13055         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
13056         Improve formatting.  Use fputs for string without %.
13057
13058 2009-01-28  Jim Meyering  <meyering@redhat.com>
13059
13060         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
13061         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
13062         "underquoted definition of NAME" from autoconf-2.59.
13063
13064 2009-01-28  Bruno Haible  <bruno@clisp.org>
13065
13066         * doc/gnulib.texi: Add "Obsolete modules" to index.
13067
13068 2009-01-28  Jim Meyering  <meyering@redhat.com>
13069
13070         useless-if-before-free: recognize more variants
13071         * build-aux/useless-if-before-free: Also recognize e.g.,
13072         if (NULL != p) free (p);
13073
13074 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
13075
13076         test-getaddrinfo: skip (don't fail) this test when there's no network
13077         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
13078         on the presumption that it means you lack network access.
13079
13080 2009-01-26  Jim Meyering  <meyering@redhat.com>
13081
13082         fflush: avoid warnings on modern systems
13083         * lib/fflush.c (rpl_fflush): Move declarations of locals,
13084         pos and result, into scopes where they're used.
13085
13086 2009-01-26  Eric Blake  <ebb9@byu.net>
13087
13088         Silence warning reintroduced by recent extensions patch.
13089         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
13090         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
13091         autoconf.
13092
13093         Backport improved autoconf semantics of AC_DEFUN_ONCE.
13094         * m4/00gnulib.m4: New file.
13095         * gnulib-tool (func_get_filelist): Always use it.
13096         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
13097         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
13098
13099 2009-01-25  Bruno Haible  <bruno@clisp.org>
13100
13101         Make test-quotearg work on MacOS X and AIX.
13102         * tests/test-quotearg.sh: New file.
13103         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
13104         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
13105         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
13106         include <libintl.h>.
13107         (fake_locale): Remove variable.
13108         (gettext, dgettext, dcgettext): Remove functions.
13109         (main): Instead of setting a fake locale, set a real locale. Call
13110         textdomain and bindtextdomain.
13111         * modules/quotearg-tests (Files): Add the new files.
13112         (Depends-on): Add gettext, setenv, unsetenv.
13113         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
13114         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
13115         Augment TESTS_ENVIRONMENT.
13116
13117 2009-01-25  Bruno Haible  <bruno@clisp.org>
13118
13119         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
13120         fr_FR.ISO8859-1 locale on MacOS X.
13121         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
13122         ja_JP.eucJP locale on MacOS X.
13123         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
13124         zh_CN.GB18030 locale on MacOS X.
13125
13126 2009-01-25  Bruno Haible  <bruno@clisp.org>
13127
13128         Avoid link errors on MacOS X 10.3.
13129         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
13130         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13131
13132 2009-01-25  Bruno Haible  <bruno@clisp.org>
13133
13134         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
13135         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
13136         * modules/pipe (Files): Remove m4/posix_spawn.m4.
13137         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
13138         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
13139         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
13140         posix_spawnattr_init, posix_spawnattr_setsigmask,
13141         posix_spawnattr_setflags, posix_spawnattr_destroy.
13142
13143         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
13144         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
13145         * modules/execute (Files): Remove m4/posix_spawn.m4.
13146         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
13147         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
13148         posix_spawnattr_init, posix_spawnattr_setsigmask,
13149         posix_spawnattr_setflags, posix_spawnattr_destroy.
13150
13151 2009-01-25  Bruno Haible  <bruno@clisp.org>
13152
13153         * lib/glthread/threadlib.c: Include <stdlib.h>.
13154
13155 2009-01-25  Bruno Haible  <bruno@clisp.org>
13156
13157         * lib/glthread/threadlib.c (dummy): New declaration.
13158
13159 2009-01-25  Bruno Haible  <bruno@clisp.org>
13160
13161         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
13162         multibyte characters also for the GB18030 encoding. Don't crash when
13163         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
13164
13165 2009-01-25  Bruno Haible  <bruno@clisp.org>
13166
13167         Avoid redefining 'struct random_data' on OSF/1 5.1.
13168         * lib/stdlib.in.h: Include <random.h> if it exists.
13169         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
13170         HAVE_RANDOM_H. Include <random.h> when testing whether
13171         'struct random_data' exists.
13172         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
13173
13174 2009-01-25  Bruno Haible  <bruno@clisp.org>
13175
13176         Don't install charset.alias on MacOS X >= 10.3.
13177         * lib/localcharset.c (DARWIN7): New macro.
13178         (get_charset_aliases): Hardcode the result for Darwin7.
13179         * modules/localcharset (install-exec-local): Don't install
13180         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
13181
13182 2009-01-25  Bruno Haible  <bruno@clisp.org>
13183
13184         Don't install charset.alias on mingw and Cygwin.
13185         * modules/localcharset (install-exec-local): Don't install
13186         charset.alias on mingw and Cygwin, if the file does not yet exist.
13187         The result for these platforms is hardcoded in localcharset.c.
13188
13189 2009-01-25  Bruno Haible  <bruno@clisp.org>
13190
13191         Make it possible again to use AC_GNU_SOURCE together with gnulib.
13192         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
13193         before requiring AC_USE_SYSTEM_EXTENSIONS.
13194
13195 2009-01-25  Jim Meyering  <meyering@redhat.com>
13196
13197         c-strtod: avoid warnings
13198         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
13199         "assignment discards qualifiers from pointer target type" warnings.
13200
13201 2009-01-24  Bruno Haible  <bruno@clisp.org>
13202
13203         Add support for non-UTF-8 locales on MacOS X.
13204         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
13205         canonical encodings. For Darwin 7 and newer, don't map traditional
13206         encodings to UTF-8.
13207         Reported by Vincent Lefevre <vincent@vinc17.org>
13208         at <http://savannah.gnu.org/bugs/?25235>.
13209
13210 2009-01-24  Bruno Haible  <bruno@clisp.org>
13211
13212         * doc/gnulib.texi (Obsolete modules): New section.
13213         Reported by Mike Frysinger <vapier@gentoo.org>.
13214
13215 2009-01-24  Bruno Haible  <bruno@clisp.org>
13216
13217         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
13218         (%.dvi): New rule.
13219
13220 2009-01-24  Bruno Haible  <bruno@clisp.org>
13221
13222         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
13223         Reported by Eric Blake.
13224
13225 2009-01-24  Bruno Haible  <bruno@clisp.org>
13226
13227         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
13228         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
13229         Reported by Gary V. Vaughan <gary@gnu.org>.
13230
13231 2009-01-24  Bruno Haible  <bruno@clisp.org>
13232
13233         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
13234
13235 2009-01-23  Bruno Haible  <bruno@clisp.org>
13236
13237         Make c-strtod, c-strtold usable in libraries.
13238         * lib/c-strtod.c: Include string.h instead of xalloc.h.
13239         (C_STRTOD): Call strdup instead of xstrdup.
13240         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
13241         * modules/c-strtold (Depends-on): Likewise.
13242         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
13243         * NEWS: Mention the change.
13244         Reported by Michael Gold <mgold@ncf.ca>.
13245
13246 2009-01-23  Jim Meyering  <meyering@redhat.com>
13247
13248         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
13249         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
13250         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
13251
13252 2009-01-23  Simon Josefsson  <simon@josefsson.org>
13253
13254         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
13255         GNU CoreUtils.
13256         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
13257         * modules/version-etc (Description): Update.
13258
13259 2009-01-22  Bruno Haible  <bruno@clisp.org>
13260
13261         Cache the C locale object.
13262         * lib/c-strtod.c (c_locale_cache): New variable.
13263         (c_locale): New function.
13264         (C_STRTOD): Use it, and don't call freelocale.
13265         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
13266         Suggested by Paolo Bonzini.
13267
13268 2009-01-21  Bruno Haible  <bruno@clisp.org>
13269
13270         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
13271         conditions other than overflow.
13272
13273 2009-01-21  Bruno Haible  <bruno@clisp.org>
13274
13275         * lib/c-strtod.c: Include errno.h.
13276         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
13277         value from STRTOD_L and STRTOD.
13278
13279 2009-01-21  Bruno Haible  <bruno@clisp.org>
13280         and Jim Meyering  <meyering@redhat.com>
13281
13282         nanosleep: skip configure test (fail it) for apple universal builds
13283         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
13284         universal builds, assume that nanosleep does not work.
13285         * modules/nanosleep (Depends-on): Add multiarch.
13286
13287         mktime: skip configure test (fail it) for apple universal builds
13288         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
13289         universal builds, assume that mktime does not work.
13290         * modules/mktime (Depends-on): Add multiarch.
13291
13292 2009-01-21  Eric Blake  <ebb9@byu.net>
13293
13294         multiarch: avoid expand-before-require warning
13295         * modules/multiarch (configure.ac): Require, rather than expand,
13296         gl_MULTIARCH.
13297         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
13298         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
13299         enforce that all clients require it.  Partial reversion of
13300         2008-12-29 patch.
13301
13302         error: avoid expand-before-require warning
13303         * modules/errno (configure.ac): Require, rather than expand,
13304         gl_HEADER_ERRNO_H.
13305         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
13306         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
13307         enforce that all clients require it.
13308
13309         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
13310         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
13311         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
13312         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
13313
13314 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
13315
13316         Revert:
13317         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
13318
13319         regex: do not depend on obsolete modules.
13320         * modules/regex: Remove memcmp and memmove.
13321
13322 2009-01-20  Bruno Haible  <bruno@clisp.org>
13323
13324         Make the 'link' module link on Windows NT 4.
13325         * lib/link.c (_WIN32_WINNT): Don't define.
13326         (CreateHardLinkFuncType): New type.
13327         (CreateHardLinkFunc, initialized): New variables.
13328         (initialize): New function.
13329         (link): Invoke CreateHardLink indirectly through the function pointer.
13330
13331 2009-01-20  Bruno Haible  <bruno@clisp.org>
13332
13333         Fix compilation failure on mingw.
13334         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
13335
13336 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
13337
13338         * doc/c-strtod.texi: Mention a couple of restrictions.
13339
13340 2009-01-20  Jim Meyering  <meyering@redhat.com>
13341
13342         gettimeofday: move more declarations out of functions
13343         * lib/gettimeofday.c: Move extern declarations of tzset and
13344         gmtime out of containing functions.  Prompted by Bruno Haible.
13345
13346 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
13347
13348         regex: do not depend on obsolete modules.
13349         * modules/regex: Remove memcmp and memmove.
13350
13351 2009-01-19  Bruno Haible  <bruno@clisp.org>
13352
13353         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13354         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
13355         gl_BIGENDIAN, not AC_C_BIGENDIAN.
13356         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
13357         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
13358
13359 2009-01-19  Bruno Haible  <bruno@clisp.org>
13360
13361         * tests/test-link.c: Include <errno.h>.
13362         (main): Exit with code 77 when a hard link cannot be created due to
13363         the file system.
13364         * tests/test-link.sh: Skip test when a hard link cannot be created due
13365         to the file system.
13366         Suggested by Eric Blake.
13367
13368 2009-01-19  Martin Lambers  <marlam@marlam.de>
13369
13370         * modules/link-tests: New file.
13371         * tests/test-link.sh: New file.
13372         * tests/test-link.c: New file.
13373
13374 2009-01-19  Eric Blake  <ebb9@byu.net>
13375
13376         doc: mention another function added in cygwin 1.7.0
13377         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
13378         Another new function in cygwin 1.7.
13379
13380 2009-01-19  Bruno Haible  <bruno@clisp.org>
13381
13382         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13383         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
13384         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
13385         gl_BIGENDIAN, not AC_C_BIGENDIAN.
13386         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13387         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
13388         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13389         * m4/md4.m4 (gl_MD4): Likewise.
13390         * m4/md5.m4 (gl_MD5): Likewise.
13391         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
13392         * m4/sha1.m4 (gl_SHA1): Likewise.
13393         * m4/sha256.m4 (gl_SHA256): Likewise.
13394         * m4/sha512.m4 (gl_SHA512): Likewise.
13395
13396 2009-01-19  Bruno Haible  <bruno@clisp.org>
13397
13398         * modules/uniname/uniname-tests (Depends-on): Add progname.
13399         * tests/uniname/test-uninames.c: Include progname.h.
13400         (main): Call set_program_name.
13401
13402         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
13403         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
13404         (main): Call set_program_name.
13405
13406         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
13407         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
13408         (main): Call set_program_name.
13409
13410         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
13411         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
13412         (main): Call set_program_name.
13413
13414         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
13415         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
13416         (main): Call set_program_name.
13417
13418         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
13419         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
13420         (main): Call set_program_name.
13421
13422         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
13423         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
13424         (main): Call set_program_name.
13425
13426         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
13427         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
13428         (main): Call set_program_name.
13429
13430         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
13431         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
13432         (main): Call set_program_name.
13433
13434 2009-01-19  Eric Blake  <ebb9@byu.net>
13435
13436         test-unistd: test previous patch
13437         * tests/test-unistd.c: Test *_FILENO macros.
13438
13439         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
13440         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13441         Guarantee a definition.
13442         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
13443         * modules/unistd-safer (Depends-on): Add dependency on unistd.
13444         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
13445         * lib/dup-safer.c (STDERR_FILENO): Likewise.
13446         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13447         Likewise.
13448         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
13449         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
13450         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13451         Likewise.
13452         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
13453         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
13454         (STDERR_FILENO): Likewise.
13455         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
13456         (STDERR_FILENO): Likewise.
13457         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
13458         (STDERR_FILENO): Likewise.
13459         Reported by Elbert Pol.
13460
13461 2009-01-19  Eric Blake  <ebb9@byu.net>
13462
13463         doc: mention more functions added in cygwin 1.7.0
13464         * doc/posix-functions/abort.texi (abort): Update wording related
13465         to cygwin.
13466         * doc/posix-functions/daylight.texi (daylight): Likewise.
13467         * doc/posix-functions/optarg.texi (optarg): Likewise.
13468         * doc/posix-functions/optarg.texi (opterr): Likewise.
13469         * doc/posix-functions/optarg.texi (optind): Likewise.
13470         * doc/posix-functions/optarg.texi (optopt): Likewise.
13471         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
13472         worked in 1.5.x, and was withdrawn in 1.7.
13473         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13474         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
13475         cygwin versions.
13476         * doc/posix-functions/perror.texi (perror): Likewise.
13477         * doc/posix-functions/printf.texi (printf): Likewise.
13478         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
13479         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
13480         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13481         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13482         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13483         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
13484         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
13485         Likewise.
13486         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
13487         Likewise.
13488         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
13489         this function.
13490         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
13491         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
13492         Likewise.
13493         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
13494         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
13495         * doc/posix-functions/confstr.texi (confstr): Likewise.
13496         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
13497         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
13498         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
13499         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
13500         * doc/posix-functions/fputws.texi (fputws): Likewise.
13501         * doc/posix-functions/fwide.texi (fwide): Likewise.
13502         * doc/posix-functions/getwc.texi (getwc): Likewise.
13503         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
13504         * doc/posix-functions/putwc.texi (putwc): Likewise.
13505         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
13506         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
13507         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
13508         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13509         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
13510         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
13511         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
13512         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
13513         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
13514         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
13515         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
13516
13517 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
13518
13519         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
13520         * lib/ioctl.c: Include <sys/ioctl.h>.
13521
13522 2009-01-19  Simon Josefsson  <simon@josefsson.org>
13523
13524         * modules/getdate-tests (Depends-on): Add progname.
13525         * tests/test-getdate.c: Use progname module, to avoid link errors
13526         on non-glibc systems.
13527
13528 2009-01-18  Simon Josefsson  <simon@josefsson.org>
13529
13530         * modules/filenamecat-tests (Depends-on): Add progname.
13531         * modules/fstrcmp-tests (Depends-on): Likewise.
13532
13533         * tests/test-filenamecat.c: Use progname module, to avoid link
13534         errors on non-glibc systems.
13535         * tests/test-fstrcmp.c: Likewise.
13536
13537 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
13538
13539         gettimeofday: avoid warning: nested extern declaration of 'localtime'
13540         * lib/gettimeofday.c: Move extern declaration out of function.
13541
13542 2009-01-18  Bruno Haible  <bruno@clisp.org>
13543
13544         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
13545         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
13546         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
13547
13548 2009-01-18  Bruno Haible  <bruno@clisp.org>
13549
13550         * lib/strftime.c (MEMPCPY): Remove unused macro.
13551         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
13552
13553 2009-01-18  Martin Lambers  <marlam@marlam.de>
13554
13555         New module 'link'.
13556         * lib/unistd.in.h (link): New declaration.
13557         * lib/link.c: New file.
13558         * m4/link.m4: New file.
13559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
13560         HAVE_LINK.
13561         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
13562         * modules/link: New file.
13563         * doc/posix-functions/link.texi: Mention the new module.
13564
13565 2009-01-18  Bruno Haible  <bruno@clisp.org>
13566
13567         * tests/test-avltree_list.c (main): Call set_program_name.
13568         * tests/test-avltree_oset.c (main): Likewise.
13569         * tests/test-obstack-printf.c: Include progname.h.
13570         (main): Call set_program_name.
13571         * tests/test-quotearg.c: Include progname.h.
13572         (main): Call set_program_name.
13573         * tests/test-xmemdup0.c: Include progname.h.
13574         (main): Call set_program_name.
13575
13576 2009-01-18  Bruno Haible  <bruno@clisp.org>
13577
13578         New module 'alphasort'.
13579         * lib/dirent.in.h (alphasort): New declaration.
13580         * lib/alphasort.c: New file, from glibc with modifications.
13581         * m4/alphasort.m4: New file.
13582         * modules/alphasort: New file.
13583         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
13584         HAVE_ALPHASORT.
13585         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
13586         HAVE_ALPHASORT.
13587         * doc/posix-functions/alphasort.texi: Mention the new module and the
13588         portability problems.
13589
13590 2009-01-18  Bruno Haible  <bruno@clisp.org>
13591
13592         New module 'scandir'.
13593         * lib/dirent.in.h (scandir): New declaration.
13594         * lib/scandir.c: New file, from glibc with modifications.
13595         * m4/scandir.m4: New file.
13596         * modules/scandir: New file.
13597         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
13598         HAVE_SCANDIR.
13599         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
13600         HAVE_SCANDIR.
13601         * doc/posix-functions/scandir.texi: Mention the new module and the
13602         portability problems.
13603
13604 2009-01-17  Bruno Haible  <bruno@clisp.org>
13605
13606         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
13607         Update documentation.
13608         (func_remove_suffix): Escape all dots in the suffix. Update
13609         documentation.
13610         (func_filter_filelist): Update documentation.
13611         Reported by Ralf Wildenhues.
13612
13613 2009-01-17  Bruno Haible  <bruno@clisp.org>
13614
13615         * modules/dprintf-posix-tests: New file.
13616         * tests/test-dprintf-posix.sh: New file.
13617         * tests/test-dprintf-posix.c: New file.
13618
13619         New modules 'dprintf', 'dprintf-posix'.
13620         * lib/stdio.in.h (dprintf): New declaration.
13621         * lib/dprintf.c: New file.
13622         * m4/dprintf.m4: New file.
13623         * m4/dprintf-posix.m4: New file.
13624         * modules/dprintf: New file.
13625         * modules/dprintf-posix: New file.
13626         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
13627         HAVE_DPRINTF, REPLACE_DPRINTF.
13628         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
13629         HAVE_DPRINTF, REPLACE_DPRINTF.
13630         * doc/posix-functions/dprintf.texi: Mention the new modules.
13631
13632 2009-01-17  Bruno Haible  <bruno@clisp.org>
13633
13634         * modules/vdprintf-posix-tests: New file.
13635         * tests/test-vdprintf-posix.sh: New file.
13636         * tests/test-vdprintf-posix.c: New file.
13637
13638         New modules 'vdprintf', 'vdprintf-posix'.
13639         * lib/stdio.in.h (vdprintf): New declaration.
13640         * lib/vdprintf.c: New file.
13641         * m4/vdprintf.m4: New file.
13642         * m4/vdprintf-posix.m4: New file.
13643         * modules/vdprintf: New file.
13644         * modules/vdprintf-posix: New file.
13645         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
13646         HAVE_VDPRINTF, REPLACE_VDPRINTF.
13647         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
13648         HAVE_VDPRINTF, REPLACE_VDPRINTF.
13649         * doc/posix-functions/vdprintf.texi: Mention the new modules.
13650
13651 2009-01-17  Bruno Haible  <bruno@clisp.org>
13652
13653         Fix replacement of fopen on mingw.
13654         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
13655         mingw.
13656
13657 2009-01-17  Bruno Haible  <bruno@clisp.org>
13658
13659         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
13660         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
13661
13662 2009-01-17  Bruno Haible  <bruno@clisp.org>
13663
13664         Avoid test-fflush2.sh failure on mingw.
13665         * tests/test-fflush2.c: Include binary-io.h.
13666         (main): Put standard input into binary mode.
13667         * modules/fflush-tests (Depends-on): Add binary-io.
13668
13669 2009-01-17  Bruno Haible  <bruno@clisp.org>
13670
13671         * lib/wchar.in.h: In another particular situation, include only the
13672         system's <wchar.h> file.
13673         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
13674         Reported by Albert Chin-A-Young <china@thewrittenword.com>
13675         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
13676
13677 2009-01-17  Bruno Haible  <bruno@clisp.org>
13678
13679         Support for stripping executables in --enable-relocatable.
13680         * build-aux/install-reloc: Expect one more argument, or an environment
13681         variable RELOC_STRIP_PROG. If set, strip the destination program and
13682         its wrapper.
13683         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
13684         RELOC_STRIP_PROG.
13685         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
13686         to set RELOCATABLE_STRIP.
13687         * NEWS: Mention the new Makefile requirement.
13688
13689 2009-01-17  Bruno Haible  <bruno@clisp.org>
13690
13691         * build-aux/install-reloc: Remove debugging information left over by
13692         C compiler on MacOS X.
13693
13694 2009-01-17  Bruno Haible  <bruno@clisp.org>
13695
13696         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
13697         * lib/progreloc.c (find_executable): Fix type of pointer passed to
13698         _NSGetExecutablePath.
13699
13700 2009-01-16  Jim Meyering  <meyering@redhat.com>
13701
13702         strerror: avoid warnings about discarding "const"
13703         * lib/strerror.c (rpl_strerror): Instead of returning a const
13704         string from each and every "case", use a variable, and add a single
13705         cast after the switch.
13706
13707 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
13708
13709         * lib/arpa_inet.in.h: Add extern "C" block for C++.
13710
13711 2009-01-16  Bruno Haible  <bruno@clisp.org>
13712
13713         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
13714         array initializer syntax that also works in C++ mode.
13715         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13716
13717 2009-01-16  Jim Meyering  <meyering@redhat.com>
13718
13719         poll: suppress a warning
13720         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
13721         to ignore "...unsigned expression < 0 is always false" warnings.
13722
13723 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
13724
13725         poll: remove declarations of unused variables
13726         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
13727         sockbuf and optlen.
13728
13729 2009-01-15  Bruno Haible  <bruno@clisp.org>
13730
13731         Make fflush-after-ungetc POSIX compliant on BSD systems.
13732         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
13733         (clear_ungetc_buffer): Implement also for other systems.
13734         (rpl_fflush): On glibc systems, invoke
13735         clear_ungetc_buffer_preserving_position. Otherwise, invoke
13736         clear_ungetc_buffer after fetching the stream's position, not before.
13737
13738 2009-01-15  Bruno Haible  <bruno@clisp.org>
13739
13740         Make fflush-after-ungetc POSIX compliant on glibc systems.
13741         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
13742         after ungetc.
13743         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
13744         (rpl_fflush): On glibc systems, simply call the system's fflush
13745         function after clearing the ungetc buffer.
13746         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
13747         Instead, lseek only to the end of file, then use the system's fseeko
13748         for the rest. On glibc systems, reset the EOF indicator bit.
13749
13750 2009-01-15  Jim Meyering  <meyering@redhat.com>
13751
13752         openmp.m4: revert quote-adding change, for portability to older autoconf
13753         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
13754         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
13755         Simon Josefsson noticed the problem when using autoconf-2.61.
13756
13757 2009-01-15  Bruno Haible  <bruno@clisp.org>
13758
13759         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
13760         * tests/test-fflush2.c (ASSERT): Always fail.
13761         (main): Add two tests for fflush() after ungetc(), taking into account
13762         the Austin Group's clarification.
13763         Suggested by Eric Blake.
13764
13765 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
13766
13767         mktime.m4: remove K&R-style function prototypes
13768         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
13769         for the Sun C++ compiler.
13770
13771 2009-01-14  Bruno Haible  <bruno@clisp.org>
13772
13773         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
13774         while including <wchar.h>.
13775         * lib/wchar.in.h: In two particular situations on HP-UX, include only
13776         the system's <wchar.h> file.
13777         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13778
13779 2009-01-14  Bruno Haible  <bruno@clisp.org>
13780
13781         * m4/csharp.m4: Don't mention gettext on the serial number line.
13782         * m4/csharpexec.m4: Likewise.
13783         * m4/eaccess.m4: Likewise.
13784         * m4/javaexec.m4: Likewise.
13785         * m4/sig_atomic_t.m4: Likewise.
13786         * m4/tmpdir.m4: Likewise.
13787         * m4/intldir.m4: Bump gettext version.
13788         * m4/lib-ld.m4: Likewise.
13789
13790 2009-01-14  Bruno Haible  <bruno@clisp.org>
13791
13792         * lib/progname.c (set_program_name): Add more comments.
13793         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
13794
13795 2009-01-14  Simon Josefsson  <simon@josefsson.org>
13796
13797         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
13798         were sys/stat.h does not define it.
13799
13800 2009-01-14  Jim Meyering  <meyering@redhat.com>
13801
13802         many *.m4 files: improve m4 quoting
13803         99% of this change was performed by running the following commands:
13804         git ls-files | grep '\.m4$' | xargs perl -pi \
13805           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
13806           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
13807           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
13808           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
13809         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
13810         The remainder were to add Copyright dates, increment serial numbers,
13811         undo some changes in comments, exclude m4/intl.m4, and add quotes
13812         around the "1" in ",1" where the unusual spacing prohibited the
13813         above regexps from doing the job.  For more details, see
13814         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
13815         * m4/acl.m4: Modified.
13816         * m4/afs.m4: Likewise.
13817         * m4/alloca.m4: Likewise.
13818         * m4/argp.m4: Likewise.
13819         * m4/argz.m4: Likewise.
13820         * m4/atexit.m4: Likewise.
13821         * m4/bison-i18n.m4: Likewise.
13822         * m4/bison.m4: Likewise.
13823         * m4/byteswap.m4: Likewise.
13824         * m4/c-stack.m4: Likewise.
13825         * m4/c-strtod.m4: Likewise.
13826         * m4/calloc.m4: Likewise.
13827         * m4/canonicalize-lgpl.m4: Likewise.
13828         * m4/chown.m4: Likewise.
13829         * m4/clock_time.m4: Likewise.
13830         * m4/codeset.m4: Likewise.
13831         * m4/copy-file.m4: Likewise.
13832         * m4/csharp.m4: Likewise.
13833         * m4/csharpcomp.m4: Likewise.
13834         * m4/csharpexec.m4: Likewise.
13835         * m4/d-ino.m4: Likewise.
13836         * m4/d-type.m4: Likewise.
13837         * m4/dirfd.m4: Likewise.
13838         * m4/double-slash-root.m4: Likewise.
13839         * m4/eaccess.m4: Likewise.
13840         * m4/eealloc.m4: Likewise.
13841         * m4/environ.m4: Likewise.
13842         * m4/errno_h.m4: Likewise.
13843         * m4/euidaccess.m4: Likewise.
13844         * m4/execute.m4: Likewise.
13845         * m4/fatal-signal.m4: Likewise.
13846         * m4/fchdir.m4: Likewise.
13847         * m4/fcntl_h.m4: Likewise.
13848         * m4/fileblocks.m4: Likewise.
13849         * m4/filenamecat.m4: Likewise.
13850         * m4/findprog.m4: Likewise.
13851         * m4/flexmember.m4: Likewise.
13852         * m4/fnmatch.m4: Likewise.
13853         * m4/fopen.m4: Likewise.
13854         * m4/fpending.m4: Likewise.
13855         * m4/fprintf-posix.m4: Likewise.
13856         * m4/free.m4: Likewise.
13857         * m4/frexp.m4: Likewise.
13858         * m4/frexpl.m4: Likewise.
13859         * m4/fsusage.m4: Likewise.
13860         * m4/ftruncate.m4: Likewise.
13861         * m4/gc-camellia.m4: Likewise.
13862         * m4/gc-random.m4: Likewise.
13863         * m4/gc.m4: Likewise.
13864         * m4/getaddrinfo.m4: Likewise.
13865         * m4/getcwd-abort-bug.m4: Likewise.
13866         * m4/getcwd-path-max.m4: Likewise.
13867         * m4/getdate.m4: Likewise.
13868         * m4/getdomainname.m4: Likewise.
13869         * m4/getgroups.m4: Likewise.
13870         * m4/gethostname.m4: Likewise.
13871         * m4/gethrxtime.m4: Likewise.
13872         * m4/getline.m4: Likewise.
13873         * m4/getloadavg.m4: Likewise.
13874         * m4/getndelim2.m4: Likewise.
13875         * m4/getpass.m4: Likewise.
13876         * m4/gettext.m4: Likewise.
13877         * m4/gettime.m4: Likewise.
13878         * m4/gettimeofday.m4: Likewise.
13879         * m4/gnulib-common.m4: Likewise.
13880         * m4/group-member.m4: Likewise.
13881         * m4/host-os.m4: Likewise.
13882         * m4/iconv.m4: Likewise.
13883         * m4/iconv_open.m4: Likewise.
13884         * m4/inet_ntop.m4: Likewise.
13885         * m4/inet_pton.m4: Likewise.
13886         * m4/inline.m4: Likewise.
13887         * m4/intldir.m4: Likewise.
13888         * m4/intlmacosx.m4: Likewise.
13889         * m4/intmax.m4: Likewise.
13890         * m4/intmax_t.m4: Likewise.
13891         * m4/inttypes.m4: Likewise.
13892         * m4/inttypes_h.m4: Likewise.
13893         * m4/inttypes-pri.m4: Likewise.
13894         * m4/isapipe.m4: Likewise.
13895         * m4/isnand.m4: Likewise.
13896         * m4/isnanf.m4: Likewise.
13897         * m4/isnanl.m4: Likewise.
13898         * m4/javacomp.m4: Likewise.
13899         * m4/javaexec.m4: Likewise.
13900         * m4/jm-winsz1.m4: Likewise.
13901         * m4/jm-winsz2.m4: Likewise.
13902         * m4/lchown.m4: Likewise.
13903         * m4/lcmessage.m4: Likewise.
13904         * m4/ldexpl.m4: Likewise.
13905         * m4/lib-ld.m4: Likewise.
13906         * m4/lib-link.m4: Likewise.
13907         * m4/libsigsegv.m4: Likewise.
13908         * m4/link-follow.m4: Likewise.
13909         * m4/localcharset.m4: Likewise.
13910         * m4/locale-fr.m4: Likewise.
13911         * m4/locale-ja.m4: Likewise.
13912         * m4/locale-tr.m4: Likewise.
13913         * m4/locale-zh.m4: Likewise.
13914         * m4/lock.m4: Likewise.
13915         * m4/longlong.m4: Likewise.
13916         * m4/ls-mntd-fs.m4: Likewise.
13917         * m4/lstat.m4: Likewise.
13918         * m4/malloc.m4: Likewise.
13919         * m4/mathl.m4: Likewise.
13920         * m4/mbrtowc.m4: Likewise.
13921         * m4/mbstate_t.m4: Likewise.
13922         * m4/mbswidth.m4: Likewise.
13923         * m4/memchr.m4: Likewise.
13924         * m4/memcmp.m4: Likewise.
13925         * m4/memcpy.m4: Likewise.
13926         * m4/memmem.m4: Likewise.
13927         * m4/memmove.m4: Likewise.
13928         * m4/mempcpy.m4: Likewise.
13929         * m4/memrchr.m4: Likewise.
13930         * m4/memset.m4: Likewise.
13931         * m4/minmax.m4: Likewise.
13932         * m4/mkdir-slash.m4: Likewise.
13933         * m4/mkdtemp.m4: Likewise.
13934         * m4/mktime.m4: Likewise.
13935         * m4/mmap-anon.m4: Likewise.
13936         * m4/mountlist.m4: Likewise.
13937         * m4/nanosleep.m4: Likewise.
13938         * m4/nls.m4: Likewise.
13939         * m4/nocrash.m4: Likewise.
13940         * m4/open.m4: Likewise.
13941         * m4/openat.m4: Likewise.
13942         * m4/openmp.m4: Likewise.
13943         * m4/pathmax.m4: Likewise.
13944         * m4/perl.m4: Likewise.
13945         * m4/physmem.m4: Likewise.
13946         * m4/pipe.m4: Likewise.
13947         * m4/po.m4: Likewise.
13948         * m4/poll.m4: Likewise.
13949         * m4/posixtm.m4: Likewise.
13950         * m4/posixver.m4: Likewise.
13951         * m4/printf-frexp.m4: Likewise.
13952         * m4/printf-frexpl.m4: Likewise.
13953         * m4/printf-posix.m4: Likewise.
13954         * m4/printf-posix-rpl.m4: Likewise.
13955         * m4/printf.m4: Likewise.
13956         * m4/progtest.m4: Likewise.
13957         * m4/putenv.m4: Likewise.
13958         * m4/readline.m4: Likewise.
13959         * m4/readlink.m4: Likewise.
13960         * m4/readutmp.m4: Likewise.
13961         * m4/realloc.m4: Likewise.
13962         * m4/regex.m4: Likewise.
13963         * m4/relocatable.m4: Likewise.
13964         * m4/relocatable-lib.m4: Likewise.
13965         * m4/rename-dest-slash.m4: Likewise.
13966         * m4/rename.m4: Likewise.
13967         * m4/rmdir-errno.m4: Likewise.
13968         * m4/rmdir.m4: Likewise.
13969         * m4/roundf.m4: Likewise.
13970         * m4/roundl.m4: Likewise.
13971         * m4/rpmatch.m4: Likewise.
13972         * m4/save-cwd.m4: Likewise.
13973         * m4/selinux-selinux-h.m4: Likewise.
13974         * m4/setenv.m4: Likewise.
13975         * m4/settime.m4: Likewise.
13976         * m4/sig2str.m4: Likewise.
13977         * m4/sig_atomic_t.m4: Likewise.
13978         * m4/signalblocking.m4: Likewise.
13979         * m4/signbit.m4: Likewise.
13980         * m4/sigpipe.m4: Likewise.
13981         * m4/sockets.m4: Likewise.
13982         * m4/sockpfaf.m4: Likewise.
13983         * m4/st_dm_mode.m4: Likewise.
13984         * m4/stat-time.m4: Likewise.
13985         * m4/stdbool.m4: Likewise.
13986         * m4/stdint.m4: Likewise.
13987         * m4/stdint_h.m4: Likewise.
13988         * m4/stpcpy.m4: Likewise.
13989         * m4/stpncpy.m4: Likewise.
13990         * m4/strcase.m4: Likewise.
13991         * m4/strchrnul.m4: Likewise.
13992         * m4/strcspn.m4: Likewise.
13993         * m4/strdup.m4: Likewise.
13994         * m4/strftime.m4: Likewise.
13995         * m4/strndup.m4: Likewise.
13996         * m4/strnlen.m4: Likewise.
13997         * m4/strpbrk.m4: Likewise.
13998         * m4/strptime.m4: Likewise.
13999         * m4/strsep.m4: Likewise.
14000         * m4/strtod.m4: Likewise.
14001         * m4/strtoimax.m4: Likewise.
14002         * m4/strtok_r.m4: Likewise.
14003         * m4/strtol.m4: Likewise.
14004         * m4/strtoll.m4: Likewise.
14005         * m4/strtoul.m4: Likewise.
14006         * m4/strtoull.m4: Likewise.
14007         * m4/strtoumax.m4: Likewise.
14008         * m4/strverscmp.m4: Likewise.
14009         * m4/threadlib.m4: Likewise.
14010         * m4/timegm.m4: Likewise.
14011         * m4/tm_gmtoff.m4: Likewise.
14012         * m4/tmpdir.m4: Likewise.
14013         * m4/tmpfile.m4: Likewise.
14014         * m4/tzset.m4: Likewise.
14015         * m4/uintmax_t.m4: Likewise.
14016         * m4/unlinkdir.m4: Likewise.
14017         * m4/unlocked-io.m4: Likewise.
14018         * m4/uptime.m4: Likewise.
14019         * m4/userspec.m4: Likewise.
14020         * m4/utimbuf.m4: Likewise.
14021         * m4/utime.m4: Likewise.
14022         * m4/utimes-null.m4: Likewise.
14023         * m4/utimes.m4: Likewise.
14024         * m4/vararrays.m4: Likewise.
14025         * m4/vasnprintf.m4: Likewise.
14026         * m4/vfprintf-posix.m4: Likewise.
14027         * m4/vprintf-posix.m4: Likewise.
14028         * m4/wait-process.m4: Likewise.
14029         * m4/wchar_t.m4: Likewise.
14030         * m4/wint_t.m4: Likewise.
14031         * m4/write-any-file.m4: Likewise.
14032         * m4/yield.m4: Likewise.
14033
14034 2009-01-13  Bruno Haible  <bruno@clisp.org>
14035
14036         Avoid test-copy-file.sh failures when ACL support insufficient.
14037         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
14038         TESTS_ENVIRONMENT.
14039         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
14040         Reported by Jim Meyering.
14041
14042 2009-01-13  Bruno Haible  <bruno@clisp.org>
14043
14044         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
14045         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
14046         * modules/unistdio/u8-printf-parse (Files): Likewise.
14047         * modules/unistdio/u32-printf-parse (Files): Likewise.
14048         * modules/unistdio/ulc-printf-parse (Files): Likewise.
14049
14050 2009-01-13  Simon Josefsson  <simon@josefsson.org>
14051
14052         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
14053         and m4/inttypes_h.m4 too.
14054
14055 2009-01-12  Eric Blake  <ebb9@byu.net>
14056
14057         tests: IRIX 6.2 cc can't compile -0.0 into .data
14058         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
14059         rather than at compile-time.
14060         * tests/test-floorl.c (minus_zero): Likewise.
14061         * tests/test-frexpl.c (minus_zero): Likewise.
14062         * tests/test-isnan.c (minus_zerol): Likewise.
14063         * tests/test-isnanl.h (minus_zero): Likewise.
14064         * tests/test-ldexpl.c (minus_zero): Likewise.
14065         * tests/test-roundl.c (minus_zero): Likewise.
14066         * tests/test-signbit.c (minus_zerol): Likewise.
14067         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
14068         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
14069         * tests/test-truncl.c (minus_zero): Likewise.
14070         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
14071         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
14072         Reported by Tom G. Christensen and Nelson H. F. Beebe.
14073
14074 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
14075
14076         regex: fix glibc bug 9697
14077         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
14078         handling.
14079
14080 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
14081
14082         regex: fix glibc bug 697
14083         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
14084         being NULL also if there are no backreferences.
14085
14086 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
14087
14088         regex: merge glibc changes
14089         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
14090         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
14091         re_string_skip_chars, re_string_reconstruct): Likewise.
14092         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
14093
14094 2009-01-07  Jim Meyering  <meyering@redhat.com>
14095
14096         poll: filter through cppi
14097         * lib/poll.c: Indent cpp directives to reflect nesting.
14098
14099 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
14100
14101         poll: don't return uninitialized
14102         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
14103
14104 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
14105
14106         avoid compile failure on AIX 6.1
14107         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
14108         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
14109
14110 2009-01-04  Jim Meyering  <meyering@redhat.com>
14111
14112         remove duplicate inclusion of <stdio.h>
14113         * tests/test-fprintf-posix.c: Likewise.
14114         * tests/test-printf-posix.c: Likewise.
14115         * tests/test-snprintf-posix.c: Likewise.
14116         * tests/test-sprintf-posix.c: Likewise.
14117         * tests/test-vasprintf-posix.c: Likewise.
14118         * tests/test-vfprintf-posix.c: Likewise.
14119         * tests/test-vprintf-posix.c: Likewise.
14120         * tests/test-vsnprintf-posix.c: Likewise.
14121         * tests/test-vsprintf-posix.c: Likewise.
14122
14123 2009-01-03  Jim Meyering  <meyering@redhat.com>
14124
14125         gnulib-tool: fix sed-based filtering
14126         * gnulib-tool (func_filter_filelist): Remove extra backslash
14127         in sed_fff_filter definition.
14128
14129 2009-01-02  Jim Meyering  <meyering@redhat.com>
14130
14131         strftime: avoid compilation failure on Solaris 2.6
14132         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
14133         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
14134         Don't #define mbrlen or mbsinit, since now they're guaranteed to
14135         be available.  Reported by Tom G. Christensen.  Details in
14136         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
14137
14138 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14139             Bruno Haible  <bruno@clisp.org>
14140
14141         Speed up gnulib-tool by doing more string processing through shell
14142         built-ins.
14143         * gnulib-tool (fast_func_append): New variable.
14144         (func_remove_prefix, func_remove_suffix): New functions.
14145         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
14146         (func_filter_filelist): New function.
14147         (func_get_dependencies): Use func_remove_suffix instead of sed.
14148         (func_get_automake_snippet): Use func_filter_filelist instead of a
14149         subshell and sed invocation.
14150
14151 2009-01-01  Bruno Haible  <bruno@clisp.org>
14152
14153         Fix a security bug.
14154         * gnulib-tool (func_import, import, update): Don't allow the characters
14155         '"', '$', '`', '\' in macro arguments that become part of commands that
14156         are evaluated.
14157
14158 2009-01-01  Bruno Haible  <bruno@clisp.org>
14159
14160         * gnulib-tool (func_reset_sigpipe): Add more comments.
14161
14162 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14163
14164         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
14165         func_emit_tests_Makefile_am, func_import): Abort loops early if we
14166         already know the answer.
14167
14168 2009-01-01  Jim Meyering  <meyering@redhat.com>
14169
14170         * lib/version-etc.c (version_etc_va): Update copyright year.
14171
14172 2008-12-30  Bruno Haible  <bruno@clisp.org>
14173
14174         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
14175         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
14176         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
14177
14178 2008-12-29  Eric Blake  <ebb9@byu.net>
14179
14180         multiarch: avoid autoconf AC_REQUIRE bug
14181         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
14182         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
14183         2.63 and older.
14184         Reported by Bruno Haible, and analyzed in
14185         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
14186
14187 2008-12-29  Bruno Haible  <bruno@clisp.org>
14188
14189         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
14190         files in subdirectories correctly.
14191         Reported by Ralf Wildenhues.
14192
14193 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14194
14195         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
14196         rather than 'join FILE -', for Solaris join.
14197
14198 2008-12-29  Bruno Haible  <bruno@clisp.org>
14199
14200         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
14201         quoting.
14202         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14203         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14204         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14205         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
14206         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14207         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14208         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
14209         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
14210         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
14211         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
14212         * m4/nls.m4 (AM_NLS): Likewise.
14213         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
14214         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
14215         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14216         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
14217         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
14218         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14219         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
14220         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
14221         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
14222         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14223         * m4/xsize.m4 (gl_XSIZE): Likewise.
14224         Suggested by Jim Meyering.
14225
14226 2008-11-17  Bruce Korb  <bkorb@gnu.org>
14227
14228         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
14229         * lib/parse-duration.c: use a switch instead of cascading if's.
14230
14231 2008-12-29  Eric Blake  <ebb9@byu.net>
14232
14233         wchar.h: supply WEOF on Irix 5.3
14234         * lib/wchar.in.h (wint_t): Also supply WEOF.
14235         * lib/wctype.in.h (wint_t): Likewise.
14236         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
14237         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
14238         Reported by Tom G. Christensen.
14239
14240 2008-12-26  Bruno Haible  <bruno@clisp.org>
14241
14242         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
14243         i486, i586, i686.
14244
14245 2008-12-26  Bruno Haible  <bruno@clisp.org>
14246
14247         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
14248
14249 2008-12-26  Bruno Haible  <bruno@clisp.org>
14250
14251         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
14252         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
14253         not __STDC_CONSTANT_MACROS.
14254         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
14255
14256 2008-12-25  Bruno Haible  <bruno@clisp.org>
14257
14258         Add support for universal builds to vasnprintf.
14259         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
14260         universal builds, guess no.
14261         * modules/vasnprintf-posix (Depends-on): Add multiarch.
14262         * modules/vasprintf-posix (Depends-on): Likewise.
14263         * modules/fprintf-posix (Depends-on): Likewise.
14264         * modules/vfprintf-posix (Depends-on): Likewise.
14265         * modules/snprintf-posix (Depends-on): Likewise.
14266         * modules/vsnprintf-posix (Depends-on): Likewise.
14267         * modules/sprintf-posix (Depends-on): Likewise.
14268         * modules/vsprintf-posix (Depends-on): Likewise.
14269         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14270         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14271         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14272         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14273         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14274         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14275         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14276
14277         Add support for universal builds to <inttypes.h>.
14278         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
14279         _SCNu64_PREFIX): In Apple
14280         universal builds, define directly, using _LP64.
14281         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
14282         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
14283         * modules/inttypes (Depends-on): Add multiarch.
14284         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14285
14286         Add support for universal builds to <stdint.h>.
14287         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
14288         universal builds, define directly, using _LP64.
14289         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
14290         Apple universal builds, don't test for the size and suffix of ptrdiff_t
14291         and size_t.
14292         * modules/stdint (Depends-on): Add multiarch.
14293         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14294
14295         New module 'multiarch'.
14296         * modules/multiarch: New file.
14297         * m4/multiarch.m4: New file.
14298
14299 2008-12-25  Bruno Haible  <bruno@clisp.org>
14300
14301         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
14302
14303 2008-12-25  Bruno Haible  <bruno@clisp.org>
14304
14305         * modules/btowc (License): Relicense under LGPLv2+.
14306         * modules/mbsinit (License): Likewise.
14307         * modules/mbrtowc (License): Likewise.
14308         * modules/wcrtomb (License): Likewise.
14309         * modules/streq (License): Likewise.
14310         Reported by David Lutterkort <lutter@redhat.com>.
14311
14312 2008-12-23  Bruno Haible  <bruno@clisp.org>
14313
14314         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
14315
14316 2008-12-23  Bruno Haible  <bruno@clisp.org>
14317
14318         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
14319         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
14320         GETADDRINFO_LIB, not in LIBS.
14321         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
14322         * modules/canon-host (Link): Likewise.
14323         * NEWS: Mention the change.
14324         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
14325         GETADDRINFO_LIB.
14326
14327 2008-12-22  Bruno Haible  <bruno@clisp.org>
14328
14329         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
14330         * doc/posix-functions/iswalpha_l.texi: Likewise.
14331         * doc/posix-functions/iswblank_l.texi: Likewise.
14332         * doc/posix-functions/iswcntrl_l.texi: Likewise.
14333         * doc/posix-functions/iswctype_l.texi: Likewise.
14334         * doc/posix-functions/iswdigit_l.texi: Likewise.
14335         * doc/posix-functions/iswgraph_l.texi: Likewise.
14336         * doc/posix-functions/iswlower_l.texi: Likewise.
14337         * doc/posix-functions/iswprint_l.texi: Likewise.
14338         * doc/posix-functions/iswpunct_l.texi: Likewise.
14339         * doc/posix-functions/iswspace_l.texi: Likewise.
14340         * doc/posix-functions/iswupper_l.texi: Likewise.
14341         * doc/posix-functions/iswxdigit_l.texi: Likewise.
14342         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
14343         * doc/posix-functions/open_wmemstream.texi: Likewise.
14344         * doc/posix-functions/swscanf.texi: Likewise.
14345         * doc/posix-functions/towctrans_l.texi: Likewise.
14346         * doc/posix-functions/towlower.texi: Likewise.
14347         * doc/posix-functions/towlower_l.texi: Likewise.
14348         * doc/posix-functions/towupper.texi: Likewise.
14349         * doc/posix-functions/towupper_l.texi: Likewise.
14350         * doc/posix-functions/vfwprintf.texi: Likewise.
14351         * doc/posix-functions/vfwscanf.texi: Likewise.
14352         * doc/posix-functions/vswscanf.texi: Likewise.
14353         * doc/posix-functions/vwprintf.texi: Likewise.
14354         * doc/posix-functions/vwscanf.texi: Likewise.
14355         * doc/posix-functions/wcpcpy.texi: Likewise.
14356         * doc/posix-functions/wcpncpy.texi: Likewise.
14357         * doc/posix-functions/wcscasecmp.texi: Likewise.
14358         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
14359         * doc/posix-functions/wcscoll_l.texi: Likewise.
14360         * doc/posix-functions/wcsdup.texi: Likewise.
14361         * doc/posix-functions/wcsncasecmp.texi: Likewise.
14362         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
14363         * doc/posix-functions/wcsnlen.texi: Likewise.
14364         * doc/posix-functions/wcsnrtombs.texi: Likewise.
14365         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14366         * doc/posix-functions/wctrans_l.texi: Likewise.
14367         * doc/posix-functions/wctype_l.texi: Likewise.
14368         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
14369         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
14370         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
14371         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
14372         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
14373         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
14374         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
14375         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
14376         * doc/glibc-functions/wcschrnul.texi: Likewise.
14377         * doc/glibc-functions/wcsftime_l.texi: Likewise.
14378         * doc/glibc-functions/wcstod_l.texi: Likewise.
14379         * doc/glibc-functions/wcstof_l.texi: Likewise.
14380         * doc/glibc-functions/wcstol_l.texi: Likewise.
14381         * doc/glibc-functions/wcstold_l.texi: Likewise.
14382         * doc/glibc-functions/wcstoll_l.texi: Likewise.
14383         * doc/glibc-functions/wcstoq.texi: Likewise.
14384         * doc/glibc-functions/wcstoul_l.texi: Likewise.
14385         * doc/glibc-functions/wcstoull_l.texi: Likewise.
14386         * doc/glibc-functions/wcstouq.texi: Likewise.
14387         * doc/glibc-functions/wmempcpy.texi: Likewise.
14388
14389 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
14390             Eric Blake  <ebb9@byu.net>
14391             Paolo Bonzini  <bonzini@gnu.org>
14392             Bruno Haible  <bruno@clisp.org>
14393
14394         Make c-stack work on Haiku.
14395         * lib/c-stack.c (SA_ONSTACK): Define fallback.
14396         (c_stack_action): Use SA_ONSTACK flag.
14397
14398 2008-12-22  Bruno Haible  <bruno@clisp.org>
14399
14400         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
14401
14402 2008-12-22  Bruno Haible  <bruno@clisp.org>
14403
14404         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
14405         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
14406         being overridden.
14407         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
14408         New macros.
14409         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
14410         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
14411         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
14412         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
14413
14414 2008-12-22  Bruno Haible  <bruno@clisp.org>
14415
14416         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
14417         from test code.
14418
14419 2008-12-22  Eric Blake  <ebb9@byu.net>
14420
14421         Avoid gcc warnings on cygwin.
14422         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
14423         Avoid unused variable.
14424         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
14425         Likewise.
14426
14427 2008-12-22  Bruno Haible  <bruno@clisp.org>
14428
14429         Remove HAVE_MBRTOWC conditionals.
14430         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
14431         (mbscasecmp): Assume mbrtowc function.
14432         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
14433         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
14434         * lib/mbschr.c: Include mbuiter.h unconditionally.
14435         (mbschr): Assume mbrtowc function.
14436         * lib/mbscspn.c: Include mbuiter.h unconditionally.
14437         (mbscspn): Assume mbrtowc function.
14438         * lib/mbslen.c: Include mbuiter.h unconditionally.
14439         (mbslen): Assume mbrtowc function.
14440         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
14441         (mbsncasecmp): Assume mbrtowc function.
14442         * lib/mbsnlen.c: Include mbiter.h unconditionally.
14443         (mbsnlen): Assume mbrtowc function.
14444         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
14445         (mbspbrk): Assume mbrtowc function.
14446         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
14447         (mbspcasecmp): Assume mbrtowc function.
14448         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
14449         (mbsrchr): Assume mbrtowc function.
14450         * lib/mbssep.c: Include mbuiter.h unconditionally.
14451         (mbssep): Assume mbrtowc function.
14452         * lib/mbsspn.c: Include mbuiter.h unconditionally.
14453         (mbsspn): Assume mbrtowc function.
14454         * lib/mbsstr.c: Include mbuiter.h unconditionally.
14455         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
14456         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
14457         (mbstok_r): Assume mbrtowc function.
14458         * lib/propername.c: Include mbuiter.h unconditionally.
14459         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
14460         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
14461         (trim2): Assume mbrtowc function.
14462         * lib/mbswidth.c (mbsinit): Remove fallback definition.
14463         (mbsnwidth): Assume mbrtowc function.
14464         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
14465         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
14466         fallback definitions.
14467         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
14468
14469 2008-12-22  Bruno Haible  <bruno@clisp.org>
14470
14471         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
14472
14473 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
14474
14475         * modules/regex: Request emulations for the mb*/wc* functions we need.
14476         * m4/regex.m4: Don't look for those functions here.
14477         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
14478
14479 2008-12-22  Bruno Haible  <bruno@clisp.org>
14480
14481         * modules/fnmatch (Depends-on): Remove duplicated dependency.
14482
14483 2008-12-21  Bruno Haible  <bruno@clisp.org>
14484
14485         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
14486         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
14487         (Include): Remove conditionalization.
14488         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
14489         (Include): Remove conditionalization.
14490         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
14491         (Include): Remove conditionalization.
14492         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
14493         * m4/mbfile.m4 (gl_MBFILE): Likewise.
14494         * NEWS: Mention the change.
14495         Reported by Alan Hourihane <alanh@fairlite.co.uk>
14496         via Sergey Poznyakoff <gray@gnu.org.ua>.
14497
14498 2008-12-21  Bruno Haible  <bruno@clisp.org>
14499
14500         * MODULES.html.sh (Extended multibyte and wide character utilities
14501         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
14502         wcrtomb, wcsrtombs.
14503         (Support for systems lacking POSIX:2008): Add accept, bind, close,
14504         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
14505         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
14506         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
14507
14508 2008-12-21  Bruno Haible  <bruno@clisp.org>
14509
14510         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
14511
14512 2008-12-21  Bruno Haible  <bruno@clisp.org>
14513
14514         * modules/wcsnrtombs-tests: New file.
14515         * tests/test-wcsnrtombs1.sh: New file.
14516         * tests/test-wcsnrtombs2.sh: New file.
14517         * tests/test-wcsnrtombs3.sh: New file.
14518         * tests/test-wcsnrtombs4.sh: New file.
14519         * tests/test-wcsnrtombs.c: New file.
14520
14521         New module 'wcsnrtombs'.
14522         * lib/wchar.in.h (wcsnrtombs): New declaration.
14523         * lib/wcsnrtombs.c: New file.
14524         * lib/wcsrtombs-state.c: New file.
14525         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
14526         (internal_state): Remove variable.
14527         * m4/wcsnrtombs.m4: New file.
14528         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
14529         compilation units.
14530         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
14531         HAVE_WCSNRTOMBS.
14532         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
14533         HAVE_WCSNRTOMBS.
14534         * modules/wcsnrtombs: New file.
14535         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
14536         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
14537
14538 2008-12-21  Bruno Haible  <bruno@clisp.org>
14539
14540         * modules/wcsrtombs-tests: New file.
14541         * tests/test-wcsrtombs1.sh: New file.
14542         * tests/test-wcsrtombs2.sh: New file.
14543         * tests/test-wcsrtombs3.sh: New file.
14544         * tests/test-wcsrtombs4.sh: New file.
14545         * tests/test-wcsrtombs.c: New file.
14546
14547         New module 'wcsrtombs'.
14548         * lib/wchar.in.h (wcsrtombs): New declaration.
14549         * lib/wcsrtombs.c: New file.
14550         * m4/wcsrtombs.m4: New file.
14551         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
14552         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
14553         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
14554         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
14555         * modules/wcsrtombs: New file.
14556         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
14557         bugs.
14558
14559 2008-12-21  Bruno Haible  <bruno@clisp.org>
14560
14561         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
14562         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
14563         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
14564         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
14565         if not correct.
14566         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
14567         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
14568         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14569         m4/locale-zh.m4, m4/codeset.m4.
14570         * doc/posix-functions/wcrtomb.texi: Document the bug.
14571
14572 2008-12-21  Bruno Haible  <bruno@clisp.org>
14573
14574         Work around a btowc() bug on IRIX 6.5.
14575         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
14576         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
14577         REPLACE_WTOBC if not.
14578         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
14579         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
14580         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
14581
14582 2008-12-21  Bruno Haible  <bruno@clisp.org>
14583
14584         * modules/wcrtomb-tests: New file.
14585         * tests/test-wcrtomb.sh: New file.
14586         * tests/test-wcrtomb.c: New file.
14587
14588         New module 'wcrtomb'.
14589         * lib/wchar.in.h (wcrtomb): New declaration.
14590         * lib/wcrtomb.c: New file.
14591         * m4/wcrtomb.m4: New file.
14592         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
14593         HAVE_WCRTOMB.
14594         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
14595         HAVE_WCRTOMB.
14596         * modules/wcrtomb: New file.
14597         * doc/posix-functions/wcrtomb.texi: Mention the new module.
14598
14599 2008-12-21  Bruno Haible  <bruno@clisp.org>
14600
14601         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
14602         * modules/mbsrtowcs (Files): Likewise.
14603         * modules/wctob (Files): Likewise.
14604         * modules/c-strcase-tests (Files): Likewise.
14605         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
14606         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
14607         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
14608         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
14609         * modules/vasnprintf-posix-tests (Files): Likewise.
14610
14611 2008-12-21  William Pursell  <bill.pursell@gmail.com>
14612
14613         gitlog-to-changelog: pass all command-line arguments to git-log
14614         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
14615         it is sometimes convenient to filter the commits in various ways.
14616         gitlog-to-changelog only allows --since to specify a start date,
14617         but git-log itself supports many other filtering mechanisms.
14618         At the moment, I want to filter by branch name.  Rather than
14619         adding a --branch option to gitlog-to-changelog, it seems more
14620         flexible to simply pass all options directly to git-log and let
14621         git do the work.  Notice that this effectively makes --since a
14622         redundant option for gitlog-to-changelog, but removing it would
14623         require current usage to change since calls would then require
14624         an additional '--'.
14625
14626 2008-12-21  Bruno Haible  <bruno@clisp.org>
14627
14628         * modules/mbsnrtowcs-tests: New file.
14629         * tests/test-mbsnrtowcs1.sh: New file.
14630         * tests/test-mbsnrtowcs2.sh: New file.
14631         * tests/test-mbsnrtowcs3.sh: New file.
14632         * tests/test-mbsnrtowcs4.sh: New file.
14633         * tests/test-mbsnrtowcs.c: New file.
14634
14635         New module 'mbsnrtowcs'.
14636         * lib/wchar.in.h (mbsnrtowcs): New declaration.
14637         * lib/mbsnrtowcs.c: New file.
14638         * lib/mbsrtowcs-state.c: New file.
14639         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
14640         (internal_state): Remove variable.
14641         * m4/mbsnrtowcs.m4: New file.
14642         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
14643         compilation units.
14644         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
14645         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
14646         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
14647         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
14648         * modules/mbsnrtowcs: New file.
14649         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
14650         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
14651         portability problem.
14652
14653 2008-12-21  Bruno Haible  <bruno@clisp.org>
14654
14655         Work around mbsrtowcs bug.
14656         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
14657         (gl_FUNC_MBSRTOWCS): Invoke it.
14658         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14659         m4/locale-zh.m4.
14660         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
14661
14662 2008-12-21  Bruno Haible  <bruno@clisp.org>
14663
14664         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
14665
14666 2008-12-21  Bruno Haible  <bruno@clisp.org>
14667
14668         Update doc for AIX.
14669         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
14670         16-bit wchar_t type.
14671         * doc/posix-functions/btowc.texi: Likewise.
14672         * doc/posix-functions/fgetwc.texi: Likewise.
14673         * doc/posix-functions/fgetws.texi: Likewise.
14674         * doc/posix-functions/fputwc.texi: Likewise.
14675         * doc/posix-functions/fputws.texi: Likewise.
14676         * doc/posix-functions/fwide.texi: Likewise.
14677         * doc/posix-functions/fwprintf.texi: Likewise.
14678         * doc/posix-functions/fwscanf.texi: Likewise.
14679         * doc/posix-functions/getwchar.texi: Likewise.
14680         * doc/posix-functions/getwc.texi: Likewise.
14681         * doc/posix-functions/iswalnum.texi: Likewise.
14682         * doc/posix-functions/iswalpha.texi: Likewise.
14683         * doc/posix-functions/iswblank.texi: Likewise.
14684         * doc/posix-functions/iswcntrl.texi: Likewise.
14685         * doc/posix-functions/iswctype.texi: Likewise.
14686         * doc/posix-functions/iswdigit.texi: Likewise.
14687         * doc/posix-functions/iswgraph.texi: Likewise.
14688         * doc/posix-functions/iswlower.texi: Likewise.
14689         * doc/posix-functions/iswprint.texi: Likewise.
14690         * doc/posix-functions/iswpunct.texi: Likewise.
14691         * doc/posix-functions/iswspace.texi: Likewise.
14692         * doc/posix-functions/iswupper.texi: Likewise.
14693         * doc/posix-functions/iswxdigit.texi: Likewise.
14694         * doc/posix-functions/mbrtowc.texi: Likewise.
14695         * doc/posix-functions/mbsrtowcs.texi: Likewise.
14696         * doc/posix-functions/mbstowcs.texi: Likewise.
14697         * doc/posix-functions/mbtowc.texi: Likewise.
14698         * doc/posix-functions/putwchar.texi: Likewise.
14699         * doc/posix-functions/putwc.texi: Likewise.
14700         * doc/posix-functions/swprintf.texi: Likewise.
14701         * doc/posix-functions/tolower.texi: Likewise.
14702         * doc/posix-functions/toupper.texi: Likewise.
14703         * doc/posix-functions/towctrans.texi: Likewise.
14704         * doc/posix-functions/ungetwc.texi: Likewise.
14705         * doc/posix-functions/vswprintf.texi: Likewise.
14706         * doc/posix-functions/wcrtomb.texi: Likewise.
14707         * doc/posix-functions/wcscat.texi: Likewise.
14708         * doc/posix-functions/wcschr.texi: Likewise.
14709         * doc/posix-functions/wcscmp.texi: Likewise.
14710         * doc/posix-functions/wcscoll.texi: Likewise.
14711         * doc/posix-functions/wcscpy.texi: Likewise.
14712         * doc/posix-functions/wcscspn.texi: Likewise.
14713         * doc/posix-functions/wcsftime.texi: Likewise.
14714         * doc/posix-functions/wcslen.texi: Likewise.
14715         * doc/posix-functions/wcsncat.texi: Likewise.
14716         * doc/posix-functions/wcsncmp.texi: Likewise.
14717         * doc/posix-functions/wcsncpy.texi: Likewise.
14718         * doc/posix-functions/wcspbrk.texi: Likewise.
14719         * doc/posix-functions/wcsrchr.texi: Likewise.
14720         * doc/posix-functions/wcsrtombs.texi: Likewise.
14721         * doc/posix-functions/wcsspn.texi: Likewise.
14722         * doc/posix-functions/wcsstr.texi: Likewise.
14723         * doc/posix-functions/wcstod.texi: Likewise.
14724         * doc/posix-functions/wcstof.texi: Likewise.
14725         * doc/posix-functions/wcstoimax.texi: Likewise.
14726         * doc/posix-functions/wcstok.texi: Likewise.
14727         * doc/posix-functions/wcstold.texi: Likewise.
14728         * doc/posix-functions/wcstoll.texi: Likewise.
14729         * doc/posix-functions/wcstol.texi: Likewise.
14730         * doc/posix-functions/wcstombs.texi: Likewise.
14731         * doc/posix-functions/wcstoull.texi: Likewise.
14732         * doc/posix-functions/wcstoul.texi: Likewise.
14733         * doc/posix-functions/wcstoumax.texi: Likewise.
14734         * doc/posix-functions/wcswidth.texi: Likewise.
14735         * doc/posix-functions/wcsxfrm.texi: Likewise.
14736         * doc/posix-functions/wctob.texi: Likewise.
14737         * doc/posix-functions/wctomb.texi: Likewise.
14738         * doc/posix-functions/wctrans.texi: Likewise.
14739         * doc/posix-functions/wctype.texi: Likewise.
14740         * doc/posix-functions/wcwidth.texi: Likewise.
14741         * doc/posix-functions/wmemchr.texi: Likewise.
14742         * doc/posix-functions/wmemcmp.texi: Likewise.
14743         * doc/posix-functions/wmemcpy.texi: Likewise.
14744         * doc/posix-functions/wmemmove.texi: Likewise.
14745         * doc/posix-functions/wmemset.texi: Likewise.
14746         * doc/posix-functions/wprintf.texi: Likewise.
14747         * doc/posix-functions/wscanf.texi: Likewise.
14748
14749 2008-12-21  Bruno Haible  <bruno@clisp.org>
14750
14751         Update doc for HP-UX 11.11.
14752         * doc/posix-functions/btowc.texi: Clarify that the function is missing
14753         in HP-UX version 11.00, not in all versions of HP-UX 11.
14754         * doc/posix-functions/fwide.texi: Likewise.
14755         * doc/posix-functions/fwprintf.texi: Likewise.
14756         * doc/posix-functions/fwscanf.texi: Likewise.
14757         * doc/posix-functions/inet_ntop.texi: Likewise.
14758         * doc/posix-functions/inet_pton.texi: Likewise.
14759         * doc/posix-functions/mbrlen.texi: Likewise.
14760         * doc/posix-functions/mbrtowc.texi: Likewise.
14761         * doc/posix-functions/mbsinit.texi: Likewise.
14762         * doc/posix-functions/mbsrtowcs.texi: Likewise.
14763         * doc/posix-functions/swprintf.texi: Likewise.
14764         * doc/posix-functions/swscanf.texi: Likewise.
14765         * doc/posix-functions/towctrans.texi: Likewise.
14766         * doc/posix-functions/vfwprintf.texi: Likewise.
14767         * doc/posix-functions/vswprintf.texi: Likewise.
14768         * doc/posix-functions/vwprintf.texi: Likewise.
14769         * doc/posix-functions/wcrtomb.texi: Likewise.
14770         * doc/posix-functions/wcsrtombs.texi: Likewise.
14771         * doc/posix-functions/wcsstr.texi: Likewise.
14772         * doc/posix-functions/wctob.texi: Likewise.
14773         * doc/posix-functions/wctrans.texi: Likewise.
14774         * doc/posix-functions/wmemchr.texi: Likewise.
14775         * doc/posix-functions/wmemcmp.texi: Likewise.
14776         * doc/posix-functions/wmemcpy.texi: Likewise.
14777         * doc/posix-functions/wmemmove.texi: Likewise.
14778         * doc/posix-functions/wmemset.texi: Likewise.
14779         * doc/posix-functions/wprintf.texi: Likewise.
14780         * doc/posix-functions/wscanf.texi: Likewise.
14781
14782 2008-12-21  Bruno Haible  <bruno@clisp.org>
14783
14784         Work around a portability problem.
14785         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
14786         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
14787
14788 2008-12-20  Bruno Haible  <bruno@clisp.org>
14789
14790         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
14791         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
14792         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
14793         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
14794         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
14795
14796         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
14797         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
14798         set.
14799         (GNULIB_defined_mbstate_t): New macro.
14800         (mbsinit): Redefine if REPLACE_MBSINIT is set.
14801         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
14802         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
14803         reuses the system's mbrtowc function but works around the bugs.
14804         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
14805         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
14806         macros.
14807         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
14808         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
14809         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
14810         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
14811         REPLACE_MBSINIT if mbsinit needs to be overridden.
14812         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
14813         REPLACE_MBSINIT, REPLACE_MBRTOWC.
14814         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
14815         REPLACE_MBSINIT, REPLACE_MBRTOWC.
14816         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14817         m4/locale-zh.m4.
14818         (Depends): Add mbsinit.
14819         * modules/mbsinit (Depends): Add mbrtowc.
14820         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
14821
14822 2008-12-20  Bruno Haible  <bruno@clisp.org>
14823
14824         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
14825         so that there are no conversion errors on AIX.
14826         * tests/test-mbsrtowcs.c (main): LIkewise.
14827
14828 2008-12-20  Bruno Haible  <bruno@clisp.org>
14829
14830         Work around wctob bug on Solaris <= 9.
14831         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
14832         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
14833         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
14834         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
14835         * modules/wctob (Files): Add m4/locale-fr.m4.
14836         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
14837
14838 2008-12-20  Bruno Haible  <bruno@clisp.org>
14839
14840         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
14841         /dev/null.
14842         * tests/test-select-in.sh: Likewise.
14843         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14844
14845 2008-12-20  Bruno Haible  <bruno@clisp.org>
14846
14847         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
14848         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
14849         Cygwin 1.5.x.
14850
14851 2008-12-20  Bruno Haible  <bruno@clisp.org>
14852
14853         Ensure mbstate_t is defined on HP-UX 11.11.
14854         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
14855         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
14856         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
14857         AC_USE_SYSTEM_EXTENSIONS.
14858         * modules/fnmatch (Depends-on): Add extensions.
14859         * modules/mbrlen (Depends-on): Likewise.
14860         * modules/mbrtowc (Depends-on): Likewise.
14861         * modules/mbsinit (Depends-on): Likewise.
14862         * modules/mbsrtowcs (Depends-on): Likewise.
14863         * modules/mbswidth (Depends-on): Likewise.
14864         * modules/quotearg (Depends-on): Likewise.
14865         * modules/strftime (Depends-on): Likewise.
14866
14867 2008-12-20  Bruno Haible  <bruno@clisp.org>
14868
14869         Ensure wctob is declared on IRIX 6.5.
14870         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
14871         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
14872         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
14873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
14874         of HAVE_WCTOB.
14875         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
14876         HAVE_WCTOB.
14877         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
14878
14879 2008-12-19  Bruno Haible  <bruno@clisp.org>
14880
14881         * modules/mbsrtowcs-tests: New file.
14882         * tests/test-mbsrtowcs1.sh: New file.
14883         * tests/test-mbsrtowcs2.sh: New file.
14884         * tests/test-mbsrtowcs3.sh: New file.
14885         * tests/test-mbsrtowcs4.sh: New file.
14886         * tests/test-mbsrtowcs.c: New file.
14887
14888         New module 'mbsrtowcs'.
14889         * lib/wchar.in.h (mbsrtowcs): New declaration.
14890         * lib/mbsrtowcs.c: New file.
14891         * m4/mbsrtowcs.m4: New file.
14892         * modules/mbsrtowcs: New file.
14893         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
14894         HAVE_MBSRTOWCS.
14895         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
14896         HAVE_MBSRTOWCS.
14897         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
14898
14899 2008-12-19  Bruno Haible  <bruno@clisp.org>
14900
14901         New module 'mbrlen'.
14902         * lib/wchar.in.h (mbrlen): New declaration.
14903         * lib/mbrlen.c: New file.
14904         * m4/mbrlen.m4: New file.
14905         * modules/mbrlen: New file.
14906         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
14907         HAVE_MBRLEN.
14908         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
14909         HAVE_MBRLEN.
14910         * doc/posix-functions/mbrlen.texi: Document the new module.
14911
14912 2008-12-19  Bruno Haible  <bruno@clisp.org>
14913
14914         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
14915         * modules/mbrtowc (Depends-on): Add verify.
14916         Suggested by Paul Eggert.
14917
14918 2008-12-18  Bruno Haible  <bruno@clisp.org>
14919
14920         * modules/mbsinit-tests: New file.
14921         * tests/test-mbsinit.sh: New file.
14922         * tests/test-mbsinit.c: New file.
14923
14924 2008-12-18  Bruno Haible  <bruno@clisp.org>
14925
14926         * modules/mbrtowc-tests: New file.
14927         * tests/test-mbrtowc1.sh: New file.
14928         * tests/test-mbrtowc2.sh: New file.
14929         * tests/test-mbrtowc3.sh: New file.
14930         * tests/test-mbrtowc4.sh: New file.
14931         * tests/test-mbrtowc.c: New file.
14932
14933         New module 'mbrtowc'.
14934         * lib/wchar.in.h (mbstate_t): Override when the system does not have
14935         mbsinit and mbrtowc.
14936         (mbrtowc): New declaration.
14937         * lib/mbrtowc.c: New file.
14938         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
14939         * modules/mbrtowc: New file.
14940         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
14941         HAVE_MBRTOWC.
14942         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
14943         HAVE_MBRTOWC.
14944         * doc/posix-functions/mbrtowc.texi: Document the new module.
14945
14946 2008-12-18  Bruno Haible  <bruno@clisp.org>
14947
14948         New module 'wctob'.
14949         * lib/wchar.in.h (wctob): New declaration.
14950         * lib/wctob.c: New file.
14951         * m4/wctob.m4: New file.
14952         * modules/wctob: New file.
14953         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
14954         HAVE_WCTOB.
14955         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
14956         * doc/posix-functions/wctob.texi: Document the new module.
14957
14958 2008-12-18  Bruno Haible  <bruno@clisp.org>
14959
14960         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
14961         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
14962
14963 2008-12-18  Simon Josefsson  <simon@josefsson.org>
14964
14965         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
14966         G. Christensen" <tgc@jupiterrise.com>.
14967
14968         * lib/flock.c: Need to include errno.h.  Reported by "Tom
14969         G. Christensen" <tgc@jupiterrise.com>.
14970
14971         * lib/flock.c: Need to include string.h.  Reported by "Tom
14972         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
14973         <ebb9@byu.net>.
14974
14975 2008-12-18  Bruno Haible  <bruno@clisp.org>
14976
14977         * m4/locale-ja.m4: New file, from GNU gettext.
14978
14979 2008-12-17  Bruno Haible  <bruno@clisp.org>
14980
14981         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
14982         Suggested by Eric Blake.
14983
14984 2008-12-17  Bruno Haible  <bruno@clisp.org>
14985
14986         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
14987
14988 2008-12-17  Bruno Haible  <bruno@clisp.org>
14989
14990         * lib/mbsinit.c: Include verify.h. Verify an assumption.
14991         * modules/mbsinit (Depends-on): Add verify.
14992         Suggested by Paul Eggert.
14993
14994 2008-12-17  Bruno Haible  <bruno@clisp.org>
14995
14996         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
14997         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
14998         gl_FUNC_MBRTOWC.
14999         * m4/mbiter.m4 (gl_MBITER): LIkewise.
15000         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
15001         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
15002         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
15003         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
15004         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
15005         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
15006         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
15007         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
15008         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
15009         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
15010         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
15011         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
15012         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
15013         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
15014         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15015         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
15016         * modules/trim (configure.ac): Likewise.
15017
15018 2008-12-17  Bruno Haible  <bruno@clisp.org>
15019
15020         * modules/btowc-tests: New file.
15021         * tests/test-btowc1.sh: New file.
15022         * tests/test-btowc2.sh: New file.
15023         * tests/test-btowc.c: New file.
15024
15025         New module 'btowc'.
15026         * lib/wchar.in.h (btowc): New declaration.
15027         * lib/btowc.c: New file.
15028         * m4/btowc.m4: New file.
15029         * modules/btowc: New file.
15030         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
15031         HAVE_BTOWC.
15032         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
15033         * doc/posix-functions/btowc.texi: Document the new module.
15034
15035 2008-12-17  Bruno Haible  <bruno@clisp.org>
15036
15037         New module 'mbsinit'.
15038         * lib/wchar.in.h (mbsinit): New declaration.
15039         * lib/mbsinit.c: New file.
15040         * m4/mbsinit.m4: New file.
15041         * modules/mbsinit: New file.
15042         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
15043         HAVE_MBSINIT.
15044         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
15045         HAVE_MBSINIT.
15046         * doc/posix-functions/mbsinit.texi: Document the new module.
15047
15048 2008-12-16  Bruno Haible  <bruno@clisp.org>
15049
15050         * lib/unistd.in.h: Add comment.
15051         * tests/test-environ.c: Don't include <stdlib.h>.
15052
15053 2008-12-16  Bruno Haible  <bruno@clisp.org>
15054
15055         * lib/parse-duration.h (parse_duration): Document return value
15056         convention.
15057         * lib/parse-duration.c: Include specification header first. Add
15058         comments.
15059         (_): Remove macro.
15060         (parse_year_month_day, parse_hour_minute_second): Move side effects
15061         outside of strchr call.
15062         (parse_non_iso8601): Move side effects outside of isspace call.
15063         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
15064         call.
15065
15066 2008-12-16  Bruno Haible  <bruno@clisp.org>
15067
15068         * tests/test-parse-duration.sh: Produce no output when the test
15069         succeeds.
15070
15071 2008-12-16  Bruno Haible  <bruno@clisp.org>
15072
15073         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
15074         expressions.
15075
15076 2008-12-15  Bruno Haible  <bruno@clisp.org>
15077
15078         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
15079         * doc/glibc-functions/flistxattr.texi: Likewise.
15080         * doc/glibc-functions/fopencookie.texi: Likewise.
15081         * doc/glibc-functions/fremovexattr.texi: Likewise.
15082         * doc/glibc-functions/fsetxattr.texi: Likewise.
15083         * doc/glibc-functions/getxattr.texi: Likewise.
15084         * doc/glibc-functions/lgetxattr.texi: Likewise.
15085         * doc/glibc-functions/listxattr.texi: Likewise.
15086         * doc/glibc-functions/llistxattr.texi: Likewise.
15087         * doc/glibc-functions/lremovexattr.texi: Likewise.
15088         * doc/glibc-functions/lsetxattr.texi: Likewise.
15089         * doc/glibc-functions/removexattr.texi: Likewise.
15090         * doc/glibc-functions/setxattr.texi: Likewise.
15091         * doc/posix-functions/open_memstream.texi: Likewise.
15092
15093 2008-12-15  Eric Blake  <ebb9@byu.net>
15094
15095         Update doc for cygwin 1.7.
15096         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
15097         functions.
15098         * doc/posix-functions/fchmodat.texi: Likewise.
15099         * doc/posix-functions/fchownat.texi: Likewise.
15100         * doc/posix-functions/fdopendir.texi: Likewise.
15101         * doc/posix-functions/fmemopen.texi: Likewise.
15102         * doc/posix-functions/freeaddrinfo.texi: Likewise.
15103         * doc/posix-functions/fstatat.texi: Likewise.
15104         * doc/posix-functions/futimens.texi: Likewise.
15105         * doc/posix-functions/gai_strerror.texi: Likewise.
15106         * doc/posix-functions/getaddrinfo.texi: Likewise.
15107         * doc/posix-functions/getnameinfo.texi: Likewise.
15108         * doc/posix-functions/if_freenameindex.texi: Likewise.
15109         * doc/posix-functions/if_indextoname.texi: Likewise.
15110         * doc/posix-functions/if_nameindex.texi: Likewise.
15111         * doc/posix-functions/if_nametoindex.texi: Likewise.
15112         * doc/posix-functions/insque.texi: Likewise.
15113         * doc/posix-functions/linkat.texi: Likewise.
15114         * doc/posix-functions/llrint.texi: Likewise.
15115         * doc/posix-functions/llrintf.texi: Likewise.
15116         * doc/posix-functions/llrintl.texi: Likewise.
15117         * doc/posix-functions/lockf.texi: Likewise.
15118         * doc/posix-functions/lrintl.texi: Likewise.
15119         * doc/posix-functions/mkdirat.texi: Likewise.
15120         * doc/posix-functions/mkfifoat.texi: Likewise.
15121         * doc/posix-functions/mknodat.texi: Likewise.
15122         * doc/posix-functions/mq_close.texi: Likewise.
15123         * doc/posix-functions/mq_getattr.texi: Likewise.
15124         * doc/posix-functions/mq_notify.texi: Likewise.
15125         * doc/posix-functions/mq_open.texi: Likewise.
15126         * doc/posix-functions/mq_receive.texi: Likewise.
15127         * doc/posix-functions/mq_send.texi: Likewise.
15128         * doc/posix-functions/mq_setattr.texi: Likewise.
15129         * doc/posix-functions/mq_timedreceive.texi: Likewise.
15130         * doc/posix-functions/mq_timedsend.texi: Likewise.
15131         * doc/posix-functions/mq_unlink.texi: Likewise.
15132         * doc/posix-functions/open_memstream.texi: Likewise.
15133         * doc/posix-functions/openat.texi: Likewise.
15134         * doc/posix-functions/posix_fadvise.texi: Likewise.
15135         * doc/posix-functions/posix_fallocate.texi: Likewise.
15136         * doc/posix-functions/posix_madvise.texi: Likewise.
15137         * doc/posix-functions/posix_memalign.texi: Likewise.
15138         * doc/posix-functions/posix_openpt.texi: Likewise.
15139         * doc/posix-functions/readlinkat.texi: Likewise.
15140         * doc/posix-functions/remque.texi: Likewise.
15141         * doc/posix-functions/renameat.texi: Likewise.
15142         * doc/posix-functions/rintl.texi: Likewise.
15143         * doc/posix-functions/sem_unlink.texi: Likewise.
15144         * doc/posix-functions/shm_open.texi: Likewise.
15145         * doc/posix-functions/shm_unlink.texi: Likewise.
15146         * doc/posix-functions/signgam.texi: Likewise.
15147         * doc/posix-functions/sigset.texi: Likewise.
15148         * doc/posix-functions/stpcpy.texi: Likewise.
15149         * doc/posix-functions/stpncpy.texi: Likewise.
15150         * doc/posix-functions/strerror.texi: Likewise.
15151         * doc/posix-functions/strtod.texi: Likewise.
15152         * doc/posix-functions/symlinkat.texi: Likewise.
15153         * doc/posix-functions/unlinkat.texi: Likewise.
15154         * doc/posix-functions/utimensat.texi: Likewise.
15155         * doc/glibc-functions/bindresvport.texi: Likewise.
15156         * doc/glibc-functions/dn_expand.texi: Likewise.
15157         * doc/glibc-functions/exp10.texi: Likewise.
15158         * doc/glibc-functions/exp10f.texi: Likewise.
15159         * doc/glibc-functions/fgetxattr.texi: Likewise.
15160         * doc/glibc-functions/flistxattr.texi: Likewise.
15161         * doc/glibc-functions/fopencookie.texi: Likewise.
15162         * doc/glibc-functions/freeifaddrs.texi: Likewise.
15163         * doc/glibc-functions/fremovexattr.texi: Likewise.
15164         * doc/glibc-functions/fsetxattr.texi: Likewise.
15165         * doc/glibc-functions/getifaddrs.texi: Likewise.
15166         * doc/glibc-functions/getxattr.texi: Likewise.
15167         * doc/glibc-functions/lgetxattr.texi: Likewise.
15168         * doc/glibc-functions/listxattr.texi: Likewise.
15169         * doc/glibc-functions/llistxattr.texi: Likewise.
15170         * doc/glibc-functions/lremovexattr.texi: Likewise.
15171         * doc/glibc-functions/lsetxattr.texi: Likewise.
15172         * doc/glibc-functions/pow10.texi: Likewise.
15173         * doc/glibc-functions/pow10f.texi: Likewise.
15174         * doc/glibc-functions/rcmd_af.texi: Likewise.
15175         * doc/glibc-functions/removexattr.texi: Likewise.
15176         * doc/glibc-functions/res_init.texi: Likewise.
15177         * doc/glibc-functions/res_mkquery.texi: Likewise.
15178         * doc/glibc-functions/res_query.texi: Likewise.
15179         * doc/glibc-functions/res_querydomain.texi: Likewise.
15180         * doc/glibc-functions/res_send.texi: Likewise.
15181         * doc/glibc-functions/rresvport_af.texi: Likewise.
15182         * doc/glibc-functions/setxattr.texi: Likewise.
15183         * doc/glibc-functions/strcasestr.texi: Likewise.
15184
15185 2008-12-15  Bruno Haible  <bruno@clisp.org>
15186
15187         Fix compilation error on OSF/1 4.0.
15188         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
15189         <sys/time.h>, simply delegate to the system header.
15190         Reported by Daniel Richard G. <oss@teragram.com>.
15191
15192 2008-12-15  Bruno Haible  <bruno@clisp.org>
15193
15194         * doc/posix-functions/openat.texi: Mention the 'openat' module.
15195         * doc/posix-functions/fchmodat.texi: Likewise.
15196         * doc/posix-functions/fchownat.texi: Likewise.
15197         * doc/posix-functions/fdopendir.texi: Likewise.
15198         * doc/posix-functions/fstatat.texi: Likewise.
15199         * doc/posix-functions/mkdirat.texi: Likewise.
15200         * doc/posix-functions/unlinkat.texi: Likewise.
15201
15202 2008-12-14  Bruno Haible  <bruno@clisp.org>
15203
15204         Update doc for POSIX:2008.
15205         * doc/posix-functions/faccessat.texi: New file.
15206         * doc/posix-functions/fchmodat.texi: New file.
15207         * doc/posix-functions/fchownat.texi: New file.
15208         * doc/posix-functions/fdopendir.texi: New file.
15209         * doc/posix-functions/fstatat.texi: New file.
15210         * doc/posix-functions/futimens.texi: New file.
15211         * doc/posix-functions/linkat.texi: New file.
15212         * doc/posix-functions/mkdirat.texi: New file.
15213         * doc/posix-functions/mkfifoat.texi: New file.
15214         * doc/posix-functions/mknodat.texi: New file.
15215         * doc/posix-functions/open_wmemstream.texi: New file.
15216         * doc/posix-functions/openat.texi: New file.
15217         * doc/posix-functions/psiginfo.texi: New file.
15218         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
15219         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
15220         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
15221         * doc/posix-functions/readlinkat.texi: New file.
15222         * doc/posix-functions/renameat.texi: New file.
15223         * doc/posix-functions/strerror_l.texi: New file.
15224         * doc/posix-functions/symlinkat.texi: New file.
15225         * doc/posix-functions/unlinkat.texi: New file.
15226         * doc/posix-functions/utimensat.texi: New file.
15227         * doc/gnulib.texi (Function Substitutes): Add these subsections.
15228
15229 2008-12-14  Bruno Haible  <bruno@clisp.org>
15230
15231         Update doc for POSIX:2008.
15232         * doc/posix-functions/alphasort.texi: Renamed from
15233         doc/glibc-functions/alphasort.texi.
15234         * doc/posix-functions/dirfd.texi: Renamed from
15235         doc/glibc-functions/dirfd.texi.
15236         * doc/posix-functions/dprintf.texi: Renamed from
15237         doc/glibc-functions/dprintf.texi.
15238         * doc/posix-functions/duplocale.texi: Renamed from
15239         doc/glibc-functions/duplocale.texi.
15240         * doc/posix-functions/fexecve.texi: Renamed from
15241         doc/glibc-functions/fexecve.texi.
15242         * doc/posix-functions/fmemopen.texi: Renamed from
15243         doc/glibc-functions/fmemopen.texi.
15244         * doc/posix-functions/freelocale.texi: Renamed from
15245         doc/glibc-functions/freelocale.texi.
15246         * doc/posix-functions/getdate_err.texi: Renamed from
15247         doc/glibc-functions/getdate_err.texi.
15248         * doc/posix-functions/isalnum_l.texi: Renamed from
15249         doc/glibc-functions/isalnum_l.texi.
15250         * doc/posix-functions/isalpha_l.texi: Renamed from
15251         doc/glibc-functions/isalpha_l.texi.
15252         * doc/posix-functions/isblank_l.texi: Renamed from
15253         doc/glibc-functions/isblank_l.texi.
15254         * doc/posix-functions/iscntrl_l.texi: Renamed from
15255         doc/glibc-functions/iscntrl_l.texi.
15256         * doc/posix-functions/isdigit_l.texi: Renamed from
15257         doc/glibc-functions/isdigit_l.texi.
15258         * doc/posix-functions/isgraph_l.texi: Renamed from
15259         doc/glibc-functions/isgraph_l.texi.
15260         * doc/posix-functions/islower_l.texi: Renamed from
15261         doc/glibc-functions/islower_l.texi.
15262         * doc/posix-functions/isprint_l.texi: Renamed from
15263         doc/glibc-functions/isprint_l.texi.
15264         * doc/posix-functions/ispunct_l.texi: Renamed from
15265         doc/glibc-functions/ispunct_l.texi.
15266         * doc/posix-functions/isspace_l.texi: Renamed from
15267         doc/glibc-functions/isspace_l.texi.
15268         * doc/posix-functions/isupper_l.texi: Renamed from
15269         doc/glibc-functions/isupper_l.texi.
15270         * doc/posix-functions/iswalnum_l.texi: Renamed from
15271         doc/glibc-functions/iswalnum_l.texi.
15272         * doc/posix-functions/iswalpha_l.texi: Renamed from
15273         doc/glibc-functions/iswalpha_l.texi.
15274         * doc/posix-functions/iswblank_l.texi: Renamed from
15275         doc/glibc-functions/iswblank_l.texi.
15276         * doc/posix-functions/iswcntrl_l.texi: Renamed from
15277         doc/glibc-functions/iswcntrl_l.texi.
15278         * doc/posix-functions/iswctype_l.texi: Renamed from
15279         doc/glibc-functions/iswctype_l.texi.
15280         * doc/posix-functions/iswdigit_l.texi: Renamed from
15281         doc/glibc-functions/iswdigit_l.texi.
15282         * doc/posix-functions/iswgraph_l.texi: Renamed from
15283         doc/glibc-functions/iswgraph_l.texi.
15284         * doc/posix-functions/iswlower_l.texi: Renamed from
15285         doc/glibc-functions/iswlower_l.texi.
15286         * doc/posix-functions/iswprint_l.texi: Renamed from
15287         doc/glibc-functions/iswprint_l.texi.
15288         * doc/posix-functions/iswpunct_l.texi: Renamed from
15289         doc/glibc-functions/iswpunct_l.texi.
15290         * doc/posix-functions/iswspace_l.texi: Renamed from
15291         doc/glibc-functions/iswspace_l.texi.
15292         * doc/posix-functions/iswupper_l.texi: Renamed from
15293         doc/glibc-functions/iswupper_l.texi.
15294         * doc/posix-functions/iswxdigit_l.texi: Renamed from
15295         doc/glibc-functions/iswxdigit_l.texi.
15296         * doc/posix-functions/isxdigit_l.texi: Renamed from
15297         doc/glibc-functions/isxdigit_l.texi.
15298         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
15299         doc/glibc-functions/mbsnrtowcs.texi.
15300         * doc/posix-functions/mkdtemp.texi: Renamed from
15301         doc/glibc-functions/mkdtemp.texi.
15302         * doc/posix-functions/newlocale.texi: Renamed from
15303         doc/glibc-functions/newlocale.texi.
15304         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
15305         doc/glibc-functions/nl_langinfo_l.texi.
15306         * doc/posix-functions/open_memstream.texi: Renamed from
15307         doc/glibc-functions/open_memstream.texi.
15308         * doc/posix-functions/opterr.texi: Renamed from
15309         doc/glibc-functions/opterr.texi.
15310         * doc/posix-functions/optind.texi: Renamed from
15311         doc/glibc-functions/optind.texi.
15312         * doc/posix-functions/optopt.texi: Renamed from
15313         doc/glibc-functions/optopt.texi.
15314         * doc/posix-functions/psignal.texi: Renamed from
15315         doc/glibc-functions/psignal.texi.
15316         * doc/posix-functions/scandir.texi: Renamed from
15317         doc/glibc-functions/scandir.texi.
15318         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
15319         doc/glibc-functions/sched_get_priority_min.texi.
15320         * doc/posix-functions/signgam.texi: Renamed from
15321         doc/glibc-functions/signgam.texi.
15322         * doc/posix-functions/stpcpy.texi: Renamed from
15323         doc/glibc-functions/stpcpy.texi.
15324         * doc/posix-functions/stpncpy.texi: Renamed from
15325         doc/glibc-functions/stpncpy.texi.
15326         * doc/posix-functions/strcasecmp_l.texi: Renamed from
15327         doc/glibc-functions/strcasecmp_l.texi.
15328         * doc/posix-functions/strcoll_l.texi: Renamed from
15329         doc/glibc-functions/strcoll_l.texi.
15330         * doc/posix-functions/strfmon_l.texi: Renamed from
15331         doc/glibc-functions/strfmon_l.texi.
15332         * doc/posix-functions/strftime_l.texi: Renamed from
15333         doc/glibc-functions/strftime_l.texi.
15334         * doc/posix-functions/strncasecmp_l.texi: Renamed from
15335         doc/glibc-functions/strncasecmp_l.texi.
15336         * doc/posix-functions/strndup.texi: Renamed from
15337         doc/glibc-functions/strndup.texi.
15338         * doc/posix-functions/strnlen.texi: Renamed from
15339         doc/glibc-functions/strnlen.texi.
15340         * doc/posix-functions/strsignal.texi: Renamed from
15341         doc/glibc-functions/strsignal.texi.
15342         * doc/posix-functions/strxfrm_l.texi: Renamed from
15343         doc/glibc-functions/strxfrm_l.texi.
15344         * doc/posix-functions/timer_gettime.texi: Renamed from
15345         doc/glibc-functions/timer_gettime.texi.
15346         * doc/posix-functions/tolower_l.texi: Renamed from
15347         doc/glibc-functions/tolower_l.texi.
15348         * doc/posix-functions/toupper_l.texi: Renamed from
15349         doc/glibc-functions/toupper_l.texi.
15350         * doc/posix-functions/towctrans_l.texi: Renamed from
15351         doc/glibc-functions/towctrans_l.texi.
15352         * doc/posix-functions/towlower_l.texi: Renamed from
15353         doc/glibc-functions/towlower_l.texi.
15354         * doc/posix-functions/towupper_l.texi: Renamed from
15355         doc/glibc-functions/towupper_l.texi.
15356         * doc/posix-functions/uselocale.texi: Renamed from
15357         doc/glibc-functions/uselocale.texi.
15358         * doc/posix-functions/vdprintf.texi: Renamed from
15359         doc/glibc-functions/vdprintf.texi.
15360         * doc/posix-functions/wcpcpy.texi:
15361         Renamed from doc/glibc-functions/wcpcpy.texi.
15362         * doc/posix-functions/wcpncpy.texi: Renamed from
15363         doc/glibc-functions/wcpncpy.texi.
15364         * doc/posix-functions/wcscasecmp.texi: Renamed from
15365         doc/glibc-functions/wcscasecmp.texi.
15366         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
15367         doc/glibc-functions/wcscasecmp_l.texi.
15368         * doc/posix-functions/wcscoll_l.texi: Renamed from
15369         doc/glibc-functions/wcscoll_l.texi.
15370         * doc/posix-functions/wcsdup.texi: Renamed from
15371         doc/glibc-functions/wcsdup.texi.
15372         * doc/posix-functions/wcsncasecmp.texi: Renamed from
15373         doc/glibc-functions/wcsncasecmp.texi.
15374         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
15375         doc/glibc-functions/wcsncasecmp_l.texi.
15376         * doc/posix-functions/wcsnlen.texi: Renamed from
15377         doc/glibc-functions/wcsnlen.texi.
15378         * doc/posix-functions/wcsnrtombs.texi: Renamed from
15379         doc/glibc-functions/wcsnrtombs.texi.
15380         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
15381         doc/glibc-functions/wcsxfrm_l.texi.
15382         * doc/posix-functions/wctrans_l.texi: Renamed from
15383         doc/glibc-functions/wctrans_l.texi.
15384         * doc/posix-functions/wctype_l.texi: Renamed from
15385         doc/glibc-functions/wctype_l.texi.
15386         * doc/gnulib.texi (Function Substitutes): Add these subsections.
15387         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
15388         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
15389         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
15390         these subsections.
15391         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
15392         Remove sections.
15393
15394 2008-12-14  Bruno Haible  <bruno@clisp.org>
15395
15396         Update doc for POSIX:2008.
15397         * doc/posix-functions/*.texi: Update URL of POSIX specification.
15398
15399 2008-12-14  Bruno Haible  <bruno@clisp.org>
15400
15401         Update doc for POSIX:2008.
15402         * doc/pastposix-functions/bcmp.texi: Renamed from
15403         doc/posix-functions/bcmp.texi.
15404         * doc/pastposix-functions/bcopy.texi: Renamed from
15405         doc/posix-functions/bcopy.texi.
15406         * doc/pastposix-functions/bsd_signal.texi: Renamed from
15407         doc/posix-functions/bsd_signal.texi.
15408         * doc/pastposix-functions/bzero.texi: Renamed from
15409         doc/posix-functions/bzero.texi.
15410         * doc/pastposix-functions/ecvt.texi: Renamed from
15411         doc/posix-functions/ecvt.texi.
15412         * doc/pastposix-functions/fcvt.texi: Renamed from
15413         doc/posix-functions/fcvt.texi.
15414         * doc/pastposix-functions/ftime.texi: Renamed from
15415         doc/posix-functions/ftime.texi.
15416         * doc/pastposix-functions/gcvt.texi: Renamed from
15417         doc/posix-functions/gcvt.texi.
15418         * doc/pastposix-functions/getcontext.texi: Renamed from
15419         doc/posix-functions/getcontext.texi.
15420         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
15421         doc/posix-functions/gethostbyaddr.texi.
15422         * doc/pastposix-functions/gethostbyname.texi: Renamed from
15423         doc/posix-functions/gethostbyname.texi.
15424         * doc/pastposix-functions/getwd.texi: Renamed from
15425         doc/posix-functions/getwd.texi.
15426         * doc/pastposix-functions/h_errno.texi: Renamed from
15427         doc/posix-functions/h_errno.texi.
15428         * doc/pastposix-functions/index.texi: Renamed from
15429         doc/posix-functions/index.texi.
15430         * doc/pastposix-functions/makecontext.texi: Renamed from
15431         doc/posix-functions/makecontext.texi.
15432         * doc/pastposix-functions/mktemp.texi: Renamed from
15433         doc/posix-functions/mktemp.texi.
15434         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
15435         doc/posix-functions/pthread_attr_getstackaddr.texi.
15436         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
15437         doc/posix-functions/pthread_attr_setstackaddr.texi.
15438         * doc/pastposix-functions/rindex.texi: Renamed from
15439         doc/posix-functions/rindex.texi.
15440         * doc/pastposix-functions/scalb.texi: Renamed from
15441         doc/posix-functions/scalb.texi.
15442         * doc/pastposix-functions/setcontext.texi: Renamed from
15443         doc/posix-functions/setcontext.texi.
15444         * doc/pastposix-functions/swapcontext.texi: Renamed from
15445         doc/posix-functions/swapcontext.texi.
15446         * doc/pastposix-functions/ualarm.texi: Renamed from
15447         doc/posix-functions/ualarm.texi.
15448         * doc/pastposix-functions/usleep.texi: Renamed from
15449         doc/posix-functions/usleep.texi.
15450         * doc/pastposix-functions/vfork.texi: Renamed from
15451         doc/posix-functions/vfork.texi.
15452         * doc/pastposix-functions/wcswcs.texi: Renamed from
15453         doc/posix-functions/wcswcs.texi.
15454         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
15455         (Function Substitutes): Update.
15456
15457 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15458
15459         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
15460         m4/strerror.m4.
15461
15462 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15463             Bruno Haible  <bruno@clisp.org>
15464
15465         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
15466
15467 2008-12-13  Bruno Haible  <bruno@clisp.org>
15468
15469         * modules/strtoull (Depends-on): Remove unistd.
15470
15471 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15472
15473         * modules/strtoull (Depends-on): Add stdlib.
15474
15475 2008-12-11  Simon Josefsson  <simon@josefsson.org>
15476
15477         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
15478
15479 2008-12-10  Jim Meyering  <meyering@redhat.com>
15480
15481         gl_ASSERT: don't say assertions are disabled when they're not
15482         * m4/assert.m4 (gl_ASSERT): Do not make configure report
15483         "checking whether to enable assertions... no", when they are in
15484         fact enabled.  This is solely a bug in the output of configure.
15485         In spite of saying "no", NDEBUG was not defined in that case.
15486         Also, as noted by Eric Blake, leave assertions enabled upon
15487         --enable-assert=INVALID.
15488
15489 2008-12-10  Bruno Haible  <bruno@clisp.org>
15490
15491         Change MODULES.html to refer to POSIX:2008 where possible.
15492         * MODULES.html.sh (POSIX2008_URL): New variable.
15493         (posix_headers): Remove sys/timeb, ucontext.
15494         (posix2001_headers): New variable.
15495         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
15496         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
15497         index, makecontext, mktemp, pthread_attr_getstackaddr,
15498         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
15499         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
15500         (posix2001_functions): New variable.
15501         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
15502         otherwise.
15503
15504 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15505
15506         add missing include to parse-duration.c
15507         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
15508         * modules/parse-duration (Depends-on): Add xalloc.
15509
15510         fix sed script reading maint.mk
15511         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
15512         (syntax-check-rules): Use it.
15513
15514 2008-12-09  Bruno Haible  <bruno@clisp.org>
15515
15516         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
15517         MacOS X 10.4/PowerPC.
15518         Reported by Simon Josefsson.
15519
15520 2008-12-08  Jim Meyering  <meyering@redhat.com>
15521
15522         work around mingw's lack of some S_IF definitions
15523         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
15524         Reported by Simon Josefsson.
15525
15526 2008-12-08  Bruno Haible  <bruno@clisp.org>
15527
15528         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
15529         applied to variables. Needed on MacOS X 10.4/PowerPC.
15530         Reported by Simon Josefsson.
15531
15532 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
15533         and Eric Blake  <ebb9@byu.net>
15534
15535         assert: honor --enable-assert
15536         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
15537         order to honor --enable-assert, rather than treating it as a
15538         synonym for --disable-assert.
15539
15540 2008-12-08  Jim Meyering  <meyering@redhat.com>
15541
15542         * lib/posixtm.c: Remove now-useless declaration of mktime.
15543
15544         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
15545
15546 2008-12-07  Bruno Haible  <bruno@clisp.org>
15547
15548         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
15549         test_once): Mark functions as static.
15550         * tests/test-tls.c (test_tls): Likewise.
15551
15552 2008-12-07  Bruno Haible  <bruno@clisp.org>
15553
15554         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
15555         iconv_register_autodetect.
15556
15557 2008-12-07  Jim Meyering  <meyering@redhat.com>
15558
15559         posixtm.c: avoid a warning
15560         * lib/posixtm.c (posixtime): Don't initialize tm0.
15561         It's no longer needed to placate gcc4's -Wuninitialized,
15562         and the attempt to placate would elicit a new warning.
15563
15564         unicodeio.c: mark unused parameters
15565         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
15566         (fallback_failure_callback): Likewise.
15567
15568 2008-12-07  Bruno Haible  <bruno@clisp.org>
15569
15570         * gnulib-tool (func_create_testdir): When building the tests
15571         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
15572         Reported by Simon Josefsson.
15573
15574 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15575
15576         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
15577
15578 2008-12-06  Bruno Haible  <bruno@clisp.org>
15579
15580         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
15581         Suggested by Eric Blake.
15582
15583 2008-12-06  Bruno Haible  <bruno@clisp.org>
15584
15585         Fix a c-stack test failure on MacOS X.
15586         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
15587         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
15588         handler for SIGBUS as well.
15589         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
15590         install a signal handler for SIGBUS as well.
15591         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
15592
15593 2008-12-06  Bruno Haible  <bruno@clisp.org>
15594
15595         Advocacy documentation.
15596         * doc/gnulib-intro.texi (Benefits): New section.
15597         * doc/gnulib.texi: Update.
15598
15599 2008-12-06  Bruno Haible  <bruno@clisp.org>
15600
15601         Document the 'manywarnings' module.
15602         * doc/manywarnings.texi: New file.
15603         * doc/gnulib.texi: Include it.
15604
15605 2008-12-05  Eric Blake  <ebb9@byu.net>
15606
15607         tests: silence some gcc warnings
15608         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
15609         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
15610         type mismatches.
15611
15612 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15613             Bruno Haible  <bruno@clisp.org>
15614
15615         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
15616
15617 2008-11-29  Jim Meyering  <meyering@redhat.com>
15618
15619         unicodeio.c: mark unused parameters
15620         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
15621         (fallback_failure_callback): Likewise.
15622
15623         fts: fix a thinko
15624         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
15625         (set_stat_type): Return S_IF*-valued "type" directly.
15626         Prompted by James Youngman's spotting a related bug.
15627         Confirmed by further testing through find.
15628
15629         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
15630         * lib/fts.c (D_TYPE): Define.
15631         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
15632         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
15633         (s_ifmt_shift_bits): New function.
15634         (set_stat_type): New function.
15635         (fts_build): When not calling fts_stat, call set_stat_type
15636         to propagate dirent.d_type info to fts_read caller.
15637         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
15638         fts_statp->st_mode type information may be valid.
15639
15640 2008-11-28  Simon Josefsson  <simon@josefsson.org>
15641
15642         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
15643         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
15644         <sds@gnu.org>.
15645
15646 2008-11-20  Bruno Haible  <bruno@clisp.org>
15647
15648         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
15649         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
15650         INCLUDE_NEXT.
15651         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
15652         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
15653         * modules/math (Makefile.am): Substitute
15654         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
15655         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15656
15657 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
15658             Bruno Haible  <bruno@clisp.org>
15659
15660         * lib/stdint.in.h: Define all type macros so that their expansion is
15661         a single typedef'ed token. Fixes a compilation failure in Boost which
15662         does "using ::int8_t;".
15663
15664 2008-11-18  Simon Josefsson  <simon@josefsson.org>
15665
15666         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
15667         gl_MANYWARN_ALL_GCC.
15668         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
15669         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
15670         * modules/manywarnings: New file.
15671         * MODULES.html.sh: Mention manywarnings module.
15672
15673 2008-11-18  Bruno Haible  <bruno@clisp.org>
15674
15675         * doc/gnulib-tool.texi (Unit tests): New section.
15676
15677 2008-11-18  Simon Josefsson  <simon@josefsson.org>
15678
15679         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
15680         paths like 'lib/po/foo.po'.
15681
15682 2008-11-17  Simon Josefsson  <simon@josefsson.org>
15683
15684         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
15685         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
15686
15687 2008-11-17  Simon Josefsson  <simon@josefsson.org>
15688
15689         * m4/warnings.m4: Use CPPFLAGS to really check whether the
15690         parameter works.
15691
15692 2008-11-17  Simon Josefsson  <simon@josefsson.org>
15693
15694         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
15695
15696 2008-11-17  Bruce Korb  <bkorb@gnu.org>
15697
15698         * modules/parse-duration-tests: New file.
15699         * tests/test-parse-duration.sh: New file.
15700         * tests/test-parse-duration.c: New file.
15701
15702         New module 'parse-duration'.
15703         * lib/parse-duration.h: New file.
15704         * lib/parse-duration.c: New file.
15705         * modules/parse-duration: New file.
15706
15707 2008-11-17  Bruno Haible  <bruno@clisp.org>
15708
15709         * tests/test-select-out.sh: Comment out the first pipe test.
15710         Reported by Simon Josefsson.
15711
15712 2008-11-17  Bruno Haible  <bruno@clisp.org>
15713
15714         * modules/getaddrinfo (Depends-on): Add servent, hostent.
15715         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
15716         gl_HOSTENT.
15717
15718 2008-11-17  Bruno Haible  <bruno@clisp.org>
15719
15720         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
15721         -lnetwork and -lnet. Needed for Haiku and BeOS.
15722
15723 2008-11-16  Bruno Haible  <bruno@clisp.org>
15724
15725         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
15726
15727 2008-11-16  Bruno Haible  <bruno@clisp.org>
15728
15729         Avoid test failure on Haiku.
15730         * tests/test-fsync.c: Include <errno.h>.
15731         (main): Don't require that fsync (0) fails.
15732
15733 2008-11-15  Bruno Haible  <bruno@clisp.org>
15734
15735         New module 'hostent'.
15736         * modules/hostent: New file.
15737         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
15738
15739 2008-11-15  Bruno Haible  <bruno@clisp.org>
15740
15741         New module 'servent'.
15742         * modules/servent: New file.
15743         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
15744
15745 2008-11-15  Bruno Haible  <bruno@clisp.org>
15746
15747         Avoid generating same test program with two different rules.
15748         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
15749         test-frexp to test-frexp-nolibm.
15750         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
15751         test-frexpl to test-frexpl-nolibm.
15752
15753 2008-11-15  Bruno Haible  <bruno@clisp.org>
15754
15755         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
15756         $(FREXPL_LIBM).
15757
15758 2008-11-15  Bruno Haible  <bruno@clisp.org>
15759
15760         * lib/netdb.in.h: Activate the definitions also when the system's
15761         <netdb.h> has 'struct addrinfo'.
15762         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
15763         EAI_OVERFLOW or AI_NUMERICSERV.
15764         * doc/posix-headers/netdb.texi: Document the problem.
15765
15766 2008-11-15  Bruno Haible  <bruno@clisp.org>
15767
15768         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
15769
15770         Make the 'sched' module work on platforms where <sched.h> exists but
15771         is incomplete (such as Haiku).
15772         * lib/sched.in.h; Include the system's <sched.h> if it exists.
15773         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
15774         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
15775         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
15776         HAVE_STRUCT_SCHED_PARAM.
15777         * modules/sched (Depends-on): Add include_next.
15778         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
15779         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
15780         * doc/posix-headers/sched.texi: Document the issue.
15781
15782 2008-11-13  Jim Meyering  <meyering@redhat.com>
15783
15784         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
15785         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
15786         test would fail due to the difference in the Report bugs to ...
15787         line.  The expected address is empty, "<>", while the actual
15788         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
15789
15790 2008-11-12  Bruno Haible  <bruno@clisp.org>
15791
15792         lstat: don't compile lstat.c on systems lacking lstat
15793         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
15794         which don't have lstat; this is handled by lib/sys_stat.in.h already.
15795         Reported by Daniel P. Berrange via Jim Meyering.
15796
15797 2008-11-12  Jim Meyering  <meyering@redhat.com>
15798
15799         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
15800
15801 2008-11-12  Simon Josefsson  <simon@josefsson.org>
15802
15803         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
15804         instead.
15805
15806 2008-11-12  Bruno Haible  <bruno@clisp.org>
15807
15808         * lib/unicodeio.c: Include unistr.h.
15809         (utf8_wctomb): Remove function.
15810         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
15811
15812 2008-11-12  Simon Josefsson  <simon@josefsson.org>
15813
15814         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
15815         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
15816         <bruno@clisp.org>.
15817         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
15818
15819 2008-11-12  Simon Josefsson  <simon@josefsson.org>
15820
15821         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
15822         * doc/gnulib.texi: Add section for warnings.
15823
15824 2008-11-11  Bruno Haible  <bruno@clisp.org>
15825
15826         * lib/sockets.h: Add a comment.
15827
15828 2008-11-11  Karl Berry  <karl@gnu.org>
15829
15830         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
15831
15832 2008-11-11  Eric Blake  <ebb9@byu.net>
15833
15834         fdl.texi: avoid git symlinks
15835         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
15836
15837 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
15838
15839         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
15840
15841 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
15842
15843         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
15844         (gl_WARN_ADD): Substitute $2 if literal.
15845
15846 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
15847
15848         * m4/warning.m4: Remove.
15849
15850 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
15851
15852         * m4/warnings.m4: Almost complete rewrite. :-)
15853
15854 2008-11-10  Simon Josefsson  <simon@josefsson.org>
15855
15856         * modules/warnings: New module.
15857         * m4/warnings.m4: New file.
15858         * MODULES.html.sh: Mention warnings module.
15859         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
15860         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15861
15862 2008-11-10  Eric Blake  <ebb9@byu.net>
15863
15864         fdl.texi: make a symlink to the latest version
15865         * doc/standards.texi: Revert today's earlier change.
15866         * doc/fdl-1.2.texi: Rename from old fdl.texi...
15867         * doc/fdl.texi: ...and replace this with a symlink to the newer
15868         fdl-1.3.texi.
15869
15870 2008-11-10  Bruno Haible  <bruno@clisp.org>
15871
15872         * tests/test-select-fd.c (main): Accept the result file name as fourth
15873         argument.
15874         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
15875         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
15876
15877 2008-11-10  Bruno Haible  <bruno@clisp.org>
15878
15879         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
15880         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
15881         as autoconf-substituted macros.
15882         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
15883         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
15884         gl_NETDB_H_DEFAULTS. Set these variables.
15885         * modules/netdb (Makefile.am): Substitute these variables.
15886
15887 2008-11-10  Eric Blake  <ebb9@byu.net>
15888
15889         standards.texi: include correct file for FDL 1.3
15890         * doc/standards.texi (GNU Free Documentation License): Change
15891         include file to pull in FDL 1.3, not 1.2.
15892
15893         fdl.texi: revert accidental change to license
15894         * doc/fdl.texi: This is FDL 1.2, not 1.3.
15895
15896 2008-11-10  Bruno Haible  <bruno@clisp.org>
15897
15898         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
15899         cross-compiling guesses also when the native compile gives no result.
15900
15901 2008-11-10  Bruno Haible  <bruno@clisp.org>
15902
15903         * lib/spawni.c (__spawni): Force variable into the stack.
15904
15905 2008-11-10  Bruno Haible  <bruno@clisp.org>
15906
15907         Add support for Haiku.
15908         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
15909         glibc and BeOS, but also on Haiku.
15910         * lib/fpurge.c (fpurge): Likewise.
15911         * lib/freadable.c (freadable): Likewise.
15912         * lib/freadahead.c (freadahead): Likewise.
15913         * lib/freading.c (freading): Likewise.
15914         * lib/freadptr.c (freadptr): Likewise.
15915         * lib/freadseek.c (freadptrinc): Likewise.
15916         * lib/fseeko.c (rpl_fseeko): Likewise.
15917         * lib/fseterr.c (fseterr): Likewise.
15918         * lib/fwritable.c (fwritable): Likewise.
15919         * lib/fwriting.c (fwriting): Likewise.
15920         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
15921
15922 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
15923
15924         * lib/config.charset: Treat Haiku like BeOS.
15925
15926 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
15927
15928         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
15929         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
15930
15931 2008-11-08  Bruno Haible  <bruno@clisp.org>
15932
15933         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
15934         AC_CACHE_CHECK.
15935
15936 2008-11-08  Bruno Haible  <bruno@clisp.org>
15937
15938         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
15939
15940 2008-11-08  Bruno Haible  <bruno@clisp.org>
15941
15942         * tests/test-select-fd.c: New file.
15943         * tests/test-select-in.sh: New file.
15944         * tests/test-select-out.sh: New file.
15945         * tests/test-select-stdin.c: New file.
15946         * modules/select-tests (Files): Add the new files.
15947         (Depends-on): Add gettimeofday.
15948         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
15949         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
15950         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
15951
15952 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
15953             Bruno Haible  <bruno@clisp.org>
15954
15955         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
15956
15957 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
15958
15959         * build-aux/pmccabe2html: Added support for C++ source files.
15960
15961 2008-11-05  Ben Pfaff  <blp@gnu.org>
15962
15963         Fix lib/close.c build on Windows.
15964         * modules/close (Files): Add lib/w32sock.h.
15965
15966 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
15967
15968         Accept Bison's NEWS format.
15969         * build-aux/announce-gen (print_news_deltas): Tweak
15970         $re_prefix.
15971
15972 2008-11-04  Bruno Haible  <bruno@clisp.org>
15973
15974         * modules/random_r (Maintainer): Add glibc.
15975
15976 2008-11-04  Simon Josefsson  <simon@josefsson.org>
15977
15978         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
15979         by karl@freefriends.org (Karl Berry).
15980         * doc/alloca.texi: Likewise.
15981         * doc/c-ctype.texi: Likewise.
15982         * doc/c-strcase.texi: Likewise.
15983         * doc/c-strcaseeq.texi: Likewise.
15984         * doc/c-strcasestr.texi: Likewise.
15985         * doc/c-strstr.texi: Likewise.
15986         * doc/c-strtod.texi: Likewise.
15987         * doc/c-strtold.texi: Likewise.
15988         * doc/ctime.texi: Likewise.
15989         * doc/error.texi: Likewise.
15990         * doc/fdl.texi: Likewise.
15991         * doc/gcd.texi: Likewise.
15992         * doc/getdate.texi: Likewise.
15993         * doc/gnulib-intro.texi: Likewise.
15994         * doc/gnulib-tool.texi: Likewise.
15995         * doc/gnulib.texi: Likewise.
15996         * doc/inet_ntoa.texi: Likewise.
15997         * doc/maintain.texi: Likewise.
15998         * doc/make-stds.texi: Likewise.
15999         * doc/quote.texi: Likewise.
16000         * doc/regexprops-generic.texi: Likewise.
16001         * doc/standards.texi: Likewise.
16002         * doc/verify.texi: Likewise.
16003         * doc/visibility.texi: Likewise.
16004         * doc/gnulib.texi (GNU Free Documentation License): Include
16005         fdl-1.3.texi instead of fdl.texi.
16006
16007 2008-11-04  Simon Josefsson  <simon@josefsson.org>
16008
16009         * doc/fdl-1.3.texi: New file, from
16010         <http://www.gnu.org/licenses/fdl-1.3.texi>.
16011         * modules/fdl-1.3: Add.
16012         * MODULES.html.sh: Add fdl-1.3.
16013
16014 2008-11-03  Bruno Haible  <bruno@clisp.org>
16015
16016         Make determination of absolute name of header file work with AIX xlc.
16017         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
16018         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
16019         preprocessing.
16020         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16021         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
16022
16023 2008-11-03  Simon Josefsson  <simon@josefsson.org>
16024
16025         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
16026         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
16027         <ludo@gnu.org>.
16028
16029 2008-11-02  Bruno Haible  <bruno@clisp.org>
16030
16031         Mark 'strpbrk' obsolete.
16032         * modules/strpbrk (Status, Notice): New sections.
16033         * modules/strtok_r (Depends-on): Add strpbrk.
16034
16035 2008-11-02  Bruno Haible  <bruno@clisp.org>
16036
16037         Mark 'strdup' obsolete.
16038         * modules/strdup (Status, Notice): New sections.
16039         * modules/findprog (Depends-on): Add strdup.
16040         * modules/getaddrinfo (Depends-on): Likewise.
16041         * modules/localename (Depends-on): Likewise.
16042         * modules/relocatable-lib (Depends-on): Likewise.
16043         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
16044         * modules/relocatable-prog (Depends-on): Likewise.
16045         * modules/trim (Depends-on): Likewise.
16046         * modules/unictype/gen-ctype (Depends-on): Likewise.
16047         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
16048
16049 2008-11-02  Bruno Haible  <bruno@clisp.org>
16050
16051         Mark 'strcspn' obsolete.
16052         * modules/strcspn (Status, Notice): New sections.
16053
16054 2008-11-02  Bruno Haible  <bruno@clisp.org>
16055
16056         Mark 'rmdir' obsolete.
16057         * modules/rmdir (Status, Notice): New sections.
16058         * modules/clean-temp (Depends-on): Add rmdir.
16059         * modules/openat (Depends-on): Likewise.
16060
16061 2008-11-02  Bruno Haible  <bruno@clisp.org>
16062
16063         Mark 'raise' obsolete.
16064         * modules/raise (Status, Notice): New sections.
16065         (Include): Specify <signal.h>.
16066         * modules/stdio (Depends-on): Add raise.
16067         * modules/write (Depends-on): Likewise.
16068
16069 2008-11-02  Bruno Haible  <bruno@clisp.org>
16070
16071         Mark 'memset' obsolete.
16072         * modules/memset (Status, Notice): New sections.
16073
16074 2008-11-02  Bruno Haible  <bruno@clisp.org>
16075
16076         Mark 'memmove' obsolete.
16077         * modules/memmove (Status, Notice): New sections.
16078         * modules/argp (Depends-on): Add memmove.
16079         * modules/argz (Depends-on): Likewise.
16080         * modules/canonicalize (Depends-on): Likewise.
16081         * modules/canonicalize-lgpl (Depends-on): Likewise.
16082         * modules/fts (Depends-on): Likewise.
16083         * modules/getcwd (Depends-on): Likewise.
16084         * modules/human (Depends-on): Likewise.
16085         * modules/regex (Depends-on): Likewise.
16086         * modules/striconveh (Depends-on): Likewise.
16087         * modules/trim (Depends-on): Likewise.
16088         * modules/unistr/u8-move (Depends-on): Likewise.
16089         * modules/unistr/u16-move (Depends-on): Likewise.
16090         * modules/unistr/u32-move (Depends-on): Likewise.
16091
16092 2008-11-02  Bruno Haible  <bruno@clisp.org>
16093
16094         Mark 'memcpy' obsolete.
16095         * modules/memcpy (Status, Notice): New sections.
16096
16097 2008-11-02  Bruno Haible  <bruno@clisp.org>
16098
16099         Mark 'memcmp' obsolete.
16100         * modules/memcmp (Status, Notice): New sections.
16101         * modules/argmatch (Depends-on): Add memchr.
16102         * modules/backupfile (Depends-on): Likewise.
16103         * modules/c-strcasestr (Depends-on): Likewise.
16104         * modules/crypto/des (Depends-on): Likewise.
16105         * modules/csharpcomp (Depends-on): Likewise.
16106         * modules/fnmatch (Depends-on): Likewise.
16107         * modules/git-merge-changelog (Depends-on): Likewise.
16108         * modules/isnand (Depends-on): Likewise.
16109         * modules/isnand-nolibm (Depends-on): Likewise.
16110         * modules/isnanf (Depends-on): Likewise.
16111         * modules/isnanf-nolibm (Depends-on): Likewise.
16112         * modules/isnanl (Depends-on): Likewise.
16113         * modules/isnanl-nolibm (Depends-on): Likewise.
16114         * modules/mbchar (Depends-on): Likewise.
16115         * modules/memcoll (Depends-on): Likewise.
16116         * modules/quotearg (Depends-on): Likewise.
16117         * modules/regex (Depends-on): Likewise.
16118         * modules/relocatable-prog (Depends-on): Likewise.
16119         * modules/same (Depends-on): Likewise.
16120         * modules/signbit (Depends-on): Likewise.
16121         * modules/strcasestr-simple (Depends-on): Likewise.
16122         * modules/unictype/gen-ctype (Depends-on): Likewise.
16123         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
16124         * modules/uniname/uniname (Depends-on): Likewise.
16125         * modules/unistr/u8-cmp (Depends-on): Likewise.
16126
16127 2008-11-02  Bruno Haible  <bruno@clisp.org>
16128
16129         Mark 'memchr' obsolete.
16130         * modules/memchr (Status, Notice): New sections.
16131         * modules/argp (Depends-on): Add memchr.
16132         * modules/base64 (Depends-on): Likewise.
16133         * modules/c-strcasestr (Depends-on): Likewise.
16134         * modules/chdir-long (Depends-on): Likewise.
16135         * modules/fnmatch (Depends-on): Likewise.
16136         * modules/getsubopt (Depends-on): Likewise.
16137         * modules/git-merge-changelog (Depends-on): Likewise.
16138         * modules/glob (Depends-on): Likewise.
16139         * modules/strcasestr-simple (Depends-on): Likewise.
16140         * modules/strnlen (Depends-on): Likewise.
16141
16142 2008-11-02  Bruno Haible  <bruno@clisp.org>
16143
16144         Mark 'atexit' obsolete.
16145         * modules/atexit (Status, Notice): New sections.
16146         * modules/chdir-long (Depends-on): Add atexit.
16147         * modules/wait-process (Depends-on): Likewise.
16148
16149 2008-11-02  Bruno Haible  <bruno@clisp.org>
16150
16151         * gnulib-tool: New option --with-obsolete.
16152         (func_usage): Document it.
16153         (func_modules_transitive_closure): Drop obsolete dependencies if
16154         incobsolete is not true.
16155         (func_import): Read and save the incobsolete variable to the cache.
16156
16157 2008-11-02  Bruno Haible  <bruno@clisp.org>
16158
16159         * modules/TEMPLATE-EXTENDED: New field 'Status'.
16160         * gnulib-tool: New option --extract-status.
16161         (func_usage): Document it.
16162         (sed_extract_prog): Recognize it.
16163         (func_get_status): New function.
16164
16165 2008-10-30  Simon Josefsson  <simon@josefsson.org>
16166
16167         * modules/sockets (License): Change from LGPL to LGPLv2+.
16168
16169 2008-10-28  Simon Josefsson  <simon@josefsson.org>
16170
16171         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
16172
16173 2008-10-28  Simon Josefsson  <simon@josefsson.org>
16174
16175         * MODULES.html.sh (Support for systems lacking POSIX:2001):
16176         Mention times and sys_times.
16177         * modules/sys_times, modules/sys_times-tests: New modules.
16178         * modules/times, modules/times-tests: Likewise
16179         * m4/sys_times_h.m4: New file.
16180         * lib/sys_times.in.h: Likewise
16181         * lib/times.c: Likewise.
16182         * tests/test-sys_times.c: Likewise.
16183         * tests/test-times.c: Likewise.
16184         * doc/posix-headers/sys_times.texi: Update.
16185         * doc/posix-functions/times.texi: Update.
16186
16187 2008-10-28  Jim Meyering  <meyering@redhat.com>
16188
16189         * modules/tempname (Depends-on): Add lstat.
16190
16191         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
16192
16193 2008-10-28  Simon Josefsson  <simon@josefsson.org>
16194
16195         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
16196         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
16197         using idiom used elsewhere in gnulib.
16198
16199 2008-10-27  Jim Meyering  <meyering@redhat.com>
16200
16201         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
16202
16203 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16204
16205         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
16206         TESTS_ENVIRONMENT, for shell scripts that needs to call built
16207         programs.
16208         * tests/test-argp-2.sh: Use $EXEEXT when needed.
16209
16210 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16211
16212         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
16213
16214 2008-10-27  Bruno Haible  <bruno@clisp.org>
16215
16216         * tests/test-lstat.c: Include <stdio.h>.
16217
16218 2008-10-27  Simon Josefsson  <simon@josefsson.org>
16219
16220         * modules/lstat-tests: New module.
16221         * tests/test-lstat.c: New file.
16222
16223 2008-10-26  Jim Meyering  <meyering@redhat.com>
16224
16225         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
16226
16227 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16228             Bruno Haible  <bruno@clisp.org>
16229
16230         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
16231         * modules/configmake (Include): Add a note that the include must come
16232         after all system headers.
16233         * lib/javaversion.c: Include configmake.h after all other includes.
16234
16235 2008-10-26  Bruno Haible  <bruno@clisp.org>
16236
16237         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
16238         HAVE_STRUCT_RANDOM_DATA to 1.
16239         (gl_STDLIB_H): Simplify.
16240
16241 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16242
16243         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
16244         substitute HAVE_STRUCT_RANDOM_DATA.
16245         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
16246         random_data.
16247         * modules/stdlib (Makefile.am): Substitute
16248         HAVE_STRUCT_RANDOM_DATA.
16249
16250 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16251
16252         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
16253         * doc/gnulib-intro.texi (Copyright): Likewise.
16254
16255 2008-10-26  Simon Josefsson  <simon@josefsson.org>
16256
16257         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
16258         findings.
16259
16260 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
16261             Bruno Haible  <bruno@clisp.org>
16262
16263         * lib/unistd.in.h: Include <winsock2.h>.
16264         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
16265         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
16266         Provide dummy declarations.
16267         (gethostname): Override.
16268         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
16269         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
16270         gl_PREREQ_SYS_H_WINSOCK2.
16271         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
16272         * doc/posix-functions/gethostname.texi: More details.
16273
16274 2008-10-25  Bruno Haible  <bruno@clisp.org>
16275
16276         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
16277         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
16278         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
16279
16280         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
16281         here ...
16282         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
16283         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
16284         gl_UNISTD_H_DEFAULTS.
16285
16286 2008-10-25  Eric Blake  <ebb9@byu.net>
16287
16288         signbit: avoid spurious compiler failure
16289         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
16290         declarations inside function.
16291
16292 2008-10-24  Simon Josefsson  <simon@josefsson.org>
16293             Bruno Haible  <bruno@clisp.org>
16294
16295         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
16296         * modules/random_r (Depends-on): Add stdint.
16297
16298 2008-10-24  Bruno Haible  <bruno@clisp.org>
16299
16300         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
16301         Eggert.
16302         * modules/strerror (License): Likewise.
16303
16304 2008-10-24  Jim Meyering  <meyering@redhat.com>
16305
16306         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
16307         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
16308
16309 2008-10-24  Eric Blake  <ebb9@byu.net>
16310
16311         getgroups: fix compilation when getgroups is available
16312         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
16313         but with <config.h> override of getgroups disabled.
16314
16315 2008-10-24  Simon Josefsson  <simon@josefsson.org>
16316
16317         * doc/gnulib.texi (Header files): Add note about C++ problems.
16318         Explained by Bruno Haible <bruno@clisp.org>.
16319
16320 2008-10-23  Bruno Haible  <bruno@clisp.org>
16321
16322         Define a dummy SA_NODEFER macro on Interix.
16323         * lib/signal.in.h (SA_NODEFER): Define fallback.
16324         Reported by Aleksey Cheusov <cheusov@tut.by> via
16325         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
16326
16327 2008-10-23  Bruno Haible  <bruno@clisp.org>
16328
16329         * modules/freadahead (License): Change to LGPLv2+.
16330         Suggested by Simon Josefsson.
16331
16332 2008-10-23  Jim Meyering  <meyering@redhat.com>
16333
16334         random_r: new module
16335         * modules/random_r: New file.
16336         * m4/random_r.m4: New file.
16337         * lib/random_r.c: New file, from glibc.
16338         * modules/random_r-tests: New file.
16339         * tests/test-random_r.c: New file.
16340         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
16341          Declare.
16342         (RAND_MAX): Define.
16343         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
16344         * modules/stdlib: Substitute them, too.
16345         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
16346         * doc/glibc-functions/initstate_r.texi: Mention the new module.
16347         * doc/glibc-functions/random_r.texi: Likewise.
16348         * doc/glibc-functions/setstate_r.texi: Likewise.
16349         * doc/glibc-functions/srandom_r.texi: Likewise.
16350         * config/srclist.txt: Mention it.
16351
16352 2008-10-23  David Lutterkort  <lutter@redhat.com>
16353
16354         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
16355         link requirement
16356
16357 2008-10-23  Jim Meyering  <meyering@redhat.com>
16358
16359         selinux-h: mark parameters of stub functions as intentionally unused
16360         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
16361         * lib/se-context.in.h: Likewise.
16362
16363 2008-10-22  Simon Josefsson  <simon@josefsson.org>
16364
16365         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
16366
16367 2008-10-22  Simon Josefsson  <simon@josefsson.org>
16368
16369         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
16370
16371 2008-10-22  Eric Blake  <ebb9@byu.net>
16372
16373         glthread/thread: avoid compiler warning
16374         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
16375         Add unreachable abort to silence compiler.
16376
16377 2008-10-22  Eric Blake  <ebb9@byu.net>
16378
16379         netdb: also supply struct addrinfo for cygwin 1.5.x
16380         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
16381         older cygwin.
16382         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
16383         cygwin.
16384         * doc/posix-headers/netdb.texi (netdb.h): Document this.
16385
16386 2008-10-22  Bruno Haible  <bruno@clisp.org>
16387
16388         * users.txt: Update entry about pspp.
16389
16390 2008-10-21  Bruno Haible  <bruno@clisp.org>
16391
16392         Simplification.
16393         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
16394         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
16395
16396         Simplification.
16397         * lib/ioctl.c (ioctl): Don't undefine.
16398         * lib/socket.c (socket): Don't undefine.
16399
16400         Remove unused module indicator macros.
16401         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
16402         GNULIB_$1 as a C macro.
16403
16404         * doc/posix-functions/close.texi: Undo last change.
16405         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
16406         Windows platforms.
16407
16408 2008-10-21  Bruno Haible  <bruno@clisp.org>
16409
16410         Add gethostname() declaration to <unistd.h>.
16411         * lib/unistd.in.h (gethostname): New declaration.
16412         * lib/gethostname.c: Include <unistd.h>.
16413         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
16414         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
16415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
16416         and HAVE_GETHOSTNAME.
16417         * modules/gethostname (Depends-on): Add unistd.
16418         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16419         (Include): Specify <unistd.h>.
16420         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
16421         HAVE_GETHOSTNAME.
16422         * tests/test-gethostname.c: Include <unistd.h> first.
16423
16424 2008-10-21  Bruno Haible  <bruno@clisp.org>
16425
16426         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
16427         * modules/select-tests (Depends-on): Likewise.
16428         Reported by Simon Josefsson.
16429
16430 2008-10-21  Simon Josefsson  <simon@josefsson.org>
16431
16432         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
16433         * lib/accept.c: New file, based on winsock.c.
16434         * lib/bind.c: New file, based on winsock.c.
16435         * lib/connect.c: New file, based on winsock.c.
16436         * lib/getpeername.c: New file, based on winsock.c.
16437         * lib/getsockname.c: New file, based on winsock.c.
16438         * lib/getsockopt.c: New file, based on winsock.c.
16439         * lib/ioctl.c: New file, based on winsock.c.
16440         * lib/listen.c: New file, based on winsock.c.
16441         * lib/recv.c: New file, based on winsock.c.
16442         * lib/recvfrom.c: New file, based on winsock.c.
16443         * lib/send.c: New file, based on winsock.c.
16444         * lib/sendto.c: New file, based on winsock.c.
16445         * lib/setsockopt.c: New file, based on winsock.c.
16446         * lib/shutdown.c: New file, based on winsock.c.
16447         * lib/socket.c: New file, based on winsock.c.
16448         * lib/w32sock.h: New file, based on winsock.c.
16449         * lib/winsock.c: Remove file.
16450         * modules/accept: Likewise.
16451         * modules/bind: Likewise.
16452         * modules/connect: Likewise.
16453         * modules/getpeername: Likewise.
16454         * modules/getsockname: Likewise.
16455         * modules/getsockopt: Likewise.
16456         * modules/ioctl: Likewise.
16457         * modules/listen: Likewise.
16458         * modules/recv: Likewise.
16459         * modules/recvfrom: Likewise.
16460         * modules/send: Likewise.
16461         * modules/sendto: Likewise.
16462         * modules/setsockopt: Likewise.
16463         * modules/shutdown: Likewise.
16464         * modules/socket: Use socket.c instead of winsock.c.
16465         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
16466         * doc/posix-functions/accept.texi: Doc fix.
16467         * doc/posix-functions/bind.texi: Doc fix.
16468         * doc/posix-functions/close.texi: Doc fix.
16469         * doc/posix-functions/connect.texi: Doc fix.
16470         * doc/posix-functions/getpeername.texi: Doc fix.
16471         * doc/posix-functions/getsockname.texi: Doc fix.
16472         * doc/posix-functions/getsockopt.texi: Doc fix.
16473         * doc/posix-functions/ioctl.texi: Doc fix.
16474         * doc/posix-functions/listen.texi: Doc fix.
16475         * doc/posix-functions/recv.texi: Doc fix.
16476         * doc/posix-functions/recvfrom.texi: Doc fix.
16477         * doc/posix-functions/send.texi: Doc fix.
16478         * doc/posix-functions/sendto.texi: Doc fix.
16479         * doc/posix-functions/setsockopt.texi: Doc fix.
16480         * doc/posix-functions/shutdown.texi: Doc fix.
16481         * doc/posix-functions/socket.texi: Doc fix.
16482
16483 2008-10-20  Bruno Haible  <bruno@clisp.org>
16484
16485         Take into account the role of SIGABRT_COMPAT on Windows 2008.
16486         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
16487         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
16488         as an alias for SIGABRT.
16489         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
16490         (sigaction): Map it to SIGABRT.
16491         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
16492
16493 2008-10-20  Bruno Haible  <bruno@clisp.org>
16494
16495         * lib/fts.c: Don't include lstat.h.
16496         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
16497
16498         Move the lstat() declaration to <sys/stat.h>.
16499         * lib/lstat.h: Remove file.
16500         * lib/sys_stat.in.h: Add special invocation convention.
16501         (lstat): New declaration.
16502         * lib/lstat.c (orig_lstat): New function.
16503         (rpl_lstat): Use orig_lstat instead of lstat.
16504         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
16505         AC_C_INLINE. Set REPLACE_LSTAT.
16506         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
16507         and REPLACE_LSTAT.
16508         * modules/lstat (Files): Remove lib/lstat.h.
16509         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
16510         (Include): Specify <sys/stat.h> instead of lstat.h.
16511         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
16512         REPLACE_LSTAT.
16513         * NEWS: Mention the change.
16514
16515 2008-10-20  Bruno Haible  <bruno@clisp.org>
16516
16517         * modules/posix_spawn-tests: New file.
16518         * tests/test-posix_spawn3.c: New file.
16519
16520 2008-10-20  Bruno Haible  <bruno@clisp.org>
16521
16522         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
16523         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
16524         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
16525         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
16526         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
16527
16528 2008-10-20  Bruno Haible  <bruno@clisp.org>
16529
16530         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
16531         of posix_spawn on AIX 5.3.
16532
16533 2008-10-20  Bruno Haible  <bruno@clisp.org>
16534
16535         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
16536
16537 2008-10-20  Bruno Haible  <bruno@clisp.org>
16538
16539         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
16540         of AC_LANG_PROGRAM.
16541
16542 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16543
16544         * lib/netdb.in.h: Don't define GNU specific constants until they
16545         are supported or needed.  Reported by Bruno Haible
16546         <bruno@clisp.org>.
16547
16548 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16549
16550         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
16551
16552 2008-10-20  Simon Josefsson  <simon@josefsson.org>
16553
16554         * lib/getaddrinfo.h: Remove file.
16555         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
16556         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
16557         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
16558         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
16559         * modules/netdb: Substitute GNULIB_GETADDRINFO.
16560         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
16561         * tests/test-getaddrinfo.c: Likewise.
16562         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
16563         * NEWS: Mention change.
16564
16565 2008-10-19  Bruno Haible  <bruno@clisp.org>
16566
16567         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
16568
16569 2008-10-19  Bruno Haible  <bruno@clisp.org>
16570
16571         * lib/wait-process.c: Include simply <sys/wait.h>.
16572         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
16573         WIFSTOPPED): Remove fallback definitions.
16574         * modules/wait-process (Depends-on): Add sys_wait.
16575
16576         New module 'sys_wait'.
16577         * modules/sys_wait: New file.
16578         * lib/sys_wait.in.h: New file, partially copied from
16579         lib/wait-process.c.
16580         * m4/sys_wait_h.m4: New file.
16581         * doc/posix-headers/sys_wait.texi: Mention the new module.
16582
16583 2008-10-19  Bruno Haible  <bruno@clisp.org>
16584
16585         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
16586
16587 2008-10-19  Bruno Haible  <bruno@clisp.org>
16588
16589         Assume that waitpid() fills an 'int' status, not a 'union wait'.
16590         * lib/wait-process.c (WAIT_T): Remove type.
16591         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
16592         (wait_subprocess): Update.
16593
16594 2008-10-19  Bruno Haible  <bruno@clisp.org>
16595
16596         New module 'atoll'.
16597         * modules/atoll: New file.
16598         * lib/stdlib.in.h (atoll): New declaration.
16599         * lib/atoll.c: New file, from glibc with modifications.
16600         * m4/atoll.m4: New file.
16601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
16602         HAVE_ATOLL.
16603         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
16604         * doc/posix-functions/atoll.texi: Mention the new module.
16605
16606 2008-10-19  Bruno Haible  <bruno@clisp.org>
16607
16608         Add strtoull() declaration to <stdlib.h>.
16609         * lib/stdlib.in.h (strtoull): New declaration.
16610         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
16611         Set HAVE_STRTOULL.
16612         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
16613         HAVE_STRTOULL.
16614         * modules/strtoull (Depends-on): Add stdlib.
16615         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16616         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
16617         HAVE_STRTOULL.
16618
16619 2008-10-19  Bruno Haible  <bruno@clisp.org>
16620
16621         Add strtoll() declaration to <stdlib.h>.
16622         * lib/stdlib.in.h (strtoll): New declaration.
16623         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
16624         Set HAVE_STRTOLL.
16625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
16626         HAVE_STRTOLL.
16627         * modules/strtoll (Depends-on): Add stdlib.
16628         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16629         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
16630
16631 2008-10-19  Bruno Haible  <bruno@clisp.org>
16632
16633         * modules/bcopy (Depends-on): Add strings.
16634         (Include): Specify <strings.h>.
16635
16636 2008-10-19  Bruno Haible  <bruno@clisp.org>
16637
16638         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
16639
16640 2008-10-19  Bruno Haible  <bruno@clisp.org>
16641
16642         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
16643         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
16644         mingw.
16645
16646 2008-10-19  Bruno Haible  <bruno@clisp.org>
16647
16648         * lib/atanl.c: Don't include isnanl.h.
16649         * lib/cosl.c: Likewise.
16650         * lib/ldexpl.c: Likewise.
16651         * lib/logl.c: Likewise.
16652         * lib/sinl.c: Likewise.
16653         * lib/sqrtl.c: Likewise.
16654         * lib/tanl.c: Likewise.
16655
16656         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
16657         * lib/isnanf.h: Remove file.
16658         * lib/isnand.h: Remove file.
16659         * lib/isnanl.h: Remove file.
16660         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
16661         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
16662         macros.
16663         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
16664         HAVE_ISNANF, don't define it as a C macro.
16665         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
16666         HAVE_ISNAND, don't define it as a C macro.
16667         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
16668         HAVE_ISNANL, don't define it as a C macro.
16669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
16670         HAVE_ISNAN[FDL].
16671         * modules/isnanf (Files): Remove lib/isnanf.h.
16672         (Depends-on): Add math.
16673         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16674         (Include): Specify <math.h> instead of isnanf.h.
16675         * modules/isnand (Files): Remove lib/isnand.h.
16676         (Depends-on): Add math.
16677         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16678         (Include): Specify <math.h> instead of isnand.h.
16679         * modules/isnanl (Files): Remove lib/isnanl.h.
16680         (Depends-on): Add math.
16681         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16682         (Include): Specify <math.h> instead of isnanl.h.
16683         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
16684         HAVE_ISNAN[FDL].
16685         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
16686         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
16687         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
16688         * NEWS: Mention the change.
16689
16690 2008-10-18  Bruno Haible  <bruno@clisp.org>
16691
16692         Add getusershell(), setusershell(), endusershell() declarations to
16693         <unistd.h>.
16694         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
16695         declarations.
16696         * lib/getusershell.c: Include unistd.h.
16697         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
16698         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
16699         HAVE_GETUSERSHELL.
16700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
16701         and HAVE_GETUSERSHELL.
16702         * modules/getusershell (Depends-on): Add unistd, extensions.
16703         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16704         (Include): Specify <unistd.h>.
16705         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
16706         HAVE_GETUSERSHELL.
16707
16708 2008-10-18  Bruno Haible  <bruno@clisp.org>
16709
16710         Add a getloadavg() declaration to <stdlib.h>.
16711         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
16712         getloadavg declaration.
16713         (getloadavg): New declaration.
16714         * lib/getloadavg.c: Include <stdlib.h> first.
16715         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
16716         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
16717         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
16718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
16719         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
16720         * modules/getloadavg (Depends-on): Add stdlib, extensions.
16721         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16722         (Include): Specify <stdlib.h>.
16723         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
16724         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
16725
16726 2008-10-18  Bruno Haible  <bruno@clisp.org>
16727
16728         * lib/dirchownmod.c: Don't include lchmod.h.
16729
16730         Move the lchmod() declaration to <sys/stat.h>.
16731         * lib/lchmod.h: Remove file.
16732         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
16733         (lchmod): New declaration, moved here from lib/lchown.h.
16734         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
16735         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
16736         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
16737         and HAVE_LCHMOD.
16738         * modules/lchmod (Files): Remove lib/lchmod.h.
16739         (Depends-on): Add sys_stat, extensions.
16740         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
16741         (Include): Specify <sys/stat.h> instead of lchmod.h.
16742         * modules/sys_stat (Depends-on): Add link-warning.
16743         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
16744         definition of GL_LINK_WARNING.
16745         * NEWS: Mention the change.
16746
16747 2008-10-18  Bruno Haible  <bruno@clisp.org>
16748
16749         * lib/fchdir.c: Don't include dirfd.h.
16750         * lib/fts.c: Likewise.
16751         * lib/getcwd.c: Likewise.
16752         * lib/glob.c: Likewise.
16753
16754         Move the dirfd() declaration to <dirent.h>.
16755         * lib/dirfd.h: Remove file.
16756         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
16757         (dirfd): New declaration.
16758         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
16759         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
16760         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
16761         HAVE_DECL_DIRFD.
16762         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
16763         HAVE_DECL_DIRFD.
16764         * modules/dirfd (Files): Remove lib/dirfd.h.
16765         (Depends-on): Add dirent, extensions.
16766         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
16767         (Include): Specify <dirent.h> instead of dirfd.h.
16768         * modules/dirent (Depends-on): Add link-warning.
16769         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
16770         definition of GL_LINK_WARNING.
16771         * NEWS: Mention the change.
16772
16773 2008-10-18  Bruno Haible  <bruno@clisp.org>
16774
16775         Move the euidaccess() declaration to <unistd.h>.
16776         * lib/euidaccess.h: Remove file.
16777         * lib/unistd.in.h (euidaccess): New declaration.
16778         * lib/euidaccess.c: Don't include euidaccess.h.
16779         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
16780         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
16781         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
16782         and HAVE_EUIDACCESS.
16783         * modules/euidaccess (Files): Remove lib/euidaccess.h.
16784         (Depends-on): Add unistd.
16785         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16786         (Include): Specify <unistd.h> instead of euidaccess.h.
16787         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
16788         HAVE_EUIDACCESS.
16789         * NEWS: Mention the change.
16790
16791 2008-10-18  Bruno Haible  <bruno@clisp.org>
16792
16793         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
16794
16795         Move the getdomainname() declaration to <unistd.h>.
16796         * lib/getdomainname.h: Remove file.
16797         * lib/unistd.in.h (getdomainname): New declaration.
16798         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
16799         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
16800         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
16801         HAVE_GETDOMAINNAME.
16802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16803         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
16804         * modules/getdomainname (Files): Remove lib/getdomainname.h.
16805         (Depends-on): Add unistd, extensions.
16806         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16807         (Includes): Specify <unistd.h> instead of getdomainname.h.
16808         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
16809         HAVE_GETDOMAINNAME.
16810         * NEWS: Mention the change.
16811
16812 2008-10-18  Bruno Haible  <bruno@clisp.org>
16813
16814         * modules/dirent: New file.
16815         * m4/dirent_h.m4: New file.
16816         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
16817         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
16818         * modules/fchdir (Files): Remove lib/dirent.in.h.
16819         (Depends-on): Add dirent.
16820         (Makefile.am): Move rules to modules/dirent.
16821         * doc/posix-headers/dirent.texi: Mention the new module.
16822
16823 2008-10-18  Bruno Haible  <bruno@clisp.org>
16824
16825         Avoid -Wunused-parameter warnings in public gnulib header files.
16826         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
16827         macro.
16828         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
16829
16830 2008-10-18  Bruno Haible  <bruno@clisp.org>
16831
16832         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
16833         * doc/glibc-functions/error.texi: Mention the module 'error'.
16834         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
16835         * doc/glibc-functions/getdomainname.texi: Mention the module
16836         'getdomainname'.
16837         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
16838         * doc/glibc-functions/getpagesize.texi: Mention the module
16839         'getpagesize'.
16840         * doc/glibc-functions/getusershell.texi: Mention the module
16841         'getusershell'.
16842         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
16843         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
16844         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
16845         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
16846         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
16847         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
16848         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
16849         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
16850         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
16851         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
16852         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
16853         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
16854         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
16855         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
16856
16857 2008-10-17  Bruno Haible  <bruno@clisp.org>
16858
16859         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
16860         HP-UX and IRIX, use -0.0L.
16861         * tests/test-ceill.c (minus_zero): Likewise.
16862         * tests/test-floorl.c (minus_zero): Likewise.
16863         * tests/test-frexpl.c (minus_zero): Likewise.
16864         * tests/test-isnan.c (minus_zerol): Likewise.
16865         * tests/test-isnanl.h (minus_zero): Likewise.
16866         * tests/test-ldexpl.c (minus_zero): Likewise.
16867         * tests/test-roundl.c (minus_zero): Likewise.
16868         * tests/test-signbit.c (minus_zerol): Likewise.
16869         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16870         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16871         * tests/test-truncl.c (minus_zero): Likewise.
16872         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16873         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16874         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
16875         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16876
16877 2008-10-17  Bruno Haible  <bruno@clisp.org>
16878
16879         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
16880         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
16881         that it gets activated only for gcc >= 3.0.
16882         * lib/dirent.in.h: Likewise.
16883         * lib/errno.in.h: Likewise.
16884         * lib/fcntl.in.h: Likewise.
16885         * lib/float.in.h: Likewise.
16886         * lib/iconv.in.h: Likewise.
16887         * lib/inttypes.in.h: Likewise.
16888         * lib/locale.in.h: Likewise.
16889         * lib/math.in.h: Likewise.
16890         * lib/netdb.in.h: Likewise.
16891         * lib/netinet_in.in.h: Likewise.
16892         * lib/search.in.h: Likewise.
16893         * lib/signal.in.h: Likewise.
16894         * lib/spawn.in.h: Likewise.
16895         * lib/stdarg.in.h: Likewise.
16896         * lib/stdint.in.h: Likewise.
16897         * lib/stdio.in.h: Likewise.
16898         * lib/stdlib.in.h: Likewise.
16899         * lib/string.in.h: Likewise.
16900         * lib/strings.in.h: Likewise.
16901         * lib/sys_file.in.h: Likewise.
16902         * lib/sys_ioctl.in.h: Likewise.
16903         * lib/sys_select.in.h: Likewise.
16904         * lib/sys_socket.in.h: Likewise.
16905         * lib/sys_stat.in.h: Likewise.
16906         * lib/sys_time.in.h: Likewise.
16907         * lib/sysexits.in.h: Likewise.
16908         * lib/time.in.h: Likewise.
16909         * lib/unistd.in.h: Likewise.
16910         * lib/wchar.in.h: Likewise.
16911         * lib/wctype.in.h: Likewise.
16912         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16913
16914 2008-10-17  Jim Meyering  <meyering@redhat.com>
16915
16916         ignore-value: don't depend on inline module
16917         * modules/ignore-value (Depends-on): Remove 'inline'.
16918         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
16919         Suggestion from Bruno Haible.
16920
16921 2008-10-17  Bruno Haible  <bruno@clisp.org>
16922
16923         New implementation of condition variables for Win32.
16924         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
16925         (gl_linked_waitqueue_t): New type.
16926         (gl_cond_t): Use it.
16927         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
16928         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
16929         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
16930         (glthread_cond_init_func, glthread_cond_wait_func,
16931         glthread_cond_timedwait_func, glthread_cond_signal_func,
16932         glthread_cond_broadcast_func, glthread_cond_destroy_func):
16933         Reimplemented on the basis of gl_linked_waitqueue_t.
16934         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
16935         gl_waitqueue_t.
16936         (gl_rwlock_t): Update.
16937         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
16938
16939 2008-10-17  Simon Josefsson  <simon@josefsson.org>
16940
16941         * modules/recvfrom (Depends-on): Add dependency on getpeername.
16942         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
16943
16944 2008-10-17  Jim Meyering  <meyering@redhat.com>
16945
16946         ignore-value: new module
16947         * modules/ignore-value: New file.
16948         * lib/ignore-value.h: New file.
16949         * MODULES.html.sh (Compiler warning management): New section,
16950         just for this module.  More to come.
16951
16952 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
16953
16954         open-safer.c: avoid 'signed and unsigned in conditional...' warning
16955         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
16956         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
16957
16958 2008-10-16  Jim Meyering  <meyering@redhat.com>
16959
16960         openat-die.c: avoid 'no previous prototype' warning
16961         * lib/openat-die.c: Include "openat.h".
16962         Reported by Reuben Thomas <rrt@sc3d.org>.
16963
16964 2008-10-16  Simon Josefsson  <simon@josefsson.org>
16965
16966         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
16967         * lib/netdb.in.h: Fix typo.
16968         Reported by Bruno Haible  <bruno@clisp.org>
16969
16970         * lib/netdb.in.h: Include sys/socket.h for platforms without
16971         netdb.h, to get structures like hostent on MinGW.
16972         * modules/netdb (Depends-on): Add sys_socket.
16973
16974 2008-10-15  Simon Josefsson  <simon@josefsson.org>
16975
16976         * modules/netdb, modules/netdb-tests: New file.
16977         * m4/netdb_h.m4: New file.
16978         * lib/netdb.in.h: Add, currently just an empty file pending
16979         definitions.
16980         * tests/test-netdb.c: New file.
16981         * doc/posix-headers/netdb.texi: Mention that we replace it if
16982         needed.
16983         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16984         netdb.
16985
16986 2008-10-15  Simon Josefsson  <simon@josefsson.org>
16987
16988         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
16989         with code.
16990
16991 2008-10-13  Bruno Haible  <bruno@clisp.org>
16992
16993         * lib/glthread/cond.c (glthread_cond_wait_func,
16994         glthread_cond_timedwait_func): Add a comment.
16995
16996 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
16997
16998         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
16999         * tests/test-select.c: Likewise,
17000
17001 2008-10-13  Bruno Haible  <bruno@clisp.org>
17002
17003         * lib/glthread/cond.c (glthread_cond_wait_func,
17004         glthread_cond_timedwait_func): Fix variable name.
17005         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17006
17007 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
17008
17009         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
17010         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
17011         struct sockaddr.sa_len.
17012         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
17013
17014 2008-10-13  Simon Josefsson  <simon@josefsson.org>
17015
17016         * build-aux/pmccabe2html: Add css and css_url parameters.
17017
17018 2008-10-12  Bruno Haible  <bruno@clisp.org>
17019
17020         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
17021         calling aclx_get.
17022         Reported by Rainer Tammer <tammer@tammer.net>.
17023
17024 2008-10-12  Bruno Haible  <bruno@clisp.org>
17025
17026         Use msvcrt aware primitives for creation/termination of Win32 threads.
17027         * lib/glthread/thread.c: Include <process.h>.
17028         (glthread_create_func): Use _beginthreadex instead of CreateThread.
17029         (wrapper_func): Update signature.
17030         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
17031
17032 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
17033             Bruno Haible  <bruno@clisp.org>
17034
17035         Provide a Win32 implementation of the 'cond' module.
17036         * lib/glthread/cond.h [USE_WIN32]: New implementation.
17037         * lib/glthread/cond.c (glthread_cond_init_func,
17038         glthread_cond_wait_func, glthread_cond_timedwait_func,
17039         glthread_cond_signal_func, glthread_cond_broadcast_func,
17040         glthread_cond_destroy_func) [USE_WIN32]: New functions.
17041         * modules/cond (Dependencies): Add gettimeofday.
17042
17043 2008-10-11  Bruno Haible  <bruno@clisp.org>
17044
17045         Make sleep work on older versions of mingw.
17046         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
17047         only whether it exists.
17048         * doc/posix-functions/sleep.texi: Mention the problem with older
17049         versions of mingw.
17050
17051 2008-10-11  Bruno Haible  <bruno@clisp.org>
17052
17053         New module 'shutdown'.
17054         * modules/shutdown: New file.
17055         * lib/sys_socket.in.h (shutdown): New declaration.
17056         * lib/winsock.c (shutdown): New function.
17057         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17058         GNULIB_SHUTDOWN.
17059         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
17060         * doc/posix-functions/shutdown.texi: Document the new module.
17061
17062 2008-10-11  Jim Meyering  <meyering@redhat.com>
17063
17064         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
17065
17066 2008-10-11  Bruno Haible  <bruno@clisp.org>
17067
17068         New module 'fclose'.
17069         * modules/fclose: New file.
17070         * lib/stdio.in.h (fclose): New declaration.
17071         * lib/fclose.c: New file.
17072         * m4/fclose.m4: New file.
17073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
17074         REPLACE_FCLOSE.
17075         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
17076         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
17077         REPLACE_FCLOSE.
17078         * modules/close (Depends-on): fclose.
17079         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
17080
17081 2008-10-11  Bruno Haible  <bruno@clisp.org>
17082
17083         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
17084         set errno and don't call _close.
17085
17086 2008-10-10  Bruno Haible  <bruno@clisp.org>
17087
17088         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
17089         ACL, not afterwards. Fixes test failure on Cygwin.
17090
17091 2008-10-09  Ben Pfaff  <blp@gnu.org>
17092
17093         * build-aux/announce-gen: Fix gnulib version related part of usage
17094         message.  Die with a useful error message if no tarballs are
17095         found.
17096
17097 2008-10-10  Jim Meyering  <meyering@redhat.com>
17098
17099         bootstrap: use git's --depth=N option only if it's supported
17100         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
17101         recognize the --depth option.  Reported by Pádraig Brady.
17102
17103 2008-10-09  Bruno Haible  <bruno@clisp.org>
17104
17105         New module 'ioctl'.
17106         * modules/ioctl: New file.
17107         * lib/sys_socket.in.h (ioctl): Remove declaration.
17108         * lib/winsock.c: Include <sys/ioctl.h>.
17109         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
17110         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
17111         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
17112         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
17113         * doc/posix-functions/ioctl.texi: Mention the new module.
17114
17115 2008-10-09  Bruno Haible  <bruno@clisp.org>
17116
17117         New module 'sys_ioctl'.
17118         * lib/sys_ioctl.in.h: New file.
17119         * m4/sys_ioctl_h.m4: New file.
17120         * modules/sys_ioctl: New file.
17121         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
17122
17123 2008-10-09  Bruno Haible  <bruno@clisp.org>
17124
17125         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
17126         * lib/winsock.c: Include <stdarg.h>.
17127         (rpl_ioctl): Change to second argument 'int' and then varargs.
17128
17129 2008-10-09  Bruno Haible  <bruno@clisp.org>
17130
17131         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
17132         when the sys_socket module is present and the system has <winsock2.h>.
17133
17134 2008-10-09  Bruno Haible  <bruno@clisp.org>
17135
17136         * doc/posix-functions/close.texi: Mention module 'close' instead of
17137         module 'sys_socket'.
17138
17139 2008-10-09  Bruno Haible  <bruno@clisp.org>
17140
17141         * doc/glibc-headers/sys_ioctl.texi: New file.
17142         * doc/gnulib.texi: Include it.
17143
17144 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17145             Bruno Haible  <bruno@clisp.org>
17146
17147         Combine the two replacements of 'close'.
17148         * lib/sys_socket.in.h (close): Define to a reminder to include
17149         <unistd.h>.
17150         (_gl_close_fd_maybe_socket): New declaration.
17151         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
17152         * lib/winsock.c (close): Remove undefinition.
17153         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
17154         needed for the gnulib module 'close'.
17155         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
17156         define to an error symbol or to a warning, if suitable.
17157         * lib/close.c: Include <sys/socket.h>.
17158         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
17159         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
17160         UNISTD_H_HAVE_WINSOCK2_H.
17161         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
17162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17163         UNISTD_H_HAVE_WINSOCK2_H.
17164         * modules/sys_socket (Files): Add m4/unistd_h.m4.
17165         (configure.ac): Set a module indicator.
17166         (Makefile.am): Substitute GNULIB_CLOSE.
17167         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
17168         * modules/poll-tests (Depends-on): Add close.
17169         * modules/select-tests (Depends-on): Likewise.
17170
17171 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17172             Bruno Haible  <bruno@clisp.org>
17173
17174         New module 'close'.
17175         * modules/close: New file.
17176         * lib/unistd.in.h (close): Move declaration out of the
17177         FCHDIR_REPLACEMENT scope.
17178         (_gl_unregister_fd): New declaration.
17179         * lib/close.c: New file.
17180         * lib/fchdir.c (rpl_close): Remove function.
17181         * m4/close.m4: New file.
17182         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
17183         close.
17184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
17185         REPLACE_CLOSE.
17186         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
17187         REPLACE_CLOSE.
17188         * modules/fchdir (Depends-on): Add close.
17189
17190 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17191             Bruno Haible  <bruno@clisp.org>
17192
17193         * lib/fcntl.in.h (open): Simplify conditionals.
17194         (_gl_register_fd): New declaration.
17195         * lib/fchdir.c (rpl_open): Remove function.
17196         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
17197         also.
17198         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
17199         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
17200         open.
17201
17202 2008-10-09  Jim Meyering  <meyering@redhat.com>
17203
17204         GNUmakefile: use the more name-space-friendly "_version"
17205         * top/GNUmakefile (_dummy): Update.
17206         (_version): Rename from "version".
17207
17208 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17209             Bruno Haible  <bruno@clisp.org>
17210
17211         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
17212         rpl_close.
17213         (_gl_register_fd): New function, extracted from rpl_open.
17214         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
17215         (rpl_open, rpl_opendir): Use _gl_register_fd.
17216
17217 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
17218
17219         Fix organization of 'open' replacement.
17220         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
17221         (gl_FUNC_OPEN): Use it.
17222         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
17223
17224 2008-10-08  Bruno Haible  <bruno@clisp.org>
17225
17226         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
17227
17228 2008-10-08  Simon Josefsson  <simon@josefsson.org>
17229
17230         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
17231         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
17232         listen).
17233
17234 2008-10-08  Eric Blake  <ebb9@byu.net>
17235
17236         GNUmakefile: add 'make version' target
17237         * top/GNUmakefile (_curr-ver): Split version update rules...
17238         (version): ...into a target.
17239
17240 2008-10-07  Bruno Haible  <bruno@clisp.org>
17241
17242         Use a more portable replacement expression for -0.0L.
17243         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
17244         instead of -0.0L. Fix m4 quotation.
17245
17246         * tests/test-signbit.c: Include <float.h>.
17247         (minus_zero): New variable.
17248         (test_signbitl): Use minus_zero instead of -zero.
17249         * modules/signbit-tests (Depends-on): Add float.
17250
17251         * tests/test-ceill.c: Include <float.h>.
17252         (zero): Remove variable.
17253         (minus_zero): New variable.
17254         (main): Use minus_zero instead of -zero.
17255         * modules/ceill-tests (Depends-on): Add float.
17256
17257         * tests/test-floorl.c: Include <float.h>.
17258         (zero): Remove variable.
17259         (minus_zero): New variable.
17260         (main): Use minus_zero instead of -zero.
17261         * modules/floorl-tests (Depends-on): Add float.
17262
17263         * tests/test-roundl.c: Include <float.h>.
17264         (zero): Remove variable.
17265         (minus_zero): New variable.
17266         (main): Use minus_zero instead of -zero.
17267         * modules/roundl-tests (Depends-on): Add float.
17268
17269         * tests/test-truncl.c: Include <float.h>.
17270         (zero): Remove variable.
17271         (minus_zero): New variable.
17272         (main): Use minus_zero instead of -zero.
17273         * modules/truncl-tests (Depends-on): Add float.
17274
17275         * tests/test-frexpl.c (zero): Remove variable.
17276         (minus_zero): New variable.
17277         (main): Use minus_zero instead of -zero.
17278         * modules/frexpl-tests (Depends-on): Add float.
17279
17280         * tests/test-isnan.c (zerol): Remove variable.
17281         (minus_zerol): New variable.
17282         (test_long_double): Use minus_zerol instead of -zerol.
17283         * modules/isnan-tests (Depends-on): Add float.
17284
17285         * tests/test-isnanl.h (zero): Remove variable.
17286         (minus_zero): New variable.
17287         (main): Use minus_zero instead of -zero.
17288         * modules/isnanl-nolibm-tests (Depends-on): Add float.
17289         * modules/isnanl-tests (Depends-on): Add float.
17290
17291         * tests/test-ldexpl.c (zero): Remove variable.
17292         (minus_zero): New variable.
17293         (main): Use minus_zero instead of -zero.
17294         * modules/ldexpl-tests (Depends-on): Add float.
17295
17296         * tests/test-snprintf-posix.h (zerol): Remove variable.
17297         (minus_zerol): New variable.
17298         (test_function): Use minus_zerol instead of -zerol.
17299         * modules/snprintf-posix-tests (Depends-on): Add float.
17300         * modules/vsnprintf-posix-tests (Depends-on): Add float.
17301
17302         * tests/test-sprintf-posix.h (zerol): Remove variable.
17303         (minus_zerol): New variable.
17304         (test_function): Use minus_zerol instead of -zerol.
17305         * modules/sprintf-posix-tests (Depends-on): Add float.
17306         * modules/vsprintf-posix-tests (Depends-on): Add float.
17307
17308         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
17309         (minus_zerol): New variable.
17310         (test_function): Use minus_zerol instead of -zerol.
17311         * modules/vasnprintf-posix-tests (Depends-on): Add float.
17312
17313         * tests/test-vasprintf-posix.c (zerol): Remove variable.
17314         (minus_zerol): New variable.
17315         (test_function): Use minus_zerol instead of -zerol.
17316         * modules/vasprintf-posix-tests (Depends-on): Add float.
17317
17318 2008-10-07  Simon Josefsson  <simon@josefsson.org>
17319
17320         * MODULES.html.sh (Support for building documentation): Mention
17321         pmccabe2html.  Sort entries.
17322
17323         Add pmccabe2html module, from gnupdf.
17324         * build-aux/pmccabe.css: New file.
17325         * build-aux/pmccabe2html: New file.
17326         * m4/pmccabe2html.m4: New file.
17327         * modules/pmccabe2html: New file.
17328
17329 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
17330
17331         flock: new module
17332         * MODULES.html.sh: Add to list of modules.
17333         * lib/flock.c: flock implementation for Windows and Unix systems
17334         which have fcntl.
17335         * doc/glibc-functions/flock.texi: Update documentation.
17336         * lib/sys_file.in.h: <sys/file.h> header file.
17337         * m4/flock.m4: M4 macros.
17338         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
17339         * modules/flock: flock module.
17340         * modules/flock-tests: flock tests module.
17341         * modules/sys_file: sys/file.h module.
17342         * tests/test-flock.c: test suite for flock.
17343
17344 2008-10-06  Jim Meyering  <meyering@redhat.com>
17345
17346         bootstrap: check for LT_INIT more portably still ;-)
17347         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
17348         Spotted by Bruno Haible.
17349
17350 2008-10-06  Eric Blake  <ebb9@byu.net>
17351
17352         test-signbit: avoid tripping Irix cc bug on -0.0L
17353         * tests/test-signbit.c (minus_zerol): Delete, and replace with
17354         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
17355         entire testsuite consistent and avoids an Irix 6.2 bug.
17356
17357 2008-10-05  Bruno Haible  <bruno@clisp.org>
17358             Jim Meyering  <jim@meyering.net>
17359
17360         Add an option for ignoring EPIPE during close_stdout.
17361         * lib/closeout.h: Include <stdbool.h>.
17362         (close_stdout_set_ignore_EPIPE): New declaration.
17363         * lib/closeout.c: Include <stdbool.h>.
17364         (ignore_EPIPE): New variable.
17365         (close_stdout_set_ignore_EPIPE): New function.
17366         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
17367         * lib/close-stream.c (close_stream): Mention the possible EPIPE
17368         failure.
17369         * modules/closeout (Depends-on): Add stdbool.
17370
17371 2008-10-05  Bruno Haible  <bruno@clisp.org>
17372
17373         * modules/accept: New file.
17374         * modules/bind: New file.
17375         * modules/connect: New file.
17376         * modules/getpeername: New file.
17377         * modules/getsockname: New file.
17378         * modules/getsockopt: New file.
17379         * modules/listen: New file.
17380         * modules/recv: New file.
17381         * modules/recvfrom: New file.
17382         * modules/send: New file.
17383         * modules/sendto: New file.
17384         * modules/setsockopt: New file.
17385         * modules/socket: New file.
17386         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
17387         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17388         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
17389         the particular module is requested. Add a link warning when the
17390         particular module is not requested.
17391         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
17392         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
17393         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
17394         the particular module is requested.
17395         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
17396         gl_SYS_SOCKET_H_DEFAULTS): New macros.
17397         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
17398         * modules/sys_socket (Depends-on): Add link-warning.
17399         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
17400         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
17401         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
17402         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
17403         GL_LINK_WARNING.
17404         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
17405         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
17406         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
17407         * doc/posix-functions/getpeername.texi: Mention the new module
17408         'getpeername'.
17409         * doc/posix-functions/getsockname.texi: Mention the new module
17410         'getsockname'.
17411         * doc/posix-functions/getsockopt.texi: Mention the new module
17412         'getsockopt'.
17413         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
17414         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
17415         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
17416         * doc/posix-functions/send.texi: Mention the new module 'send'.
17417         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
17418         * doc/posix-functions/setsockopt.texi: Mention the new module
17419         'setsockopt'.
17420         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
17421         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
17422         listen, connect, accept.
17423         * modules/select-tests (Depends-on): Likewise.
17424
17425 2008-10-05  Bruno Haible  <bruno@clisp.org>
17426
17427         * lib/winsock.c (strerror): Remove unused #undef.
17428         (rpl_close): Remove unused local variable.
17429
17430         * modules/sys_socket (Depends-on); Add errno.
17431
17432 2008-10-05  Bruno Haible  <bruno@clisp.org>
17433
17434         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
17435         (select): Add a link warning when the 'select' module is not used.
17436         * modules/sys_select (Depends-on): Add link-warning.
17437         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
17438         Suggested by Paolo Bonzini.
17439
17440 2008-10-05  Jim Meyering  <meyering@redhat.com>
17441
17442         bootstrap: check for LT_INIT more portably
17443         * build-aux/bootstrap: Avoid using grep -E, since it's not
17444         portable enough.  Suggestion from Bruno Haible.
17445
17446 2008-10-05  Bruno Haible  <bruno@clisp.org>
17447
17448         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
17449         as being fixed by gnulib.
17450
17451 2008-10-05  Bruno Haible  <bruno@clisp.org>
17452
17453         * modules/select-tests: New file, mostly copied from
17454         modules/sys_select-tests.
17455         * tests/test-select.c: New file, mostly copied from
17456         tests/test-sys_select.c.
17457         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
17458         * modules/sys_select-tests (Depends-on): Remove all dependencies.
17459         (Makefile.am): Remove test_sys_select_LDADD.
17460
17461         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
17462         to an undefined symbol, for an error message.
17463         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
17464         (gl_SYS_SELECT_H_DEFAULTS): New macro.
17465         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
17466         winsock-select.c here.
17467         * modules/sys_select (Files): Remove lib/winsock-select.c.
17468         (Depends-on): Remove alloca.
17469         (Makefile.am): Substitute GNULIB_SELECT.
17470         * modules/select: New file.
17471         * doc/posix-functions/select.texi: Update.
17472
17473 2008-10-05  Bruno Haible  <bruno@clisp.org>
17474
17475         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
17476         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
17477         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
17478         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
17479         getdtablesize.
17480         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17481         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17482
17483 2008-10-05  Bruno Haible  <bruno@clisp.org>
17484
17485         * modules/getdtablesize-tests: New file.
17486         * tests/test-getdtablesize.c: New file.
17487
17488         New module 'getdtablesize'.
17489         * lib/unistd.in.h (getdtablesize): New declaration.
17490         * lib/getdtablesize.c: New file.
17491         * m4/getdtablesize.m4: New file.
17492         * modules/getdtablesize: New file.
17493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17494         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
17495         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
17496         HAVE_GETDTABLESIZE.
17497         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
17498
17499 2008-10-05  Bruno Haible  <bruno@clisp.org>
17500
17501         * modules/sched (Makefile.am): Fix typo.
17502         Reported by Simon Josefsson.
17503
17504 2008-10-05  Jim Meyering  <meyering@redhat.com>
17505
17506         bootstrap: check for LT_INIT, too
17507         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
17508         are deprecated.  Suggestion from Ralf Wildenhues.
17509
17510 2008-10-05  Bruno Haible  <bruno@clisp.org>
17511
17512         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
17513         overriding them by ours.
17514         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
17515
17516 2008-10-05  Jim Meyering  <meyering@redhat.com>
17517
17518         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
17519         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
17520         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
17521
17522 2008-10-04  Bruno Haible  <bruno@clisp.org>
17523
17524         * modules/dup2 (License): Change to LGPLv2+.
17525         * modules/sleep (License): Likewise.
17526         * modules/perror (License): Likewise.
17527         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
17528         Blake.
17529         * modules/signal (License): Likewise.
17530         * modules/sigprocmask (License): Likewise.
17531         * modules/raise (License): Change to LGPLv2+, with approval by Jim
17532         Meyering.
17533
17534 2008-10-04  Bruno Haible  <bruno@clisp.org>
17535
17536         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
17537         Reported by Rainer Tammer <tammer@tammer.net>.
17538
17539 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
17540             Bruno Haible  <bruno@clisp.org>
17541
17542         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
17543         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
17544         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
17545
17546 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
17547
17548         filevercmp: new module
17549         * lib/filevercmp.h: New function filevercmp comparing version strings.
17550         * lib/filevercmp.c: Implementation of filevercmp function.
17551         * modules/filevercmp: Module metadata.
17552         * tests/test-filevercmp.c: Unit test for new module.
17553         * modules/filevercmp-tests: Unit test metadata.
17554         * MODULES.html.sh: Add filevercmp module.
17555
17556 2008-10-03  Bruno Haible  <bruno@clisp.org>
17557
17558         * lib/c-ctype.h: Add comment.
17559         Reported by Jim Meyering.
17560
17561 2008-10-02  Bruno Haible  <bruno@clisp.org>
17562
17563         * modules/posix_spawn-internal (Depends-on): Add 'open'.
17564
17565 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17566
17567         * build-aux/bootstrap: Allow renaming bootstrap, and change the
17568         name of bootstrap.conf accordingly.
17569
17570 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17571
17572         * build-aux/bootstrap: Install git-merge-changelog configuration
17573         items into .gitconfig if needed.
17574
17575 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
17576
17577         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
17578         git repository, and initialize/update it accordingly.
17579
17580 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
17581
17582         * modules/fsync-tests: New file.
17583         * tests/test-fsync.c: New file.
17584
17585         New module 'fsync'.
17586         * lib/fsync.c: New file.
17587         * m4/fsync.m4: New file.
17588         * modules/fsync: New file.
17589         * lib/unistd.in.h (fsync): New declaration.
17590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
17591         GNULIB_FSYNC and HAVE_FSYNC.
17592         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
17593         * MODULES.html.sh (posix_functions): Add fsync.
17594         * doc/posix-functions/fsync.texi: Mention the new module.
17595
17596 2008-10-02  Jim Meyering  <meyering@redhat.com>
17597
17598         fts.c: sync with similar code from coreutils' remove.c
17599         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
17600         Guard also with "#if defined __linux__", since for now at least,
17601         this code is Linux-kernel-specific.
17602
17603 2008-10-02  Jim Meyering  <meyering@redhat.com>
17604
17605         fts: bug fixes
17606         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
17607         Include <sys/vfs.h>, not <sys/statfs.h>.
17608
17609         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
17610         Include <sys/vfs.h>, not <sys/statfs.h>.
17611
17612 2008-10-01  Bruno Haible  <bruno@clisp.org>
17613
17614         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
17615         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
17616         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
17617         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
17618         * doc/posix-functions/posix_spawnp.texi: Likewise.
17619         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
17620         whether posix_spawn actually works.
17621         * m4/pipe.m4 (gl_PIPE): Likewise.
17622         * modules/execute (Files): Add m4/posix_spawn.m4.
17623         * modules/pipe (Files): Add m4/posix_spawn.m4.
17624         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
17625
17626 2008-10-01  Jim Meyering  <meyering@redhat.com>
17627
17628         remove trailing spaces
17629         * NEWS: Likewise.
17630         * lib/poll.c (poll): Likewise.
17631         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
17632         * lib/winsock.c (rpl_close): Likewise.
17633         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
17634         * modules/yield: Likewise.
17635         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
17636         * tests/test-sys_select.c (connect_to_socket): Likewise.
17637
17638         fts.c: adjust a new interface to be more generally useful
17639         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
17640         (fts_build): Adjust caller.
17641
17642 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17643
17644         * modules/cond-tests: New file.
17645         * tests/test-cond.c: New file.
17646
17647 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17648             Bruno Haible  <bruno@clisp.org>
17649
17650         * modules/cond (Dependencies): Add errno, time.
17651         * lib/glthread/cond.h: Include <time.h>.
17652         (gl_cond_define, gl_cond_define_initialized): Use the same definition
17653         across platforms.
17654
17655 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17656             Bruno Haible  <bruno@clisp.org>
17657
17658         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
17659
17660 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17661             Bruno Haible  <bruno@clisp.org>
17662
17663         * modules/tls-tests (Depends-on): Add thread, yield.
17664         (configure.ac): Remove all checks.
17665         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
17666         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
17667         gl_thread_self): Remove definitions. Include glthread/thread.h and
17668         glthread/yield.h instead.
17669         (test_tls): Pass an additional NULL argument to gl_thread_join.
17670
17671 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17672             Bruno Haible  <bruno@clisp.org>
17673
17674         * modules/lock-tests (Depends-on): Add thread, yield.
17675         (configure.ac): Remove all checks.
17676         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
17677         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
17678         gl_thread_self): Remove definitions. Include glthread/thread.h and
17679         glthread/yield.h instead.
17680         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
17681         additional NULL argument to gl_thread_join.
17682
17683 2008-09-30  Bruno Haible  <bruno@clisp.org>
17684
17685         Fix the Win32 implementation of the 'thread' module.
17686         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
17687         pointer type.
17688         (gl_thread_self): Invoke gl_thread_self_func.
17689         (gl_thread_self_func): New declaration.
17690         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
17691         (do_init_self_key, init_self_key): New functions.
17692         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
17693         Remove some fields.
17694         (running_threads, running_lock): Remove variables.
17695         (get_current_thread_handle): New function.
17696         (gl_thread_self_func, wrapper_func, glthread_create_func,
17697         glthread_join_func, gl_thread_exit_func): Largely rewritten and
17698         simplified.
17699
17700 2008-09-30  Bruno Haible  <bruno@clisp.org>
17701
17702         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
17703         files.
17704
17705 2008-09-30  Jim Meyering  <meyering@redhat.com>
17706
17707         fts.m4: correct the test for statfs.f_type
17708         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
17709         when checking for statfs.f_type.
17710
17711 2008-09-15  Simon Josefsson  <simon@josefsson.org>
17712
17713         tests: avoid some compiler warnings
17714         * tests/test-memchr.c (main): Pass NULL indirectly.
17715         * tests/test-getdate.c (main): Remove unused variable 'ret'.
17716
17717 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
17718
17719         getdate.y: disallow countable dayshifts like "4 yesterday ago"
17720         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
17721         exactly specified dayshifts.
17722         (dayshift): New rule.
17723         (rel): Add dayshift.
17724         (relative_time_table) [tomorrow, yesterday, today, now]:
17725         Use tDAY_SHIFT in place of tDAY_UNIT.
17726         * tests/test-getdate.c: Add tests for now-disallowed countable
17727         dayshifts, e.g., "4 yesterday ago".
17728
17729 2008-09-29  Bruno Haible  <bruno@clisp.org>
17730
17731         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
17732         * tests/test-posix_spawn1.in.sh: Renamed from
17733         tests/test-posix_spawn.in.sh.
17734         * tests/test-posix_spawn2.c: New file.
17735         * tests/test-posix_spawn2.in.sh: New file.
17736         * modules/posix_spawnp-tests (Files): Update.
17737         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
17738
17739 2008-09-29  Bruno Haible  <bruno@clisp.org>
17740
17741         Propagate effects of putenv/setenv/unsetenv to child processes.
17742         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
17743         * lib/pipe.c (create_pipe): Likewise.
17744
17745 2008-09-29  Bruno Haible  <bruno@clisp.org>
17746
17747         Enable use of shell scripts as executables in mingw.
17748         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
17749         run the program as a shell script.
17750         * lib/pipe.c (create_pipe): Likewise.
17751         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
17752         resulting array.
17753
17754 2008-09-29  Eric Blake  <ebb9@byu.net>
17755
17756         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
17757
17758 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
17759
17760         * doc/posix-functions/accept.texi: Update mingw problems.
17761         * doc/posix-functions/bind.texi: Update mingw problems.
17762         * doc/posix-functions/close.texi: Update mingw problems.
17763         * doc/posix-functions/connect.texi: Update mingw problems.
17764         * doc/posix-functions/getpeername.texi: Update mingw problems.
17765         * doc/posix-functions/getsockname.texi: Update mingw problems.
17766         * doc/posix-functions/getsockopt.texi: Update mingw problems.
17767         * doc/posix-functions/ioctl.texi: Update mingw problems.
17768         * doc/posix-functions/listen.texi: Update mingw problems.
17769         * doc/posix-functions/recv.texi: Update mingw problems.
17770         * doc/posix-functions/recvfrom.texi: Update mingw problems.
17771         * doc/posix-functions/select.texi: Update mingw problems.
17772         * doc/posix-functions/send.texi: Update mingw problems.
17773         * doc/posix-functions/sendto.texi: Update mingw problems.
17774         * doc/posix-functions/setsockopt.texi: Update mingw problems.
17775         * doc/posix-functions/socket.texi: Update mingw problems.
17776
17777 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
17778             Bruno Haible  <bruno@clisp.org>
17779
17780         * lib/sys_select.in.h: Include sys/time.h.
17781         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
17782         * modules/sys_select: Depend on sys_time.
17783         * tests/test-sys_select.c: Test that sys/select.h defines struct
17784         timeval fully.
17785
17786 2008-09-29  Bruno Haible  <bruno@clisp.org>
17787
17788         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
17789         * lib/sys_select.in.h: Likewise.
17790
17791 2008-09-29  Bruno Haible  <bruno@clisp.org>
17792
17793         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
17794
17795 2008-09-29  Bruno Haible  <bruno@clisp.org>
17796
17797         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
17798         Set LIBSOCKET instead of augmenting LIBS.
17799         * modules/sockets (Link): New section.
17800         * modules/sockets-tests (test_sockets_LDADD): New variable.
17801         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
17802         * modules/poll-tests (test_poll_LDADD): New variable.
17803         * NEWS: Document the change.
17804
17805 2008-09-29  Bruno Haible  <bruno@clisp.org>
17806
17807         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
17808         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
17809         ARPA_INET_H directly.
17810         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17811
17812 2008-09-28  Bruno Haible  <bruno@clisp.org>
17813
17814         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
17815         from gl_HEADER_SYS_SOCKET.
17816         (gl_HEADER_SYS_SOCKET): Invoke it.
17817         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17818
17819 2008-09-28  Bruno Haible  <bruno@clisp.org>
17820
17821         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
17822         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
17823         Needed on OSF/1 4.0.
17824
17825 2008-09-28  Bruno Haible  <bruno@clisp.org>
17826
17827         Override open more carefully.
17828         * lib/open.c (orig_open): New function.
17829         (rpl_open): Use orig_open instead of open.
17830         * lib/fcntl.in.h: Add special invocation convention.
17831         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
17832         (gl_FUNC_OPEN): Invoke it.
17833
17834         Override freopen more carefully.
17835         * lib/freopen.c (orig_freopen): New function.
17836         (rpl_freopen): Use orig_freopen instead of freopen.
17837         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
17838         (gl_FUNC_FREOPEN): Invoke it.
17839
17840         Override fopen more carefully.
17841         * lib/fopen.c (orig_fopen): New function.
17842         (rpl_fopen): Use orig_fopen instead of fopen.
17843         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
17844         (gl_FUNC_FOPEN): Invoke it.
17845         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
17846
17847 2008-09-28  Bruno Haible  <bruno@clisp.org>
17848
17849         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
17850         SIGPIPE.
17851
17852 2008-09-28  Bruno Haible  <bruno@clisp.org>
17853
17854         * tests/test-sigaction.c (handler, main): Disable the check whether
17855         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
17856         glibc systems with LinuxThreads.
17857
17858 2008-09-28  Bruno Haible  <bruno@clisp.org>
17859
17860         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
17861
17862         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
17863         with AIX xlc.
17864         * lib/fcntl.in.h (open): Likewise.
17865         Reported by Rainer Tammer <tammer@tammer.net>.
17866
17867 2008-09-28  Bruno Haible  <bruno@clisp.org>
17868
17869         * modules/posix_spawnp-tests: New file.
17870         * tests/test-posix_spawn.c: New file.
17871         * tests/test-posix_spawn.in.sh: New file.
17872
17873         New module 'posix_spawnp'.
17874         * modules/posix_spawnp: New file.
17875         * lib/spawnp.c: New file, from GNU libc with modifications.
17876         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
17877
17878         New module 'posix_spawn'.
17879         * modules/posix_spawn: New file.
17880         * lib/spawn.c: New file, from GNU libc with modifications.
17881         * doc/posix-functions/posix_spawn.texi: Mention the new module.
17882
17883         New module 'posix_spawnattr_destroy'.
17884         * modules/posix_spawnattr_destroy: New file.
17885         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
17886         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
17887         module.
17888
17889         New module 'posix_spawnattr_setsigmask'.
17890         * modules/posix_spawnattr_setsigmask: New file.
17891         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
17892         modifications.
17893         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
17894         new module.
17895
17896         New module 'posix_spawnattr_getsigmask'.
17897         * modules/posix_spawnattr_getsigmask: New file.
17898         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
17899         modifications.
17900         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
17901         new module.
17902
17903         New module 'posix_spawnattr_setsigdefault'.
17904         * modules/posix_spawnattr_setsigdefault: New file.
17905         * lib/spawnattr_setdefault.c: New file, from GNU libc with
17906         modifications.
17907         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
17908         new module.
17909
17910         New module 'posix_spawnattr_getsigdefault'.
17911         * modules/posix_spawnattr_getsigdefault: New file.
17912         * lib/spawnattr_getdefault.c: New file, from GNU libc with
17913         modifications.
17914         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
17915         new module.
17916
17917         New module 'posix_spawnattr_setschedpolicy'.
17918         * modules/posix_spawnattr_setschedpolicy: New file.
17919         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
17920         modifications.
17921         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
17922         new module.
17923
17924         New module 'posix_spawnattr_getschedpolicy'.
17925         * modules/posix_spawnattr_getschedpolicy: New file.
17926         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
17927         modifications.
17928         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
17929         new module.
17930
17931         New module 'posix_spawnattr_setschedparam'.
17932         * modules/posix_spawnattr_setschedparam: New file.
17933         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
17934         modifications.
17935         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
17936         new module.
17937
17938         New module 'posix_spawnattr_getschedparam'.
17939         * modules/posix_spawnattr_getschedparam: New file.
17940         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
17941         modifications.
17942         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
17943         new module.
17944
17945         New module 'posix_spawnattr_setpgroup'.
17946         * modules/posix_spawnattr_setpgroup: New file.
17947         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
17948         modifications.
17949         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
17950         module.
17951
17952         New module 'posix_spawnattr_getpgroup'.
17953         * modules/posix_spawnattr_getpgroup: New file.
17954         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
17955         modifications.
17956         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
17957         module.
17958
17959         New module 'posix_spawnattr_setflags'.
17960         * modules/posix_spawnattr_setflags: New file.
17961         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
17962         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
17963         module.
17964
17965         New module 'posix_spawnattr_getflags'.
17966         * modules/posix_spawnattr_getflags: New file.
17967         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
17968         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
17969         module.
17970
17971         New module 'posix_spawnattr_init'.
17972         * modules/posix_spawnattr_init: New file.
17973         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
17974         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
17975         module.
17976
17977         New module 'posix_spawn_file_actions_destroy'.
17978         * modules/posix_spawn_file_actions_destroy: New file.
17979         * lib/spawn_faction_destroy.c: New file, from GNU libc with
17980         modifications.
17981         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
17982         the new module.
17983
17984         New module 'posix_spawn_file_actions_addopen'.
17985         * modules/posix_spawn_file_actions_addopen: New file.
17986         * lib/spawn_faction_addopen.c: New file, from GNU libc with
17987         modifications.
17988         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
17989         the new module.
17990
17991         New module 'posix_spawn_file_actions_adddup2'.
17992         * modules/posix_spawn_file_actions_adddup2: New file.
17993         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
17994         modifications.
17995         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
17996         the new module.
17997
17998         New module 'posix_spawn_file_actions_addclose'.
17999         * modules/posix_spawn_file_actions_addclose: New file.
18000         * lib/spawn_faction_addclose.c: New file, from GNU libc with
18001         modifications.
18002         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
18003         the new module.
18004
18005         New module 'posix_spawn_file_actions_init'.
18006         * modules/posix_spawn_file_actions_init: New file.
18007         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
18008         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
18009         new module.
18010
18011         New module 'posix_spawn-internal'.
18012         * modules/posix_spawn-internal: New file.
18013         * lib/spawn_int.h: New file, from GNU libc with modifications.
18014         * lib/spawni.c: New file, from GNU libc with modifications.
18015         * m4/posix_spawn.m4: New file.
18016
18017         New module 'spawn'.
18018         * modules/spawn: New file.
18019         * lib/spawn.in.h: New file, from GNU libc with modifications.
18020         * m4/spawn_h.m4: New file.
18021         * doc/posix-headers/spawn.texi: Mention the new module.
18022
18023 2008-09-28  Bruno Haible  <bruno@clisp.org>
18024
18025         * modules/sched-tests: New file.
18026         * tests/test-sched.c: New file.
18027
18028         New module 'sched'.
18029         * modules/sched: New file.
18030         * lib/sched.in.h: New file.
18031         * m4/sched_h.m4: New file.
18032         * doc/posix-headers/sched.texi: Mention the new module.
18033
18034 2008-09-27  Eric Blake  <ebb9@byu.net>
18035
18036         Fix previous patch, and tweak references to $0.
18037         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
18038         (func_version, func_gnulib_dir): Don't call this program
18039         gnulib-tool.
18040         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
18041         with using $0 in function.
18042         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
18043         (func_fatal_error): Reuse the name the user invoked us with.
18044
18045 2008-09-27  Bruno Haible  <bruno@clisp.org>
18046
18047         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
18048         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
18049         (gl_ICONV_H): Not here.
18050         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18051         instead of assigning ICONV_H directly.
18052
18053         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
18054         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
18055         WCHAR_H directly.
18056
18057 2008-09-27  Bruno Haible  <bruno@clisp.org>
18058
18059         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
18060         * modules/arpa_inet (Depends-on): Add link-warning.
18061         (Makefile.am): Insert the definition of GL_LINK-WARNING.
18062         * modules/unistd (Makefile.am): Likewise.
18063
18064 2008-09-26  Bruno Haible  <bruno@clisp.org>
18065
18066         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
18067         variables.
18068         (func_version): Essentially copied from gnulib-tool.
18069         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
18070         func_readlink): Copied from gnulib-tool.
18071
18072 2008-09-26  Bruno Haible  <bruno@clisp.org>
18073
18074         * gnulib-tool (func_version): Change directory to $gnulib_dir before
18075         invoking git-version-gen.
18076
18077 2008-09-26  Bruno Haible  <bruno@clisp.org>
18078
18079         * posix-modules: Update to directory names changed on 2008-01-19.
18080         Remove commas in output before splitting into words. No more need to
18081         avoid 'ftruncate' since 2007-02-19.
18082
18083 2008-09-26  Bruno Haible  <bruno@clisp.org>
18084
18085         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
18086
18087 2008-09-26  Bruno Haible  <bruno@clisp.org>
18088
18089         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
18090         * modules/fwriteerror (Depends-on): Add errno.
18091
18092 2008-09-26  Bruno Haible  <bruno@clisp.org>
18093
18094         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
18095         * tests/test-vc-list-files-cvs.sh: Likewise.
18096
18097 2008-09-26  Bruno Haible  <bruno@clisp.org>
18098
18099         * doc/posix-headers/sys_resource.texi: Reorder items.
18100
18101 2008-09-26  Jim Meyering  <meyering@redhat.com>
18102
18103         fts: tweak inode comparison function
18104         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
18105         inode numbers, as documented.
18106
18107         fts: sort dirent entries on inode number before traversing
18108         This avoids a quadratic, seek-related performance penalty when
18109         operating on a directory containing many entries (measurable at 10k;
18110         3.5 hours at 2 million entries with a cold cache) on certain types
18111         of file systems, including ext3 and ext4, but not tmpfs.
18112         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
18113         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
18114         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
18115         (fs_handles_readdir_ordered_dirents_efficiently): New function.
18116         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
18117         (fts_build): Set the stat.st_ino member from D_INO.
18118         If it is likely to be useful, sort dirent entries on inode number.
18119
18120         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
18121         and the struct statfs.f_type member.
18122         * modules/fts (Depends-on): Add d-ino.
18123
18124 2008-09-26  Bruno Haible  <bruno@clisp.org>
18125
18126         * modules/sigpipe-die (Depends-on): Add sigpipe.
18127
18128         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
18129         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
18130         and GNULIB_STDIO_H_SIGPIPE are set.
18131         * lib/stdio-write.c: New file.
18132         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
18133         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18134         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18135         REPLACE_STDIO_WRITE_FUNCS.
18136         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
18137         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18138         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18139         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
18140         * modules/stdio (Files): Add lib/stdio-write.c.
18141         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
18142         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18143         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18144         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
18145         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
18146         REPLACE_FPRINTF_POSIX.
18147         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
18148         REPLACE_PRINTF_POSIX.
18149         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
18150         REPLACE_VFPRINTF_POSIX.
18151         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
18152         REPLACE_VPRINTF_POSIX.
18153         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
18154         SIGPIPE issue.
18155         * doc/posix-functions/fputc.texi: Likewise.
18156         * doc/posix-functions/fputs.texi: Likewise.
18157         * doc/posix-functions/fwrite.texi: Likewise.
18158         * doc/posix-functions/printf.texi: Likewise.
18159         * doc/posix-functions/putc.texi: Likewise.
18160         * doc/posix-functions/putchar.texi: Likewise.
18161         * doc/posix-functions/puts.texi: Likewise.
18162         * doc/posix-functions/vfprintf.texi: Likewise.
18163         * doc/posix-functions/vprintf.texi: Likewise.
18164
18165         * modules/safe-write (Depends-on): Add write.
18166
18167         * modules/sigpipe-tests: New file.
18168         * tests/test-sigpipe.c: New file.
18169         * tests/test-sigpipe.sh: New file.
18170
18171         * modules/write: New file.
18172         * lib/unistd.in.h: Include <sys/types.h>.
18173         (write): New declaration.
18174         * lib/write.c: New file.
18175         * m4/write.m4: New file.
18176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18177         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
18178         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
18179         GNULIB_WRITE, REPLACE_WRITE.
18180         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
18181         and the SIGPIPE issue.
18182
18183         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
18184         (raise): New declaration.
18185         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
18186         (ext_signal): New function.
18187         (rpl_raise): New function.
18188         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
18189         GNULIB_SIGNAL_H_SIGPIPE.
18190         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
18191         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
18192
18193         * modules/sigpipe: New file.
18194         * m4/sigpipe.m4: New file.
18195
18196 2008-09-25  Derek Price  <derek@ximbiot.com>
18197             Bruno Haible  <bruno@clisp.org>
18198
18199         * gnulib-tool (func_import): Report all license incompatibilities, not
18200         just the first one.
18201
18202 2008-09-25  Bruno Haible  <bruno@clisp.org>
18203
18204         * gnulib-tool (func_import): When computing the edits, consider not
18205         only the Makefile.ams that exist but also those that will be generated.
18206
18207 2008-09-25  Simon Josefsson  <simon@josefsson.org>
18208
18209         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
18210         fixes gnulib-tool --test warning about duplicate dependency.
18211
18212 2008-09-25  Bruno Haible  <bruno@clisp.org>
18213
18214         * gnulib-tool: Don't ask the user to perform edits in the generated
18215         Makefile.ams.
18216         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
18217         apply to the Makefile.am being generated.
18218         (func_emit_tests_Makefile_am): Execute edits that apply to the
18219         Makefile.am being generated.
18220         (func_import): Setup list of Makefile.am edits before emitting the
18221         Makefile.ams, not at the end.
18222         (func_create_testdir): Update.
18223         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18224
18225 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18226
18227         * gnulib-tool (func_import): Store the --tests-base option in the
18228         comment in gnulib-cache.m4.
18229
18230 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
18231
18232         * NEWS: Document increased portability that sys_select now provides.
18233
18234         * lib/sys_select.in.h: Install select wrapper.
18235         * lib/sys_socket.in.h: Use more descriptive name when there is no
18236         select wrapper.
18237         * lib/winsock-select.c: New.
18238         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
18239         Require gl_HEADER_SYS_SOCKET.
18240         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
18241         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
18242         * tests/test-sys_select.c: Add functional tests.
18243
18244 2008-09-24  Eric Blake  <ebb9@byu.net>
18245
18246         open, fopen: close fd leak in last patch
18247         * lib/open.c (rpl_open): Close fd before returning error.
18248         * lib/fopen.c (rpl_fopen): Close fd before returning error.
18249         * doc/posix-functions/open.texi (open): Document that Irix also
18250         has the bug.
18251         * doc/posix-functions/fopen.texi (fopen): Likewise.
18252         Reported by Paolo Bonzini.
18253
18254 2008-09-24  Bruno Haible  <bruno@clisp.org>
18255
18256         Ensure that a filename ending in a slash cannot be used to access a
18257         non-directory.
18258         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
18259         to check whether it's really a directory.
18260         * lib/fopen.c: Include fcntl.h, unistd.h.
18261         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
18262         and fdopen().
18263         * modules/fopen (Depends-on): Add unistd.
18264         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
18265         * tests/test-fopen.c (main): Likewise.
18266         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
18267         * doc/posix-functions/fopen.texi: Likewise.
18268         Reported by Eric Blake.
18269
18270 2008-09-23  Eric Blake  <ebb9@byu.net>
18271
18272         c-stack: avoid compiler optimizations when provoking overflow
18273         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
18274         recursion harder to optimize, to ensure a stack overflow occurs.
18275         * tests/test-c-stack.c (recurse): Likewise.
18276         Borrowed from libsigsegv.
18277
18278         c-stack: work around Irix sigaltstack bug
18279         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
18280         whether sigaltstack uses wrong end of stack_t (copied in part from
18281         libsigsegv).
18282         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
18283         Irix bug, without requiring an over-allocation.
18284         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
18285         bug.
18286
18287         fopen: document mingw bug on directories
18288         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
18289         not allowing a stream visiting a directory, even though reading
18290         from such a stream is not portable.
18291
18292 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18293
18294         * lib/poll.c: Rewrite.
18295         * modules/poll: Depend on alloca.
18296
18297 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18298
18299         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
18300         instead define prototypes for a full set of wrappers.  Ensure
18301         that Cygwin does not use the compatibility code, which is only
18302         for MinGW.
18303         * lib/winsock.c: New.
18304         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
18305         * modules/sys_socket: Add lib/winsock.c.
18306
18307         * modules/poll-tests: Add errno and perror.
18308         * tests/test-poll.c: Use ioctl, not ioctlsocket.
18309
18310 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
18311
18312         * tests/test-poll.c: Downgrade minimum needed Winsock version.
18313
18314 2008-09-23  Bruno Haible  <bruno@clisp.org>
18315
18316         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
18317         * doc/glibc-functions/*: Likewise.
18318
18319 2008-09-23  Simon Josefsson  <simon@josefsson.org>
18320
18321         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
18322         success.
18323
18324 2008-09-22  Eric Blake  <ebb9@byu.net>
18325             Bruno Haible  <bruno@clisp.org>
18326
18327         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
18328         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
18329         supply %A but mishandle pseudo-NaN.
18330         Reported by Simon Josefsson.
18331
18332 2008-09-21  Bruno Haible  <bruno@clisp.org>
18333
18334         * tests/test-lock.c (main): Tweak skip message.
18335         * tests/test-tls.c (main): Likewise.
18336
18337 2008-09-21  Bruno Haible  <bruno@clisp.org>
18338
18339         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
18340         whether 'struct sigaction' has sa_sigaction here...
18341         (gl_PREREQ_SIG_HANDLER_H): ... not here.
18342         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
18343
18344 2008-09-21  Bruno Haible  <bruno@clisp.org>
18345
18346         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
18347         section.
18348         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
18349         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
18350         the new section.
18351         (Support for obsolete systems lacking POSIX:2001): New section.
18352         (String handling <string.h>): Move strdup to the new section.
18353         Suggested by Simon Josefsson and Paolo Bonzini.
18354
18355 2008-09-21  Bruno Haible  <bruno@clisp.org>
18356
18357         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
18358         exponents in %e and %g results on 'long double'. Needed for mingw's
18359         improved *printf functions.
18360         * tests/test-vasprintf-posix.c (test_function): Likewise.
18361         * tests/test-snprintf-posix.h (test_function): Likewise.
18362         * tests/test-sprintf-posix.h (test_function): Likewise.
18363         Reported by Eric Blake.
18364
18365 2008-09-21  Bruno Haible  <bruno@clisp.org>
18366
18367         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
18368         * tests/test-sprintf-posix.h (test_function): Likewise.
18369
18370 2008-09-21  Bruno Haible  <bruno@clisp.org>
18371
18372         * modules/getpass (Depends-on): Add strdup-posix.
18373
18374         New module 'strdup-posix'.
18375         * modules/strdup-posix: New file.
18376         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
18377         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
18378         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18379         REPLACE_STRDUP.
18380         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
18381         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
18382         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18383         strdup-posix.
18384
18385         * modules/strdup (Depends-on): Remove malloc-posix.
18386
18387 2008-09-20  Bruno Haible  <bruno@clisp.org>
18388
18389         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
18390         Wildenhues.
18391
18392 2008-09-20  Bruno Haible  <bruno@clisp.org>
18393
18394         Ensure that wint_t gets defined on IRIX 5.3.
18395         * lib/wchar.in.h (wint_t): Define if not defined by the system.
18396         * lib/wctype.in.h (wint_t): Likewise.
18397         (__wctype_wint_t): Remove type.
18398         (isw*): Use wint_t instead of __wctype_wint_t.
18399         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
18400         * modules/wchar (Files): Add m4/wint_t.m4.
18401         (Makefile.am): Substitute HAVE_WINT_T.
18402         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
18403         * tests/test-wctype.c: Check that wint_t is defined.
18404         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
18405         * doc/posix-headers/wctype.texi: Likewise.
18406         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18407
18408 2008-09-18  Bruno Haible  <bruno@clisp.org>
18409
18410         * gnulib-tool (func_exit): Update comment.
18411
18412 2008-09-18  Simon Josefsson  <simon@josefsson.org>
18413
18414         * modules/getaddrinfo (Depends-on): Remove strdup, this module
18415         assumes strdup exists and does not depend on strdup to return
18416         ENOMEM on out of memory conditions.
18417
18418 2008-09-18  Bruno Haible  <bruno@clisp.org>
18419
18420         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
18421         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
18422         digits for the exponent.
18423
18424 2008-09-18  Jim Meyering  <meyering@redhat.com>
18425             Bruno Haible  <bruno@clisp.org>
18426
18427         * lib/vasnprintf.c (decimal_point_char): Define also if
18428         NEED_PRINTF_INFINITE_LONG_DOUBLE.
18429
18430 2008-09-16  Bruno Haible  <bruno@clisp.org>
18431         and Eric Blake  <ebb9@byu.net>
18432
18433         vasnprintf: support Irix 5.3
18434         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
18435         that mishandle long double infinity.
18436         Reported by Tom G. Christensen.
18437
18438 2008-09-16  Bruno Haible  <bruno@clisp.org>
18439
18440         * doc/glibc-functions/scandir.texi: Mention the function is missing on
18441         Solaris 9.
18442         * doc/glibc-functions/alphasort.texi: Likewise.
18443         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
18444
18445 2008-09-16  Jim Meyering  <meyering@redhat.com>
18446
18447         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
18448         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
18449         a umask modification leak out of a subshell.  Otherwise, the
18450         opensolaris /bin/sh would be accepted and thus cause unwarranted
18451         failures in the coreutils test suite.
18452
18453 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
18454
18455         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
18456         to succeed.
18457
18458 2008-09-16  Jim Meyering  <meyering@redhat.com>
18459
18460         avoid spurious test failure when library is built without ACL support
18461         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
18462         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
18463         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
18464         * tests/test-copy-acl.sh: Likewise.
18465
18466 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18467
18468         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
18469         based on character occurrence counts.
18470
18471 2008-09-15  Eric Blake  <ebb9@byu.net>
18472
18473         tests: avoid some compiler warnings
18474         * tests/test-memchr.c (main): Pass NULL indirectly.
18475         * tests/test-closein.c (main): Avoid unused variable.
18476
18477 2008-09-15  Bruno Haible  <bruno@clisp.org>
18478
18479         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
18480         are missing on OpenBSD 4.0 individually.
18481         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18482
18483 2008-09-15  Bruno Haible  <bruno@clisp.org>
18484
18485         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
18486         * doc/posix-functions/strerror.texi: Mention also Cygwin.
18487         * doc/posix-functions/perror.texi: Likewise.
18488         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
18489         is missing.
18490         Reported by Eric Blake.
18491
18492         * lib/errno.in.h: Use replacement values >= 2000.
18493         Reported by Eric Blake.
18494
18495 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18496
18497         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
18498         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
18499         limit.
18500         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
18501         compareseq was aborted.
18502
18503 2008-09-14  Bruno Haible  <bruno@clisp.org>
18504
18505         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
18506         yvec_edit_count.
18507         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
18508         (fstrcmp_bounded): Simplify result computation accordingly.
18509
18510 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18511
18512         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
18513         (fstrcmp): Define in terms of fstrcmp_bounded.
18514         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
18515         lower_bound argument.
18516         Return quickly if the result is certainly < lower_bound.
18517         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
18518
18519 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18520
18521         * lib/diffseq.h (EARLY_ABORT): New macro.
18522         (compareseq): Change return type to bool. Return true when EARLY_ABORT
18523         evaluates to true.
18524
18525 2008-09-14  Bruno Haible  <bruno@clisp.org>
18526
18527         * modules/perror-tests: New file.
18528         * tests/test-perror.sh: New file.
18529         * tests/test-perror.c: New file.
18530
18531         New module 'perror'.
18532         * lib/stdio.in.h (perror): New declaration.
18533         * lib/perror.c: New file.
18534         * m4/perror.m4: New file.
18535         * modules/perror: New file.
18536         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
18537         * doc/posix-functions/perror.texi: Mention the perror module.
18538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
18539         REPLACE_PERROR.
18540         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
18541         REPLACE_PERROR.
18542
18543 2008-09-14  Bruno Haible  <bruno@clisp.org>
18544
18545         * modules/stdio (Makefile.am): Reorder to match the order in
18546         lib/stdio.in.h.
18547         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18548
18549 2008-09-13  Bruno Haible  <bruno@clisp.org>
18550
18551         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
18552
18553 2008-09-13  Bruno Haible  <bruno@clisp.org>
18554
18555         Extend strerror to cover the added errno values.
18556         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
18557         (rpl_strerror): Provide error messages for the added errno values and
18558         for the WSA* values.
18559         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
18560         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
18561         strerror.
18562         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
18563         * modules/strerror (Depends-on): Add errno.
18564         * doc/posix-functions/strerror.texi: Document the change.
18565         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
18566         and EOVERFLOW.
18567
18568 2008-09-13  Bruno Haible  <bruno@clisp.org>
18569
18570         * modules/EOVERFLOW: Remove file.
18571         * m4/eoverflow.m4: Remove file.
18572         * modules/EOVERFLOW-tests: Remove file.
18573         * tests/test-EOVERFLOW.c: Remove file.
18574         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
18575         * modules/ftell (Depends-on): Likewise.
18576         * modules/getdelim (Depends-on): Likewise.
18577         * modules/getugroups (Depends-on): Likewise.
18578         * modules/poll (Depends-on): Likewise.
18579         * modules/snprintf (Depends-on): Likewise.
18580         * modules/sprintf-posix (Depends-on): Likewise.
18581         * modules/vasnprintf (Depends-on): Likewise.
18582         * modules/vasprintf (Depends-on): Likewise.
18583         * modules/vfprintf-posix (Depends-on): Likewise.
18584         * modules/vsnprintf (Depends-on): Likewise.
18585         * modules/vsprintf-posix (Depends-on): Likewise.
18586         * modules/xvasprintf (Depends-on): Likewise.
18587         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18588         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
18589         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
18590         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
18591         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18592         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
18593         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
18594         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
18595         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18596         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
18597         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
18598         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
18599         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18600         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
18601         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
18602         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
18603         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18604         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
18605         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
18606         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
18607         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18608         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
18609         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
18610         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
18611         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
18612         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18613         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
18614         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
18615         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
18616         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
18617         * MODULES.html.sh: Remove EOVERFLOW.
18618         * NEWS: Mention the change.
18619
18620 2008-09-13  Bruno Haible  <bruno@clisp.org>
18621
18622         * modules/errno-tests: New file.
18623         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
18624
18625         * lib/errno.in.h: New file.
18626         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
18627         * modules/errno: New file.
18628         * doc/posix-headers/errno.texi: Update documentation.
18629         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
18630
18631 2008-09-13  Bruno Haible  <bruno@clisp.org>
18632
18633         * tests/test-poll.c: Use #if for native Windows, rather than testing
18634         __MSVCRT__.
18635
18636 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18637             Bruno Haible  <bruno@clisp.org>
18638
18639         * lib/glob.c: Don't include <pwd.h> on native Windows.
18640         (WINDOWS32): New macro.
18641         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
18642
18643 2008-09-13  Bruno Haible  <bruno@clisp.org>
18644
18645         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
18646         (ETIMEDOUT): Remove macro.
18647         (glthread_cond_timedwait_multithreaded): New declaration.
18648         (glthread_cond_timedwait): Use it.
18649         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
18650         (glthread_cond_timedwait_multithreaded): New function.
18651
18652 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
18653
18654         * modules/poll-tests: Do not check for io.h.
18655         * tests/test-poll.c: Check for __MSVCRT__ instead.
18656
18657 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
18658
18659         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
18660         * modules/poll-tests: Add inet_pton, stdbool, sockets.
18661         * tests/test-poll.c: Use them.  Use _pipe on Windows.
18662
18663 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
18664
18665         * modules/poll-tests: New.
18666         * tests/test-poll.c: New.
18667
18668 2008-09-12  Eric Blake  <ebb9@byu.net>
18669
18670         frexp: test for NetBSD failure on -0.0
18671         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
18672         not all, bugs from NetBSD 3.0 have been fixed.
18673         * doc/posix-functions/frexp.texi (frexp): Document bug.
18674         Reported by Thomas Klausner.
18675
18676         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
18677         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
18678         literal -0.0.
18679         Reported by Jonathan C. Patschke <jp@centtech.com>.
18680
18681 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18682
18683         * lib/glthread/cond.h: Use dummy implementation also if
18684         USE_WIN32_THREADS.
18685
18686 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18687
18688         * modules/fnmatch-posix (License): Change to LGPLv2+.
18689         * modules/fnmatch-gnu (License): Likewise.
18690
18691 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
18692
18693         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
18694
18695 2008-09-11  Jim Meyering  <meyering@redhat.com>
18696
18697         * users.txt: Add gtk-vnc.
18698
18699 2008-09-08  Simon Josefsson  <simon@josefsson.org>
18700
18701         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
18702         rotate amounts.
18703
18704         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
18705         required for 16-bit and 8-bit rotates.
18706         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
18707         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
18708         UINT8_MAX instead of hard-coded constants.
18709         Suggested by Paul Eggert.
18710
18711 2008-09-07  Bruno Haible  <bruno@clisp.org>
18712
18713         * tests/test-striconveh.c (main): Check behaviour when converting from
18714         UTF-7.
18715
18716         Make striconveh work better with stateful encodings.
18717         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
18718         that iconv does not increment the inptr when returning -1/EINVAL.
18719
18720 2008-09-07  Bruno Haible  <bruno@clisp.org>
18721
18722         * build-aux/config.rpath: Update according to libtool-2.2.6.
18723         * build-aux/config.libpath: Likewise.
18724
18725 2008-09-06  Bruno Haible  <bruno@clisp.org>
18726
18727         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
18728         * lib/freadptr.c (freadptr): Likewise.
18729         * lib/freadseek.c (freadptrinc): Likewise.
18730         Reported by Simon Josefsson.
18731
18732 2008-09-06  Bruno Haible  <bruno@clisp.org>
18733
18734         * modules/freadptr (License): Change to LGPLv2+.
18735         * modules/freadseek (License): Likewise.
18736         Suggested by Eric Blake.
18737
18738         * modules/memchr2 (License): Change to LGPLv2+.
18739         Approved by Eric Blake.
18740
18741 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18742             Bruno Haible  <bruno@clisp.org>
18743
18744         Make gnulib-tool work with native 'sed' on AIX.
18745         * gnulib-tool (sed_noop): New variable.
18746         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
18747         func_add_or_update, func_create_testdir): Use it to initialize sed
18748         script variables.
18749         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18750
18751 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
18752             Bruno Haible  <bruno@clisp.org>
18753
18754         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
18755         also works after #include directives.
18756
18757 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
18758
18759         getdate.y: reject an out-of-range timezone value
18760         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
18761         the range [-24...+24].  When specified with only one or two digits,
18762         * tests/test-getdate.c: Tests for the fix.
18763         * doc/getdate.texi: Document this change.
18764
18765 2008-09-03  Bruno Haible  <bruno@clisp.org>
18766
18767         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
18768
18769 2008-09-02  Simon Josefsson  <simon@josefsson.org>
18770
18771         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
18772         <bruce.korb@gmail.com> with ideas from Ben Pfaff
18773         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
18774         Blake <ebb9@byu.net>.
18775
18776         * tests/test-bitrotate.c: Add more test vectors.
18777
18778 2008-09-02  Eric Blake  <ebb9@byu.net>
18779
18780         vasnprintf-posix: handle large precision via %.*d
18781         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
18782         when handling it ourselves.
18783         * tests/test-vasnprintf-posix.c (test_function): Add test.
18784         * tests/test-snprintf-posix.h (test_function): Likewise.
18785         * tests/test-sprintf-posix.h (test_function): Likewise.
18786         * tests/test-vasprintf-posix.c (test_function): Likewise.
18787         Reported by Alain Guibert.
18788
18789 2008-09-01  Eric Blake  <ebb9@byu.net>
18790
18791         c-stack: make configure-time check more robust
18792         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
18793         successful sigaction call.
18794         Reported by Tom G. Christensen.
18795
18796 2008-09-01  Bruno Haible  <bruno@clisp.org>
18797
18798         New module 'findprog-lgpl'.
18799         * modules/findprog-lgpl: New file.
18800         * lib/findprog-lgpl.c: New file.
18801         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
18802         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
18803         to decide whether to use strdup or xstrdup, concatenated_filename or
18804         xconcatenated_filename.
18805
18806 2008-09-01  Bruno Haible  <bruno@clisp.org>
18807
18808         Split module 'concat-filename' into 'concat-filename' (LGPL) and
18809         'xconcat-filename' (GPL).
18810         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
18811         (License): Change to LGPLv2+.
18812         * modules/xconcat-filename: New file.
18813         * lib/concat-filename.h (concatenated_filename): Change specification.
18814         (xconcatenated_filename): New declaration.
18815         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
18816         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
18817         memory situations.
18818         * lib/xconcat-filename.c: New file.
18819         * NEWS: Mention the change.
18820         * lib/findprog.c: Include concat-filename.h, not filename.h.
18821         (find_in_path): Use xconcatenated_filename instead of
18822         concatenated_filename.
18823         * lib/javacomp.c: Include concat-filename.h, not filename.h.
18824         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
18825         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
18826         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
18827         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
18828         instead of concatenated_filename.
18829         * lib/javaexec.c: Include concat-filename.h, not filename.h.
18830         (execute_java_class): Use xconcatenated_filename instead of
18831         concatenated_filename.
18832         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
18833         * modules/javacomp (Depends-on): Likewise.
18834         * modules/javaexec (Depends-on): Likewise.
18835
18836 2008-09-01  Bruno Haible  <bruno@clisp.org>
18837
18838         Split module 'filename' into 'filename' and 'concat-filename'.
18839         * modules/filename: Keep only lib/filename.h.
18840         (License): Change to LGPLv2+.
18841         * modules/concat-filename: New file, extracted from modules/filename.
18842         * lib/filename.h (concatenated_filename): Remove declaration.
18843         * lib/concat-filename.h: New file, extracted from lib/filename.h.
18844         * lib/concat-filename.c: Include concat-filename.h.
18845         * NEWS: Mention the change.
18846
18847 2008-09-01  Simon Josefsson  <simon@josefsson.org>
18848
18849         * lib/bitrotate.h (rotl8, rotr8): Add.
18850
18851         * modules/bitrotate (configure.ac): Need
18852         AC_REQUIRE([AC_C_INLINE]).
18853         (Description): Mention stdint.h.  Reported by Bruno Haible
18854         <bruno@clisp.org>.
18855
18856         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
18857         Paolo Bonzini <bonzini@gnu.org>.
18858
18859 2008-08-31  Bruno Haible  <bruno@clisp.org>
18860
18861         Assume Solaris specific bi-arch conventions on Solaris systems.
18862         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
18863         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
18864         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
18865         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
18866         like acl_libdirstem.
18867         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
18868         acl_libdirstem.
18869         * NEWS: Mention the change.
18870         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
18871
18872 2008-08-31  Jim Meyering  <meyering@redhat.com>
18873
18874         * lib/strftime.h: Add comments describing the two added arguments.
18875
18876         remove duplicate #include directives
18877         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
18878         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
18879
18880 2008-08-31  Bruno Haible  <bruno@clisp.org>
18881
18882         New module 'sigpipe-die'.
18883         * modules/sigpipe-die: New file.
18884         * lib/sigpipe-die.h: New file.
18885         * lib/sigpipe-die.c: New file.
18886         * MODULES.html.sh (Signal handling): Add sigpipe-die.
18887
18888 2008-08-31  Bruno Haible  <bruno@clisp.org>
18889
18890         Don't override previously installed signal handlers.
18891         * lib/fatal-signal.c (saved_sigactions): New variable.
18892         (uninstall_handlers): Reset the signal to the saved handler, not
18893         to SIG_DFL (except when ignored).
18894         (install_handlers): Save the previous handlers.
18895
18896 2008-08-30  Bruno Haible  <bruno@clisp.org>
18897
18898         * gnulib-tool (func_reset_sigpipe): New function.
18899         (func_get_automake_snippet, func_modules_transitive_closure,
18900         func_import): Invoke it before a join command that reads from stdin,
18901         to avoid "echo: write error: Broken pipe" error messages on stderr.
18902         Reported by Sam Steingold <sds@gnu.org>.
18903
18904 2008-08-30  Bruno Haible  <bruno@clisp.org>
18905
18906         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
18907         Code copied from m4/open.m4.
18908         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
18909         access and the filename ends in a slash. Code copied from lib/open.c.
18910         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
18911         * tests/test-fopen.c (main): Check against bug with trailing slash.
18912
18913 2008-08-29  Bruno Haible  <bruno@clisp.org>
18914
18915         Avoid some "gcc -pedantic" warnings.
18916         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
18917         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
18918         * lib/dirent.in.h: Likewise.
18919         * lib/fcntl.in.h: Likewise.
18920         * lib/float.in.h: Likewise.
18921         * lib/iconv.in.h: Likewise.
18922         * lib/inttypes.in.h: Likewise.
18923         * lib/locale.in.h: Likewise.
18924         * lib/math.in.h: Likewise.
18925         * lib/netinet_in.in.h: Likewise.
18926         * lib/search.in.h: Likewise.
18927         * lib/signal.in.h: Likewise.
18928         * lib/stdarg.in.h: Likewise.
18929         * lib/stdint.in.h: Likewise.
18930         * lib/stdio.in.h: Likewise.
18931         * lib/stdlib.in.h: Likewise.
18932         * lib/string.in.h: Likewise.
18933         * lib/strings.in.h: Likewise.
18934         * lib/sys_select.in.h: Likewise.
18935         * lib/sys_socket.in.h: Likewise.
18936         * lib/sys_stat.in.h: Likewise.
18937         * lib/sys_time.in.h: Likewise.
18938         * lib/sysexits.in.h: Likewise.
18939         * lib/time.in.h: Likewise.
18940         * lib/unistd.in.h: Likewise.
18941         * lib/wchar.in.h: Likewise.
18942         * lib/wctype.in.h: Likewise.
18943         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
18944         * modules/fchdir (Makefile.am): Likewise.
18945         * modules/fcntl (Makefile.am): Likewise.
18946         * modules/float (Makefile.am): Likewise.
18947         * modules/iconv_open (Makefile.am): Likewise.
18948         * modules/inttypes (Makefile.am): Likewise.
18949         * modules/locale (Makefile.am): Likewise.
18950         * modules/math (Makefile.am): Likewise.
18951         * modules/netinet_in (Makefile.am): Likewise.
18952         * modules/search (Makefile.am): Likewise.
18953         * modules/signal (Makefile.am): Likewise.
18954         * modules/stdarg (Makefile.am): Likewise.
18955         * modules/stdint (Makefile.am): Likewise.
18956         * modules/stdio (Makefile.am): Likewise.
18957         * modules/stdlib (Makefile.am): Likewise.
18958         * modules/string (Makefile.am): Likewise.
18959         * modules/strings (Makefile.am): Likewise.
18960         * modules/sys_select (Makefile.am): Likewise.
18961         * modules/sys_socket (Makefile.am): Likewise.
18962         * modules/sys_stat (Makefile.am): Likewise.
18963         * modules/sys_time (Makefile.am): Likewise.
18964         * modules/sysexits (Makefile.am): Likewise.
18965         * modules/time (Makefile.am): Likewise.
18966         * modules/unistd (Makefile.am): Likewise.
18967         * modules/wchar (Makefile.am): Likewise.
18968         * modules/wctype (Makefile.am): Likewise.
18969         Reported by Reuben Thomas <rrt@sc3d.org>.
18970
18971 2008-08-29  Bruno Haible  <bruno@clisp.org>
18972
18973         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
18974         any more.
18975
18976 2008-08-29  Simon Josefsson  <simon@josefsson.org>
18977
18978         * MODULES.html.sh (Misc): Add bitrotate.
18979
18980         * modules/bitrotate: New file.
18981
18982         * lib/bitrotate.h: New file.
18983
18984         * modules/bitrotate-tests: New file.
18985
18986         * tests/test-bitrotate.c: New file.
18987
18988         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
18989         on the bitrotate module.
18990
18991         * lib/arctwo.c: Use new bitrotate module.
18992
18993 2008-08-29  Jim Meyering  <meyering@redhat.com>
18994
18995         bootstrap: merge changes from coreutils
18996         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
18997         of copied files.  Remove a kludge, now that this is fixed.
18998         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
18999         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
19000         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
19001
19002 2008-08-29  Bruno Haible  <bruno@clisp.org>
19003
19004         * MODULES.html.sh: Remove --cvs-urls option.
19005
19006 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
19007
19008         maint.mk: adjust to file name change
19009         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
19010
19011 2008-08-28  Jim Meyering  <meyering@redhat.com>
19012
19013         * modules/getndelim2 (License): Relicense to LGPLv2+.
19014         Approved by Richard Stallman for the version of 1995, and by
19015         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
19016
19017 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
19018
19019         * lib/getdelim.c (flockfile, funlockfile): Make all of them
19020         dummy if one is not available.  Do not touch them if
19021         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
19022         (getc_maybe_unlocked): New.
19023         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
19024
19025 2008-08-26  Eric Blake  <ebb9@byu.net>
19026
19027         doc/INSTALL: resync from autoconf
19028         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
19029         (INSTALL_PRELUDE): Delete; this is done more efficiently by
19030         moving...
19031         * install.texi [!autoconf]: ...here.  Resync from autoconf.
19032         * INSTALL: Regenerate.
19033         * INSTALL.ISO: New file.
19034         * INSTALL.UTF-8: Likewise.
19035
19036 2008-08-26  Jim Meyering  <meyering@redhat.com>
19037
19038         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
19039         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
19040         these definitions conditional, so that they may be overridden, too.
19041
19042 2008-08-26  Bruno Haible  <bruno@clisp.org>
19043
19044         Generate INSTALL file variants with prettier quotes.
19045         * doc/Makefile (INSTALL_PRELUDE): New macro.
19046         (INSTALL): Use it.
19047         (INSTALL.ISO, INSTALL.UTF-8): New rules.
19048
19049 2008-08-26  Bruno Haible  <bruno@clisp.org>
19050
19051         Run makeinfo in an English locale.
19052         * doc/Makefile (MAKEINFO): New variable.
19053
19054 2008-08-26  Bruno Haible  <bruno@clisp.org>
19055
19056         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
19057         Suggested by Eric Blake.
19058
19059 2008-08-25  Bruno Haible  <bruno@clisp.org>
19060
19061         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
19062
19063 2008-08-25  Eric Blake  <ebb9@byu.net>
19064
19065         c-stack: test that stack overflow can be caught
19066         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
19067         that platform allows handling stack overflow; at least OS/2 EMX
19068         has sigaltstack, but crashes before transferring control to
19069         handler on stack overflow.
19070         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
19071         check for HAVE_STACK_OVERFLOW_HANDLING.
19072         Reported by Elbert Pol.
19073
19074 2008-08-25  Bruno Haible  <bruno@clisp.org>
19075
19076         * doc/posix-functions/strftime.texi: Fix description of strftime
19077         module.
19078
19079 2008-08-24  Bruno Haible  <bruno@clisp.org>
19080
19081         * tests/uniwidth/test-uc_width2.c: New file.
19082         * tests/uniwidth/test-uc_width2.sh: New file.
19083         * modules/uniwidth/width-tests (Files): Add the new files.
19084         (TESTS): Add uniwidth/test-uc_width2.sh.
19085         (TESTS_ENVIRONMENT): New variable.
19086         (check_PROGRAMS): Add test-uc_width2.
19087         (test_uc_width2_SOURCES): New variable.
19088
19089         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
19090         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
19091         not 0x00AB.
19092         Reported by Alexander V. Lukyanov <lav@netis.ru>.
19093
19094 2008-08-22  Eric Blake  <ebb9@byu.net>
19095
19096         test-lock, test-tls: mention why a test is skipped
19097         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
19098         skipped.
19099         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
19100
19101         count-one-bits: relax license
19102         * modules/count-one-bits (License): Relicense to LGPLv2+.
19103         Suggested by Ludovic Courtès, approved by Ben Pfaff.
19104
19105 2008-08-22  Andreas Schwab  <schwab@suse.de>
19106
19107         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19108         Remove spurious space in assignment.
19109
19110 2008-08-21  Simon Josefsson  <simon@josefsson.org>
19111
19112         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
19113         Paul Eggert <eggert@CS.UCLA.EDU>.
19114
19115 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
19116
19117         * modules/gettext: Add m4/threadlib.m4.
19118
19119 2008-08-19  Eric Blake  <ebb9@byu.net>
19120
19121         test-c-stack: fix compilation failure on FreeBSD 5.0
19122         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
19123         headers before <sys/resource.h>.
19124         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
19125         the bug.
19126         Reported by Nelson H. F. Beebe.
19127
19128         strverscmp: migrate from "strverscmp.h" to <string.h>
19129         * modules/string (Makefile.am): Add new hooks.
19130         * modules/strverscmp (Files): Remove strverscmp.h.
19131         (Depends-on): Add string.
19132         (configure.ac): Add indicator.
19133         (Include): Mention new header.
19134         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
19135         defaults.
19136         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
19137         results.
19138         * lib/strverscmp.h: Delete.
19139         * lib/string.in.h (strverscmp): Provide declaration, when needed.
19140         * tests/test-strverscmp.c (includes): Adjust client.
19141         * lib/check-version.c (includes): Likewise.
19142         * NEWS: Document the change.
19143
19144         strverscmp: add unit test
19145         * modules/strverscmp-tests: New file.
19146         * tests/test-strverscmp.c: Likewise.
19147
19148 2008-08-19  Simon Josefsson  <simon@josefsson.org>
19149
19150         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
19151         regarding Windows crypto stuff, from Mono.
19152
19153 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
19154
19155         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
19156         if present, for intel RND.  Return error on failures.
19157
19158 2008-08-18  Ben Pfaff  <blp@gnu.org>
19159
19160         gitlog-to-changelog: give better diagnostic for failed pipe-open
19161         * build-aux/gitlog-to-changelog: Improve error message: suggest
19162         that the version of Git may be too old.
19163
19164 2008-08-18  Simon Josefsson  <simon@josefsson.org>
19165
19166         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
19167         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
19168
19169 2008-08-18  Bruno Haible  <bruno@clisp.org>
19170
19171         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
19172         pthread_in_use().
19173
19174 2008-08-18  Bruno Haible  <bruno@clisp.org>
19175
19176         * lib/glthread/threadlib.c: Include <pthread.h>.
19177
19178 2008-08-18  Bruno Haible  <bruno@clisp.org>
19179
19180         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
19181         glthread_recursive_lock_* macros.
19182         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
19183         Fix syntax error.
19184
19185 2008-08-18  Bruno Haible  <bruno@clisp.org>
19186
19187         * lib/glthread/thread.c: Avoid forcing a context switch right after
19188         thread creation.
19189
19190 2008-08-17  Bruno Haible  <bruno@clisp.org>
19191
19192         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
19193         * lib/glthread/thread.h: Provide Win32 specific implementation.
19194         * modules/thread (Files): Add lib/glthread/thread.c.
19195         (Depends-on): Add lock.
19196         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
19197
19198 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19199
19200         New module 'yield'.
19201         * modules/yield: New file.
19202         * lib/glthread/yield.h: New file.
19203         * m4/yield.m4: New file.
19204         * MODULES.html.sh (Multithreading): Add yield.
19205
19206 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19207
19208         New module 'thread'.
19209         * modules/thread: New file.
19210         * lib/glthread/thread.h: New file.
19211         * m4/thread.m4: New file.
19212         * MODULES.html.sh (Multithreading): Add thread.
19213
19214 2008-08-17  Bruno Haible  <bruno@clisp.org>
19215
19216         * lib/glthread/lock.h: Include <stdlib.h> always.
19217         * lib/glthread/tls.h: Likewise.
19218         * lib/glthread/cond.h: Likewise.
19219
19220 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19221
19222         New module 'cond'.
19223         * modules/cond: New file.
19224         * lib/glthread/cond.h: New file.
19225         * lib/glthread/cond.c: New file.
19226         * m4/cond.m4: New file.
19227         * MODULES.html.sh (Multithreading): Add cond.
19228
19229 2008-08-16  Eric Blake  <ebb9@byu.net>
19230
19231         c-stack: fix regression on Irix 5.3 from 2008-06-21
19232         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
19233         sa_sigaction...
19234         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
19235         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
19236         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
19237         * modules/signal (Makefile.am): Use the value.
19238         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
19239         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
19240         * doc/posix-headers/signal.texi (signal.h): Document this
19241         portability issue.
19242         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
19243         Reported by Tom G. Christensen.
19244
19245 2008-08-17  Bruno Haible  <bruno@clisp.org>
19246
19247         New module 'threadlib'.
19248         * modules/threadlib: New file.
19249         * lib/glthread/threadlib.c: New file, extracted from
19250         lib/glthread/lock.c.
19251         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
19252         functions.
19253         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
19254         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
19255         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
19256         macros.
19257         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
19258         (gl_DISABLE_THREADS): Remove macro.
19259         * modules/lock (Files): Remove build-aux/config.rpath.
19260         (Depends-on): Remove havelib. Add threadlib.
19261         (configure.ac-early): Remove section.
19262         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
19263         * modules/tls (Depends-on): Remove lock. Add threadlib.
19264         (Link): New section, copied from threadlib.
19265         * MODULES.html.sh (Multithreading): Add threadlib.
19266
19267 2008-08-14  Bruno Haible  <bruno@clisp.org>
19268
19269         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
19270         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
19271         glthread_rwlock_unlock, glthread_rwlock_destroy,
19272         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
19273         glthread_recursive_lock_destroy): Define as macros always.
19274         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
19275         glthread_lock_lock.
19276         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
19277         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
19278         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
19279         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
19280         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
19281         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
19282         (glthread_recursive_lock_lock_func): Renamed from
19283         glthread_recursive_lock_lock.
19284         (glthread_recursive_lock_unlock_func): Renamed from
19285         glthread_recursive_lock_unlock.
19286         (glthread_recursive_lock_destroy_func): Renamed from
19287         glthread_recursive_lock_destroy.
19288
19289 2008-08-14  Bruno Haible  <bruno@clisp.org>
19290
19291         * lib/glthread/lock.h: Renamed from lib/lock.h.
19292         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
19293         * lib/glthread/tls.h: Renamed from lib/tls.h.
19294         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
19295         * lib/fstrcmp.c: Update includes.
19296         * lib/strsignal.c: Update includes.
19297         * modules/lock (Files, Makefile.am): Update.
19298         (Include): Change to "glthread/lock.h".
19299         * modules/tls (Files, Makefile.am): Update.
19300         (Include): Change to "glthread/tls.h".
19301         * tests/test-lock.c: Update includes.
19302         * tests/test-tls.c: Update includes.
19303         * NEWS: Mention the renamed header files.
19304
19305 2008-08-11  Jim Meyering  <meyering@redhat.com>
19306
19307         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
19308
19309 2008-08-11  Eric Blake  <ebb9@byu.net>
19310
19311         test-c-stack: avoid C99-ism
19312         * tests/test-c-stack.c (main): Fix whitespace, move declaration
19313         before statement.
19314         Reported by Alain Guibert.
19315
19316 2008-08-10  Jim Meyering  <meyering@redhat.com>
19317
19318         ensure that return value of uinttostr et al are not ignored
19319         * lib/inttostr.h (__GNUC_PREREQ): Define.
19320         (__attribute_warn_unused_result__): Define.
19321         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
19322
19323 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
19324
19325         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
19326         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
19327
19328 2008-08-07  Jim Meyering  <meyering@redhat.com>
19329
19330         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
19331
19332         * modules/mkstemp (License): Relicense under LGPLv2+.
19333         * modules/tempname (License): Likewise.
19334
19335 2008-08-06  Bruno Haible  <bruno@clisp.org>
19336
19337         * lib/poll.c (poll): Further micro-optimization.
19338
19339 2008-08-06  Jim Meyering  <meyering@redhat.com>
19340
19341         inet_pton.c: use locale-independent tolower
19342         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
19343         (inet_pton6): Use c_tolower rather than tolower.
19344         * modules/inet_pton (Depends-on): Add c-ctype.
19345
19346 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
19347
19348         * lib/poll.c (poll): Avoid division when timeout is 0, cache
19349         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
19350
19351 2008-08-06  Jim Meyering  <meyering@redhat.com>
19352
19353         * modules/inet_pton (License): Relicense under LGPLv2+.
19354
19355 2008-08-03  Bruno Haible  <bruno@clisp.org>
19356
19357         Additional non-aborting API for lock and tls.
19358         * lib/lock.h: Include <errno.h>.
19359         (glthread_lock_init): New macro/function.
19360         (gl_lock_init): Define as wrapper around glthread_lock_init.
19361         (glthread_lock_lock): New macro/function.
19362         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
19363         (glthread_lock_unlock): New macro/function.
19364         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
19365         (glthread_lock_destroy): New macro/function.
19366         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
19367         (glthread_rwlock_init): New macro/function.
19368         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
19369         (glthread_rwlock_rdlock): New macro/function.
19370         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
19371         (glthread_rwlock_wrlock): New macro/function.
19372         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
19373         (glthread_rwlock_unlock): New macro/function.
19374         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
19375         (glthread_rwlock_destroy): New macro/function.
19376         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
19377         (glthread_recursive_lock_init): New macro/function.
19378         (gl_recursive_lock_init): Define as wrapper around
19379         glthread_recursive_lock_init.
19380         (glthread_recursive_lock_lock): New macro/function.
19381         (gl_recursive_lock_lock): Define as wrapper around
19382         glthread_recursive_lock_lock.
19383         (glthread_recursive_lock_unlock): New macro/function.
19384         (gl_recursive_lock_unlock): Define as wrapper around
19385         glthread_recursive_lock_unlock.
19386         (glthread_recursive_lock_destroy): New macro/function.
19387         (gl_recursive_lock_destroy): Define as wrapper around
19388         glthread_recursive_lock_destroy.
19389         (glthread_once): New macro/function.
19390         (gl_once): Define as wrapper around glthread_once.
19391         Update function declarations.
19392         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
19393         glthread_rwlock_init. Return error code.
19394         (glthread_rwlock_rdlock_multithreaded): Renamed from
19395         glthread_rwlock_rdlock. Return error code.
19396         (glthread_rwlock_wrlock_multithreaded): Renamed from
19397         glthread_rwlock_wrlock. Return error code.
19398         (glthread_rwlock_unlock_multithreaded): Renamed from
19399         glthread_rwlock_unlock. Return error code.
19400         (glthread_rwlock_destroy_multithreaded): Renamed from
19401         glthread_rwlock_destroy. Return error code.
19402         (glthread_recursive_lock_init_multithreaded): Renamed from
19403         glthread_recursive_lock_init. Return error code.
19404         (glthread_recursive_lock_lock_multithreaded): Renamed from
19405         glthread_recursive_lock_lock. Return error code.
19406         (glthread_recursive_lock_unlock_multithreaded): Renamed from
19407         glthread_recursive_lock_unlock. Return error code.
19408         (glthread_recursive_lock_destroy_multithreaded): Renamed from
19409         glthread_recursive_lock_destroy. Return error code.
19410         (glthread_once_call): Make static.
19411         (glthread_once_multithreaded): Renamed from glthread_once.
19412         * lib/tls.h: Include <errno.h>.
19413         (glthread_tls_key_init): New macro/function.
19414         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
19415         (glthread_tls_set): New macro/function.
19416         (gl_tls_set): Define as wrapper around glthread_tls_set.
19417         (glthread_tls_key_destroy): New macro/function.
19418         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
19419         Update function declarations.
19420         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
19421         glthread_tls_get.
19422         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19423
19424 2008-08-04  Eric Blake  <ebb9@byu.net>
19425
19426         gnumakefile: use space, not TAB, outside of targets
19427         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
19428
19429 2008-08-02  Jim Meyering  <meyering@redhat.com>
19430
19431         getdate.y: avoid locale-dependent date parsing failure
19432         In Turkish locales, getdate would fail to recognize keywords
19433         containing a lowercase "i".  The solution is not to rely on
19434         locale-sensitive case-conversion.
19435         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
19436         (lookup_word): Use c_toupper in place of toupper.
19437         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
19438         Reported by Vefa Bicakci <bicave@superonline.com> in
19439         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
19440         * modules/getdate (Depends-on): Add c-ctype.
19441
19442 2008-08-02  Bruno Haible  <bruno@clisp.org>
19443
19444         * gnulib-tool (func_import): When updating or creating a .gitignore
19445         file, prepend each added line with a slash, and ignore leading slashes
19446         from the existing lines.
19447         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19448
19449 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19450
19451         Portability fix for GNU make 3.79.1.
19452         * top/GNUmakefile: Avoid 'else COND', which older GNU make
19453         versions do not understand.
19454
19455 2008-08-01  Bruno Haible  <bruno@clisp.org>
19456
19457         Work around bug of HP-UX 10.20 cc with -0.0 literal.
19458         * tests/test-isnanf.h (zero): New variable.
19459         (main): Avoid literal -0.0f.
19460         * tests/test-isnand.h (zero): New variable.
19461         (main): Avoid literal -0.0.
19462         * tests/test-isnanl.h (zero): New variable.
19463         (main): Avoid literal -0.0L.
19464         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
19465         (test_float, test_double, test_long_double): Avoid literals -0.0f,
19466         -0.0, -0.0L.
19467         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
19468         (test_signbitd): Avoid literal -0.0.
19469         (test_signbitl): Avoid literal -0.0L.
19470         * tests/test-ceilf1.c (zero): New variable.
19471         (main): Avoid literal -0.0f.
19472         * tests/test-ceill.c (zero): New variable.
19473         (main): Avoid literal -0.0L.
19474         * tests/test-floorf1.c (zero): New variable.
19475         (main): Avoid literal -0.0f.
19476         * tests/test-floorl.c (zero): New variable.
19477         (main): Avoid literal -0.0L.
19478         * tests/test-roundf1.c (zero): New variable.
19479         (main): Avoid literal -0.0f.
19480         * tests/test-round1.c (zero): New variable.
19481         (main): Avoid literal -0.0.
19482         * tests/test-roundl.c (zero): New variable.
19483         (main): Avoid literal -0.0L.
19484         * tests/test-truncf1.c (zero): New variable.
19485         (main): Avoid literal -0.0f.
19486         * tests/test-trunc1.c (zero): New variable.
19487         (main): Avoid literal -0.0.
19488         * tests/test-truncl.c (zero): New variable.
19489         (main): Avoid literal -0.0L.
19490         * tests/test-frexp.c (zero): New variable.
19491         (main): Avoid literal -0.0.
19492         * tests/test-frexpl.c (zero): New variable.
19493         (main): Avoid literal -0.0L.
19494         * tests/test-ldexpl.c (zero): New variable.
19495         (main): Avoid literal -0.0L.
19496         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19497         (zerod, zerol): New variables.
19498         (test_function): Avoid literals -0.0, -0.0L.
19499         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19500         (zerod, zerol): New variables.
19501         (test_function): Avoid literals -0.0, -0.0L.
19502         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19503         (zerod, zerol): New variables.
19504         (test_function): Avoid literals -0.0, -0.0L.
19505         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19506         (zerod, zerol): New variables.
19507         (test_function): Avoid literals -0.0, -0.0L.
19508         * tests/test-strtod.c (zero): New variable.
19509         (main): Avoid literal -0.0.
19510         Reported by Jonathan C. Patschke <jp@centtech.com>.
19511
19512 2008-07-31  Jim Meyering  <meyering@redhat.com>
19513
19514         sha256.h: correct definition of SHA224_DIGEST_SIZE
19515         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
19516         Reported by Paulie Pena IV <paulie4@gmail.com>.
19517         Define as 224 / 8, rather than as a literal.
19518         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
19519         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
19520         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
19521
19522 2008-07-31  Bruno Haible  <bruno@clisp.org>
19523
19524         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
19525         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
19526         Reported by Jonathan Patschke <jp@centtech.com>.
19527
19528 2008-07-31  Bruno Haible  <bruno@clisp.org>
19529
19530         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
19531         Reported by Paolo Bonzini <bonzini@gnu.org>.
19532
19533 2008-07-30  Eric Blake  <ebb9@byu.net>
19534
19535         test-strtod: allow compilation without -lm
19536         * tests/test-strtod.c (main): Avoid link dependence on fabs.
19537         Reported by Dennis Clarke <blastwave@gmail.com>.
19538
19539 2008-07-28  Jim Meyering  <meyering@redhat.com>
19540
19541         bootstrap: work also when there are no .po files in po/
19542         * build-aux/bootstrap (update_po_files): Complete the change
19543         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
19544
19545 2008-07-27  Jim Meyering  <meyering@redhat.com>
19546
19547         * users.txt: Add zile.
19548
19549 2008-07-26  Ben Pfaff  <blp@gnu.org>
19550
19551         Add missing dependencies on new m4/exponent[fdl].m4 files.
19552         * modules/isnanf-nolibm: Add m4/exponentf.m4.
19553         * modules/isnand-nolibm: Add m4/exponentd.m4.
19554         * modules/isnanl-nolibm: Add m4/exponentl.m4.
19555         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
19556         m4/isnan[fdl].m4, because the macros actually used moved.
19557         Reported by Jim Meyering.
19558
19559 2008-07-14  Ben Pfaff  <blp@gnu.org>
19560
19561         Add isinf module.
19562         * lib/isinf.c: New file.
19563         * lib/math.in.h: Define isinf macro if we have decided to replace
19564         it.
19565         * m4/isinf.m4: New file.
19566         * m4/math_h.m4: Initialize and substitute variables for isinf
19567         module.
19568         * modules/isinf: New file.
19569         * modules/isinf-tests: New file.
19570         * modules/math: Add substitutions for new module.
19571         * tests/test-isinf.c: New file.
19572         * doc/posix-functions/isinf.texi: Mention new module.
19573         * MODULES.html.sh: Mention new module.
19574
19575 2008-07-14  Ben Pfaff  <blp@gnu.org>
19576
19577         Factor out some macros for use by additional modules.
19578         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
19579         exponentf.m4.
19580         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
19581         exponentd.m4.
19582         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
19583         file exponentl.m4.
19584         * m4/exponentf.m4: New file.
19585         * m4/exponentd.m4: New file.
19586         * m4/exponentl.m4: New file.
19587         * modules/isnanf: Use new file m4/exponentf.m4.
19588         * modules/isnand: Use new file m4/exponentd.m4.
19589         * modules/isnanl: Use new file m4/exponentl.m4.
19590
19591 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
19592
19593         mktime.c: normalize tp->tm_isdst value to -1/0/1.
19594         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
19595         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
19596         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
19597
19598         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
19599         readlink on platforms without PATH_MAX.
19600
19601 2008-07-21  Eric Blake  <ebb9@byu.net>
19602
19603         Warn, not fail, on stale version.
19604         * top/GNUmakefile (_curr-ver): Tone down previous patch.
19605
19606         Don't allow installation with stale devel version number.
19607         * top/GNUmakefile (_is-install-target): New macro.
19608         (_curr-ver): Forbid installation with stale version number.
19609
19610 2008-07-20  Bruno Haible  <bruno@clisp.org>
19611
19612         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
19613         TESTS_ENVIRONMENT.
19614         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
19615
19616 2008-07-20  Bruno Haible  <bruno@clisp.org>
19617
19618         * lib/c-stack.h (c_stack_action): Add documentation.
19619         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
19620
19621 2008-07-20  Bruno Haible  <bruno@clisp.org>
19622
19623         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
19624         * modules/readlink (License): Likewise.
19625
19626 2008-07-17  Eric Blake  <ebb9@byu.net>
19627
19628         * modules/c-stack (Link): Fix typo.
19629
19630         Make c-stack use libsigsegv, when available.
19631         * modules/c-stack (Depends-on): Add libsigsegv.
19632         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
19633         needed.
19634         * lib/c-stack.c (SIGSTKSZ): Define fallback.
19635         (segv_handler, overflow_handler, c_stack_action)
19636         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
19637         implementation when libsigsegv is available, but only when using
19638         the library is necessary.
19639         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
19640         comment, explaining why XSI check fails on Linux.
19641         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
19642         * tests/test-c-stack2.sh: Tweak skip message.
19643         * NEWS: Document new link-time requirements.
19644
19645 2008-07-16  Eric Blake  <ebb9@byu.net>
19646
19647         c-stack: Expose false positives when not using libsigsegv.
19648         * modules/c-stack-tests (Files): Expand test.
19649         * tests/test-c-stack.c (main): Add means to conditionally trigger
19650         non-overflow SIGSEGV.
19651         * tests/test-c-stack2.sh: New file.
19652
19653 2008-07-14  Bruno Haible  <bruno@clisp.org>
19654
19655         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
19656         Reported by Eric Blake.
19657
19658 2008-07-14  Sam Steingold  <sds@gnu.org>
19659             Bruno Haible  <bruno@clisp.org>
19660
19661         New module libsigsegv.
19662         * modules/libsigsegv: New file.
19663         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
19664         modifications.
19665         * MODULES.html.sh (Signal handling): New section.
19666
19667 2008-07-14  Bruno Haible  <bruno@clisp.org>
19668
19669         * modules/unictype/ctype-* (Description): Add the word "function".
19670         Improves the resulting doc in MODULES.html.
19671
19672 2008-07-12  Ben Pfaff  <blp@gnu.org>
19673
19674         Add longlong module.
19675         * modules/longlong: New file.
19676
19677 2008-07-12  Bruno Haible  <bruno@clisp.org>
19678
19679         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
19680         to empty.
19681
19682 2008-07-10  Ben Pfaff  <blp@gnu.org>
19683
19684         Add isnan module.
19685         * doc/posix-functions/isnan.texi: Mention new module.
19686         * lib/math.in.h: Define isnan macro if we have decided to replace
19687         it.
19688         * m4/isnan.m4: New file.
19689         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
19690         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
19691         also.
19692         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
19693         redundancy.
19694         * m4/math_h.m4: Initialize and substitute variables for isnan
19695         module.
19696         * modules/isnan: New file.
19697         * modules/isnan-tests: New file.
19698         * modules/math: Add substitutions for new module.
19699         * tests/test-isnan.c: New file.
19700         * MODULES.html.sh: Mention new module.
19701
19702 2008-07-10  Ben Pfaff  <blp@gnu.org>
19703
19704         Add isnanf module.
19705         * lib/isnanf.m4: New file.
19706         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
19707         (gl_HAVE_ISNANF_IN_LIBM): New macro.
19708         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
19709         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
19710         * modules/isnanf: New file.
19711         * modules/isnanf-tests: New file.
19712         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
19713         files.
19714         * tests/test-isnanf-nolibm.c: factored most of its contents into
19715         new file tests/test-isnanf.h.
19716         * tests/test-isnanf.h: New file.
19717         * tests/test-isnanf.c: New file.
19718         * MODULES.html.sh: Mention new module.
19719         * doc/glibc-functions/isnanf.texi: Mention new module.
19720
19721 2008-07-10  Ben Pfaff  <blp@gnu.org>
19722
19723         Add isnand module.
19724         * lib/isnand.h: New file.
19725         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
19726         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
19727         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
19728         functionality also.
19729         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
19730         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
19731         (gl_HAVE_ISNAND_IN_LIBM): New macro.
19732         * modules/isnand: New file.
19733         * modules/isnand-tests: New file.
19734         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
19735         files.
19736         * tests/test-isnand-nolibm.c: factored most of its contents into
19737         new file tests/test-isnand.h.
19738         * tests/test-isnand.h: New file.
19739         * tests/test-isnand.c: New file.
19740         * MODULES.html.sh: Mention new module.
19741
19742 2008-07-10  Ben Pfaff  <blp@gnu.org>
19743
19744         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
19745         * lib/isnand.h: Rename lib/isnand-nolibm.h.
19746         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
19747         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
19748         * modules/isnanf-nolibm: Update references to renamed files.
19749         * modules/isnand-nolibm: Likewise.
19750         * modules/isnanf-nolibm-tests: Likewise.
19751         * modules/isnand-nolibm-tests: Likewise.
19752         * lib/frexp.c: Likewise.
19753         * lib/isfinite.c: Likewise.
19754         * lib/signbitd.c: Likewise.
19755         * lib/signbitf.c: Likewise.
19756         * lib/vasnprintf.c: Likewise.
19757         * tests/test-ceilf1.c: Likewise.
19758         * tests/test-ceilf2.c: Likewise.
19759         * tests/test-floorf1.c: Likewise.
19760         * tests/test-floorf2.c: Likewise.
19761         * tests/test-frexp.c: Likewise.
19762         * tests/test-round1.c: Likewise.
19763         * tests/test-round2.c: Likewise.
19764         * tests/test-roundf1.c: Likewise.
19765         * tests/test-strtod.c: Likewise.
19766         * tests/test-trunc1.c: Likewise.
19767         * tests/test-trunc2.c: Likewise.
19768         * tests/test-truncf1.c: Likewise.
19769         * tests/test-truncf2.c: Likewise.
19770         * NEWS: Mention the renamed header files.
19771
19772 2008-07-11  Jim Meyering  <meyering@redhat.com>
19773
19774         vc-list-files: make the last-resort awk code more portable
19775         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
19776         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
19777         does not support it.
19778
19779 2008-07-10  Eric Blake  <ebb9@byu.net>
19780
19781         Work with tar's bootstrap.
19782         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
19783         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
19784         an m4 comment.
19785
19786 2008-07-09  Jim Meyering  <meyering@redhat.com>
19787
19788         posix-shell.m4: fix typo that made this test malfunction
19789         * m4/posix-shell.m4: Remove capitalization in variable name.
19790
19791 2008-07-08  Bruno Haible  <bruno@clisp.org>
19792
19793         * m4/onceonly.m4: Update comments.
19794         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19795
19796 2008-07-04  Jim Meyering  <meyering@redhat.com>
19797
19798         * users.txt: Add vc-dwim.
19799         (bison, coreutils): Use the gitweb URL.
19800
19801 2008-07-03  Jim Meyering  <meyering@redhat.com>
19802
19803         * users.txt: Add libffcall.  From Sam Steingold.
19804
19805 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
19806
19807         getdate.y: do not ignore TZ with relative day, month or year offset
19808         * lib/getdate.y (get_date): Move the tz-handling block to follow the
19809         relative-date-handling, since otherwise, the latter would clobber the
19810         sole output (an updated Start value) of the tz-handling block.
19811         * tests/test-getdate.c: Tests for the fix
19812
19813 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19814
19815         Recognize 'foo_LIBRARIES += libgnu.a'.
19816         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
19817         makefile snippet has already specified an installation location,
19818         also using '+='.
19819
19820 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
19821
19822         getdate.y: factor out common actions
19823         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
19824         Use them in place of open-coded actions.
19825
19826 2008-07-01  Simon Josefsson  <simon@josefsson.org>
19827
19828         Add self-test for getdate module.
19829         * modules/getdate-tests: New file.
19830         * tests/test-getdate.c: New file.
19831
19832 2008-06-29  Bruno Haible  <bruno@clisp.org>
19833
19834         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
19835         .gitignore.
19836         Reported by Sylvain Beucler <beuc@beuc.net>.
19837
19838 2008-06-29  Bruno Haible  <bruno@clisp.org>
19839
19840         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
19841         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
19842
19843 2008-06-29  Bruno Haible  <bruno@clisp.org>
19844
19845         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
19846         EXTRA_DIST.
19847         Reported by Sylvain Beucler <beuc@beuc.net>.
19848
19849 2008-06-26  Jim Meyering  <meyering@redhat.com>
19850
19851         make several modules depend on the "open" module
19852         This provides slightly increased consistency when opening-for-write
19853         the name of a non-directory spelled with a trailing slash.
19854         * modules/chdir-safer: Likewise.
19855         * modules/chown: Likewise.
19856         * modules/clean-temp: Likewise.
19857         * modules/copy-file: Likewise.
19858         * modules/fchdir: Likewise.
19859         * modules/fcntl-safer: Likewise.
19860         * modules/pipe: Likewise.
19861         * modules/utime: Likewise.
19862         Prompted by Eric Blake and Bruno Haible.
19863
19864 2008-06-24  Andreas Schwab  <schwab@suse.de>
19865
19866         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
19867         literals can be used as initializers for global variables.
19868
19869 2008-06-23  Eric Blake  <ebb9@byu.net>
19870
19871         Make gnulib-cache.m4 easier to diff.
19872         * gnulib-tool (func_import): Allow newlines when reading cached
19873         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
19874
19875 2008-06-23  Bruno Haible  <bruno@clisp.org>
19876
19877         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
19878         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
19879         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
19880         m4/signalblocking.m4.
19881         (gl_PREREQ_SIGACTION): Don't invoke it.
19882         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
19883         gl_PREREQ_SIG_HANDLER_H.
19884         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19885         Don't check for sigaction here.
19886
19887 2008-06-23  Bruno Haible  <bruno@clisp.org>
19888
19889         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
19890         (install_handlers): Don't set the SA_RESETHAND flag.
19891
19892 2008-06-23  Bruno Haible  <bruno@clisp.org>
19893
19894         * m4/sigaction.m4: Comment fixes.
19895         * lib/signal.in.h: Likewise.
19896
19897 2008-06-23  Eric Blake  <ebb9@byu.net>
19898
19899         Fix typo.
19900         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
19901
19902         Avoid SA_ namespace.
19903         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
19904         Reported by Ralf Wildenhues.
19905
19906         Avoid test failure due to SA_RESTORER.
19907         * tests/test-sigaction.c (SA_MASK): New macro.
19908         (main): Avoid failing due to extension flags being set.
19909         Reported by Jim Meyering.
19910
19911         Revert use of sig-handler.h in sigprocmask.c.
19912         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
19913         it requires the existence of struct sigaction.
19914         * lib/sigprocmask.c (handler_t): Restore typedef.
19915         (rpl_signal, old_handlers): Use local type.
19916
19917 2008-06-22  Bruno Haible  <bruno@clisp.org>
19918
19919         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
19920         conditionally.
19921         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19922
19923 2008-06-22  Bruno Haible  <bruno@clisp.org>
19924
19925         * doc/posix-functions/siginterrupt.texi: Move note.
19926
19927         * lib/signal.in.h (SA_RESTART): New macro.
19928         * lib/sigaction.c: Update comment.
19929
19930         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
19931
19932         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
19933         (gl_PREREQ_SIGPROCMASK): Invoke it.
19934         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
19935
19936         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
19937
19938         * lib/sigprocmask.c: Update a comment.
19939
19940 2008-06-21  Eric Blake  <ebb9@byu.net>
19941
19942         Use sigaction module rather than signal().
19943         * modules/c-stack (Depends-on): Add sigaction.
19944         * modules/fatal-signal (Depends-on): Likewise.
19945         * modules/nanosleep (Depends-on): Likewise.
19946         * modules/sigprocmask (Files): Add sig-handler.h.
19947         * modules/sigaction (Files): Likewise.
19948         * lib/sig-handler.h (get_handler): New file, suggested by Paul
19949         Eggert.
19950         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
19951         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
19952         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
19953         (init_fatal_signals): Likewise.
19954         * lib/nanosleep.c (rpl_nanosleep): Likewise.
19955         (siginterrupt): Delete fallback.
19956         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
19957         instead.
19958         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
19959         siginterrupt.
19960
19961         New module sigaction, for mingw.
19962         * modules/sigaction: New module...
19963         * modules/sigaction-tests: ...and its test.
19964         * m4/sigaction.m4: New file.
19965         * lib/sigaction.c: Likewise.
19966         * tests/test-sigaction.c: Likewise.
19967         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
19968         * modules/signal (Makefile.am): Likewise.
19969         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
19970         needed.
19971         * doc/posix-headers/signal.texi (signal.h): Mention provided
19972         types.
19973         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
19974         that sigaction is preferable.
19975         * doc/posix-functions/sigaction.texi (sigaction): Mention new
19976         module.
19977         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19978         sigaction.
19979
19980         Improve robustness of sigprocmask by overriding signal.
19981         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
19982         is in use.
19983         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
19984         (SIGKILL, SIGSTOP): Provide fallbacks.
19985         (rpl_signal): Implement.
19986         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
19987         signal can be called inside handlers.
19988
19989         Fix nanosleep module on mingw.
19990         * modules/nanosleep (Depends-on): Add sys_select.
19991         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
19992
19993         Fix licensing of sigprocmask.
19994         * modules/raise (License): Relicense as LGPL.
19995
19996 2008-06-21  Bruno Haible  <bruno@clisp.org>
19997
19998         * lib/propername.c (proper_name_utf8): Don't use the transliterated
19999         result if it contains question marks.
20000         Reported by Michael Geng <linux@michaelgeng.de>.
20001
20002 2008-06-19  Bruno Haible  <bruno@clisp.org>
20003
20004         Fix CVS-ism.
20005         * doc/gnulib.texi: Include updated-stamp.texi.
20006         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
20007         (updated-stamp.texi): New rule.
20008         (gnulib.info): Depend on it.
20009         * doc/.gitignore: Add updated-stamp.texi.
20010         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
20011
20012 2008-06-19  Bruno Haible  <bruno@clisp.org>
20013
20014         * doc/Makefile (gnulib.info): Update and simplify dependencies.
20015         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20016
20017 2008-06-19  Eric Blake  <ebb9@byu.net>
20018
20019         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
20020         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
20021         Reported by Stepan Kasal.
20022
20023 2008-06-18  Bruno Haible  <bruno@clisp.org>
20024
20025         * lib/fatal-signal.c (init_fatal_signals): Add comment.
20026         Reported by Eric Blake.
20027
20028 2008-06-18  Eric Blake  <ebb9@byu.net>
20029
20030         Work around cygwin 1.5.25 strsignal bug.
20031         * tests/test-strsignal.c: Allow for const char *.
20032         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
20033
20034 2008-06-18  Simon Josefsson  <simon@josefsson.org>
20035
20036         * users.txt: Update URL to article and add author/date
20037         information.
20038
20039 2008-06-17  Bruno Haible  <bruno@clisp.org>
20040
20041         New macro gl_DISABLE_THREADS.
20042         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
20043         if the user did not pass --enable-threads or --disable-threads option.
20044         (gl_DISABLE_THREADS): New macro.
20045         Reported by Eric Blake <ebb9@byu.net>.
20046
20047 2008-06-17  Bruno Haible  <bruno@clisp.org>
20048
20049         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
20050         when the macro ignores it.
20051         Based on a patch by Eric Blake <ebb9@byu.net>.
20052
20053 2008-06-17  Bruno Haible  <bruno@clisp.org>
20054
20055         * modules/tls (License): Change to LGPLv2+.
20056         Reported by Eric Blake.
20057
20058 2008-06-17  Eric Blake  <ebb9@byu.net>
20059
20060         Simplify c-stack prerequisites.
20061         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
20062         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
20063         no longer requires <ucontext.h> to exist.  Optimize setrlimit
20064         check.
20065         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
20066         <sys/resource.h>.
20067
20068         Move c-stack test into testsuite.
20069         * modules/c-stack-tests: New file.
20070         * lib/c-stack.c [DEBUG]: Move test program...
20071         * tests/test-c-stack.c: ...into this new file.  Skip rather than
20072         fail test if sigaltstack is lacking.
20073         * tests/test-c-stack.sh: New driver file.
20074
20075 2008-06-16  Eric Blake  <ebb9@byu.net>
20076
20077         Use raise module consistently.
20078         * modules/fatal-signal (Depends-on): Add raise.
20079         * modules/sigprocmask (Depends-on): Likewise.
20080         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
20081         * lib/sigprocmask.c (sigprocmask): Likewise.
20082         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20083         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
20084
20085         Fix compliance bug in sigpending.
20086         * lib/sigprocmask.c (sigpending): Return pending array via
20087         parameter, not return value.
20088
20089 2008-06-14  Eric Blake  <ebb9@byu.net>
20090
20091         Improve obstack-printf test code.
20092         * tests/test-obstack-printf.c (test_function): Fix comment, and
20093         simplify usage of obstack_* in macros.  Add a test for coverage.
20094         Reported by Bruno Haible.
20095
20096 2008-06-14  Bruno Haible  <bruno@clisp.org>
20097
20098         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
20099         array size as a constant, not as a const variable.
20100         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
20101         AC_USE_SYSTEM_EXTENSIONS.
20102         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20103         Test whether the obstack_printf function actually exists.
20104         * modules/obstack-printf (Depends-on): Add extensions.
20105         (Include): Remove obstack.h.
20106         * modules/obstack-printf-posix (Depends-on): Add extensions.
20107         (Include): Remove obstack.h.
20108
20109 2008-06-13  Eric Blake  <ebb9@byu.net>
20110
20111         Add obstack-printf and obstack-printf-posix modules.
20112         * modules/obstack-printf: New file.
20113         * modules/obstack-printf-posix: Likewise.
20114         * MODULES.html.sh (Misc): Mention them.
20115         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20116         Likewise.
20117         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20118         Likewise.
20119         * modules/stdio (Makefile.am): Accomodate new modules.
20120         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20121         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
20122         Declare.
20123         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
20124         functions.
20125         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
20126         (gl_REPLACE_OBSTACK_PRINTF): New macros
20127         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
20128         * tests/test-obstack-printf.c: New file.
20129         * modules/obstack-printf-tests: Likewise.
20130         * modules/obstack-printf-posix-tests: Likewise.
20131
20132 2008-06-11  Bruno Haible  <bruno@clisp.org>
20133
20134         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
20135         * lib/open.c: Include errno.h.
20136         (open): Fail when attempting to write to a file that has a trailing
20137         slash.
20138         * tests/test-open.c (main): Test against trailing slash bug.
20139         * doc/posix-functions/open.texi: Mention the trailing slash bug.
20140
20141 2008-06-10  Bruno Haible  <bruno@clisp.org>
20142
20143         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
20144         for $? to work inside the trap command, with various /bin/sh-s.
20145         * tests/test-vc-list-files-cvs.sh: Likewise.
20146
20147 2008-06-10  Bruno Haible  <bruno@clisp.org>
20148
20149         * lib/acl-internal.h: Don't include gettext.h here.
20150         * lib/set-mode-acl.c: Include gettext.h here.
20151         * lib/copy-acl.c: Likewise.
20152
20153 2008-06-10  Bruno Haible  <bruno@clisp.org>
20154
20155         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
20156         * lib/wait-process.c (wait_subprocess): Likewise.
20157         * lib/execute.h (execute): Add termsigp argument.
20158         * lib/execute.c (execute): Likewise.
20159         * lib/csharpcomp.c (compile_csharp_using_pnet,
20160         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
20161         * lib/csharpexec.c (execute_csharp_using_pnet,
20162         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
20163         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
20164         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
20165         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
20166         is_jikes_present): Update.
20167         * lib/javaexec.c (execute_java_class): Update.
20168         * lib/javaversion.c (execute_and_read_line): Update.
20169         * NEWS: Document the changes.
20170         Reported by Eric Blake.
20171
20172 2008-06-10  Eric Blake  <ebb9@byu.net>
20173
20174         Add missing include.
20175         * tests/test-strstr.c (includes): Add <signal.h>.
20176         * tests/test-strcasestr.c (includes): Likewise.
20177         * tests/test-memmem.c (includes): Likewise.
20178
20179 2008-06-10  Bruno Haible  <bruno@clisp.org>
20180
20181         * lib/wait-process.c (wait_subprocess): Add an assertion.
20182
20183 2008-06-10  Bruno Haible  <bruno@clisp.org>
20184
20185         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
20186
20187 2008-06-10  Bruno Haible  <bruno@clisp.org>
20188
20189         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
20190         using alarm().
20191         * tests/test-strcasestr.c (main): Likewise.
20192         * tests/test-strstr.c (main): Likewise.
20193
20194 2008-06-09  Bruno Haible  <bruno@clisp.org>
20195
20196         Work around the Solaris 10 ACE ACLs ABI change.
20197         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
20198         declare if ACL_NO_TRIVIAL is present.
20199         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
20200         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
20201         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
20202         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
20203         define if ACL_NO_TRIVIAL is present.
20204         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
20205         and use the current ABI.
20206         (file_has_acl): Use same #if condition as elsewhere.
20207         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
20208         in use, and use the current ABI.
20209         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
20210         Reported by Jim Meyering.
20211
20212 2008-06-09  Eric Blake  <ebb9@byu.net>
20213
20214         Work around environments that (stupidly) ignore SIGALRM.
20215         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
20216         before using alarm().
20217         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20218         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20219         Reported by Ian Beckwith <ianb@erislabs.net>.
20220
20221         Produce autobuild blurb earlier in log.
20222         * modules/autobuild (configure.ac-early): Move AB_INIT here.
20223
20224 2008-06-09  Jim Meyering  <meyering@redhat.com>
20225         and OndÅ™ej Vašík  <ovasik@redhat.com>
20226
20227         utimens.c: correct kernel bug work-around
20228         OndÅ™ej Vašík found that the invalid return value of 280 indicates
20229         failure, not success, and the kernel bug we're trying to work
20230         around affects not just the utimensat call, but also the fallback
20231         futimens call.
20232         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
20233         not success.
20234         [HAVE_FUTIMENS]: Use the same work-around, here.
20235
20236 2008-06-09  Jim Meyering  <meyering@redhat.com>
20237
20238         add more guards around definition of ACE_-related code
20239         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
20240         ALLOW and ACE_OWNER are also defined.
20241
20242 2008-06-08  Bruno Haible  <bruno@clisp.org>
20243
20244         * lib/acl-internal.h: Add me as co-author.
20245         * lib/file-has-acl.c: Likewise.
20246         * lib/set-mode-acl.c: Likewise.
20247         * lib/copy-acl.c: Likewise.
20248
20249 2008-06-08  Bruno Haible  <bruno@clisp.org>
20250
20251         Add support for AIX ACLs.
20252         * lib/acl-internal.h (acl_nontrivial): New declaration.
20253         * lib/file-has-acl.c (acl_nontrivial): New function.
20254         (file_has_acl): Add implementation using AIX 4 ACL API.
20255         * lib/set-mode-acl.c (qset_acl): Likewise.
20256         * lib/copy-acl.c (qcopy_acl): Likewise.
20257
20258 2008-06-08  Bruno Haible  <bruno@clisp.org>
20259
20260         Add support for HP-UX ACLs.
20261         * lib/acl-internal.h (acl_nontrivial): New declaration.
20262         * lib/file-has-acl.c (acl_nontrivial): New function.
20263         (file_has_acl): Add implementation using HP-UX 11 ACL API.
20264         * lib/set-mode-acl.c (qset_acl): Likewise.
20265         * lib/copy-acl.c (qcopy_acl): Likewise.
20266
20267 2008-06-08  Bruno Haible  <bruno@clisp.org>
20268
20269         Add support for Cygwin ACLs.
20270         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
20271         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
20272         the chmod_or_fchmod call.
20273         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
20274
20275 2008-06-08  Bruno Haible  <bruno@clisp.org>
20276
20277         Fix bug with setuid modes in Solaris 10+ code.
20278         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
20279         succeeded, when the mode contains some special bits.
20280
20281 2008-06-08  Bruno Haible  <bruno@clisp.org>
20282
20283         Add support for Solaris 7..10 ACLs.
20284         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
20285         declarations.
20286         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
20287         functions.
20288         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
20289         * lib/set-mode-acl.c (qset_acl): Likewise.
20290         * lib/copy-acl.c (qcopy_acl): Likewise.
20291
20292 2008-06-08  Bruno Haible  <bruno@clisp.org>
20293
20294         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
20295         declaration.
20296         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
20297         (acl_access_nontrivial): Remove MacOS X case.
20298         (file_has_acl): Use acl_extended_nontrivial.
20299         * lib/copy-acl.c (qcopy_acl): Likewise.
20300
20301 2008-06-08  Bruno Haible  <bruno@clisp.org>
20302
20303         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
20304
20305 2008-06-08  Jim Meyering  <meyering@redhat.com>
20306
20307         * modules/acl (Maintainer): Add Bruno Haible.
20308
20309 2008-06-07  Bruno Haible  <bruno@clisp.org>
20310
20311         Improve support for Tru64 ACLs.
20312         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
20313         ACL on OSF/1.
20314
20315 2008-06-07  Bruno Haible  <bruno@clisp.org>
20316
20317         Add support for MacOS X ACLs.
20318         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
20319         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
20320         * lib/set-mode-acl.c (qset_acl): Likewise.
20321         * lib/copy-acl.c (qcopy_acl): Likewise.
20322
20323 2008-06-07  Bruno Haible  <bruno@clisp.org>
20324
20325         Fix memory leak introduced on 2008-05-22.
20326         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
20327         use.
20328
20329 2008-06-07  Bruno Haible  <bruno@clisp.org>
20330
20331         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
20332         to construct an empty ACL.
20333
20334 2008-06-07  Bruno Haible  <bruno@clisp.org>
20335
20336         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
20337         precisely.
20338         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
20339
20340 2008-06-07  Bruno Haible  <bruno@clisp.org>
20341
20342         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
20343         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
20344
20345 2008-06-07  Bruno Haible  <bruno@clisp.org>
20346
20347         * doc/posix-functions/_setjmp.texi: Explain the use of this function
20348         regardless of POSIX.
20349         * doc/posix-functions/_longjmp.texi: Likewise.
20350         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
20351         SystemV platform in this case.
20352
20353 2008-06-06  Eric Blake  <ebb9@byu.net>
20354
20355         Document abort() bugs.
20356         * doc/posix-functions/abort.texi (abort): Mention anomalies.
20357
20358         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
20359         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
20360         sigsetjmp.
20361         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
20362         siglongjmp, but only as a macro.
20363         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
20364         is obsolete.
20365         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
20366
20367         Tweak documentation to cover cygwin argz bugs.
20368         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
20369         argz bug fix; no code change needed since no cygwin releases
20370         occurred between the last fix and the bug being tested.
20371         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
20372         module and recently fixed cygwin bugs.
20373         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
20374         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
20375         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
20376         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
20377         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
20378         Likewise.
20379         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
20380         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
20381         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
20382         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
20383         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
20384         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
20385         Likewise.
20386
20387         Avoid gcc warning on cygwin.
20388         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
20389         !ACL_NO_TRIVIAL]: Avoid unused variable.
20390
20391 2008-06-05  Eric Blake  <ebb9@byu.net>
20392
20393         Be tolerant of UNKNOWN version in gnulib-tool test dir.
20394         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
20395         git-version-gen fails to come up with a version.
20396         Reported by Simon Josefsson.
20397
20398 2008-06-05  Jim Meyering  <meyering@redhat.com>
20399             Paul Eggert  <eggert@cs.ucla.edu>
20400
20401         utimens.c: work around a probable Linux kernel bug
20402         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
20403         appears to be a kernel bug that causes utimensat to return 280
20404         instead of 0, indicating success.
20405
20406 2008-06-04  Bruno Haible  <bruno@clisp.org>
20407
20408         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
20409         2008-06-01 commit.
20410
20411 2008-06-04  Bruno Haible  <bruno@clisp.org>
20412
20413         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
20414         * lib/file-has-acl.c (acl_access_nontrivial): New function.
20415         (file_has_acl): Use it. Save errno afterwards.
20416         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
20417
20418 2008-06-03  Bruno Haible  <bruno@clisp.org>
20419
20420         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
20421         draft code. Simplify #ifs.
20422         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
20423         Put Solaris code after POSIX-draft code. Fix comments regarding
20424         Solaris 10, HP-UX. Mention Cygwin.
20425         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
20426
20427 2008-06-03  Eric Blake  <ebb9@byu.net>
20428
20429         Provide fallback for older kernels.
20430         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
20431         Provide runtime fallback if kernel lacks support.
20432         Reported by Mike Frysinger.
20433
20434 2008-06-02  Bruno Haible  <bruno@clisp.org>
20435
20436         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
20437         it exists.
20438
20439 2008-06-02  Bruno Haible  <bruno@clisp.org>
20440
20441         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
20442         * lib/copy-acl.c (qcopy_acl): Update comment.
20443
20444 2008-06-02  Bruno Haible  <bruno@clisp.org>
20445
20446         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
20447         like ACL APIs.
20448
20449 2008-06-02  Bruno Haible  <bruno@clisp.org>
20450
20451         * tests/test-file-has-acl.sh: Use different code for Cygwin.
20452         * tests/test-set-mode-acl.sh: Likewise.
20453         * tests/test-copy-acl.sh: Likewise.
20454         * tests/test-copy-file.sh: Likewise.
20455
20456 2008-06-02  Bruno Haible  <bruno@clisp.org>
20457
20458         * tests/test-file-has-acl.sh: Remove unused code.
20459
20460 2008-06-01  Bruno Haible  <bruno@clisp.org>
20461
20462         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
20463         (copy_acl): Just a wrapper around qcopy_acl that emits the error
20464         messages.
20465         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
20466
20467 2008-06-01  Bruno Haible  <bruno@clisp.org>
20468
20469         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
20470         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
20471         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
20472         APIs.
20473         * modules/acl-tests (configure.ac): Remove tests now contained in
20474         m4/acl.m4.
20475
20476 2008-06-02  Jim Meyering  <meyering@redhat.com>
20477
20478         announce-gen: use a better key-server host name
20479         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
20480         it may be more consistently reliable.  Suggested by Werner Koch
20481         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
20482
20483 2008-06-01  Bruno Haible  <bruno@clisp.org>
20484
20485         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
20486         Reported by Voroskoi Andras <voroskoi@gmail.com>.
20487
20488 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
20489
20490         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
20491
20492 2008-06-01  Bruno Haible  <bruno@clisp.org>
20493
20494         New ACL tests.
20495         * tests/test-file-has-acl.sh: New file.
20496         * tests/test-file-has-acl.c: New file.
20497         * tests/test-set-mode-acl.sh: New file.
20498         * tests/test-set-mode-acl.c: New file.
20499         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
20500         * tests/test-copy-acl.c: New file.
20501         * modules/acl-tests: New file, based on modules/copy-file-tests.
20502         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
20503         (Depends-on): Add acl-tests.
20504         (configure.ac): Remove checks.
20505         (Makefile.am): Don't create test-sameacls program here any more.
20506
20507 2008-06-01  Bruno Haible  <bruno@clisp.org>
20508
20509         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
20510         * tests/test-sameacls.c: Include progname.h.
20511         (main): Invoke set_program_name. Portability fixes for MacOS X,
20512         Solaris, HP-UX.
20513
20514 2008-06-01  Bruno Haible  <bruno@clisp.org>
20515
20516         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
20517         function.
20518         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
20519
20520 2008-06-01  Bruno Haible  <bruno@clisp.org>
20521
20522         * modules/rpmatch (Depends-on): Add strdup.
20523
20524 2008-06-01  Bruno Haible  <bruno@clisp.org>
20525
20526         * lib/pipe.c: Include unistd-safer.h.
20527         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
20528         * modules/pipe (Depends-on): Add unistd-safer.
20529
20530 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20531
20532         * modules/autobuild (configure.ac): Call AB_INIT.
20533
20534 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20535
20536         * tests/test-getaddrinfo.c: Don't print debug messages by default.
20537         Suggested by Bruno Haible <bruno@clisp.org>.
20538
20539 2008-05-30  Simon Josefsson  <simon@josefsson.org>
20540
20541         * tests/test-base64.c: Cast size_t to unsigned long when invoking
20542         printf.  Use %lu instead of %d.  Reported by Bruno Haible
20543         <bruno@clisp.org>.
20544
20545 2008-05-29  Eric Blake  <ebb9@byu.net>
20546
20547         Prefer new POSIX 200x interfaces over futimesat.
20548         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
20549         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
20550         when available.
20551         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
20552
20553 2008-05-28  Bruno Haible  <bruno@clisp.org>
20554
20555         * modules/stpcpy (License): Change to LGPLv2+.
20556         Requested by David Lutterkort <dlutter@redhat.com>.
20557
20558 2008-05-27  Bruno Haible  <bruno@clisp.org>
20559
20560         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
20561         current mingw.
20562         Reported by Jose E. Marchesi <jemarch@gnu.org>.
20563
20564 2008-05-27  Bruno Haible  <bruno@clisp.org>
20565
20566         * modules/iconv_open (Link): New section, from module 'iconv'.
20567         * modules/striconv (Link): Likewise.
20568         * modules/striconveh (Link): Likewise.
20569         * modules/xstriconv (Link): Likewise.
20570         * modules/unicodeio (Link): Likewise.
20571         * modules/propername (Link): Likewise.
20572         Reported by Jim Meyering.
20573
20574 2008-05-26  Jim Meyering  <meyering@redhat.com>
20575
20576         sha256: do not artificially restrict buffer length to be < 2^32
20577         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
20578         uint32_t to size_t.
20579         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
20580         to match.
20581
20582         avoid unaligned access errors, e.g., on sparc
20583         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
20584         direct access through a possibly-unaligned uint64* pointer.
20585         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
20586         direct access through a possibly-unaligned uint32* pointer.
20587         Prompted by this patch from Tom "spot" Callaway:
20588         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
20589
20590         sha512.c: fix typo in comment
20591         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
20592
20593 2008-05-25  Bruno Haible  <bruno@clisp.org>
20594
20595         * lib/set-mode-acl.c: Renamed from lib/acl.c.
20596         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
20597         (Makefile.am): Update lib_SOURCES.
20598
20599 2008-05-25  Bruno Haible  <bruno@clisp.org>
20600
20601         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
20602
20603 2008-05-25  Jim Meyering  <meyering@redhat.com>
20604
20605         useless-if-before-free: freed expr may have white-space differences
20606         * build-aux/useless-if-before-free: Recognize cases in which the
20607         freed expression differs from the tested one in embedded white
20608         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
20609         $1 was used, so we can't make any regexp shy.  Improved tests now
20610         detect this.
20611
20612         useless-if-before-free: accept white space in the expression.
20613         * build-aux/useless-if-before-free: For now, any white space
20614         in the expression must be identical in the free argument.
20615
20616         useless-if-before-free: efficiency tweak
20617         * build-aux/useless-if-before-free: Make the expression-matching
20618         regexp "shy".
20619         Make the *outer* regexp shy, not the expr-matching one.
20620
20621         update code-in-comment to accept cast of free arg
20622         * build-aux/useless-if-before-free: Update regexp.
20623
20624 2008-05-25  Bruno Haible  <bruno@clisp.org>
20625
20626         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
20627         * modules/copy-file-tests (Files, Makefile.am): Update.
20628         * tests/test-copy-file.c (func_test_copy): Update.
20629
20630 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
20631
20632         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
20633
20634 2008-05-23  Bruno Haible  <bruno@clisp.org>
20635
20636         Improve support for ACLs on OSF/1.
20637         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
20638         Remove fallback for unknown flavors of ACLs.
20639
20640 2008-05-22  Bruno Haible  <bruno@clisp.org>
20641
20642         Add support for ACLs on OSF/1.
20643         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
20644         replacements.
20645         (acl_free_text): New macro fallback.
20646         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
20647         acl_free.
20648         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
20649         acl_free_text function. Require AC_C_INLINE.
20650
20651 2008-05-22  Bruno Haible  <bruno@clisp.org>
20652
20653         Make copy_acl work on MacOS X 10.5.
20654         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
20655         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
20656         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
20657         If MODE_INSIDE_ACL, don't assume that every system has the same text
20658         representation for ACLs as FreeBSD.
20659         * lib/copy-acl.c (copy_acl): Add support for platforms with
20660         !MODE_INSIDE_ACL.
20661         * lib/file-has-acl.c (file_has_acl): Likewise.
20662         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
20663         FreeBSD, MacOS X, or IRIX, respectively.
20664
20665 2008-05-22  Bruno Haible  <bruno@clisp.org>
20666
20667         * lib/acl.h: Don't include <sys/acl.h>.
20668         (GETACLCNT): Move fallback to lib/acl-internal.h.
20669         * lib/acl-internal.h: Include <sys/acl.h> here.
20670         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
20671
20672 2008-05-22  Bruno Haible  <bruno@clisp.org>
20673
20674         Split off copy_acl function to separate file.
20675         * lib/copy-acl.c: New file, extracted from lib/acl.c.
20676         * lib/acl.c (copy_acl): Moved function to separate file.
20677         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
20678         * modules/acl (Files): Add lib/copy-acl.c.
20679         (Makefiles.am): Augment lib_SOURCES.
20680
20681 2008-05-22  Bruno Haible  <bruno@clisp.org>
20682
20683         * modules/copy-file-tests: New file.
20684         * tests/test-copy-file.sh: New file.
20685         * tests/test-copy-file.c: New file.
20686         * tests/test-copy-file-sameacls.c: New file.
20687
20688 2008-05-22  Eric Blake  <ebb9@byu.net>
20689
20690         Avoid gcc warning.
20691         * tests/test-memcmp.c (main): Pass NULL indirectly.
20692
20693 2008-05-21  Bruno Haible  <bruno@clisp.org>
20694
20695         Add reference doc about ACLs.
20696         * doc/acl-resources.txt: New file.
20697         * doc/acl-cygwin.txt: New file.
20698
20699 2008-05-21  Bruno Haible  <bruno@clisp.org>
20700
20701         Avoid one more warning from gcc.
20702         * lib/vasnprintf.c (IF_LINT): Update comments.
20703         (VASNPRINTF): Use it also for the 'prefix' array initializer.
20704
20705 2008-05-21  Jim Meyering  <meyering@redhat.com>
20706
20707         avoid a warning from gcc
20708         * lib/vasnprintf.c (IF_LINT): Define.
20709         (scale10_round_decimal_long_double):
20710         Use it to avoid a "may be used uninitialized" warning.
20711         (scale10_round_decimal_double): Likewise.
20712
20713 2008-05-21  Simon Josefsson  <simon@josefsson.org>
20714
20715         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
20716         declared.
20717
20718 2008-05-20  Bruno Haible  <bruno@clisp.org>
20719
20720         * tests/test-memcmp.c (main): Test also the sign of the result. Test
20721         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
20722
20723 2008-05-20  Simon Josefsson  <simon@josefsson.org>
20724
20725         * modules/memcmp-tests: New file.
20726         * tests/test-memcmp.c: New file.
20727
20728 2008-05-19  Bruno Haible  <bruno@clisp.org>
20729
20730         * modules/propername (Notice, configure.ac): Put quoted "..." into
20731         --keyword option.
20732         * lib/propername.h: Update comments accordingly.
20733         Reported by Eric Blake.
20734
20735 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
20736
20737         * modules/getpass-gnu (Depends-on): Add fseeko.
20738
20739 2008-05-19  Simon Josefsson  <simon@josefsson.org>
20740
20741         * modules/base64-tests: New file.
20742
20743 2008-05-19  Bo Borgerson <gigabo@gmail.com>
20744
20745         * lib/base64.c (base64_decode_ctx): If a decode context structure
20746         was passed in use it to ignore newlines.  If a context structure
20747         was _not_ passed in, continue to treat newlines as garbage (this
20748         is the historical behavior).  Formerly base64_decode.
20749         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
20750         takes a decode context structure.
20751         * lib/base64.h (base64_decode): Macro for four-argument calls.
20752         (base64_decode_alloc): Likewise.
20753         * lib/base64.c (base64_decode_ctx): If a decode context structure
20754         was passed in use it to ignore newlines.  If a context structure
20755         was _not_ passed in, continue to treat newlines as garbage (this
20756         is the historical behavior).  Formerly base64_decode.
20757         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
20758         takes a decode context structure.
20759         * lib/base64.h (base64_decode): Macro for four-argument calls.
20760         (base64_decode_alloc): Likewise.
20761
20762 2008-05-19  Jim Meyering  <meyering@redhat.com>
20763
20764         avoid a warning from gcc
20765         * lib/trim.c (IF_LINT): Define.
20766         (trim2): Use it to avoid a "may be used uninitialized" warning.
20767
20768         Fix doc typo.
20769         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
20770
20771 2008-05-19  Bruno Haible  <bruno@clisp.org>
20772
20773         * doc/glibc-functions/getpass.texi: Document limits of other
20774         implementations.
20775
20776 2008-05-19  Simon Josefsson  <simon@josefsson.org>
20777             Bruno Haible <bruno@clisp.org>
20778
20779         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
20780
20781 2008-05-18  Bruno Haible  <bruno@clisp.org>
20782
20783         * modules/propername: New file, from GNU gettext.
20784         * lib/propername.h: New file, from GNU gettext.
20785         * lib/propername.c: New file, from GNU gettext.
20786         * MODULES.html.sh (Internationalization functions): Add propername.
20787
20788 2008-05-16  Jim Meyering  <meyering@redhat.com>
20789             Bruno Haible  <bruno@clisp.org>
20790
20791         Avoid some warnings from "gcc -Wshadow".
20792         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
20793
20794 2008-05-15  Eric Blake  <ebb9@byu.net>
20795
20796         Extend previous patch to cygwin 1.7.0.
20797         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
20798         fast implementation in cygwin >= 1.7.0.
20799         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20800         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20801
20802 2008-05-15  Bruno Haible  <bruno@clisp.org>
20803
20804         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
20805         implementation in glibc >= 2.9.
20806         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20807         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20808
20809 2008-05-15  Bruno Haible  <bruno@clisp.org>
20810
20811         * MODULES.html.sh (Internationalization functions): Remove linebreak.
20812         (Unicode string functions): Add unilbrk/*.
20813         Reported by Karl Berry.
20814
20815 2008-05-15  Eric Blake  <ebb9@byu.net>
20816
20817         Fix violation of <stdbool.h> replacement in regex.
20818         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
20819         * lib/regexec.c (re_search_internal): Likewise.
20820         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
20821
20822 2008-05-15  Jim Meyering  <meyering@redhat.com>
20823
20824         avoid distracting test output when git or cvs is not found
20825         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
20826         * tests/test-vc-list-files-git.sh: Likewise.
20827
20828 2008-05-15  Eric Blake  <ebb9@byu.net>
20829
20830         Glibc finally accepted the memmem speedup code, bugzilla #5514.
20831         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
20832         glibc version.
20833         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20834         * doc/posix-functions/strstr.texi (strstr): Likewise.
20835         * lib/str-two-way.h (MAX): Sychronize with glibc.
20836
20837 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
20838
20839         * lib/regcomp.c (optimize_utf8): Add a note on why we test
20840         opr.ctx_type.
20841         (calc_first): Initialize constraint field.
20842         (duplicate_node_closure): Use it instead of special casing ANCHORS.
20843         Fix grammar.
20844         (duplicate_node): Merge constraint field for all node types.
20845         (calc_eclosure_iter): Look at constraint field for all node types.
20846         * lib/regex_internal.c (create_cd_newstate): Don't look at
20847         opr.ctx_type.
20848
20849 2008-05-14  Bruno Haible  <bruno@clisp.org>
20850
20851         Help GCC to do better code generation.
20852         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
20853         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20854         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
20855         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
20856         Declare with attribute 'malloc' if supported.
20857
20858 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
20859
20860         use "echo STR|wc -c" rather than unportable "expr length STR"
20861         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
20862         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
20863
20864 2008-05-14  Jim Meyering  <meyering@redhat.com>
20865
20866         use dd ibs=$n count=1 ... rather than less-portable head -c$n
20867         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
20868         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
20869         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
20870         via Collin Lasse.
20871
20872 2008-05-14  Eric Blake  <ebb9@byu.net>
20873
20874         Avoid quadratic growth in gl_LIBSOURCES.
20875         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
20876         Suggested by Bruno Haible.
20877
20878         Test xmemdup0.
20879         * modules/xmemdup0-tests: New file.
20880         * tests/test-xmemdup0.c: Likewise.
20881
20882 2008-05-13  Eric Blake  <ebb9@byu.net>
20883
20884         Split xmemdup0 into its own module.
20885         * modules/xmemdup0: New file.
20886         * lib/xmemdup0.h: Likewise.
20887         * lib/xmemdup0.c: Likewise.
20888         * MODULES.html.sh (Memory management functions): Add xmemdup0.
20889         * lib/xalloc.h (xmemdup0): Remove.
20890         * lib/xmalloc.c (xmemdup0): Likewise.
20891
20892 2008-05-13  Eric Blake  <ebb9@byu.net>
20893             Bruno Haible  <bruno@clisp.org>
20894
20895         Reduce number of forks required during autoconf.
20896         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
20897         and gl_LIBSOURCES_DIR.
20898         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
20899         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
20900         m4_syscmd per file.
20901         <m4_foreach_w>: Move...
20902         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
20903
20904 2008-05-13  Eric Blake  <ebb9@byu.net>
20905
20906         * gnulib-tool: Fix various comment typos.
20907
20908 2008-05-12  Bruno Haible  <bruno@clisp.org>
20909
20910         Tailor the linebreaking algorithm.
20911         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
20912
20913 2008-05-12  Bruno Haible  <bruno@clisp.org>
20914
20915         Update to Unicode 5.0.0.
20916         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
20917         LBP_JV, LBP_JT. Redistribute values.
20918         (unilbrk_table): Change size.
20919         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
20920         Unicode TR#14 rev. 22.
20921         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
20922         LBP_JV, LBP_JT. Redistribute values.
20923         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
20924         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
20925         Update.
20926         * lib/unilbrk/lbrkprop1.h: Regenerated.
20927         * lib/unilbrk/lbrkprop2.h: Regenerated.
20928         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
20929         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
20930         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
20931         Likewise.
20932         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
20933         Likewise.
20934         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
20935         result.
20936         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20937         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20938         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
20939         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
20940         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
20941         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
20942
20943 2008-05-11  Bruno Haible  <bruno@clisp.org>
20944
20945         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
20946
20947 2008-05-11  Bruno Haible  <bruno@clisp.org>
20948
20949         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
20950         * modules/unilbrk/gen-lbrk: New file.
20951
20952 2008-05-11  Bruno Haible  <bruno@clisp.org>
20953
20954         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
20955         * m4/sha512.m4 (gl_SHA512): Likewise.
20956
20957 2008-05-11  Jim Meyering  <meyering@redhat.com>
20958
20959         New modules: crypto/sha256, crypto/sha512 (from coreutils)
20960         * modules/crypto/sha256: New file.
20961         * modules/crypto/sha512: Likewise.
20962         * lib/sha256.c: Likewise.
20963         * lib/sha256.h: Likewise.
20964         * lib/sha512.c: Likewise.
20965         * lib/sha512.h: Likewise.
20966         * lib/u64.h: Likewise.
20967         * m4/sha256.m4: Likewise.
20968         * m4/sha512.m4: Likewise.
20969         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
20970
20971 2008-05-10  Bruno Haible  <bruno@clisp.org>
20972
20973         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
20974         (Input/Output <stdio.h>): Add xprintf.
20975         (Signal handling <signal.h>): Add strsignal.
20976         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
20977         (Core language properties): Add func.
20978         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
20979         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
20980         strings.
20981         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
20982         (Input/output): New section.
20983         (File system functions): Add openat-die, stat-macros.
20984         (Networking functions): Add sockets.
20985         (Unicode string functions): Add unictype/*.
20986         (Support for building libraries and executables): Add gperf.
20987         (Support for building documentation): Add agpl-3.0.
20988         (Misc): Add nocrash.
20989
20990 2008-05-10  Bruno Haible  <bruno@clisp.org>
20991
20992         * modules/unictype/gen-ctype: New file.
20993
20994 2008-05-10  Jim Meyering  <meyering@redhat.com>
20995
20996         Make chdir-safer.c more efficient on a system with no symlinks.
20997         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
20998         also if ELOOP is zero.  Suggested by Bruno Haible.
20999
21000         Make chdir-safer.c slightly safer.
21001         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
21002         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
21003
21004         Avoid compile failure on systems without ELOOP (like mingw).
21005         * lib/chdir-safer.c (ELOOP): Define if not already defined.
21006         Reported by Bruno Haible.
21007
21008 2008-05-10  Bruno Haible  <bruno@clisp.org>
21009
21010         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
21011         (is_utf8_encoding): Use a case-insensitive comparison.
21012         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
21013         streq.
21014
21015 2008-05-10  Bruno Haible  <bruno@clisp.org>
21016
21017         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
21018         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
21019         * lib/unilbrk/ulc-common.h (iconv_string_length,
21020         iconv_string_keeping_offsets): Remove declarations.
21021         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
21022         Don't include <iconv.h>, streq.h, xsize.h.
21023         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
21024         conversion.
21025         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
21026         <iconv.h>, streq.h, xsize.h.
21027         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
21028         conversion.
21029         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
21030         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
21031         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
21032         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
21033
21034 2008-05-10  Bruno Haible  <bruno@clisp.org>
21035
21036         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
21037         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
21038
21039         * modules/unilbrk/u32-width-linebreaks-tests: New file.
21040         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
21041
21042         * modules/unilbrk/u16-width-linebreaks-tests: New file.
21043         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
21044
21045         * modules/unilbrk/u8-width-linebreaks-tests: New file.
21046         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
21047
21048         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
21049         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
21050
21051         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
21052         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
21053
21054         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
21055         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
21056
21057         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
21058         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
21059
21060 2008-05-10  Bruno Haible  <bruno@clisp.org>
21061
21062         Split up 'linebreak' module.
21063         * lib/unilbrk.h: New file, based on lib/linebreak.h.
21064         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
21065         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
21066         modifications.
21067         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
21068         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
21069         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
21070         lib/linebreak.c.
21071         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
21072         lib/linebreak.c.
21073         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
21074         lib/linebreak.c.
21075         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
21076         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
21077         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
21078         lib/linebreak.c.
21079         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
21080         lib/linebreak.c.
21081         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
21082         lib/linebreak.c.
21083         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
21084         lib/linebreak.c.
21085         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
21086         lib/linebreak.c.
21087         * modules/unilbrk/base: New file.
21088         * modules/unilbrk/tables: New file.
21089         * modules/unilbrk/u8-possible-linebreaks: New file.
21090         * modules/unilbrk/u16-possible-linebreaks: New file.
21091         * modules/unilbrk/u32-possible-linebreaks: New file.
21092         * modules/unilbrk/ulc-common: New file.
21093         * modules/unilbrk/ulc-possible-linebreaks: New file.
21094         * modules/unilbrk/u8-width-linebreaks: New file.
21095         * modules/unilbrk/u16-width-linebreaks: New file.
21096         * modules/unilbrk/u32-width-linebreaks: New file.
21097         * modules/unilbrk/ulc-width-linebreaks: New file.
21098         * lib/linebreak.h: Remove file.
21099         * lib/linebreak.c: Remove file.
21100         * m4/linebreak.m4: Remove file.
21101         * modules/linebreak: Remove file.
21102         * NEWS: Mention the changes.
21103
21104 2008-05-09  Eric Blake  <ebb9@byu.net>
21105
21106         Add xmemdup0.
21107         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
21108         implementation.
21109         * lib/xmalloc.c (xmemdup0): New C implementation.
21110
21111 2008-05-08  Bruno Haible  <bruno@clisp.org>
21112
21113         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
21114
21115 2008-05-07  Eric Blake  <ebb9@byu.net>
21116
21117         Support cross-compilation of <wctype.h>.
21118         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
21119         AC_CACHE_CHECK.
21120
21121 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
21122
21123         * build-aux/vc-list-files: Add support for bzr.
21124
21125 2008-05-03  Jim Meyering  <meyering@redhat.com>
21126
21127         avoid failed assertion with tight malloc
21128         * tests/test-getndelim2.c: Correct an off-by-one assertion.
21129
21130 2008-05-03  Simon Josefsson  <simon@josefsson.org>
21131
21132         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
21133         are needed from arpa/inet.h.
21134         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
21135         Reported by Bruno Haible.
21136
21137 2008-05-02  Jim Meyering  <meyering@redhat.com>
21138
21139         avoid compilation error on FreeBSD 6
21140         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
21141
21142 2008-05-01  Jim Meyering  <meyering@redhat.com>
21143
21144         useless-if-before-free: correct --help's exit status description
21145         * build-aux/useless-if-before-free (usage): Like grep, exit 0
21146         for one or more matches, etc.  Reported by Bruno Haible.
21147
21148         vc-list-files: make the stand-alone gnulib test work
21149         * modules/vc-list-files-tests (configure.ac):
21150         Define and AC_SUBST abs_aux_dir.
21151         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
21152         $(abs_top_srcdir) to each script and having each of them
21153         duplicate the work of setting PATH, set PATH here, using
21154         the new variable, abs_aux_dir instead.
21155         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
21156         * tests/test-vc-list-files-git.sh: Likewise.
21157         Reported by Bruno Haible.
21158
21159 2008-05-01  Bruno Haible  <bruno@clisp.org>
21160
21161         * lib/getndelim2.c (getndelim2): Fix newsize computation during
21162         reallocation. Rename 'done' to 'found_delimiter'.
21163
21164 2008-05-01  Jim Meyering  <meyering@redhat.com>
21165
21166         vc-list-files: accommodate /bin/sh like the one from Solaris 10
21167         * build-aux/vc-list-files: Use `...`, not $(...).
21168
21169 2008-04-30  Jim Meyering  <meyering@redhat.com>
21170
21171         add tests for vc-list-files
21172         * modules/vc-list-files-tests: New module.
21173         * tests/test-vc-list-files-cvs.sh: New file.
21174         * tests/test-vc-list-files-git.sh: New file.
21175
21176         avoid a warning from gcc
21177         * lib/getndelim2.c (IF_LINT): Define.
21178         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
21179
21180         vc-list-files: work properly with build-aux/cvsu, too
21181         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
21182         to all cvs-based clauses.
21183
21184         vc-list-files: work properly in the CVS+awk case, too
21185         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
21186
21187         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
21188         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
21189         take more than one file argument, so .  Add quotes, just in case $dir
21190         ever contains a shell meta-character.  Prompted by Soren Hansen in
21191         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
21192
21193 2008-04-29  Eric Blake  <ebb9@byu.net>
21194
21195         Optimize getndelim2 to use block operations when possible.
21196         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
21197         freadseek, and memchr2.
21198         * lib/getndelim2.c (getndelim2): Use them for block reads.
21199
21200 2008-04-29  Bruno Haible  <bruno@clisp.org>
21201
21202         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
21203         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21204         * modules/inet_ntop (Depends-on): Add extensions.
21205         * modules/inet_pton (Depends-on): Likewise.
21206         Reported by Simon Josefsson.
21207
21208 2008-04-29  Jim Meyering  <meyering@redhat.com>
21209
21210         When the is more than one match in a block, match all of them.
21211         * build-aux/useless-if-before-free: Iterate through each block
21212         until there are no more matches.
21213
21214         Fix broken useless-if-before-free script.
21215         * build-aux/useless-if-before-free: Fix typo: missing "?" after
21216         the expression to match cast of argument to free-like function.
21217
21218 2008-04-29  Eric Blake  <ebb9@byu.net>
21219
21220         Use new header.
21221         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
21222
21223 2008-04-29  Jim Meyering  <meyering@redhat.com>
21224
21225         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
21226         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
21227         by gnulib to exist and to declare e.g., inet_ntop.
21228         Don't include "inet_ntop.h", now removed.
21229
21230         * m4/arpa_inet_h.m4: Remove trailing blanks.
21231
21232 2008-04-29  Eric Blake  <ebb9@byu.net>
21233
21234         Silence valgrind on safe reads beyond potential array bounds.
21235         * lib/rawmemchr.valgrind: New file.
21236         * lib/strchrnul.valgrind: Likewise.
21237         * modules/rawmemchr (Files): Distribute new file.
21238         * modules/strchrnul (Files): Likewise.
21239         Suggested by Bruno Haible.
21240
21241 2008-04-29  Bruno Haible  <bruno@clisp.org>
21242
21243         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
21244         (inet_ntop, inet_pton): Change portability warning's wording.
21245         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
21246         Invoke gl_CHECK_NEXT_HEADERS.
21247         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
21248         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
21249         set ARPA_INET_H.
21250         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21251         * modules/arpa_inet (Description): No longer only for systems that
21252         lack it.
21253         (Depends-on): Add include_next.
21254         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
21255         HAVE_ARPA_INET_H.
21256
21257 2008-04-29  Jim Meyering  <meyering@redhat.com>
21258
21259         * modules/mkdir (License): Re-license as LGPLv2+.
21260
21261 2008-04-29  Bruno Haible  <bruno@clisp.org>
21262
21263         * modules/rawmemchr (Maintainer): Set to Eric.
21264         * modules/strchrnul (Maintainer): Likewise.
21265
21266 2008-04-29  Simon Josefsson  <simon@josefsson.org>
21267
21268         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
21269         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
21270
21271         * modules/arpa_inet (arpa/inet.h): Use them.
21272
21273 2008-04-28  Eric Blake  <ebb9@byu.net>
21274
21275         Test getndelim2.
21276         * modules/getndelim2-tests: New file.
21277         * tests/test-getndelim2.c: Likewise.
21278         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
21279         stream.
21280         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
21281
21282         * MODULES.html.sh: Document new module.
21283
21284 2008-04-20  Bruno Haible  <bruno@clisp.org>
21285
21286         * lib/c-stack.c (die): Use raise.
21287         * modules/c-stack (Depends-on): Add raise.
21288
21289 2008-04-28  Bruno Haible  <bruno@clisp.org>
21290
21291         Expect rpmatch to be declared.
21292         * lib/yesno.c (rpmatch): Remove declaration.
21293
21294         Declare rpmatch.
21295         * lib/stdlib.in.h (rpmatch): New declaration.
21296         * lib/rpmatch.c: Include <stdlib.h> first.
21297         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
21298         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
21299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
21300         HAVE_RPMATCH.
21301         * modules/rpmatch (Depends-on): Add stdlib, extensions.
21302         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21303         (Include): Set to <stdlib.h>.
21304         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
21305         HAVE_RPMATCH.
21306         * NEWS: Document the change.
21307
21308 2008-04-28  Bruno Haible  <bruno@clisp.org>
21309
21310         Change rpmatch to use nl_langinfo when appropriate.
21311         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
21312         (N_): New macro.
21313         (localized_pattern): New function/macro.
21314         (try): Remove match, nomatch arguments. Copy the pattern into safe
21315         memory before caching it.
21316         (rpmatch): Use localized_pattern. Add translator comments.
21317         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
21318         Suggested by Eric Blake.
21319         * modules/rpmatch (Depends-on): Add stdbool.
21320
21321 2008-04-28  Eric Blake  <ebb9@byu.net>
21322
21323         Add rawmemchr module, matching glibc.
21324         * modules/string (Makefile.am): New indicator.
21325         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
21326         * lib/string.in.h (rawmemchr): Declare when appropriate.
21327         * modules/rawmemchr: New file.
21328         * m4/rawmemchr.m4: Likewise.
21329         * lib/rawmemchr.c: Likewise.
21330         * modules/rawmemchr-tests: Likewise.
21331         * tests/test-rawmemchr.c: Likewise.
21332         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
21333         module.
21334         * modules/strchrnul (Depends-on): Add rawmemchr.
21335         * lib/strchrnul.c (strchrnul): Optimize a corner case.
21336
21337         Whitespace cleanup.
21338         * tests/test-strchrnul.c: Reindent.
21339         * lib/strchrnul.c: Likewise.
21340
21341         Optimize and test strchrnul.
21342         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
21343         * modules/strchrnul-tests: New file.
21344         * tests/test-strchrnul.c: Likewise.
21345
21346         Remove intprops dependency.
21347         * modules/memchr (Depends-on): Remove intprops.
21348         * modules/memrchr (Depends-on): Likewise.
21349         * modules/memchr2 (Depends-on): Likewise.
21350         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
21351         * lib/memrchr.c (__memrchr): Likewise.
21352         * lib/memrchr2.c (memchr2): Likewise.
21353         Reported by Simon Josefsson.
21354
21355 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21356
21357         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
21358         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21359
21360 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21361
21362         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
21363
21364         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
21365
21366         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
21367
21368         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
21369         declarations.
21370         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
21371
21372         * m4/inet_pton.m4: Don't check for header files.
21373
21374         * m4/inet_ntop.m4: Don't check for header files.
21375
21376 2008-04-28  Simon Josefsson  <simon@josefsson.org>
21377
21378         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
21379         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
21380         trigger for cygwin).
21381         Reported by Bruno Haible  <bruno@clisp.org>.
21382
21383 2008-04-28  Bruno Haible  <bruno@clisp.org>
21384
21385         * doc/posix-functions/strdup.texi: Mention mingw problem.
21386
21387 2008-04-27  Bruno Haible  <bruno@clisp.org>
21388
21389         * modules/stat-time-tests (Depends-on): Add sleep.
21390         * tests/test-stat-time.c (force_unlink): New function.
21391         (cleanup): Use it.
21392         (test_mtime): Remove the ctime related tests.
21393         (test_ctime): New function, containing the ctime related tests.
21394         (main): Call test_ctime, except on native Windows platforms.
21395
21396 2008-04-27  Bruno Haible  <bruno@clisp.org>
21397
21398         * lib/rpmatch.c (rpmatch): Add some comments.
21399         Reported by James Youngman <jay@gnu.org>.
21400
21401 2008-04-27  Bruno Haible  <bruno@clisp.org>
21402
21403         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
21404         quiet NaNs.
21405
21406 2008-04-27  Bruno Haible  <bruno@clisp.org>
21407
21408         Make test-yesno.sh work on mingw.
21409         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
21410         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
21411         (main): Set stdin to binary mode.
21412         * modules/yesno-tests (Depends-on): Add binary-io.
21413
21414 2008-04-27  Bruno Haible  <bruno@clisp.org>
21415
21416         Fix 'isfinite' on x86, x86_64, ia64 platforms.
21417         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
21418         argument that lie outside the IEEE 854 domain.
21419         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
21420         (gl_ISFINITE): Use it.
21421         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
21422
21423 2008-04-27  Bruno Haible  <bruno@clisp.org>
21424
21425         Allow local renaming in config.h.
21426         * lib/memrchr.c (memrchr): Don't undefine outside libc.
21427
21428 2008-04-27  Bruno Haible  <bruno@clisp.org>
21429
21430         * lib/memchr.c (__memchr): Change type of 'i'.
21431         * lib/memchr2.c (memchr2): Likewise.
21432
21433 2008-04-26  Eric Blake  <ebb9@byu.net>
21434         and Bruno Haible  <bruno@clisp.org>
21435
21436         Optimize and test memrchr.
21437         * modules/memrchr (Depends-on): Add intprops.
21438         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
21439         * modules/memrchr-tests: New file.
21440         * tests/test-memrchr.c: New file.
21441
21442 2008-04-26  Bruno Haible  <bruno@clisp.org>
21443
21444         Add tentative support for DragonFly BSD.
21445         * lib/stdio-impl.h: Add macros for DragonFly BSD.
21446         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
21447         fp.
21448         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21449         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
21450         * lib/fpurge.c (fpurge): Likewise.
21451         * lib/freadable.c (freaadable): Likewise.
21452         * lib/freadahead.c (freadahead): Likewise.
21453         * lib/freading.c (freading): Likewise.
21454         * lib/freadptr.c (freadptr): Likewise.
21455         * lib/freadseek.c (freadptrinc): Likewise.
21456         * lib/fseeko.c (fseeko): Likewise.
21457         * lib/fseterr.c (fseterr): Likewise.
21458         * lib/fwritable.c (fwritable): Likewise.
21459         * lib/fwriting.c (fwriting): Likewise.
21460
21461 2008-04-26  Bruno Haible  <bruno@clisp.org>
21462
21463         * lib/stdio-impl.h: New file.
21464         * lib/fbufmode.c: Include stdio-impl.h.
21465         (fbufmode): Use fp_, remove redundant #defines.
21466         * lib/fflush.c: Include stdio-impl.h.
21467         (clear_ungetc_buffer): Remove redundant #defines.
21468         * lib/fpurge.c: Include stdio-impl.h.
21469         (fpurge): Remove redundant #defines.
21470         * lib/freadable.c: Include stdio-impl.h.
21471         (freadable): Remove redundant #defines.
21472         * lib/freadahead.c: Include stdio-impl.h.
21473         (freadahead): Remove redundant #defines.
21474         * lib/freading.c: Include stdio-impl.h.
21475         (freading): Remove redundant #defines.
21476         * lib/freadptr.c: Include stdio-impl.h.
21477         (freadptr): Remove redundant #defines.
21478         * lib/freadseek.c: Include stdio-impl.h.
21479         (freadptrinc): Remove redundant #defines.
21480         * lib/fseeko.c: Include stdio-impl.h.
21481         (rpl_fseeko): Remove redundant #defines.
21482         * lib/fseterr.c: Include stdio-impl.h.
21483         (fseterr): Remove redundant #defines.
21484         * lib/fwritable.c: Include stdio-impl.h.
21485         (fwritable: Remove redundant #defines.
21486         * lib/fwriting.c: Include stdio-impl.h.
21487         (fwriting): Remove redundant #defines.
21488         * modules/fbufmode (Files): Add lib/stdio-impl.h.
21489         * modules/fflush (Files): Likewise.
21490         * modules/fpurge (Files): Likewise.
21491         * modules/freadable (Files): Likewise.
21492         * modules/freadahead (Files): Likewise.
21493         * modules/freading (Files): Likewise.
21494         * modules/freadptr (Files): Likewise.
21495         * modules/freadseek (Files): Likewise.
21496         * modules/fseeko (Files): Likewise.
21497         * modules/fseterr (Files): Likewise.
21498         * modules/fwritable (Files): Likewise.
21499         * modules/fwriting (Files): Likewise.
21500
21501 2008-04-26  Bruno Haible  <bruno@clisp.org>
21502
21503         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21504         restore_seek_optimization, update_fpos_cache): New functions, extracted
21505         from rpl_fflush.
21506         (rpl_fflush): Use them.
21507         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
21508         (gl_REPLACE_FFLUSH): Use it.
21509
21510 2008-04-26  Bruno Haible  <bruno@clisp.org>
21511
21512         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
21513         on Solaris.
21514         * tests/test-xstrtoimax.sh: Likewise.
21515         * tests/test-xstrtoumax.sh: Likewise.
21516         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21517
21518 2008-04-26  Bruno Haible  <bruno@clisp.org>
21519
21520         * modules/memchr-tests: New file.
21521         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
21522
21523 2008-04-26  Eric Blake  <ebb9@byu.net>
21524             Bruno Haible  <bruno@clisp.org>
21525
21526         * lib/memchr.c: Include intprops.h.
21527         (__memchr): Optimize parallel detection of matching bytes. Rename local
21528         variables. Add explanatory comments.
21529
21530 2008-04-26  Bruno Haible  <bruno@clisp.org>
21531
21532         Fix module 'memchr', broken since 2000-10-28.
21533         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
21534
21535 2008-04-26  Bruno Haible  <bruno@clisp.org>
21536
21537         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
21538         comments.
21539
21540 2008-04-25  Eric Blake  <ebb9@byu.net>
21541
21542         Use native fstatat on cygwin 1.7.0.
21543         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
21544         first.
21545
21546 2008-04-23  Eric Blake  <ebb9@byu.net>
21547
21548         Improve memchr2 performance.
21549         * lib/memchr2.c (memchr2): Further optimize parallel detection of
21550         NUL bytes.
21551         * modules/memchr2 (Depends-on): Use intprops.h.
21552
21553 2008-04-23  Simon Josefsson  <simon@josefsson.org>
21554
21555         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
21556         an inline function instead of a CPP macro.  Patch by Ben Pfaff
21557         <blp@cs.stanford.edu>.
21558
21559 2008-04-23  Simon Josefsson  <simon@josefsson.org>
21560
21561         * lib/arpa_inet.in.h: New file.
21562
21563         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
21564         (Makefile.am): Sed in substitute header file.
21565
21566         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
21567         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
21568
21569         * modules/inet_ntop (configure.ac): Use
21570         gl_ARPA_INET_MODULE_INDICATOR.
21571
21572         * modules/inet_pton (configure.ac): Use
21573         gl_ARPA_INET_MODULE_INDICATOR.
21574
21575 2008-04-22  Jim Meyering  <meyering@redhat.com>
21576
21577         * modules/verify (License): Re-license as LGPLv2+.
21578
21579 2008-04-22  Simon Josefsson  <simon@josefsson.org>
21580
21581         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
21582         parameter to void* as per POSIX standard (MinGW uses char*).
21583
21584 2008-04-21  Bruno Haible  <bruno@clisp.org>
21585
21586         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21587         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
21588         Define to replacements if REPLACE_ISWCNTRL is 1.
21589         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
21590         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
21591         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
21592         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
21593         what it fixes.
21594         * doc/posix-functions/iswalpha.texi: Likewise.
21595         * doc/posix-functions/iswblank.texi: Likewise.
21596         * doc/posix-functions/iswcntrl.texi: Likewise.
21597         * doc/posix-functions/iswdigit.texi: Likewise.
21598         * doc/posix-functions/iswgraph.texi: Likewise.
21599         * doc/posix-functions/iswlower.texi: Likewise.
21600         * doc/posix-functions/iswprint.texi: Likewise.
21601         * doc/posix-functions/iswpunct.texi: Likewise.
21602         * doc/posix-functions/iswspace.texi: Likewise.
21603         * doc/posix-functions/iswupper.texi: Likewise.
21604         * doc/posix-functions/iswxdigit.texi: Likewise.
21605         Reported by Alain Guibert.
21606
21607 2008-04-21  Bruno Haible  <bruno@clisp.org>
21608
21609         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
21610         Patch by Alain Guibert.
21611
21612 2008-04-21  Bruno Haible  <bruno@clisp.org>
21613
21614         Fix test failures on mingw.
21615         * tests/test-xstrtol.c (print_no_progname): New function.
21616         (main): Install it in error_print_progname hook.
21617         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
21618         * tests/test-xstrtoimax.sh: Likewise.
21619         * tests/test-xstrtoumax.sh: Likewise.
21620
21621 2008-04-21  Bruno Haible  <bruno@clisp.org>
21622
21623         Fix test failure on mingw.
21624         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
21625
21626 2008-04-21  Bruno Haible  <bruno@clisp.org>
21627
21628         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
21629         Actually assign a value.
21630
21631 2008-04-20  Bruno Haible  <bruno@clisp.org>
21632
21633         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
21634         take 2.
21635         * lib/canonicalize.c (canonicalize_file_name): Elide if the
21636         'canonicalize-lgpl' module is also used.
21637         * lib/canonicalize-lgpl.c: Undo last change.
21638         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
21639
21640 2008-04-20  Bruno Haible  <bruno@clisp.org>
21641
21642         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
21643         config.h. Provide _mkdir based fallback for mingw.
21644         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
21645         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
21646         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
21647         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
21648         rather than defining mkdir in config.h.
21649         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
21650         (gl_SYS_STAT_H_DEFAULTS): New macro.
21651         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
21652         HAVE_IO_H any more.
21653         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
21654         HAVE_DECL_MKDIR and HAVE_IO_H.
21655
21656 2008-04-20  Bruno Haible  <bruno@clisp.org>
21657
21658         * lib/isapipe.c: Port to native Windows platforms.
21659
21660 2008-04-20  Bruno Haible  <bruno@clisp.org>
21661
21662         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
21663
21664 2008-04-21  Eric Blake  <ebb9@byu.net>
21665
21666         Work around preprocessors that don't handle UINTMAX_MAX.
21667         * lib/memchr2.c (memchr2): Avoid embedded #if.
21668         Reported by Alain Guibert, fix suggested by Bruno Haible.
21669
21670 2008-04-21  Simon Josefsson  <simon@josefsson.org>
21671
21672         * doc/posix-functions/strftime.texi (strftime): Explain better
21673         Windows incompatibility.  Suggested by Micah Cowan
21674         <micah@cowan.name>.
21675
21676 2008-04-20  Bruno Haible  <bruno@clisp.org>
21677
21678         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
21679         unistr/u8-mblen.
21680
21681 2008-04-20  Bruno Haible  <bruno@clisp.org>
21682
21683         Fix test failure on platforms with non-GNU iconv.
21684         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
21685         (U_TO_U8): Use it, rather than u16_to_u8.
21686         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
21687         units at the end of the input string.
21688         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
21689
21690 2008-04-20  Bruno Haible  <bruno@clisp.org>
21691
21692         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
21693         when the resulting length is 0.
21694         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
21695
21696 2008-04-20  Bruno Haible  <bruno@clisp.org>
21697
21698         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
21699         works.
21700         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
21701
21702 2008-04-20  Bruno Haible  <bruno@clisp.org>
21703
21704         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
21705         * modules/tsearch-tests (configure.ac): Test for initstate function.
21706
21707 2008-04-20  Bruno Haible  <bruno@clisp.org>
21708
21709         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
21710         for nlink_t if missing.
21711         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
21712
21713 2008-04-19  Bruno Haible  <bruno@clisp.org>
21714
21715         Work around snprintf bug on Linux libc5.
21716         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
21717         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
21718         gl_SNPRINTF_SIZE1.
21719         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21720         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
21721         that test failed.
21722         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
21723         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
21724         * modules/snprintf (Files): Add m4/printf.m4.
21725         * modules/vsnprintf (Files): Likewise.
21726         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
21727         * doc/posix-functions/vsnprintf.texi: Likewise.
21728
21729 2008-04-19  Bruno Haible  <bruno@clisp.org>
21730
21731         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
21732         from 0.0058 to less than 10^-7.
21733
21734 2008-04-19  Bruno Haible  <bruno@clisp.org>
21735
21736         Fix rounding when a precision is given.
21737         * lib/vasnprintf.c (is_borderline): New function.
21738         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
21739         9...9x.
21740         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
21741         %e, %g.
21742         * tests/test-vasprintf-posix.c (test_function): Likewise.
21743         * tests/test-snprintf-posix.h (test_function): Likewise.
21744         * tests/test-sprintf-posix.h (test_function): Likewise.
21745         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
21746         * tests/test-printf-posix.h (test_function): Likewise.
21747         * tests/test-printf-posix.output: Update.
21748         Reported by John Darrington <john@darrington.wattle.id.au> via
21749         Ben Pfaff <blp@cs.stanford.edu>.
21750
21751 2008-04-18  Simon Josefsson  <simon@josefsson.org>
21752
21753         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
21754         Suggested by Bruno Haible <bruno@clisp.org>.
21755
21756 2008-04-17  Bruno Haible  <bruno@clisp.org>
21757
21758         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
21759         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
21760         implementation.
21761         Patch by Bruce Merry <bmerry@gmail.com>.
21762
21763 2008-04-17  Simon Josefsson  <simon@josefsson.org>
21764
21765         * doc/posix-functions/strftime.texi (strftime): Mention that %e
21766         doesn't work under Windows.
21767
21768 2008-04-16  Bruno Haible  <bruno@clisp.org>
21769
21770         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
21771         New macros.
21772         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
21773         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
21774         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
21775         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
21776         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
21777         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
21778         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
21779         macros.
21780         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
21781         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
21782         Northern Sotho, Uighur.
21783
21784 2008-04-16  Bruno Haible  <bruno@clisp.org>
21785
21786         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
21787         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
21788         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
21789         Reported by Daniel Bergström <daniel@octocode.com>.
21790
21791 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
21792             Bruno Haible  <bruno@clisp.org>
21793
21794         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
21795         function.
21796         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
21797         New functions, mostly extracted from gl_locale_name_default.
21798         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
21799
21800 2008-04-16  Eric Blake  <ebb9@byu.net>
21801
21802         Adjust strtod detection to catch glibc 2.7 bug.
21803         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
21804         Reported by John Gatewood Ham.
21805
21806 2008-04-16  Bruno Haible  <bruno@clisp.org>
21807
21808         Add tentative support for Linux libc5.
21809         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
21810         * lib/fpurge.c (fpurge): Likewise.
21811         * lib/freadable.c (freadable): Likewise.
21812         * lib/freadahead.c (freadahead): Likewise.
21813         * lib/freading.c (freading): Likewise.
21814         * lib/freadptr.c (freadptr): Likewise.
21815         * lib/freadseek.c (freadptrinc): Likewise.
21816         * lib/fseeko.c (rpl_fseeko): Likewise.
21817         * lib/fseterr.c (fseterr): Likewise.
21818         * lib/fwritable.c (fwritable): Likewise.
21819         * lib/fwriting.c (fwriting): Likewise.
21820         Reported by Alain Guibert <alguibert+bts@free.fr>.
21821
21822 2008-04-15  Bruno Haible  <bruno@clisp.org>
21823
21824         * modules/mathl (configure.ac): Define module indicator.
21825
21826 2008-04-15  Bruno Haible  <bruno@clisp.org>
21827
21828         * lib/logl.c (logl): Remove unused variables.
21829
21830 2008-04-15  Bruno Haible  <bruno@clisp.org>
21831
21832         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
21833         fails.
21834
21835 2008-04-15  Bruno Haible  <bruno@clisp.org>
21836
21837         * lib/trim.c (trim2): Fix argument of isspace() macro.
21838
21839 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
21840
21841         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
21842         to 0.
21843         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
21844
21845 2008-04-14  Bruno Haible  <bruno@clisp.org>
21846
21847         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
21848         AC_LANG_PROGRAM argument.
21849         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
21850         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
21851         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
21852         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21853         * m4/math_h.m4 (gl_MATH_H): Likewise.
21854         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
21855         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21856         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
21857         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
21858         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21859         * m4/regex.m4 (gl_REGEX): Likewise.
21860         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
21861         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
21862         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21863         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
21864         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
21865         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21866         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21867         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21868
21869 2008-04-14  Jim Meyering  <meyering@redhat.com>
21870
21871         test-strtod: fix typos: s/abs/fabs/
21872         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
21873
21874 2008-04-13  Bruno Haible  <bruno@clisp.org>
21875
21876         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
21877         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
21878         module is also used and while not building the reloc-wrapper.
21879
21880 2008-04-13  Bruno Haible  <bruno@clisp.org>
21881
21882         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
21883
21884 2008-04-13  Bruno Haible  <bruno@clisp.org>
21885
21886         Fix AIX compilation failure introduced on 2008-04-02.
21887         * tests/test-frexp.c (exp): Undefine before redefining.
21888         * tests/test-frexpl.c (exp): Likewise.
21889
21890 2008-04-13  Bruno Haible  <bruno@clisp.org>
21891
21892         Work around a HP-UX stdio bug.
21893         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
21894         * tests/test-ftello.c (main): Likewise.
21895         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
21896         * doc/posix-functions/ftello.texi: Likewise.
21897
21898 2008-04-13  Bruno Haible  <bruno@clisp.org>
21899
21900         Make test-signbit pass on HP-UX/hppa.
21901         * tests/test-signbit.c (minus_zerol): New variable.
21902         (test_signbitl): Use it.
21903
21904 2008-04-13  Bruno Haible  <bruno@clisp.org>
21905
21906         Make truncl work on OSF/1 4.0.
21907         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
21908         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
21909         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
21910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
21911         HAVE_DECL_TRUNCL.
21912         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
21913         HAVE_DECL_TRUNCL.
21914         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
21915
21916 2008-04-13  Bruno Haible  <bruno@clisp.org>
21917
21918         * lib/unictype.h: Remove trailing comma from enumeration definitions.
21919
21920 2008-04-13  Bruno Haible  <bruno@clisp.org>
21921
21922         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
21923         expression, so as to avoid HP-UX 11 cc compiler bug.
21924
21925 2008-04-13  Bruno Haible  <bruno@clisp.org>
21926
21927         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
21928
21929 2008-04-13  Bruno Haible  <bruno@clisp.org>
21930
21931         * lib/git-merge-changelog.c: Remove empty declaration outside of
21932         functions.
21933
21934 2008-04-13  Bruno Haible  <bruno@clisp.org>
21935
21936         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
21937
21938 2008-04-13  Bruno Haible  <bruno@clisp.org>
21939
21940         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
21941         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
21942         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
21943         also if it exists but lacks definitions of the SHUT_* macros.
21944         * modules/sys_socket (Description): Update.
21945         Reported by Elbert Pol <e.pol@chello.nl>.
21946
21947 2008-04-13  Bruno Haible  <bruno@clisp.org>
21948
21949         * lib/localcharset.c (OS2): Don't redefine if already defined.
21950         Reported by Elbert Pol <e.pol@chello.nl>.
21951
21952 2008-04-13  Bruno Haible  <bruno@clisp.org>
21953
21954         * lib/binary-io.h [__EMX__]: Include <io.h>.
21955         Reported by Elbert Pol <e.pol@chello.nl>.
21956
21957 2008-04-12  Bruno Haible  <bruno@clisp.org>
21958
21959         * lib/fpucw.h: Enable the definitions also for x86_64.
21960         Needed for NetBSD/x86_64.
21961         Reported by Thomas Klausner <tk@giga.or.at>.
21962
21963 2008-04-12  Bruno Haible  <bruno@clisp.org>
21964
21965         * tests/test-strtod.c: Include isnand.h.
21966         (main): Use isnand instead of isnan.
21967         Reported by Jim Meyering.
21968
21969 2008-04-12  Bruno Haible  <bruno@clisp.org>
21970
21971         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
21972         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21973
21974 2008-04-12  Jim Meyering  <meyering@redhat.com>
21975
21976         * m4/math_h.m4 (gl_MATH_H): Fix typos.
21977
21978 2008-04-12  Bruno Haible  <bruno@clisp.org>
21979
21980         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
21981         Reported by Elbert Pol <e.pol@chello.nl>.
21982
21983 2008-04-12  Eric Blake  <ebb9@byu.net>
21984
21985         Work around Solaris 10 math.h bug.
21986         * m4/math_h.m4 (gl_MATH_H): Check for bug.
21987         (gl_MATH_H_DEFAULTS): Set up default.
21988         * modules/math (Makefile.am): Replace new indicators.
21989         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
21990         * tests/test-math.c (main): Test this.
21991         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
21992         * doc/posix-headers/math.texi (math.h): Mention bug.
21993         Reported by Nelson H. F. Beebe and Jim Meyering.
21994
21995 2008-04-11  Bruno Haible  <bruno@clisp.org>
21996
21997         Adapt to future versions of Apple GCC.
21998         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
21999         Reported by Peter O'Gorman <peter@pogma.com>.
22000
22001 2008-04-11  Bruno Haible  <bruno@clisp.org>
22002
22003         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
22004
22005 2008-04-11  Bruno Haible  <bruno@clisp.org>
22006
22007         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
22008
22009         * modules/getaddrinfo-tests (Makefile.am): Define
22010         test_getaddrinfo_LDADD.
22011
22012 2008-04-11  Bruno Haible  <bruno@clisp.org>
22013
22014         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
22015         (init): Fix syntax error.
22016         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
22017         is declared.
22018
22019 2008-04-11  Bruno Haible  <bruno@clisp.org>
22020
22021         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
22022         * modules/glob (Depends-on): Add stdbool.
22023
22024 2008-04-11  Bruno Haible  <bruno@clisp.org>
22025
22026         * lib/trim.c: Include <string.h>.
22027
22028 2008-04-11  Eric Blake  <ebb9@byu.net>
22029
22030         Avoid compile failure on OS/2.
22031         * lib/regex_internal.h (internal_function): Disable optimization
22032         on OS/2 (__EMX__), where it caused compiler error.
22033         Reported by Elbert Pol.
22034
22035 2008-04-11  Bruno Haible  <bruno@clisp.org>
22036
22037         Flush the standard error stream before aborting. Needed on mingw.
22038         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
22039         * tests/test-array_list.c (ASSERT): Likewise.
22040         * tests/test-array_oset.c (ASSERT): Likewise.
22041         * tests/test-avltree_list.c (ASSERT): Likewise.
22042         * tests/test-avltree_oset.c (ASSERT): Likewise.
22043         * tests/test-avltreehash_list.c (ASSERT): Likewise.
22044         * tests/test-binary-io.c (ASSERT): Likewise.
22045         * tests/test-byteswap.c (ASSERT): Likewise.
22046         * tests/test-c-ctype.c (ASSERT): Likewise.
22047         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
22048         * tests/test-c-strcasestr.c (ASSERT): Likewise.
22049         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
22050         * tests/test-c-strstr.c (ASSERT): Likewise.
22051         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
22052         * tests/test-canonicalize.c (ASSERT): Likewise.
22053         * tests/test-carray_list.c (ASSERT): Likewise.
22054         * tests/test-ceilf1.c (ASSERT): Likewise.
22055         * tests/test-ceilf2.c (ASSERT): Likewise.
22056         * tests/test-ceill.c (ASSERT): Likewise.
22057         * tests/test-count-one-bits.c (ASSERT): Likewise.
22058         * tests/test-fbufmode.c (ASSERT): Likewise.
22059         * tests/test-fflush2.c (ASSERT): Likewise.
22060         * tests/test-floorf1.c (ASSERT): Likewise.
22061         * tests/test-floorf2.c (ASSERT): Likewise.
22062         * tests/test-floorl.c (ASSERT): Likewise.
22063         * tests/test-fopen.c (ASSERT): Likewise.
22064         * tests/test-fpending.c (ASSERT): Likewise.
22065         * tests/test-fprintf-posix.c (ASSERT): Likewise.
22066         * tests/test-fpurge.c (ASSERT): Likewise.
22067         * tests/test-freadable.c (ASSERT): Likewise.
22068         * tests/test-freadahead.c (ASSERT): Likewise.
22069         * tests/test-freading.c (ASSERT): Likewise.
22070         * tests/test-freadptr.c (ASSERT): Likewise.
22071         * tests/test-freadptr2.c (ASSERT): Likewise.
22072         * tests/test-freadseek.c (ASSERT): Likewise.
22073         * tests/test-freopen.c (ASSERT): Likewise.
22074         * tests/test-frexp.c (ASSERT): Likewise.
22075         * tests/test-frexpl.c (ASSERT): Likewise.
22076         * tests/test-fseek.c (ASSERT): Likewise.
22077         * tests/test-fseeko.c (ASSERT): Likewise.
22078         * tests/test-fstrcmp.c (ASSERT): Likewise.
22079         * tests/test-ftell.c (ASSERT): Likewise.
22080         * tests/test-ftello.c (ASSERT): Likewise.
22081         * tests/test-func.c (ASSERT): Likewise.
22082         * tests/test-fwritable.c (ASSERT): Likewise.
22083         * tests/test-fwriting.c (ASSERT): Likewise.
22084         * tests/test-getdelim.c (ASSERT): Likewise.
22085         * tests/test-getline.c (ASSERT): Likewise.
22086         * tests/test-i-ring.c (ASSERT): Likewise.
22087         * tests/test-iconv-utf.c (ASSERT): Likewise.
22088         * tests/test-iconv.c (ASSERT): Likewise.
22089         * tests/test-isfinite.c (ASSERT): Likewise.
22090         * tests/test-isnand.c (ASSERT): Likewise.
22091         * tests/test-isnanf.c (ASSERT): Likewise.
22092         * tests/test-isnanl.h (ASSERT): Likewise.
22093         * tests/test-ldexpl.c (ASSERT): Likewise.
22094         * tests/test-linked_list.c (ASSERT): Likewise.
22095         * tests/test-linkedhash_list.c (ASSERT): Likewise.
22096         * tests/test-localename.c (ASSERT): Likewise.
22097         * tests/test-lseek.c (ASSERT): Likewise.
22098         * tests/test-mbscasecmp.c (ASSERT): Likewise.
22099         * tests/test-mbscasestr1.c (ASSERT): Likewise.
22100         * tests/test-mbscasestr2.c (ASSERT): Likewise.
22101         * tests/test-mbscasestr3.c (ASSERT): Likewise.
22102         * tests/test-mbscasestr4.c (ASSERT): Likewise.
22103         * tests/test-mbschr.c (ASSERT): Likewise.
22104         * tests/test-mbscspn.c (ASSERT): Likewise.
22105         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
22106         * tests/test-mbspbrk.c (ASSERT): Likewise.
22107         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
22108         * tests/test-mbsrchr.c (ASSERT): Likewise.
22109         * tests/test-mbsspn.c (ASSERT): Likewise.
22110         * tests/test-mbsstr1.c (ASSERT): Likewise.
22111         * tests/test-mbsstr2.c (ASSERT): Likewise.
22112         * tests/test-mbsstr3.c (ASSERT): Likewise.
22113         * tests/test-memchr2.c (ASSERT): Likewise.
22114         * tests/test-memmem.c (ASSERT): Likewise.
22115         * tests/test-open.c (ASSERT): Likewise.
22116         * tests/test-printf-frexp.c (ASSERT): Likewise.
22117         * tests/test-printf-frexpl.c (ASSERT): Likewise.
22118         * tests/test-printf-posix.c (ASSERT): Likewise.
22119         * tests/test-quotearg.c (ASSERT): Likewise.
22120         * tests/test-rbtree_list.c (ASSERT): Likewise.
22121         * tests/test-rbtree_oset.c (ASSERT): Likewise.
22122         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
22123         * tests/test-round1.c (ASSERT): Likewise.
22124         * tests/test-roundf1.c (ASSERT): Likewise.
22125         * tests/test-roundl.c (ASSERT): Likewise.
22126         * tests/test-signbit.c (ASSERT): Likewise.
22127         * tests/test-sleep.c (ASSERT): Likewise.
22128         * tests/test-snprintf-posix.c (ASSERT): Likewise.
22129         * tests/test-snprintf.c (ASSERT): Likewise.
22130         * tests/test-sprintf-posix.c (ASSERT): Likewise.
22131         * tests/test-stat-time.c (ASSERT): Likewise.
22132         * tests/test-strcasestr.c (ASSERT): Likewise.
22133         * tests/test-strerror.c (ASSERT): Likewise.
22134         * tests/test-striconv.c (ASSERT): Likewise.
22135         * tests/test-striconveh.c (ASSERT): Likewise.
22136         * tests/test-striconveha.c (ASSERT): Likewise.
22137         * tests/test-strsignal.c (ASSERT): Likewise.
22138         * tests/test-strstr.c (ASSERT): Likewise.
22139         * tests/test-strtod.c (ASSERT): Likewise.
22140         * tests/test-trunc1.c (ASSERT): Likewise.
22141         * tests/test-trunc2.c (ASSERT): Likewise.
22142         * tests/test-truncf1.c (ASSERT): Likewise.
22143         * tests/test-truncf2.c (ASSERT): Likewise.
22144         * tests/test-truncl.c (ASSERT): Likewise.
22145         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
22146         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
22147         * tests/test-vasnprintf.c (ASSERT): Likewise.
22148         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
22149         * tests/test-vasprintf.c (ASSERT): Likewise.
22150         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
22151         * tests/test-vprintf-posix.c (ASSERT): Likewise.
22152         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
22153         * tests/test-vsnprintf.c (ASSERT): Likewise.
22154         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
22155         * tests/test-wcwidth.c (ASSERT): Likewise.
22156         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
22157         * tests/test-xprintf-posix.c (ASSERT): Likewise.
22158         * tests/test-xvasprintf.c (ASSERT): Likewise.
22159         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
22160         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
22161         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
22162         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
22163         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
22164         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
22165         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
22166         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
22167         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
22168         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
22169         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
22170         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
22171         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
22172         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
22173         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
22174         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
22175         * tests/unictype/test-block_list.c (ASSERT): Likewise.
22176         * tests/unictype/test-block_of.c (ASSERT): Likewise.
22177         * tests/unictype/test-block_test.c (ASSERT): Likewise.
22178         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
22179         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
22180         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
22181         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
22182         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
22183         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
22184         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
22185         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
22186         * tests/unictype/test-combining.c (ASSERT): Likewise.
22187         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
22188         * tests/unictype/test-digit.c (ASSERT): Likewise.
22189         * tests/unictype/test-mirror.c (ASSERT): Likewise.
22190         * tests/unictype/test-numeric.c (ASSERT): Likewise.
22191         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
22192         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
22193         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
22194         * tests/unictype/test-scripts.c (ASSERT): Likewise.
22195         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
22196         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
22197         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
22198         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
22199         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
22200         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
22201         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
22202         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
22203         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
22204         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
22205         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
22206         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
22207         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
22208         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
22209         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
22210         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
22211         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
22212         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
22213         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
22214         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
22215         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
22216         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
22217         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
22218         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
22219         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
22220         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
22221         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
22222         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
22223         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
22224         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
22225         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
22226         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
22227         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
22228         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
22229         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
22230         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
22231         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
22232         Reported by Eric Blake.
22233
22234 2008-04-11  Bruno Haible  <bruno@clisp.org>
22235
22236         * lib/wchar.in.h: Tweak comment.
22237
22238 2008-04-11  Bruno Haible  <bruno@clisp.org>
22239
22240         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
22241         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
22242         gl_COMMON.
22243         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
22244
22245 2008-04-11  Bruno Haible  <bruno@clisp.org>
22246
22247         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
22248
22249 2008-04-11  Simon Josefsson  <simon@josefsson.org>
22250
22251         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
22252         of attempting to use non-existing /dev/*random.  Based on patch
22253         from Adam Strzelecki <ono@java.pl> in
22254         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
22255
22256 2008-04-08  Bruno Haible  <bruno@clisp.org>
22257
22258         Add tentative support for emx+gcc.
22259         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
22260         * lib/fpurge.c (fpurge): Likewise.
22261         * lib/freadable.c (freadable): Likewise.
22262         * lib/freadahead.c (freadahead): Likewise.
22263         * lib/freading.c (freading): Likewise.
22264         * lib/freadptr.c (freadptr): Likewise.
22265         * lib/freadseek.c (freadptrinc): Likewise.
22266         * lib/fseeko.c (rpl_fseeko): Likewise.
22267         * lib/fseterr.c (fseterr): Likewise.
22268         * lib/fwritable.c (fwritable): Likewise.
22269         * lib/fwriting.c (fwriting): Likewise.
22270         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
22271
22272 2008-04-09  Eric Blake  <ebb9@byu.net>
22273
22274         Avoid some autoconf warnings.
22275         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
22276         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
22277         * m4/afs.m4 (gl_AFS): Likewise.
22278         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
22279         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
22280         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22281         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
22282         (gl_INTEGER_TYPE_SUFFIX): Likewise.
22283         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
22284         (AC_CHECK_DECLS_ONCE): Likewise.
22285         Rename file...
22286         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
22287         gnulib-tool requires autoconf 2.59 or better.
22288         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
22289
22290 2008-04-08  Eric Blake  <ebb9@byu.net>
22291
22292         Use 'git describe --match' if present (added in git 1.5.5).
22293         * build-aux/git-version-gen: Limit result to tags that match 'v*'
22294         if possible.
22295
22296 2008-04-08  Bruno Haible  <bruno@clisp.org>
22297
22298         Add tentative support for OpenServer.
22299         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
22300         _ptr, _cnt.
22301         * lib/fpurge.c (fpurge): Likewise.
22302         * lib/freadable.c (freadable): Likewise.
22303         * lib/freadahead.c (freadahead): Likewise.
22304         * lib/freading.c (freading): Likewise.
22305         * lib/freadptr.c (freadptr): Likewise.
22306         * lib/freadseek.c (freadptrinc): Likewise.
22307         * lib/fseeko.c (rpl_fseeko): Likewise.
22308         * lib/fseterr.c (fseterr): Likewise.
22309         * lib/fwritable.c (fwritable): Likewise.
22310         * lib/fwriting.c (fwriting): Likewise.
22311         Reported by Roger Cornelius <rac@tenzing.org> and
22312         Brian K. White <brian@aljex.com>.
22313
22314 2008-04-06  Jim Meyering  <meyering@redhat.com>
22315
22316         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
22317
22318 2008-04-06  Bruno Haible  <bruno@clisp.org>
22319
22320         Avoid possible error with non-ASCII bytes in UTF-8 locales.
22321         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
22322         * tests/test-printf-posix.sh: Likewise.
22323         * tests/test-vfprintf-posix.sh: Likewise.
22324         * tests/test-vprintf-posix.sh: Likewise.
22325         * tests/test-xprintf-posix.sh: Likewise.
22326
22327 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22328
22329         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
22330         hide error from 'ls', needed on OS/2.
22331         Report by Elbert Pol <elbert.pol@gmail.com>.
22332
22333 2008-04-04  Eric Blake  <ebb9@byu.net>
22334
22335         Make test-fseeko.c failures meaningful.
22336         * tests/test-fseeko.c: Print line number on failure.
22337         * tests/test-fseek.c: Likewise.
22338         Reported by Nelson H. F. Beebe.
22339
22340         Improve strtod bug detection check.
22341         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
22342         required for Solaris 10.
22343         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
22344
22345 2008-04-04  Bruno Haible  <bruno@clisp.org>
22346
22347         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
22348         by m4/setenv.m4.
22349
22350 2008-04-03  Eric Blake  <ebb9@byu.net>
22351
22352         Ensure sane .version contents.
22353         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
22354         version string.
22355         * build-aux/git-version-gen: Improve documentation.
22356
22357         Make GNU make output nicer.
22358         * top/GNUmakefile [!_have-Makefile]: Add dependency on
22359         MAKECMDGOALS to enforce message for all command line targets.  Set
22360         srcdir for use in maint.mk.
22361
22362         Another maintainer tweak.
22363         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
22364         a target that regenerates version.
22365
22366 2008-04-03  Jim Meyering  <meyering@redhat.com>
22367
22368         vc-list-files: don't cause coreutils "make po-check" failure
22369         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
22370
22371 2008-04-03  Eric Blake  <ebb9@byu.net>
22372
22373         Allow VPATH usage of vc-list-files.
22374         * build-aux/vc-list-files (scriptversion): Add timestamp.
22375         (options): Add --help, --version, -C.
22376         (CVS): Support installed cvsu.
22377
22378 2008-04-02  Bruno Haible  <bruno@clisp.org>
22379
22380         Avoid some "statement with no effect" warnings from gcc.
22381         * tests/test-wctype.c (main): Explicitly ignore unused values.
22382         Reported by Jim Meyering.
22383
22384 2008-04-02  Jim Meyering  <meyering@redhat.com>
22385
22386         Avoid some warnings from "gcc -Wshadow".
22387         * tests/test-frexp.c (exp): Define to a different identifier.
22388         * tests/test-frexpl.c (exp): Likewise.
22389
22390 2008-04-03  Jim Meyering  <meyering@redhat.com>
22391
22392         bootstrap: remove dangling *.[ch] symlinks from lib
22393         * build-aux/bootstrap [dangling symlink removal]: Move find's
22394         -depth option to precede all others, to avoid a warning.
22395         Remove *.[ch] files too, and from "$source_base" (usually lib/).
22396
22397 2008-04-02  Bruno Haible  <bruno@clisp.org>
22398
22399         Avoid some warnings from "gcc -Wshadow".
22400         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
22401         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
22402         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
22403         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
22404         Reported by Jim Meyering.
22405
22406 2008-04-01  Bruno Haible  <bruno@clisp.org>
22407
22408         Fix test to work on IRIX 6.5 with cc.
22409         * tests/test-math.c (numeric_equal): New function.
22410         (main): Use it.
22411
22412 2008-04-01  Bruno Haible  <bruno@clisp.org>
22413
22414         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
22415
22416 2008-04-01  Bruno Haible  <bruno@clisp.org>
22417
22418         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
22419         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22420         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
22421         (Depends-on): Remove math.
22422
22423         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
22424         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22425         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
22426         (Depends-on): Remove math.
22427
22428         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
22429         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22430         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
22431         (Depends-on): Remove math.
22432         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
22433         (Depends-on): Remove math.
22434
22435         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
22436         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22437         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
22438         (Depends-on): Remove math.
22439         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
22440         (Depends-on): Remove math.
22441
22442         * tests/test-round1.c: Include nan.h.
22443         (main): Use NaNd instead of NAN.
22444         * modules/round-tests (Files): Add tests/nan.h.
22445
22446         * tests/test-trunc1.c: Include nan.h.
22447         (main): Use NaNd instead of NAN.
22448         * modules/trunc-tests (Files): Add tests/nan.h.
22449
22450         * tests/test-roundf1.c: Include nan.h.
22451         (main): Use NaNf instead of NAN.
22452         * modules/roundf-tests (Files): Add tests/nan.h.
22453
22454         * tests/test-truncf1.c: Include nan.h.
22455         (main): Use NaNf instead of NAN.
22456         * modules/truncf-tests (Files): Add tests/nan.h.
22457
22458         * tests/test-ceilf1.c: Include nan.h.
22459         (main): Use NaNf instead of NAN.
22460         * modules/ceilf-tests (Files): Add tests/nan.h.
22461
22462         * tests/test-floorf1.c: Include nan.h.
22463         (main): Use NaNf instead of NAN.
22464         * modules/floorf-tests (Files): Add tests/nan.h.
22465
22466         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
22467         (main): Use NaNf instead of NAN.
22468         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
22469
22470         * tests/test-isnand.c: Include nan.h instead of <math.h>.
22471         (main): Use NaNd instead of NAN.
22472         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
22473
22474         * tests/test-frexp.c: Include nan.h.
22475         (main): Use NaNd instead of NAN.
22476         * modules/frexp-tests (Files): Add tests/nan.h.
22477
22478         * lib/isnan.c: Don't include <math.h>.
22479         (FUNC): Don't use NAN macro.
22480         * modules/isnand-nolibm (Depends-on): Remove math.
22481         * modules/isnanf-nolibm (Depends-on): Remove math.
22482         * modules/isnanl (Depends-on): Remove math.
22483         * modules/isnanl-nolibm (Depends-on): Remove math.
22484
22485         * tests/nan.h: New file.
22486
22487 2008-04-01  Eric Blake  <ebb9@byu.net>
22488
22489         Fix typos.
22490         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
22491         values to be the right type.
22492
22493         For now, cater to gnulib strtod inaccuracies.
22494         * tests/test-strtod.c (main): Allow 1-ulp error on expected
22495         fractional results.  While not as nice from a QoI perspective, it
22496         is a quicker patch than correctly implementing decimal to binary
22497         rounding.
22498
22499 2008-03-31  Eric Blake  <ebb9@byu.net>
22500
22501         Guarantee a definition of NAN.
22502         * lib/math.in.h (NAN): Define if missing.
22503         * tests/test-math.c (main): Test it.
22504         * doc/posix-headers/math.texi (math.h): Document this.
22505         * lib/isnan.c (rpl_isnand): Use it.
22506         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
22507         * tests/test-floorf1.c (NaN): Likewise.
22508         * tests/test-frexp.c (NaN): Likewise.
22509         * tests/test-isnand.c (NaN): Likewise.
22510         * tests/test-isnanf.c (NaN): Likewise.
22511         * tests/test-round1.c (NaN): Likewise.
22512         * tests/test-roundf1.c (NaN): Likewise.
22513         * tests/test-snprintf-posix.h (NaN): Likewise.
22514         * tests/test-sprintf-posix.h (NaN): Likewise.
22515         * tests/test-trunc1.c (NaN): Likewise.
22516         * tests/test-truncf1.c (NaN): Likewise.
22517         * tests/test-vasnprintf-posix.c (NaN): Likewise.
22518         * tests/test-vasprintf-posix.c (NaN): Likewise.
22519         * modules/isnand-nolibm (Depends-on): Add math.
22520         * modules/isnanf-nolibm (Depends-on): Likewise.
22521         * modules/isnanl (Depends-on): Likewise.
22522         * modules/isnanl-nolibm (Depends-on): Likewise.
22523         * modules/snprintf-posix-tests (Depends-on): Likewise.
22524         * modules/sprintf-posix-tests (Depends-on): Likewise.
22525         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
22526         * modules/vsprintf-posix-tests (Depends-on): Likewise.
22527         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
22528         * modules/vasprintf-posix-tests (Depends-on): Likewise.
22529
22530 2008-03-31  Bruno Haible  <bruno@clisp.org>
22531
22532         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
22533         * doc/posix-functions/strtod.texi: Likewise.
22534
22535 2008-03-31  Bruno Haible  <bruno@clisp.org>
22536
22537         * tests/test-strtod.c (main): Don't use C99 syntax.
22538
22539 2008-03-31  Bruno Haible  <bruno@clisp.org>
22540
22541         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
22542         Reported by Eric Blake.
22543
22544 2008-03-31  Jim Meyering  <meyering@redhat.com>
22545
22546         Don't compare actual signbit return values.
22547         * tests/test-strtod.c (main): Rather, compare only their
22548         zero/non-zero nature.
22549
22550 2008-03-31  Eric Blake  <ebb9@byu.net>
22551
22552         More strtod documentation.
22553         * doc/posix-functions/strtod.texi (strtod): Interpret more test
22554         failures as distinct bugs.
22555
22556 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
22557
22558         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
22559         Problem reported by Erik Benada in
22560         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
22561
22562 2008-03-30  Bruno Haible  <bruno@clisp.org>
22563
22564         * tests/test-strtod.c: Add comments about which assertion fails on which
22565         platform.
22566         * doc/posix-functions/strtod.texi: Add info about many more platforms.
22567
22568 2008-03-30  Eric Blake  <ebb9@byu.net>
22569
22570         Test signbit behavior on zeros.
22571         * tests/test-signbit.c (test_signbitf): Add tests for zero.
22572         (test_signbitd, test_signbitl): Likewise.
22573
22574         More strtod touchups.
22575         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
22576         sign of negative underflow, for now.  Use .5, not .1.
22577         * doc/posix-functions/strtod.texi (strtod): Mention these
22578         limitations.
22579         Reported by Jim Meyering.
22580
22581 2008-03-30  Bruno Haible  <bruno@clisp.org>
22582
22583         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
22584         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
22585
22586 2008-03-30  Bruno Haible  <bruno@clisp.org>
22587
22588         Avoid failure when attempting to return empty iconv results on some
22589         platforms.
22590         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
22591         allocation, don't report ENOMEM when the resulting string is empty.
22592
22593 2008-03-30  Bruno Haible  <bruno@clisp.org>
22594
22595         Fix buffer overrun.
22596         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
22597         Don't consider the width for tmp_length. Check count against tmp_length
22598         before doing the padding. Ensure enough allocation during padding.
22599
22600 2008-03-30  Eric Blake  <ebb9@byu.net>
22601
22602         strtod touchups.
22603         * lib/strtod.c (strtod): Avoid compiler warnings.
22604         Reported by Jim Meyering.
22605
22606 2008-03-30  Bruno Haible  <bruno@clisp.org>
22607
22608         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
22609         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
22610         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
22611         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
22612         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
22613         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
22614         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
22615         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
22616
22617         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
22618         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
22619         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
22620         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
22621         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
22622         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
22623         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
22624         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
22625
22626         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
22627         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
22628         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
22629         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
22630         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
22631         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
22632         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
22633         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
22634
22635         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
22636         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
22637
22638         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
22639         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
22640
22641         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
22642         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
22643
22644         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
22645         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
22646         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
22647
22648         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
22649         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
22650         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
22651
22652         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
22653         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
22654         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
22655
22656         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
22657         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
22658         * modules/vasprintf (Depends-on): Add EOVERFLOW.
22659
22660         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
22661         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
22662         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
22663         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
22664         (Depends-on): Add EOVERFLOW.
22665         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
22666         (Depends-on): Add EOVERFLOW.
22667         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
22668         (Depends-on): Add EOVERFLOW.
22669         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
22670         (Depends-on): Add EOVERFLOW.
22671         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
22672         (Depends-on): Add EOVERFLOW.
22673         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
22674         (Depends-on): Add EOVERFLOW.
22675         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
22676         (Depends-on): Add EOVERFLOW.
22677         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
22678         (Depends-on): Add EOVERFLOW.
22679
22680         * lib/sprintf.c (EOVERFLOW): Remove fallback.
22681         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
22682         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
22683
22684         * lib/snprintf.c (EOVERFLOW): Remove fallback.
22685         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
22686         * modules/snprintf (Depends-on): Add EOVERFLOW.
22687
22688         * lib/poll.c (EOVERFLOW): Remove fallback.
22689         * modules/poll (Depends-on): Add EOVERFLOW.
22690
22691         * lib/getugroups.c (EOVERFLOW): Remove fallback.
22692         * modules/getugroups (Depends-on): Add EOVERFLOW.
22693
22694         * lib/getdelim.c (EOVERFLOW): Remove fallback.
22695         * modules/getdelim (Depends-on): Add EOVERFLOW.
22696
22697         * lib/ftell.c (EOVERFLOW): Remove fallback.
22698         * modules/ftell (Depends-on): Add EOVERFLOW.
22699
22700         * lib/fprintf.c (EOVERFLOW): Remove fallback.
22701         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
22702         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
22703
22704         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
22705
22706         * modules/EOVERFLOW-tests: New file.
22707         * tests/test-EOVERFLOW.c: New file.
22708
22709         * modules/EOVERFLOW: New file.
22710         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
22711
22712 2008-03-30  Bruno Haible  <bruno@clisp.org>
22713
22714         Fix bug introduced on 2007-06-10.
22715         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
22716         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
22717
22718 2008-03-30  Bruno Haible  <bruno@clisp.org>
22719
22720         Improve freadseek's efficiency after ungetc.
22721         * lib/freadseek.c: Include freadahead.h.
22722         (freadptrinc): New function, extracted from freadseek.
22723         (freadseek): Use it in a loop. Use freadahead to determine the number
22724         of loop iterations.
22725         * modules/freadseek (Depends-on): Add freadahead.
22726         (configure.ac): Require AC_C_INLINE.
22727
22728 2008-03-30  Bruno Haible  <bruno@clisp.org>
22729
22730         * lib/freadseek.c (freadseek): Don't ignore the return value of
22731         freadptr.
22732
22733 2008-03-29  Eric Blake  <ebb9@byu.net>
22734
22735         Add hex float support.
22736         * modules/strtod (Depends-on): Add c-ctype.
22737         (Link): Mention POW_LIB.
22738         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
22739         whitespace between 'e' and exponent.
22740         * tests/test-strtod.c (main): Enable hex float tests.
22741         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
22742         now provides.
22743
22744         Document various strtod bugs, with some fixes.
22745         * doc/posix-functions/strtod.texi (strtod): Document bugs with
22746         "-0x", "inf", "nan", and hex constants.
22747         * doc/posix-functions/atof.texi (atof): Likewise.
22748         * modules/stdlib (Makefile.am): Support strtod.
22749         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
22750         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
22751         detect additional strtod bugs.
22752         * lib/stdlib.in.h (rpl_strtod): Add declarations.
22753         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
22754         bool where appropriate.  Parse 'inf' and 'nan'.
22755         * tests/test-strtod.c: New file.
22756         * modules/strtod (Depends-on): Add stdbool, stdlib.
22757         (configure.ac): Turn on module indicator.
22758         * modules/strtod-tests: New module.
22759
22760 2008-03-29  Eric Blake  <ebb9@byu.net>
22761
22762         Fix ftell on mingw.
22763         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
22764         * modules/ftell-tests (Depends-on): Add binary-io.
22765         * modules/ftello-tests (Depends-on): Likewise.
22766         * tests/test-ftell.c (main): Enhance test to cover behavior after
22767         ungetc.  Enforce binary mode.
22768         * tests/test-ftello.c (main): Likewise.
22769
22770         Pass test-freadseek on cygwin.
22771         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
22772         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
22773         ungetc buffer.
22774
22775         * tests/test-fflush2.c (main): Fix typo.
22776
22777 2008-03-29  Bruno Haible  <bruno@clisp.org>
22778
22779         * tests/test-fflush2.c (main): Temporarily disable the contents of
22780         this test.
22781         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
22782         Reported by Eric Blake.
22783
22784 2008-03-28  Simon Josefsson  <simon@josefsson.org>
22785
22786         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
22787         (GC_SHA224_DIGEST_SIZE): Add.
22788
22789         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
22790         (gc_hash_digest_length): Likewise.
22791         (gc_hash_buffer): Likewise.
22792
22793 2008-03-25  Bruno Haible  <bruno@clisp.org>
22794
22795         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
22796         detail which gettext release to use.
22797         Reported by Simon Josefsson.
22798
22799 2008-03-26  Jim Meyering  <meyering@redhat.com>
22800
22801         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
22802         * modules/gnumakefile (clean-GNUmakefile): Also, use
22803         test ... && ... || : syntax rather than if-then ... fi.
22804
22805         gnumakefile: Don't double-quote-expand $(VPATH) value.
22806         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
22807
22808 2008-03-24  Eric Blake  <ebb9@byu.net>
22809
22810         Alter GNUmakefile to install into top directory.
22811         * modules/maintainer-makefile: Split, and add dependency...
22812         * modules/gnumakefile: to this new module.
22813         * build-aux/GNUmakefile: Move...
22814         * top/GNUmakefile: ...here.
22815         * build-aux/maint.mk: Move...
22816         * top/maint.mk: ...here.
22817         * MODULES.html.sh (Support for maintaining...): Document new
22818         module.
22819
22820 2008-03-23  Bruno Haible  <bruno@clisp.org>
22821
22822         * gnulib-tool: New options --vc-files, --no-vc-files.
22823         (func_usage): Document them.
22824         (vc_files): New variable.
22825         (func_import): Consider vc_files.
22826         (func_create_testdir): Set vc_files to empty.
22827         Suggested by Jim Meyering and Karl Berry.
22828
22829 2008-03-23  Bruno Haible  <bruno@clisp.org>
22830
22831         Fix regex compilation error on HP-UX 11.
22832         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
22833         * modules/regex (Files): Add m4/mbstate_t.m4.
22834         Reported by Ton Voon <ton.voon@altinity.com>.
22835
22836 2008-03-23  Bruno Haible  <bruno@clisp.org>
22837
22838         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
22839
22840 2008-03-23  Eric Blake  <ebb9@byu.net>
22841             Bruno Haible  <bruno@clisp.org>
22842
22843         Install files from top/ in the destination directory.
22844         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
22845         augmentation also for the files from top/.
22846         (func_import, func_create_testdir): Rewrite file names:
22847         top/filename -> filename.
22848
22849 2008-03-23  Bruno Haible  <bruno@clisp.org>
22850
22851         Tweak "gnulib --version" output.
22852         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
22853
22854 2008-03-23  Bruno Haible  <bruno@clisp.org>
22855
22856         Tweak "gnulib --version" output.
22857         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
22858         rather than contents of ChangeLog, when possible.
22859
22860 2008-03-21  Eric Blake  <ebb9@byu.net>
22861
22862         More --version tweaks.
22863         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
22864         date of last ChangeLog entry.
22865
22866 2008-03-21  Jim Meyering  <meyering@redhat.com>
22867
22868         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
22869
22870 2008-03-20  Eric Blake  <ebb9@byu.net>
22871
22872         VPATH fix.
22873         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
22874
22875 2008-03-20  Simon Josefsson  <simon@josefsson.org>
22876
22877         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
22878         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
22879
22880 2008-03-20  Eric Blake  <ebb9@byu.net>
22881
22882         Sync GNUmakefile with coreutils.
22883         * build-aux/GNUmakefile (have-Makefile): Rename...
22884         (_have-Makefile): ...to this, for namespace consideration.
22885         (GNUmakefile.cfg): Include, if present.
22886         (_autoreconf): Define a default.
22887         (_is-dist-target): New rule for rebuilds to pick up intra-release
22888         version.
22889         (maint-cfg.mk): Rename...
22890         (cfg.mk): ...to this.
22891
22892 2008-03-18  Jim Meyering  <meyering@redhat.com>
22893
22894         New script and module: mktempd
22895         * MODULES.html.sh (maint+release support): Add mktempd.
22896         * build-aux/mktempd: New file.
22897         * modules/mktempd: New file.
22898
22899 2008-03-15  Jim Meyering  <meyering@redhat.com>
22900
22901         Undo last change.
22902         * lib/sha1.c, lib/md5.c: 63 != ~63.
22903         Reported by Andreas Schwab.
22904
22905         sha1.c, md5.c: Hoist a redundant expression.
22906         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
22907         "ctx->buflen" only once, before calling *_process_block.
22908         * lib/md5.c (md5_process_bytes): Likewise.
22909
22910 2008-03-14  Eric Blake  <ebb9@byu.net>
22911
22912         Bump copyright year in files generated by gnulib-tool.
22913         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
22914         gnulib-tool, rather than hard-coding it.
22915
22916         Fix 'gnulib-tool --version' output to work with git.
22917         * gnulib-tool (func_gnulib_dir): New function, extracted from...
22918         (startup): ...here.
22919         (func_version): Use it to invoke git-version-gen, rather than
22920         relying on CVS keyword expansion.  Modernize wording.
22921         (cvsdatestamp, last_checkin_date, version): Kill unused
22922         variables.
22923
22924 2008-03-12  Jim Meyering  <meyering@redhat.com>
22925
22926         Recognize optional cast of the argument to free.
22927         * build-aux/useless-if-before-free: Update regexps.
22928
22929         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
22930
22931 2008-03-11  Bruno Haible  <bruno@clisp.org>
22932
22933         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
22934         by a single package.
22935         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
22936         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
22937         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
22938         Reported by Sam Steingold <sds@gnu.org>.
22939
22940 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
22941
22942         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
22943         repositories.
22944
22945 2008-03-11  Bruno Haible  <bruno@clisp.org>
22946
22947         Avoid conflicts between local macro definitions.
22948         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22949         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
22950
22951 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
22952             Bruno Haible  <bruno@clisp.org>
22953
22954         Make va_copy work with some version of xlc on AIX 5.1.
22955         * lib/stdarg.in.h: New file.
22956         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
22957         On AIX, use a <stdarg.h> file substitute.
22958         * modules/stdarg (Files): Add lib/stdarg.in.h.
22959         (Depends-on): Add include_next.
22960         (Makefile.am): Build a stdarg.h substitute if requested.
22961         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
22962
22963 2008-03-10  Bruno Haible  <bruno@clisp.org>
22964
22965         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
22966         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22967         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
22968
22969 2008-03-10  Bruno Haible  <bruno@clisp.org>
22970
22971         * modules/stdlib (Depends-on): Add include_next, remove
22972         absolute-header.
22973
22974 2008-03-09  Bruno Haible  <bruno@clisp.org>
22975
22976         * lib/freadahead.h (freadahead): Document more precisely.
22977         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
22978         the sum of both buffer sizes.
22979         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
22980         * NEWS: Document the change.
22981
22982 2008-03-09  Bruno Haible  <bruno@clisp.org>
22983
22984         Extend freadptr to return also the buffer size.
22985         * lib/freadptr.h (freadptr): Add sizep argument.
22986         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
22987         (freadptr): Add sizep argument. Determine buffer size like freadahead
22988         does.
22989         * tests/test-freadptr.c: Don't include freadahead.h.
22990         (main): Adapt for new calling convention of freadptr.
22991         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
22992         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
22993         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
22994         tests/test-freadptr2.sh.
22995         (Depends): Remove freadahead.
22996         (TESTS): Add test-freadptr2.sh.
22997         (check_PROGRAMS): Add test-freadptr2.
22998
22999 2008-03-09  Bruno Haible  <bruno@clisp.org>
23000
23001         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
23002         Report and solution by Simon Josefsson.
23003
23004 2008-03-06  Bruno Haible  <bruno@clisp.org>
23005
23006         Make fflush after ungetc work on BSD platforms.
23007         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
23008         * tests/test-fflush2.c: New file.
23009         * tests/test-fflush2.sh: New file.
23010         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
23011         tests/test-fflush2.c.
23012         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
23013         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
23014
23015 2008-03-06  Eric Blake  <ebb9@byu.net>
23016
23017         Likewise for ftello.
23018         * modules/ftello (Dependencies): Add extensions.
23019         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
23020
23021 2008-03-06  Bruno Haible  <bruno@clisp.org>
23022
23023         * modules/fseeko (Dependencies): Add extensions.
23024         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
23025         Needed on glibc systems.
23026
23027 2008-03-06  Bruno Haible  <bruno@clisp.org>
23028
23029         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
23030         email address.
23031         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23032
23033 2008-03-06  Bruno Haible  <bruno@clisp.org>
23034
23035         * users.txt: Add libgnupdf.
23036
23037 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23038
23039         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
23040         (Header File Substitutes, Function Substitutes,
23041         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
23042         (Build robot for gnulib): Fix typo.
23043
23044 2008-03-06  Bruno Haible  <bruno@clisp.org>
23045
23046         * doc/gnulib-tool.texi (VCS Issues): Small updates.
23047         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23048
23049 2008-03-06  Bruno Haible  <bruno@clisp.org>
23050
23051         * doc/func.texi: New file, extracted from doc/gnulib.texi.
23052         * doc/gnulib.texi: Include it.
23053
23054 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23055
23056         * modules/func (License): Change license to unlimited; there was
23057         no LGPL parts in the module anyway.
23058
23059 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23060
23061         * modules/__func__: Renamed to modules/func.
23062         * modules/__func__-tests: Renamed to modules/func-tests.
23063         * tests/test-__func__.c: Renamed to tests/test-func.c.
23064         * m4/__func__.m4: Renamed to m4/func.m4.
23065         * doc/gnulib.texi (__func__): Section renamed to func.
23066         Suggested by Eric Blake <ebb9@byu.net>.
23067
23068 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23069
23070         * doc/gnulib.texi (__func__): Use C99 terminology when talking
23071         about __func__.  Make example self-contained.  Suggested by Eric
23072         Blake <ebb9@byu.net>.
23073
23074         * tests/test-__func__.c (main): Avoid extraneous () around __func.
23075         Suggested by Eric Blake <ebb9@byu.net>.
23076
23077 2008-03-06  Simon Josefsson  <simon@josefsson.org>
23078
23079         * modules/__func__: New file.
23080         * modules/__func__-tests: New file.
23081         * tests/test-__func__.c: New file.
23082         * m4/__func__.m4: New file.
23083         * doc/gnulib.texi (__func__): Document __func__ module.
23084
23085 2008-03-05  Simon Josefsson  <simon@josefsson.org>
23086
23087         * modules/byteswap (License): Re-license as LGPLv2+.
23088
23089 2008-03-05  Simon Josefsson  <simon@josefsson.org>
23090
23091         * doc/Makefile: Add pdf target.
23092
23093 2008-03-05  Simon Josefsson  <simon@josefsson.org>
23094
23095         * modules/inline (License): Use 'unlimited', since there are only
23096         *.m4 files in this module.
23097
23098 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
23099             Bruno Haible  <bruno@clisp.org>
23100
23101         Add support for HP C 7.1 on OpenVMS 8.3.
23102         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
23103
23104 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
23105
23106         Update VMS specifics.
23107         * lib/getopt.c [VMS]: Remove include of unixlib.h.
23108
23109 2008-03-02  Jim Meyering  <meyering@redhat.com>
23110
23111         Remove the last dependency on the "free" module.
23112         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
23113         Reported by Bob Proulx.
23114
23115         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
23116
23117         Remove useless "if" tests before free.  Deprecate "free" module.
23118         * doc/posix-functions/free.texi: Mention that this
23119         module is no longer useful.
23120         * modules/free (Notice): Say this module is obsolete.
23121         * modules/readutmp (Depends-on): Remove free.
23122         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
23123         * lib/putenv.c (putenv): Likewise.
23124         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
23125         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
23126         * tests/test-c-strcasestr.c (main): Likewise.
23127         * tests/test-c-strstr.c (main): Likewise.
23128         * tests/test-mbscasestr1.c (main): Likewise.
23129         * tests/test-mbscasestr2.c (main): Likewise.
23130         * tests/test-mbsstr1.c (main): Likewise.
23131         * tests/test-mbsstr2.c (main): Likewise.
23132         * tests/test-memmem.c (main): Likewise.
23133         * tests/test-strcasestr.c (main): Likewise.
23134         * tests/test-striconv.c (main): Likewise.
23135         * tests/test-striconveh.c (main): Likewise.
23136         * tests/test-striconveha.c (main): Likewise.
23137         * tests/test-strstr.c (main): Likewise.
23138
23139         * build-aux/git-version-gen: Adjust a comment and the Usage string.
23140
23141         bootstrap: sync from coreutils again
23142         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
23143
23144 2008-03-01  Jim Meyering  <meyering@redhat.com>
23145
23146         bootstrap: sync from coreutils
23147         * build-aux/bootstrap (update_po_files): Copy a .po file into place
23148         also when the target doesn't exist.
23149
23150 2008-03-01  Eric Blake  <ebb9@byu.net>
23151
23152         Fix bugs in last patch.
23153         * lib/memchr2.c (memchr2): Fix typo.
23154         * tests/test-memchr2.c: Test previous bug, and don't use GNU
23155         extension.
23156         Reported by Bruce Korb.
23157
23158         New module 'memchr2'.
23159         * modules/memchr2: New file.
23160         * modules/memchr2-tests: Likewise.
23161         * lib/memchr2.h: Likewise.
23162         * lib/memchr2.c: Likewise, based on memchr.c.
23163         * tests/test-memchr2.c: New test.
23164         * MODULES.html.sh (String handling): Add memchr2.
23165
23166 2008-02-29  Bruno Haible  <bruno@clisp.org>
23167
23168         * modules/freadseek-tests: New file.
23169         * tests/test-freadseek.sh: New file.
23170         * tests/test-freadseek.c: New file.
23171
23172         New module 'freadseek'.
23173         * modules/freadseek: New file.
23174         * lib/freadseek.h: New file.
23175         * lib/freadseek.c: New file.
23176         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
23177
23178 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
23179
23180         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
23181         wydawca.
23182
23183         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
23184         program_invocation_name and program_invocation_short_name are
23185         present.
23186
23187 2008-02-28  Bruno Haible  <bruno@clisp.org>
23188
23189         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
23190         * tests/test-freadptr.sh: Also test non-seekable stdin.
23191
23192 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
23193
23194         * build-aux/bootstrap (source_base, m4_base)
23195         (doc_base, tests_base): New variables.
23196         (gnulib_tool_options): Do not hardcode base directories, use
23197         the above variables instead.
23198
23199 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
23200
23201         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
23202
23203 2008-02-28  Bruno Haible  <bruno@clisp.org>
23204
23205         * modules/freadptr-tests: New file.
23206         * tests/test-freadptr.sh: New file.
23207         * tests/test-freadptr.c: New file.
23208
23209         New module 'freadptr'.
23210         * modules/freadptr: New file.
23211         * lib/freadptr.h: New file.
23212         * lib/freadptr.c: New file.
23213         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
23214
23215 2008-02-26  Karl Berry  <karl@freefriends.org>
23216
23217         Sync from Libtool:
23218         * libltdl/argz.c (argz_add, argz_count): New functions.
23219         * libltdl/argz.in.h: Declare them.
23220         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
23221
23222 2008-02-22  Bruno Haible  <bruno@clisp.org>
23223
23224         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
23225         is a pointer type.  Needed for HP-UX 10.
23226         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
23227         * doc/posix-functions/gmtime_r.texi: Likewise.
23228         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
23229
23230 2008-02-24  Bruno Haible  <bruno@clisp.org>
23231
23232         * modules/environ-tests: New file.
23233         * tests/test-environ.c: New file.
23234
23235         New module 'environ'.
23236         * modules/environ: New file.
23237         * lib/unistd.in.h (environ): New declaration.
23238         * m4/environ.m4: New file.
23239         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
23240         after use.
23241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
23242         HAVE_DECL_ENVIRON.
23243         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
23244         HAVE_DECL_ENVIRON.
23245         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
23246         wrong claim that 'environ' is missing on some systems.
23247         * modules/execute (Depends-on): Add environ.
23248         * lib/execute.c (environ): Remove fallback declaration.
23249         * modules/pipe (Depends-on): Add environ.
23250         * lib/pipe.c (environ): Remove fallback declaration.
23251         * modules/setenv (Depends-on): Add environ.
23252         * lib/setenv.c (environ): Remove fallback declaration.
23253         * modules/unsetenv (Depends-on): Add environ.
23254         * lib/unsetenv.c (environ): Remove fallback declaration.
23255         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
23256         m4/environ.m4.
23257         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
23258         (gl_PREREQ_UNSETENV): Likewise.
23259
23260 2008-02-24  Bruno Haible  <bruno@clisp.org>
23261
23262         * doc/posix-functions/environ.texi: Document the MacOS X problem.
23263
23264 2008-02-20  Bob Proulx  <bob@proulx.com>
23265
23266         Enable use of older two part flavor 'git describe'.
23267         * build-aux/git-version-gen: If using the older two part flavor of
23268         git version then recreate the third part now present in the
23269         newer three part flavor of git describe.
23270
23271 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
23272
23273         * lib/fts.c (fts_build): Typo correction to comment.
23274
23275 2008-02-17  Bruno Haible  <bruno@clisp.org>
23276
23277         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
23278         generating no-op conflicts.
23279
23280 2008-02-17  Bruno Haible  <bruno@clisp.org>
23281
23282         Speed up by 10%.
23283         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
23284         result_entries, rather than an index-based loop.
23285
23286 2008-02-17  Bruno Haible  <bruno@clisp.org>
23287
23288         Speed up by 25%.
23289         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
23290         'hashcode_cached'.
23291         (entry_create): New function.
23292         (entry_hashcode): Use the cached hashcode if possible.
23293         (read_changelog_file, try_split_merged_entry): Use entry_create.
23294
23295 2008-02-17  Bruno Haible  <bruno@clisp.org>
23296
23297         Speed up from O(n^2) to O(n) for long ChangeLog files.
23298         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
23299         (read_changelog_file): Change implementation of entries_reversed list
23300         to rbtreehash.
23301         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
23302
23303 2008-02-17  Bruno Haible  <bruno@clisp.org>
23304
23305         New option --split-merged-entry.
23306         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
23307         (find_paragraph_end, try_split_merged_entry): New functions.
23308         (long_options): Add option --split-merged-entry.
23309         (usage): Document option --split-merged-entry.
23310         (main): Implement option --split-merged-entry.
23311         Reported by Eric Blake.
23312
23313 2008-02-17  Bruno Haible  <bruno@clisp.org>
23314
23315         * lib/git-merge-changelog.c: Include c-strstr.h.
23316         (main): Support the "git pull --rebase" situation.
23317         * modules/git-merge-changelog (Depends-on): Add c-strstr.
23318         Reported by Eric Blake.
23319
23320 2008-02-16  Eric Blake  <ebb9@byu.net>
23321
23322         Avoid doubling \ in common case of "c-maybe" quoting style.
23323         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
23324         eliding outer quotes.
23325         * lib/quotearg.h: Document this.
23326         * tests/test-quotearg.c (result_strings, inputs, results_g)
23327         (flag_results, locale_results): Test it by adding a new string to
23328         each test group.
23329         (compare_strings): Test new string.
23330
23331 2008-02-13  Eric Blake  <ebb9@byu.net>
23332
23333         Avoid trigraph quoting in default output.
23334         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
23335         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
23336         unless explicitly requested.
23337         * tests/test-quotearg.c (flag_results, main): Add additional tests.
23338
23339 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
23340
23341         Don't rely on signed integer overflowing to negative value.
23342         * lib/getugroups.c (getugroups): Include <limits.h>.
23343         Instead, compare against INT_MAX, and increment only if the test passes.
23344
23345 2008-02-13  Jim Meyering  <meyering@redhat.com>
23346         and Eric Blake  <ebb9@byu.net>
23347
23348         Avoid shadowing warning and compile errors on Linux.
23349         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
23350         forwarding macros on Linux.
23351         (dcgettext): Define a stub, for Linux.
23352         (results_g, main): Avoid warnings.
23353
23354 2008-02-12  Eric Blake  <ebb9@byu.net>
23355
23356         Silence warning in last patch.
23357         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
23358
23359         Quotearg part 4: add tests, fix c-maybe colon quoting.
23360         * lib/quotearg.h: Improve documentation.
23361         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
23362         escapes when adding outer quotes.  When quoting trigraphs, use
23363         valid C notation.  When quoting NUL, omit extra characters if next
23364         character is not digit.  Alter prototype.
23365         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
23366         callers.
23367         * modules/quotearg-tests: New module.
23368         * tests/test-quotearg.c: New test.
23369
23370 2008-02-07  Eric Blake  <ebb9@byu.net>
23371
23372         Quotearg part 3: add flag to control outer quote elision.
23373         * lib/quotearg.h (c_maybe_quoting_style): New style.
23374         (enum quoting_flags): Better documentation of flags.
23375         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
23376         c-maybe style.
23377         (quotearg_buffer_restyled): Handle new flag to elide outer
23378         quotes.
23379
23380         Quotearg part 2: add flag that can control NUL elision.
23381         * lib/quotearg.h (set_quoting_flags): New prototype.
23382         * lib/quotearg.c (struct quoting_options): Add flag field.
23383         (set_quoting_flags): New function.
23384         (quotearg_buffer_restyled): Add flags parameter.
23385         (quotearg_alloc_mem): Set the flag if length cannot be returned.
23386         (quotearg_n_options): Set the flag, since length cannot be
23387         returned.
23388         (quoting_options_from_style): Default flags correctly.
23389
23390         Quotearg part 1: more wrappers, restore quotearg_char state.
23391         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
23392         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
23393         (quotearg_colon_mem): New wrappers.
23394         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
23395         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
23396         functions.
23397         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
23398         (quotearg_colon_mem): New functions.
23399
23400 2008-02-11  Bruno Haible  <bruno@clisp.org>
23401
23402         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
23403         library in the current directory: it does not work with parallel make.
23404         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23405
23406 2008-02-11  Bruno Haible  <bruno@clisp.org>
23407
23408         * .gitattributes: New file.
23409
23410 2008-02-11  Jim Meyering  <meyering@redhat.com>
23411
23412         useless-if-before-free: Fix reversed exit values.
23413         * build-aux/useless-if-before-free: Use correct values
23414         for EXIT_MATCH and EXIT_NO_MATCH.
23415
23416         * build-aux/useless-if-before-free: Close stdout carefully.
23417
23418 2008-02-10  Bruno Haible  <bruno@clisp.org>
23419
23420         New module 'git-merge-changelog'.
23421         * modules/git-merge-changelog: New file.
23422         * lib/git-merge-changelog.c: New file.
23423
23424 2008-02-10  Jim Meyering  <meyering@redhat.com>
23425
23426         useless-if-before-free: New option: --list (-l).
23427
23428         useless-if-before-free: Don't exit immediately upon open failure.
23429         * build-aux/useless-if-before-free: Exit 2 for errors.
23430         Upon failure to open a file, don't exit immediately.
23431         Rather, just warn and continue with any remaining files.
23432
23433 2008-02-10  Bruno Haible  <bruno@clisp.org>
23434
23435         New abstract list operation 'node_set_value'.
23436         * lib/gl_list.h (gl_list_node_set_value): New function.
23437         (struct gl_list_implementation): New field node_set_value.
23438         * lib/gl_list.c (gl_list_node_set_value): New function.
23439         * lib/gl_array_list.c (gl_array_node_set_value): New function.
23440         (gl_array_list_implementation): Update.
23441         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
23442         (gl_carray_list_implementation): Update.
23443         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
23444         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23445         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23446         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
23447         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23448         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23449         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23450         Update.
23451         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
23452         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
23453         (gl_sublist_list_implementation): Update.
23454
23455 2008-02-10  Bruno Haible  <bruno@clisp.org>
23456
23457         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
23458         Needed when ELEMENT is #defined to 'some_type *'.
23459
23460 2008-02-10  Jim Meyering  <meyering@redhat.com>
23461
23462         New script and module: useless-if-before-free
23463         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
23464         * build-aux/useless-if-before-free: New file.
23465         * modules/useless-if-before-free: New file.
23466
23467         * build-aux/gitlog-to-changelog: Use committer date, not author date.
23468
23469         xstrtol_error: Fix typo.
23470         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
23471         s/exit_failure/exit_status/.
23472
23473 2008-02-09  Jim Meyering  <meyering@redhat.com>
23474
23475         New script and module: gitlog-to-changelog
23476         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
23477         * modules/gitlog-to-changelog: New file.
23478         * build-aux/gitlog-to-changelog: New file.
23479
23480 2008-02-08  Jim Meyering  <meyering@redhat.com>
23481
23482         Avoid two "parameter unused" warnings.
23483         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
23484         Mark "st" as used.
23485
23486         Use "git COMMAND", not "git-COMMAND".
23487         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
23488         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
23489         * build-aux/git-version-gen: Use "git status", not "git-status".
23490
23491 2008-02-07  Bruno Haible  <bruno@clisp.org>
23492
23493         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
23494         Avoids a crash on Windows Vista.
23495         Reported by Adam Strzelecki <ono@java.pl> via
23496         Simon Josefsson <simon@josefsson.org>.
23497
23498 2008-02-06  Bruno Haible  <bruno@clisp.org>
23499
23500         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
23501         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
23502         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
23503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
23504         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23505         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23506         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
23507         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
23508         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23509         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23510         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23511         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23512         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23513         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23514         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23515         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
23516         left-adjust flag.
23517         * tests/test-snprintf-posix.h (test_function): Likewise.
23518         * tests/test-sprintf-posix.h (test_function): Likewise.
23519         * tests/test-vasprintf-posix.c (test_function): Likewise.
23520         * doc/posix-functions/fprintf.texi: Update.
23521         * doc/posix-functions/printf.texi: Update.
23522         * doc/posix-functions/snprintf.texi: Update.
23523         * doc/posix-functions/sprintf.texi: Update.
23524         * doc/posix-functions/vfprintf.texi: Update.
23525         * doc/posix-functions/vprintf.texi: Update.
23526         * doc/posix-functions/vsnprintf.texi: Update.
23527         * doc/posix-functions/vsprintf.texi: Update.
23528         Reported by Peter Fales <psfales@alcatel-lucent.com>.
23529
23530 2008-02-06  Bruno Haible  <bruno@clisp.org>
23531
23532         Fix bug introduced on 2008-01-26.
23533         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
23534
23535 2008-02-06  Bruno Haible  <bruno@clisp.org>
23536
23537         Fix bug introduced on 2007-06-10.
23538         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
23539         !NEED_PRINTF_FLAG_ZERO.
23540
23541 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
23542
23543         getloadavg: use libperfstat on AIX5
23544         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
23545
23546 2008-02-03  Bruno Haible  <bruno@clisp.org>
23547
23548         * lib/diffseq.h: Add comments about required #includes.
23549         Reported by Michael Biggs <gnulib@doubleplum.net>.
23550
23551 2008-02-01  Bruno Haible  <bruno@clisp.org>
23552
23553         * users.txt: Add gnuit.
23554
23555 2008-01-31  Bruno Haible  <bruno@clisp.org>
23556
23557         * lib/md4.c (set_uint32): Mark as inline.
23558         * lib/md5.c (set_uint32): Likewise.
23559         * lib/sha1.c (set_uint32): Likewise.
23560         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
23561         * m4/md5.m4 (gl_MD5): Likewise.
23562         * m4/sha1.m4 (gl_SHA1): Likewise.
23563
23564 2008-01-31  Jim Meyering  <meyering@redhat.com>
23565
23566         Use "sizeof VAR", rather than a literal "4".
23567         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
23568         * lib/md4.c (md4_read_ctx): Likewise.
23569         * lib/sha1.c (sha1_read_ctx): Likewise.
23570
23571 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23572
23573         * tests/test-sha1.c: New file, based on test-md5.c.
23574
23575         * modules/crypto/sha1-tests: New file.
23576
23577 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23578
23579         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
23580
23581 2008-01-31  Jim Meyering  <meyering@redhat.com>
23582
23583         Prefer "sizeof v" over the equivalent "4".
23584         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
23585         * lib/md5.c (set_uint32): Likewise.
23586         * lib/sha1.c (set_uint32): Likewise.
23587
23588 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23589
23590         * lib/sha1.c (set_uint32): Mark function as static.
23591
23592 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23593
23594         md2: clarify comments to say that alignment is not required.
23595         * lib/md2.h: Remove warning about alignment in comment.
23596         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
23597         never been required.
23598
23599 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23600
23601         md4: adapt alignment constraint fix from sha1.
23602         * lib/md4.c (set_uint32): New function, from sha1.c
23603         (md4_read_ctx): Use it.
23604         (md4_finish_ctx): Doc fix.
23605         * lib/md4.h: Doc fix.
23606
23607 2008-01-31  Simon Josefsson  <simon@josefsson.org>
23608
23609         md5: adapt alignment constraint fix from sha1.
23610         * lib/md5.c (set_uint32): New function, from sha1.c
23611         (md5_read_ctx): Use it.
23612         (md5_finish_ctx): Doc fix.
23613         * lib/md5.h: Doc fix.
23614
23615 2008-01-30  Peter Palfrader  <weasel@debian.org>
23616
23617         sha1: remove the result buffer alignment constraint
23618         * lib/sha1.c (set_uint32): New function.
23619         (sha1_read_ctx): Rewrite to remove the result buffer alignment
23620         constraint.
23621         (sha1_finish_ctx): Remove comment warning about alignment constraint.
23622         * lib/sha1.h: Likewise.
23623
23624 2008-01-30  Andreas Schwab  <schwab@suse.de>
23625             Bruno Haible  <bruno@clisp.org>
23626
23627         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
23628         correct definition of LDBL_MIN_EXP.
23629
23630 2008-01-30  Karl Berry  <karl@gnu.org>
23631
23632         * config/srclist-update: try to preserve x bit on updates.
23633         * config/srclistvars.sh: update for karl.
23634
23635 2008-01-29  Jim Meyering  <meyering@redhat.com>
23636
23637         vasnprintf.c: Avoid warning about unused label
23638         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
23639         "overflow" label definition and associated code with the
23640         same cpp condition that guards the sole use of that label.
23641
23642 2008-01-26  Bruno Haible  <bruno@clisp.org>
23643
23644         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
23645         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
23646         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
23647         * lib/isnanl-nolibm.h (isnanl): Likewise.
23648         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23649
23650 2008-01-26  Bruno Haible  <bruno@clisp.org>
23651
23652         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
23653         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
23654
23655 2008-01-26  Bruno Haible  <bruno@clisp.org>
23656
23657         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
23658         GCC >= 4.0 built-in.
23659         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
23660
23661 2008-01-26  Bruno Haible  <bruno@clisp.org>
23662
23663         Rename isnan, applicable to 'double' only, to isnand.
23664         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
23665         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
23666         (configure.ac): Update.
23667         (Include): Replace "isnan.h" with "isnand.h".
23668         * m4/isnand.m4: Renamed from m4/isnan.m4.
23669         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
23670         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
23671         instead of isnan.c.
23672         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
23673         instead of HAVE_ISNAN_IN_LIBC.
23674         (isnand): Renamed from isnan.
23675         * lib/isnand.c: New file.
23676         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
23677         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
23678         (Makefile.am): Update.
23679         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
23680         Include isnand.h instead of isnan.h.
23681         (main): Test isnand instead of isnan.
23682         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
23683         isnan-nolibm.
23684         * modules/frexp (Depends-on): Likewise.
23685         * modules/frexp-tests (Depends-on): Likewise.
23686         * modules/frexp-nolibm (Depends-on): Likewise.
23687         * modules/frexp-nolibm-tests (Depends-on): Likewise.
23688         * modules/isfinite (Depends-on): Likewise.
23689         * modules/round-tests (Depends-on): Likewise.
23690         * modules/signbit (Depends-on): Likewise.
23691         * modules/signbit-tests (Depends-on): Likewise.
23692         * modules/snprintf-posix (Depends-on): Likewise.
23693         * modules/sprintf-posix (Depends-on): Likewise.
23694         * modules/trunc-tests (Depends-on): Likewise.
23695         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23696         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23697         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23698         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23699         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23700         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23701         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23702         * modules/vasnprintf-posix (Depends-on): Likewise.
23703         * modules/vasprintf-posix (Depends-on): Likewise.
23704         * modules/vfprintf-posix (Depends-on): Likewise.
23705         * modules/vsnprintf-posix (Depends-on): Likewise.
23706         * modules/vsprintf-posix (Depends-on): Likewise.
23707         * lib/frexp.c: Include isnand.h instead of isnan.h.
23708         (ISNAN): Set to isnand instead of isnan.
23709         * lib/isfinite.c: Include isnand.h instead of isnan.h.
23710         (gl_isfinited): Use isnand instead of isnan.
23711         * lib/signbitd.c: Include isnand.h instead of isnan.h.
23712         (gl_signbitd): Use isnand instead of isnan.
23713         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
23714         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
23715         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
23716         (main): Use isnand instead of isnan.
23717         * tests/test-round1.c: Include isnand.h.
23718         (main): Use isnand instead of isnan.
23719         * tests/test-round2.c: Include isnand.h instead of isnan.h.
23720         (ISNAN): Set to isnand instead of isnan.
23721         * tests/test-trunc1.c: Include isnand.h.
23722         (main): Use isnand instead of isnan.
23723         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
23724         (equal): Use isnand instead of isnan.
23725         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
23726         isnand-nolibm.
23727         * NEWS: Mention the change.
23728
23729 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
23730             Bruno Haible  <bruno@clisp.org>
23731
23732         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
23733         the GCC builtins for signbits are present and set
23734         REPLACE_SIGNBIT_USING_GCC if so.
23735         * lib/math.in.h (signbit): Define using GCC builtins if
23736         REPLACE_SIGNBIT_USING_GCC is set.
23737         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
23738         REPLACE_SIGNBIT_USING_GCC.
23739         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
23740
23741 2008-01-25  Jim Meyering  <meyering@redhat.com>
23742
23743         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
23744         * lib/poll.c: Include <config.h>, not "config.h".
23745         * tests/test-getaddrinfo.c: Likewise.
23746
23747 2008-01-25  Simon Josefsson  <simon@josefsson.org>
23748
23749         * modules/sockets-tests: New file.
23750
23751 2008-01-24  Simon Josefsson  <simon@josefsson.org>
23752
23753         * modules/sockets: New module, can be used to call WSA_Startup and
23754         WSA_Cleanup when needed.
23755
23756         * lib/sockets.h, lib/sockets.c: New files.
23757
23758         * m4/sockets.m4: New file.
23759
23760         * tests/test-sockets.c: New file.
23761
23762 2008-01-19  Bruno Haible  <bruno@clisp.org>
23763
23764         * doc/posix-headers: Renamed from doc/headers.
23765         * doc/posix-functions: Renamed from doc/functions.
23766         * doc/gnulib.texi: Update.
23767
23768 2008-01-19  Bruno Haible  <bruno@clisp.org>
23769
23770         * doc/glibc-functions/strcasestr.texi: Include contents of
23771         doc/functions/strcasestr.texi, fixing the list of platforms.
23772         * doc/functions/strcasestr.texi: Remove file.
23773
23774 2008-01-19  Bruno Haible  <bruno@clisp.org>
23775
23776         * doc/glibc-functions/memmem.texi: Include contents of
23777         doc/functions/memmem.texi.
23778         * doc/functions/memmem.texi: Remove file.
23779
23780 2008-01-18  Bruno Haible  <bruno@clisp.org>
23781
23782         * doc/glibc-functions/*.texi: New files.
23783         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
23784         to use the new files.
23785
23786 2008-01-17  Bruno Haible  <bruno@clisp.org>
23787
23788         * tests/test-gethostname.c (main): Fix printf statement.
23789
23790 2008-01-17  Simon Josefsson  <simon@josefsson.org>
23791
23792         * modules/gethostname-tests: New file.
23793
23794         * tests/test-gethostname.c: New file.
23795
23796 2008-01-17  Simon Josefsson  <simon@josefsson.org>
23797
23798         * lib/gethostname.c: Include string.h unconditionally, strncpy is
23799         used by the UNAME case.  Reported by Bruno Haible
23800         <bruno@clisp.org>.
23801
23802 2008-01-17  Eric Blake  <ebb9@byu.net>
23803
23804         Convert c-strcasestr to be more efficient.
23805         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
23806         (Depends-on): Add c-strcase, remove malloca, strnlen.
23807         * tests/test-c-strcasestr.c (main): Enhance test.
23808         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
23809
23810 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
23811
23812         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
23813         Use it in creating po/Makevars.
23814
23815 2008-01-15  Simon Josefsson  <simon@josefsson.org>
23816
23817         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
23818         Applications that requires it should initialize libgcrypt
23819         manually.
23820
23821 2008-01-16  Simon Josefsson  <simon@josefsson.org>
23822
23823         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
23824
23825 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
23826
23827         Fix problem with getdate on mingw32 reported by Simon Josefsson
23828         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
23829         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
23830         tzname", when deciding whether to declare tzname.
23831         * lib/strftime.c (tzname): Likewise.
23832
23833 2008-01-15  Bruno Haible  <bruno@clisp.org>
23834
23835         Work around a MacOS X 10.5 bug in frexpl().
23836         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
23837         * doc/functions/frexpl.texi: Document the bug.
23838         Reported by Elias Pipping <pipping@gentoo.org>.
23839
23840 2008-01-14  Eric Blake  <ebb9@byu.net>
23841
23842         Touch up previous patch.
23843         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
23844         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
23845
23846         Convert strcasestr module to use Two-Way algorithm.
23847         * modules/strcasestr-simple: New module, based on the old
23848         strcasestr, but with Two-Way rather than KMP.
23849         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
23850         * lib/string.in.h (rpl_strcasestr): Declare.
23851         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
23852         performance.
23853         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
23854         * modules/string (Makefile.am): Support strcasestr.
23855         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
23856         * modules/strcasestr-tests (Depends-on): Check for alarm.
23857         * tests/test-strcasestr.c: Augment test.
23858         * lib/str-two-way.h: Clean up stray macro.
23859         * NEWS: Document new module.
23860         * MODULES.html.sh (string handling): Likewise.
23861         * doc/functions/strcasestr.texi: New file.
23862         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
23863         here, since it is not a POSIX function.
23864
23865 2008-01-14  Colin Watson  <cjwatson@debian.org>
23866             Bruno Haible  <bruno@clisp.org>
23867
23868         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
23869         works fine; if not, set REPLACE_STRSIGNAL.
23870         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
23871         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23872         REPLACE_STRSIGNAL.
23873         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
23874         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
23875         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
23876
23877 2008-01-14  Bruno Haible  <bruno@clisp.org>
23878
23879         * modules/strsignal (Include): Change to <string.h>.
23880
23881 2008-01-14  Colin Watson  <cjwatson@debian.org>
23882
23883         * modules/argp (Notice): Add a notice recommending to change
23884         XGETTEXT_OPTIONS.
23885         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
23886
23887 2008-01-13  Colin Watson  <cjwatson@debian.org>
23888
23889         * modules/strsignal-tests: New file.
23890         * tests/test-strsignal.c: New file.
23891
23892         * lib/strsignal.c: New file, from glibc with modifications.
23893         * lib/siglist.h: New file, from glibc with modifications.
23894         * lib/string.in.h (strsignal): New declaration.
23895         * m4/strsignal.m4: New file.
23896         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23897         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
23898         * modules/strsignal: New file.
23899         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
23900         HAVE_DECL_STRSIGNAL.
23901
23902 2008-01-13  Bruno Haible  <bruno@clisp.org>
23903
23904         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
23905         locale encoding is not ASCII. Needed for OpenBSD 4.0.
23906         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23907         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23908
23909 2008-01-13  Bruno Haible  <bruno@clisp.org>
23910
23911         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
23912         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
23913         * lib/argp.h (__attribute__): Likewise.
23914         * lib/c-stack.c (__attribute__): Likewise.
23915         * lib/error.h (__attribute__): Likewise.
23916         * lib/fts.c (__attribute__): Likewise.
23917         * lib/openat.h (__attribute__): Likewise.
23918         * lib/stdio.in.h (__attribute__): Likewise.
23919         * lib/string.in.h (__attribute__): Likewise.
23920         * lib/utimens.c (__attribute__): Likewise.
23921         * lib/vasnprintf.h (__attribute__): Likewise.
23922         * lib/xalloc.h (__attribute__): Likewise.
23923         * lib/xprintf.h (__attribute__): Likewise.
23924         * lib/xstrtol.h (__attribute__): Likewise.
23925         * lib/xvasprintf.h (__attribute__): Likewise.
23926
23927 2008-01-12  Bruno Haible  <bruno@clisp.org>
23928
23929         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
23930         * doc/glibc-headers/a.out.texi: New file.
23931         * doc/glibc-headers/aliases.texi: New file.
23932         * doc/glibc-headers/alloca.texi: New file.
23933         * doc/glibc-headers/ar.texi: New file.
23934         * doc/glibc-headers/argp.texi: New file.
23935         * doc/glibc-headers/argz.texi: New file.
23936         * doc/glibc-headers/byteswap.texi: New file.
23937         * doc/glibc-headers/crypt.texi: New file.
23938         * doc/glibc-headers/endian.texi: New file.
23939         * doc/glibc-headers/envz.texi: New file.
23940         * doc/glibc-headers/err.texi: New file.
23941         * doc/glibc-headers/error.texi: New file.
23942         * doc/glibc-headers/execinfo.texi: New file.
23943         * doc/glibc-headers/fpu_control.texi: New file.
23944         * doc/glibc-headers/fstab.texi: New file.
23945         * doc/glibc-headers/fts.texi: New file.
23946         * doc/glibc-headers/getopt.texi: New file.
23947         * doc/glibc-headers/ieee754.texi: New file.
23948         * doc/glibc-headers/ifaddrs.texi: New file.
23949         * doc/glibc-headers/libintl.texi: New file.
23950         * doc/glibc-headers/mcheck.texi: New file.
23951         * doc/glibc-headers/mntent.texi: New file.
23952         * doc/glibc-headers/obstack.texi: New file.
23953         * doc/glibc-headers/paths.texi: New file.
23954         * doc/glibc-headers/printf.texi: New file.
23955         * doc/glibc-headers/pty.texi: New file.
23956         * doc/glibc-headers/resolv.texi: New file.
23957         * doc/glibc-headers/shadow.texi: New file.
23958         * doc/glibc-headers/sysexits.texi: New file.
23959         * doc/glibc-headers/ttyent.texi: New file.
23960
23961 2008-01-12  Jim Meyering  <meyering@redhat.com>
23962
23963         announce-gen: emit Gnulib's git-based version string.
23964         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
23965         New option --gnulib-version=V, where V is expected to be
23966         the output of running git describe in the gnulib directory.
23967         (get_tool_versions): Request feedback on xdelta.  I suspect it's
23968         not useful, and plan to stop publishing an xdelta file with each
23969         coreutils release.
23970
23971         * build-aux/announce-gen: Also check for lzma-compressed files.
23972
23973 2008-01-11  Bruno Haible  <bruno@clisp.org>
23974
23975         * tests/test-memmem.c (main): Increase maximum allowed time.
23976         * tests/test-strstr.c (main): Likewise.
23977
23978 2008-01-11  Bruno Haible  <bruno@clisp.org>
23979
23980         * doc/functions/memmem.texi: Add more precisions about platforms.
23981         * doc/functions/strstr.texi: Likewise.
23982
23983 2008-01-10  Eric Blake  <ebb9@byu.net>
23984
23985         * m4/strstr.m4: Delete cruft from copy-n-paste.
23986         Reported by Bruno Haible.
23987
23988 2008-01-10  Bruno Haible  <bruno@clisp.org>
23989
23990         Make c-strstr rely on strstr.
23991         * lib/c-strstr.c: Don't include str-kmp.h.
23992         (c_strstr): Define in terms of strstr.
23993         * modules/c-strstr (Files): Remove lib/str-kmp.h.
23994         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
23995
23996 2008-01-10  Bruno Haible  <bruno@clisp.org>
23997
23998         * doc/gnulib.texi (String Functions in C Locale): New section.
23999         * doc/c-ctype.texi: New file.
24000         * doc/c-strcase.texi: New file.
24001         * doc/c-strcaseeq.texi: New file.
24002         * doc/c-strcasestr.texi: New file.
24003         * doc/c-strstr.texi: New file.
24004         * doc/c-strtod.texi: New file.
24005         * doc/c-strtold.texi: New file.
24006
24007 2008-01-10  Eric Blake  <ebb9@byu.net>
24008
24009         * lib/relocatable.h: Fix a comment.
24010
24011 2008-01-10  Eric Blake  <ebb9@byu.net>
24012
24013         Share two-way algorithm.
24014         * lib/str-two-way.h: New file, merged from...
24015         * lib/memmem.c: ...here...
24016         * lib/strstr.c: ...and here.
24017         * modules/memmem (Files): Use it.
24018         * modules/strstr (Files): Likewise.
24019
24020         Avoid quadratic strstr implementations.
24021         * lib/strstr.c: New file.
24022         * m4/strstr.m4: Likewise.
24023         * modules/strstr: Likewise.
24024         * modules/strstr-tests: Likewise.
24025         * tests/test-strstr.c: Likewise.
24026         * lib/string.in.h (rpl_strstr): Declare.
24027         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
24028         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
24029         * modules/string (Makefile.am): Likewise.
24030         * MODULES.html.sh (string handling): Mention new module.
24031         * doc/functions/strstr.texi (strstr): Document the bug.
24032
24033 2008-01-10  Bruno Haible  <bruno@clisp.org>
24034
24035         * lib/relocatable.h (relocate): State whether result is freshly
24036         allocated or not.
24037         * lib/relocatable.c (relocate): Return a freshly allocated string
24038         instead of a pointer to a privately held string.
24039         Reported by Sylvain Beucler <beuc@gnu.org>.
24040
24041 2008-01-10  Colin Watson  <cjwatson@debian.org>
24042
24043         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
24044         s/S_ISNLK/S_ISLNK/.
24045
24046 2008-01-09  Bruno Haible  <bruno@clisp.org>
24047
24048         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
24049         and other files.
24050         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
24051         if it's only a guess.
24052         * modules/memmem: Simplify by depending on memmem-simple.
24053
24054 2008-01-09  Bruno Haible  <bruno@clisp.org>
24055
24056         Work around OpenBSD 4.0 tdelete() bug.
24057         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
24058         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
24059         macros and don't redefine the enum values.
24060         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
24061         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
24062         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
24063
24064 2008-01-09  Bruno Haible  <bruno@clisp.org>
24065
24066         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
24067         (main): Don't perform the tests if setlocale did not install a UTF-8
24068         locale. Needed on OpenBSD 4.0.
24069         * modules/wcwidth-tests (Depends-on): Add localcharset.
24070
24071 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
24072
24073         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
24074         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
24075         * NEWS: announce this.
24076         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
24077
24078 2008-01-09  Simon Josefsson  <simon@josefsson.org>
24079         and Eric Blake  <ebb9@byu.net>
24080
24081         Add memmem-simple module.
24082         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
24083         (gl_FUNC_MEMMEM): Separate performance from presence checks.
24084         * modules/memmem-simple: New file.
24085         * modules/memmem (Description): Tweak.
24086         * MODULES.html.sh (string handling): Mention new module.
24087         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
24088         addressed by memmem-simple.
24089         * NEWS: Document the difference.
24090
24091 2008-01-09  Eric Blake  <ebb9@byu.net>
24092
24093         Give gcc some memmem optimization hints.
24094         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
24095         (strcasestr): Declare as pure.
24096         * modules/memmem (Maintainer): Claim my implementation.
24097
24098 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24099
24100         Support AIX 6.1 and higher.
24101         * build-aux/config.libpath: Likewise.
24102         * build-aux/config.rpath: Likewise.
24103
24104 2008-01-08  Jim Meyering  <meyering@redhat.com>
24105             Bruno Haible  <bruno@clisp.org>
24106
24107         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
24108         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
24109         Reported by Peter Fales in
24110         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
24111
24112 2008-01-08  Bruno Haible  <bruno@clisp.org>
24113
24114         * modules/unictype/category-of (Depends-on): Add
24115         unictype/category-none.
24116         * modules/unictype/category-and-tests (Depends-on): Add
24117         unictype/category-{L,N,Lu,Nd}.
24118         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
24119         * modules/unictype/category-or-tests (Depends-on): Add
24120         unictype/category-{L,N}.
24121         * modules/unictype/category-name-tests (Depends-on): Add
24122         unictype/category-{Z,Nl}.
24123         Reported by Simon Josefsson.
24124
24125 2008-01-08  Bruno Haible  <bruno@clisp.org>
24126
24127         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
24128         convention better.
24129         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
24130         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
24131         Reported by Peter Miller <millerp@canb.auug.org.au>.
24132
24133 2008-01-08  Eric Blake  <ebb9@byu.net>
24134
24135         Rewrite memmem to guarantee linear complexity without malloc.
24136         * lib/memmem.c (memmem): Use Two-Way rather than
24137         Knuth-Morris-Pratt, to allow O(1) space usage.
24138         (critical_factorization, two_way_short_needle)
24139         (two_way_long_needle): New functions.
24140         (knuth_morris_pratt): Delete.
24141         * modules/memmem (Depends-on): No longer need malloca or stdbool.
24142         Add stdint.
24143         * tests/test-memmem.c (main): Add tests for periodic needle and
24144         sublinear performance.
24145         * doc/functions/memmem.texi (memmem): Document other deficiencies
24146         in cygwin and older glibc.
24147
24148 2008-01-08  Bruno Haible  <bruno@clisp.org>
24149
24150         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
24151         augmentation.
24152
24153 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
24154
24155         Add a configure time option: --disable-acl.
24156         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
24157         AC_ARG_ENABLE(acl).
24158
24159 2008-01-06  Simon Josefsson  <simon@josefsson.org>
24160
24161         * tests/test-localename.c: Don't include obsolete "setenv.h".
24162
24163         * modules/localename-tests (Depends-on): Need unsetenv.
24164
24165 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24166
24167         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
24168
24169 2008-01-06  Colin Watson  <cjwatson@debian.org>
24170
24171         * users.txt: Add man-db.
24172
24173 2008-01-07  Bruno Haible  <bruno@clisp.org>
24174
24175         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
24176         previous section name.
24177
24178 2008-01-07  Bruno Haible  <bruno@clisp.org>
24179
24180         * lib/progname.c (set_program_name): Don't strip off a leading
24181         "lt-" prefix outside a .libs directory.
24182         Suggested by Paul Eggert.
24183
24184 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
24185             Bruno Haible  <bruno@clisp.org>
24186
24187         Improve memory cleanup in 'relocatable' module.
24188         * lib/relocatable.h (compute_curr_prefix): Change return type to
24189         'char *'.
24190         * lib/relocatable.c (compute_curr_prefix): Change return type to
24191         'char *'. Free curr_installdir after use.
24192         (relocate): Free curr_prefix_better after use.
24193         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
24194
24195 2008-01-01  Bruno Haible  <bruno@clisp.org>
24196
24197         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
24198         failure on older glibc systems.
24199         Reported by Peter Fales <psfales@alcatel-lucent.com>.
24200
24201 2008-01-05  Eric Blake  <ebb9@byu.net>
24202
24203         Avoid quadratic system memmem.
24204         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
24205         Reported by Ralf Wildenhues.
24206
24207         Fix memmem test for mingw.
24208         * modules/memmem-tests (configure.ac): Check for alarm.
24209         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
24210         it.
24211         * doc/functions/memmem.texi: New file.
24212         * doc/gnulib.texi (Function Substitutes): Add memmem.
24213         Reported by Bruno Haible.
24214
24215 2008-01-04  Bruno Haible  <bruno@clisp.org>
24216
24217         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
24218         Require gl_HEADER_STRINGS_H_DEFAULTS, not
24219         gl_HEADER_STRING_H_DEFAULTS.
24220
24221 2008-01-04  Eric Blake  <ebb9@byu.net>
24222
24223         Shorten duration of memmem test.
24224         * tests/test-memmem.c (main): Use alarm to declare failure if test
24225         is taking too long.
24226         Reported by Ralf Wildenhues.
24227
24228 2007-12-21  Simon Josefsson  <simon@josefsson.org>
24229
24230         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
24231         string, needed by strerror.
24232
24233 2008-01-03  Colin Watson  <cjwatson@debian.org>
24234             Bruno Haible  <bruno@clisp.org>
24235
24236         * doc/gnulib-tool.texi (Localization): New section.
24237
24238 2008-01-02  Bruno Haible  <bruno@clisp.org>
24239
24240         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
24241         variables to 'unsigned char *' type.
24242         Reported by Paul Eggert.
24243
24244 2008-01-02  Jim Meyering  <jim@meyering.net>
24245
24246         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
24247
24248 2007-12-31  Jim Meyering  <jim@meyering.net>
24249
24250         Avoid use of private FTS type name.
24251         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
24252
24253 2007-12-30  Karl Berry  <karl@gnu.org>
24254
24255         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
24256         work around defect in Texinfo and/or the standalone Info browser.
24257
24258 2007-12-30  Bruno Haible  <bruno@clisp.org>
24259
24260         Unify 5 copies of the KMP code.
24261         * lib/str-kmp.h: New file.
24262         * lib/c-strcasestr.c: Include str-kmp.h.
24263         (knuth_morris_pratt): Remove function.
24264         (c_strcasestr): Update.
24265         * lib/c-strstr.c: Include str-kmp.h.
24266         (knuth_morris_pratt): Remove function.
24267         (c_strcasestr): Update.
24268         * lib/mbscasestr.c: Include str-kmp.h.
24269         (knuth_morris_pratt_unibyte): Remove function.
24270         * lib/mbsstr.c: Include str-kmp.h.
24271         (knuth_morris_pratt_unibyte): Remove function.
24272         * lib/strcasestr.c: Include str-kmp.h.
24273         (knuth_morris_pratt): Remove function.
24274         (strcasestr): Update.
24275         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
24276         * modules/c-strstr (Files): Likewise.
24277         * modules/mbscasestr (Files): Likewise.
24278         * modules/mbsstr (Files): Likewise.
24279         * modules/strcasestr (Files): Likewise.
24280         Suggested by Paul Eggert.
24281
24282 2007-12-30  Bruno Haible  <bruno@clisp.org>
24283
24284         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
24285         defined.
24286
24287 2007-12-30  Bruno Haible  <bruno@clisp.org>
24288
24289         * lib/xmalloca.h: Include xalloc.h.
24290         (xnmalloca): New macro.
24291
24292 2007-12-30  Bruno Haible  <bruno@clisp.org>
24293
24294         * lib/malloca.h (nmalloca): New macro.
24295         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
24296         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
24297         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
24298         knuth_morris_pratt_multibyte): Likewise.
24299         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
24300         knuth_morris_pratt_multibyte): Likewise.
24301         * lib/memmem.c (knuth_morris_pratt): Likewise.
24302         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
24303
24304 2007-12-25  Bruno Haible  <bruno@clisp.org>
24305
24306         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
24307         * lib/glob.c: Don't include openat.h.
24308         (link_exists2_p): Add back the code that deals with the
24309         !GLOB_ALTDIRFUNC case.
24310         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
24311         let it do the filename concatenation.
24312         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
24313         * modules/glob (Depends-on): Remove openat.
24314
24315 2007-12-31  Bruno Haible  <bruno@clisp.org>
24316
24317         * modules/dirfd (License): Change to LGPLv2+.
24318         Approved by Jim Meyering.
24319
24320 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24321
24322         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
24323         when multiplying M by sizeof (size_t).
24324
24325 2007-12-10  Martin Lambers  <marlam@marlam.de>
24326
24327         Override getpagesize on mingw.
24328         * lib/getpagesize.c: New file.
24329         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
24330         * modules/getpagesize (Files): Add lib/getpagesize.c.
24331         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
24332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24333         REPLACE_GETPAGESIZE.
24334         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
24335
24336 2007-12-25  Bruno Haible  <bruno@clisp.org>
24337
24338         * modules/localcharset (Notice): New field.
24339         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
24340         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
24341
24342 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24343             Bruno Haible  <bruno@clisp.org>
24344
24345         Avoid using the syntax symbol() in formatted documentation.
24346         * MODULES.html.sh (func_module): When replacing symbol() with a
24347         hyperlink, remove the parentheses. Show an error if some remain.
24348         Recognize and render the '...' syntax.
24349         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
24350         Rework. Add paragraph about GCC's inlining.
24351         * doc/alloca.texi: Likewise.
24352         * doc/error.texi: Remove parentheses from symbol reference.
24353         * doc/gnulib-intro.texi: Likewise.
24354         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
24355         * modules/fnmatch (Description): Reword to say "the ... function".
24356         * modules/full-read (Description): Likewise.
24357         * modules/full-write (Description): Likewise.
24358         * modules/safe-read (Description): Likewise.
24359         * modules/safe-write (Description): Likewise.
24360         * modules/strchrnul (Description): Likewise.
24361         * modules/trim (Description): Likewise.
24362         * modules/error (Description): Remove parentheses from symbol
24363         references.
24364         * modules/verror (Description): Likewise.
24365         Reported by Karl Berry.
24366
24367 2007-12-25  Bruno Haible  <bruno@clisp.org>
24368
24369         Fixup after 2007-10-16 commit.
24370         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
24371
24372 2007-12-24  Bruno Haible  <bruno@clisp.org>
24373
24374         Make --enable-relocatable work with DESTDIR.
24375         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
24376         to compute installdir from destprog.
24377         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
24378         also set the RELOC_DESTDIR variable.
24379         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
24380
24381 2007-12-24  Bruno Haible  <bruno@clisp.org>
24382
24383         Fix link error due to xalloc_die().
24384         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
24385         of xreadlink.
24386         * lib/relocwrapper.c: Update comments.
24387         * build-aux/install-reloc: Remove xreadlink.c from file list.
24388         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
24389         xreadlink.c.
24390         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
24391
24392 2007-12-24  Bruno Haible  <bruno@clisp.org>
24393
24394         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
24395         * lib/setenv.h: Remove file.
24396         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
24397         lib/setenv.h.
24398         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
24399         (Depends-on): Add stdlib.
24400         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
24401         gl_FUNC_UNSETENV.
24402         (Include): Replace setenv.h with <stdlib.h>.
24403         * modules/unsetenv: New file.
24404         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
24405         * lib/unsetenv.c: Include <stdlib.h> first.
24406         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
24407         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
24408         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
24409         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
24410         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
24411         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
24413         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24414         * doc/functions/unsetenv.texi: Update.
24415         * modules/xsetenv (Depends-on): Add unsetenv.
24416         * modules/getdate (Depends-on): Likewise.
24417         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
24418         * lib/xsetenv.c: Don't include setenv.h.
24419         * lib/getdate.y: Likewise.
24420         * lib/relocwrapper.c: Likewise.
24421         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
24422         (Depends-on): Add stdlib.
24423         * NEWS: Mention the changes.
24424         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
24425
24426 2007-12-23  Bruno Haible  <bruno@clisp.org>
24427
24428         * lib/memmem.c (memmem): Use lowercase variable names. Tab
24429         indentation.
24430
24431 2007-12-23  Bruno Haible  <bruno@clisp.org>
24432
24433         * lib/c-strcasestr.c: Add more comments.
24434         * lib/c-strstr.c: Likewise.
24435         * lib/mbscasestr.c: Likewise.
24436         * lib/mbsstr.c: Likewise.
24437         * lib/strcasestr.c: Likewise.
24438         * lib/memmem.c: Likewise.
24439
24440 2007-12-23  Bruno Haible  <bruno@clisp.org>
24441
24442         * tests/test-memmem.c: Include <string.h> first.
24443
24444 2007-12-22  Bruno Haible  <bruno@clisp.org>
24445
24446         * gnulib-tool (func_create_testdir): Change $auxdir while generating
24447         the contents of $testsbase.
24448         Reported by Ralf Wildenhues.
24449
24450 2007-12-22  Bruno Haible  <bruno@clisp.org>
24451
24452         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
24453         two variables local_ldadd_before, local_ldadd_last.
24454
24455 2007-12-20  Eric Blake  <ebb9@byu.net>
24456
24457         Work around circular library issue when cross-compiling.
24458         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
24459         that progname.o does not need to pull in rpl_memcmp.
24460
24461 2007-12-19  Eric Blake  <ebb9@byu.net>
24462
24463         Fix memmem to avoid O(n^2) worst-case complexity.
24464         * lib/memmem.c (knuth_morris_pratt): New function.
24465         (memmem): Use it if first few naive iterations fail.
24466         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
24467         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
24468         * modules/memchr (License): Likewise.
24469         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
24470         malloca.
24471         * tests/test-memmem.c: Rewrite, borrowing ideas from
24472         test-mbsstr1.c; the old version wouldn't even compile!
24473         * modules/memmem-tests: New file.
24474         * lib/string.in.h (rpl_memmem): Add declaration.
24475         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
24476         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
24477         REPLACE_MEMMEM.
24478
24479 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24480
24481         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
24482         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
24483         before any system include files, and undef after them all.  This
24484         should fix a problem on VMS reported by John E. Malmberg in
24485         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
24486
24487 2007-12-17  Eric Blake  <ebb9@byu.net>
24488
24489         Revert addition of verify, for BSD/OS.
24490         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
24491         can't handle large files, for the sake of obsolete platforms.
24492         * modules/fseeko (Depends-on): Remove verify.
24493         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
24494         * doc/functions/ftello.texi (ftello): Likewise.
24495         * doc/functions/fgetpos.texi (fgetpos): Likewise.
24496         Reported by Larry Jones.
24497
24498 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
24499
24500         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
24501         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
24502
24503 2007-12-17  Jim Meyering  <meyering@redhat.com>
24504
24505         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
24506         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
24507         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
24508         * modules/getcwd (Depends-on): Add openat.
24509         Reported by Petr Salinger.
24510
24511 2007-12-17  Bruno Haible  <bruno@clisp.org>
24512
24513         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
24514         avoid a segmentation fault of the configure test on x86_64 systems.
24515
24516 2007-12-15  Jim Meyering  <meyering@redhat.com>
24517
24518         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
24519
24520 2007-12-13  Eric Blake  <ebb9@byu.net>
24521
24522         Another fseek test.
24523         * tests/test-fseek.c (main): Also test ungetc handling.
24524         * tests/test-fseeko.c (main): Likewise.
24525         * modules/fseeko (Depends-on): Add verify.
24526         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
24527         large.
24528         Reported by Larry Jones.
24529
24530         Fix fseeko on mingw.
24531         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
24532         seek.
24533
24534         Beef up fseek tests.
24535         * tests/test-fseek.c (main): Also test eof handling.
24536         * tests/test-fseeko.c (main): Likewise.
24537         Reported by Larry Jones.
24538
24539 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
24540
24541         Fix fseeko on BSD-based platforms.
24542         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
24543         successful seek.
24544
24545 2007-12-12  Eric Blake  <ebb9@byu.net>
24546
24547         Allow circular dependency of separate libtests.a
24548         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
24549         when use_libtests.
24550
24551 2007-12-11  Eric Blake  <ebb9@byu.net>
24552
24553         Fix bug with -0.0L in previous patch.
24554         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
24555         * tests/test-isnan.c (main): Also test on zeroes.
24556         * tests/test-isnanf.c (main): Likewise.
24557         * tests/test-isnanl.h (main): Likewise.
24558
24559         Detect pseudo-denormals on x86 even when cross-compiling.
24560         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
24561         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
24562         invalid bit patterns that happen to satisfy ==.
24563
24564         Avoid link failures with separate libtests.a.
24565         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
24566         last, to satisfy circular dependencies.
24567
24568 2007-12-11  Eric Blake  <ebb9@byu.net>
24569         and Bruno Haible  <bruno@clisp.org>
24570
24571         Fix OpenBSD 4.0 <float.h> handling of long double.
24572         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
24573         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
24574         * doc/headers/float.texi (float.h): Document OpenBSD bug.
24575
24576 2007-12-11  Jim Meyering  <meyering@redhat.com>
24577
24578         * users.txt: Add libvirt.
24579
24580         Support versions of autoconf prior to 2.59c.
24581         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
24582         if it is not already defined.
24583
24584 2007-12-09  Bruno Haible  <bruno@clisp.org>
24585
24586         Let 'gnulib-tool --import' collect sources needed for the tests in
24587         tests/ rather than in lib/.
24588         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
24589         argument. If true, add rules to generate libtests.a, and put libtests.a
24590         into $(LDADD). Consider source files in subdirectories and set
24591         uses_subdirs.
24592         (func_emit_initmacro_start, func_emit_initmacro_end,
24593         func_emit_initmacro_done): Pass all arguments explicitly.
24594         (func_import): Determine two module lists main_modules,
24595         testsrelated_modules. Determine use_libtests. Determine two variables
24596         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
24597         instead of just sed_transform_lib_file. Determine two variables
24598         main_files and testsrelated_files. Compute 'files' as the union of
24599         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
24600         func_add_or_update. In the generated gnulib-comp.m4, collect the
24601         object files for tests/ in different variables than those for lib/.
24602         Substitute LIBTESTS_LIBDEPS.
24603         (func_create_testdir): Combine the uses_subdirs results from
24604         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
24605
24606 2007-12-09  Bruno Haible  <bruno@clisp.org>
24607
24608         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
24609         the build-aux directory.
24610
24611 2007-12-09  Bruno Haible  <bruno@clisp.org>
24612
24613         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
24614         introduced on 2006-09-09.
24615
24616 2007-12-07  Jim Meyering  <meyering@redhat.com>
24617
24618         Let these macros work also with autoconf-2.59.
24619         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
24620         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
24621         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24622
24623 2007-12-06  Jim Meyering  <meyering@redhat.com>
24624
24625         Avoid a configure-time syntax error in gl_FUNC_ACL.
24626         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
24627         function in each branch, before testing the cache variable.
24628
24629 2007-12-04  Eric Blake  <ebb9@byu.net>
24630
24631         Make scripts executable.
24632         * build-aux/config.guess: Add execute permissions.
24633         * build-aux/config.sub: Likewise.
24634         * build-aux/gendocs.sh: Likewise.
24635
24636         Fix frexp on mingw.
24637         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
24638         cross-compiling.
24639         * doc/functions/frexp.texi (frexp): Document the bug.
24640
24641         Make cygwin fseeko check more reliable.
24642         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
24643         version numbers, rather than unrelated feature check.
24644         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
24645         * doc/functions/ftello.texi (ftello): Likewise.
24646         Reported by Bruno Haible.
24647
24648         * m4/strerror.m4: Bump version number.
24649
24650 2007-12-03  Bruno Haible  <bruno@clisp.org>
24651
24652         * doc/functions/mprotect.texi: Mention the mingw problem.
24653
24654 2007-12-03  Eric Blake  <ebb9@byu.net>
24655
24656         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
24657         REPLACE_STRERROR is initialized before this macro.
24658
24659 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
24660
24661         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
24662         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
24663         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
24664         put -lsec in even for programs other than 'ls'.  This fixes a problem
24665         for gettext reported by Bruno Haible in
24666         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
24667         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
24668         Add support for Solaris 10.  This isn't efficient, but should get the
24669         job done for now.
24670
24671 2007-12-03  James Youngman  <jay@gnu.org>
24672
24673         * doc/regexprops-generic.texi: change "an close-group" to "a
24674         close-group" and "illegal" to "not allowed".
24675
24676 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24677
24678         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
24679         pr_byname.h. Needed for the rare case when the maintainer has done
24680         "make maintainer-clean" in the source directory and then attempts a
24681         build outside the source directory.
24682         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
24683         scripts_byname.h.
24684
24685 2007-12-02  Martin Lambers <marlam@marlam.de>
24686             Bruno Haible  <bruno@clisp.org>
24687
24688         * lib/getpagesize.h: Remove file.
24689         * lib/unistd.in.h: Include declaration of getpagesize here.
24690         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
24691         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
24692         HAVE_SYS_PARAM_H.
24693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
24694         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
24695         * modules/getpagesize (Files): Remove lib/getpagesize.h.
24696         (Depends-on): Add unistd.
24697         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24698         (Include): Use <unistd.h> instead of getpagesize.h.
24699         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
24700         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
24701         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
24702         gl_GETPAGESIZE invocation, already handled by module dependency.
24703         * lib/pagealign_alloc.c: Don't include getpagesize.h.
24704
24705 2007-12-02  Bruno Haible  <bruno@clisp.org>
24706
24707         * modules/strings-tests: New file.
24708         * tests/test-strings.c: New file.
24709
24710         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
24711         * lib/strings.in.h: New file.
24712         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
24713         * m4/strings_h.m4: New file.
24714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
24715         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
24716         * modules/strings: New file.
24717         * modules/string (Makefile.am): Update.
24718         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
24719         Reported by Karl Berry.
24720
24721 2007-12-01  Eric Blake  <ebb9@byu.net>
24722
24723         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
24724         accomodate fix in cygwin 1.5.25.
24725
24726 2007-12-01  Jim Meyering  <meyering@redhat.com>
24727
24728         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
24729         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
24730         that would inhibit utf8-optimization of a regexp containing line-
24731         or buffer-anchors, e.g., `^', `$'.
24732
24733 2007-11-30  Bruno Haible  <bruno@clisp.org>
24734
24735         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
24736         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
24737         glthread_recursive_lock_init.
24738         * lib/lock.c (glthread_recursive_lock_init)
24739         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
24740         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24741
24742 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
24743
24744         New function qset_acl, like set_acl but with syscall semantics.
24745         * lib/acl.h (qset_acl): New decl.
24746         * lib/acl.c (qset_acl): New function.
24747         (set_acl): Use new function.  Use more-consistent diagnostics.
24748
24749 2007-11-28  Jim Meyering  <meyering@redhat.com>
24750
24751         * modules/physmem (License): Change from GPL to LGPLv2+.
24752
24753 2007-11-26  Bruno Haible  <bruno@clisp.org>
24754
24755         * lib/vasnprintf.c (decode_long_double): Don't abort if the
24756         'long double' type has excess precision.
24757         Reported by Jim Meyering in
24758         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
24759
24760 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24761
24762         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
24763         Sync from <http://gnu.org/licenses>.
24764         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
24765         with license text from same location.
24766         * doc/maintain.texi, doc/standards.texi:  Sync from
24767         <http://savannah.gnu.org/projects/gnustandards>.
24768
24769 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
24770         and Jim Meyering  <meyering@redhat.com>
24771
24772         Adjust getdate' grammar to accept a slightly more regular language.
24773         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
24774         Before, the former was rejected.
24775         * lib/getdate.y (digits_to_date_time): New function, factored
24776         out of ...
24777         (number): ...here.  Just call digits_to_date_time.
24778         (hybrid): New non-terminal to handle an <unsigned number,
24779         signed relative offset> sequence consistently.
24780
24781 2007-11-18  Jim Meyering  <meyering@redhat.com>
24782
24783         Pull my changes from coreutils:
24784         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
24785         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
24786         use of $gnulib_tool_option_extras, so that it's separated from the
24787         preceding argument.
24788
24789         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
24790         * build-aux/bootstrap (cp_mark_as_generated): Create any required
24791         parent destination directories before copying a file into place.
24792
24793 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
24794
24795         bootstrap: work also with 4-argument variant of AC_INIT
24796         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
24797
24798 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
24799
24800         Port test-getaddrinfo to Solaris.
24801         Problem reported by Bruno Haible in
24802         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
24803         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
24804         explanation of setting 'hints'.
24805         Don't reject an implementation merely because it returns EAI_SERVICE.
24806         (EAI_SERVICE): Define to 0 if not defined.
24807
24808 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24809
24810         The license of gnu-make and posix-shell is now "GPLed build tool".
24811         * modules/gnu-make (License): Likewise.
24812         * modules/posix-shell (License): Likewise.
24813
24814         New module posix-shell, for determining a POSIX shell
24815         or perhaps something that is close enough to a POSIX shell.
24816         * m4/posix-shell.m4: New file.
24817         * modules/posix-shell: New file.
24818
24819         * MODULES.html.sh: Mention new module.
24820
24821         New module gnu-make, for determining whether we're using GNU Make.
24822         * m4/gnu-make.m4: New file.
24823         * modules/gnu-make: New file.
24824         * MODULES.html.sh: Mention new module.
24825
24826 2007-11-14  Jim Meyering  <meyering@redhat.com>
24827
24828         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
24829         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
24830         use this macro to create a function _definition_.
24831         Remove useless "#undef ARGMATCH_DIE".
24832
24833 2007-11-14  Bruno Haible  <bruno@clisp.org>
24834
24835         * lib/config.charset: Update for OpenBSD 4.1.
24836         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
24837
24838 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
24839
24840         Document 64-bit #if problems in stdint.texi.
24841         * doc/headers/stdint.texi (stdint.h): Mention problems with
24842         64-bit-#if, and how to work around them.
24843
24844         Don't insist on 'long long int' support in the preprocessor.  It
24845         breaks too many things.  For example, PRIdMAX still uses a 'long
24846         long int' format with the latest Sun compiler, even though
24847         HAVE_LONG_LONG_INT isn't defined due to that compiler's
24848         preprocessor problem.  This causes the latest coreutils to dump
24849         core on Solaris 10 sparc with the Sun C compiler.
24850         Instead, fix the 2007-10-16 problem in a different way, by evaluating
24851         the troublesome expressions at configure-time, not at #if-time.
24852         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
24853         preprocessor.
24854         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
24855         compile-time C checks, done at 'configure'-time.
24856         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
24857         * modules/inttypes (Makefile): Substitute the new symbols that
24858         gl_INTTYPES_H now generates.
24859         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
24860
24861 2007-11-12  Bruno Haible  <bruno@clisp.org>
24862
24863         Tests for Unicode character classification functions.
24864
24865         * modules/unictype/bidicategory-byname-tests: New file.
24866         * modules/unictype/bidicategory-name-tests: New file.
24867         * modules/unictype/bidicategory-of-tests: New file.
24868         * modules/unictype/bidicategory-test-tests: New file.
24869         * modules/unictype/block-list-tests: New file.
24870         * modules/unictype/block-of-tests: New file.
24871         * modules/unictype/block-test-tests: New file.
24872         * modules/unictype/category-C-tests: New file.
24873         * modules/unictype/category-Cc-tests: New file.
24874         * modules/unictype/category-Cf-tests: New file.
24875         * modules/unictype/category-Cn-tests: New file.
24876         * modules/unictype/category-Co-tests: New file.
24877         * modules/unictype/category-Cs-tests: New file.
24878         * modules/unictype/category-L-tests: New file.
24879         * modules/unictype/category-Ll-tests: New file.
24880         * modules/unictype/category-Lm-tests: New file.
24881         * modules/unictype/category-Lo-tests: New file.
24882         * modules/unictype/category-Lt-tests: New file.
24883         * modules/unictype/category-Lu-tests: New file.
24884         * modules/unictype/category-M-tests: New file.
24885         * modules/unictype/category-Mc-tests: New file.
24886         * modules/unictype/category-Me-tests: New file.
24887         * modules/unictype/category-Mn-tests: New file.
24888         * modules/unictype/category-N-tests: New file.
24889         * modules/unictype/category-Nd-tests: New file.
24890         * modules/unictype/category-Nl-tests: New file.
24891         * modules/unictype/category-No-tests: New file.
24892         * modules/unictype/category-P-tests: New file.
24893         * modules/unictype/category-Pc-tests: New file.
24894         * modules/unictype/category-Pd-tests: New file.
24895         * modules/unictype/category-Pe-tests: New file.
24896         * modules/unictype/category-Pf-tests: New file.
24897         * modules/unictype/category-Pi-tests: New file.
24898         * modules/unictype/category-Po-tests: New file.
24899         * modules/unictype/category-Ps-tests: New file.
24900         * modules/unictype/category-S-tests: New file.
24901         * modules/unictype/category-Sc-tests: New file.
24902         * modules/unictype/category-Sk-tests: New file.
24903         * modules/unictype/category-Sm-tests: New file.
24904         * modules/unictype/category-So-tests: New file.
24905         * modules/unictype/category-Z-tests: New file.
24906         * modules/unictype/category-Zl-tests: New file.
24907         * modules/unictype/category-Zp-tests: New file.
24908         * modules/unictype/category-Zs-tests: New file.
24909         * modules/unictype/category-and-not-tests: New file.
24910         * modules/unictype/category-and-tests: New file.
24911         * modules/unictype/category-byname-tests: New file.
24912         * modules/unictype/category-name-tests: New file.
24913         * modules/unictype/category-none-tests: New file.
24914         * modules/unictype/category-of-tests: New file.
24915         * modules/unictype/category-or-tests: New file.
24916         * modules/unictype/category-test-withtable-tests: New file.
24917         * modules/unictype/combining-class-tests: New file.
24918         * modules/unictype/ctype-alnum-tests: New file.
24919         * modules/unictype/ctype-alpha-tests: New file.
24920         * modules/unictype/ctype-blank-tests: New file.
24921         * modules/unictype/ctype-cntrl-tests: New file.
24922         * modules/unictype/ctype-digit-tests: New file.
24923         * modules/unictype/ctype-graph-tests: New file.
24924         * modules/unictype/ctype-lower-tests: New file.
24925         * modules/unictype/ctype-print-tests: New file.
24926         * modules/unictype/ctype-punct-tests: New file.
24927         * modules/unictype/ctype-space-tests: New file.
24928         * modules/unictype/ctype-upper-tests: New file.
24929         * modules/unictype/ctype-xdigit-tests: New file.
24930         * modules/unictype/decimal-digit-tests: New file.
24931         * modules/unictype/digit-tests: New file.
24932         * modules/unictype/mirror-tests: New file.
24933         * modules/unictype/numeric-tests: New file.
24934         * modules/unictype/property-alphabetic-tests: New file.
24935         * modules/unictype/property-ascii-hex-digit-tests: New file.
24936         * modules/unictype/property-bidi-arabic-digit-tests: New file.
24937         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
24938         * modules/unictype/property-bidi-block-separator-tests: New file.
24939         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
24940         * modules/unictype/property-bidi-common-separator-tests: New file.
24941         * modules/unictype/property-bidi-control-tests: New file.
24942         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
24943         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
24944         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
24945         * modules/unictype/property-bidi-european-digit-tests: New file.
24946         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
24947         * modules/unictype/property-bidi-left-to-right-tests: New file.
24948         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
24949         * modules/unictype/property-bidi-other-neutral-tests: New file.
24950         * modules/unictype/property-bidi-pdf-tests: New file.
24951         * modules/unictype/property-bidi-segment-separator-tests: New file.
24952         * modules/unictype/property-bidi-whitespace-tests: New file.
24953         * modules/unictype/property-byname-tests: New file.
24954         * modules/unictype/property-combining-tests: New file.
24955         * modules/unictype/property-composite-tests: New file.
24956         * modules/unictype/property-currency-symbol-tests: New file.
24957         * modules/unictype/property-dash-tests: New file.
24958         * modules/unictype/property-decimal-digit-tests: New file.
24959         * modules/unictype/property-default-ignorable-code-point-tests: New file.
24960         * modules/unictype/property-deprecated-tests: New file.
24961         * modules/unictype/property-diacritic-tests: New file.
24962         * modules/unictype/property-extender-tests: New file.
24963         * modules/unictype/property-format-control-tests: New file.
24964         * modules/unictype/property-grapheme-base-tests: New file.
24965         * modules/unictype/property-grapheme-extend-tests: New file.
24966         * modules/unictype/property-grapheme-link-tests: New file.
24967         * modules/unictype/property-hex-digit-tests: New file.
24968         * modules/unictype/property-hyphen-tests: New file.
24969         * modules/unictype/property-id-continue-tests: New file.
24970         * modules/unictype/property-id-start-tests: New file.
24971         * modules/unictype/property-ideographic-tests: New file.
24972         * modules/unictype/property-ids-binary-operator-tests: New file.
24973         * modules/unictype/property-ids-trinary-operator-tests: New file.
24974         * modules/unictype/property-ignorable-control-tests: New file.
24975         * modules/unictype/property-iso-control-tests: New file.
24976         * modules/unictype/property-join-control-tests: New file.
24977         * modules/unictype/property-left-of-pair-tests: New file.
24978         * modules/unictype/property-line-separator-tests: New file.
24979         * modules/unictype/property-logical-order-exception-tests: New file.
24980         * modules/unictype/property-lowercase-tests: New file.
24981         * modules/unictype/property-math-tests: New file.
24982         * modules/unictype/property-non-break-tests: New file.
24983         * modules/unictype/property-not-a-character-tests: New file.
24984         * modules/unictype/property-numeric-tests: New file.
24985         * modules/unictype/property-other-alphabetic-tests: New file.
24986         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
24987         * modules/unictype/property-other-grapheme-extend-tests: New file.
24988         * modules/unictype/property-other-id-continue-tests: New file.
24989         * modules/unictype/property-other-id-start-tests: New file.
24990         * modules/unictype/property-other-lowercase-tests: New file.
24991         * modules/unictype/property-other-math-tests: New file.
24992         * modules/unictype/property-other-uppercase-tests: New file.
24993         * modules/unictype/property-paired-punctuation-tests: New file.
24994         * modules/unictype/property-paragraph-separator-tests: New file.
24995         * modules/unictype/property-pattern-syntax-tests: New file.
24996         * modules/unictype/property-pattern-white-space-tests: New file.
24997         * modules/unictype/property-private-use-tests: New file.
24998         * modules/unictype/property-punctuation-tests: New file.
24999         * modules/unictype/property-quotation-mark-tests: New file.
25000         * modules/unictype/property-radical-tests: New file.
25001         * modules/unictype/property-sentence-terminal-tests: New file.
25002         * modules/unictype/property-soft-dotted-tests: New file.
25003         * modules/unictype/property-space-tests: New file.
25004         * modules/unictype/property-terminal-punctuation-tests: New file.
25005         * modules/unictype/property-test-tests: New file.
25006         * modules/unictype/property-titlecase-tests: New file.
25007         * modules/unictype/property-unassigned-code-value-tests: New file.
25008         * modules/unictype/property-unified-ideograph-tests: New file.
25009         * modules/unictype/property-uppercase-tests: New file.
25010         * modules/unictype/property-variation-selector-tests: New file.
25011         * modules/unictype/property-white-space-tests: New file.
25012         * modules/unictype/property-xid-continue-tests: New file.
25013         * modules/unictype/property-xid-start-tests: New file.
25014         * modules/unictype/property-zero-width-tests: New file.
25015         * modules/unictype/scripts-tests: New file.
25016         * modules/unictype/syntax-c-ident-tests: New file.
25017         * modules/unictype/syntax-c-whitespace-tests: New file.
25018         * modules/unictype/syntax-java-ident-tests: New file.
25019         * modules/unictype/syntax-java-whitespace-tests: New file.
25020         * tests/unictype/test-bidi_byname.c: New file.
25021         * tests/unictype/test-bidi_name.c: New file.
25022         * tests/unictype/test-bidi_of.c: New file.
25023         * tests/unictype/test-bidi_test.c: New file.
25024         * tests/unictype/test-block_list.c: New file.
25025         * tests/unictype/test-block_of.c: New file.
25026         * tests/unictype/test-block_test.c: New file.
25027         * tests/unictype/test-categ_and.c: New file.
25028         * tests/unictype/test-categ_and_not.c: New file.
25029         * tests/unictype/test-categ_byname.c: New file.
25030         * tests/unictype/test-categ_name.c: New file.
25031         * tests/unictype/test-categ_none.c: New file.
25032         * tests/unictype/test-categ_of.c: New file.
25033         * tests/unictype/test-categ_or.c: New file.
25034         * tests/unictype/test-categ_test_withtable.c: New file.
25035         * tests/unictype/test-combining.c: New file.
25036         * tests/unictype/test-decdigit.c: New file.
25037         * tests/unictype/test-digit.c: New file.
25038         * tests/unictype/test-mirror.c: New file.
25039         * tests/unictype/test-numeric.c: New file.
25040         * tests/unictype/test-pr_byname.c: New file.
25041         * tests/unictype/test-pr_test.c: New file.
25042         * tests/unictype/test-predicate-part1.h: New file.
25043         * tests/unictype/test-predicate-part2.h: New file.
25044         * tests/unictype/test-scripts.c: New file.
25045         * tests/unictype/test-sy_c_ident.c: New file.
25046         * tests/unictype/test-sy_java_ident.c: New file.
25047
25048         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
25049         for Unicode 5.0.0.
25050         * tests/unictype/test-categ_Cc.c: Likewise.
25051         * tests/unictype/test-categ_Cf.c: Likewise.
25052         * tests/unictype/test-categ_Cn.c: Likewise.
25053         * tests/unictype/test-categ_Co.c: Likewise.
25054         * tests/unictype/test-categ_Cs.c: Likewise.
25055         * tests/unictype/test-categ_L.c: Likewise.
25056         * tests/unictype/test-categ_Ll.c: Likewise.
25057         * tests/unictype/test-categ_Lm.c: Likewise.
25058         * tests/unictype/test-categ_Lo.c: Likewise.
25059         * tests/unictype/test-categ_Lt.c: Likewise.
25060         * tests/unictype/test-categ_Lu.c: Likewise.
25061         * tests/unictype/test-categ_M.c: Likewise.
25062         * tests/unictype/test-categ_Mc.c: Likewise.
25063         * tests/unictype/test-categ_Me.c: Likewise.
25064         * tests/unictype/test-categ_Mn.c: Likewise.
25065         * tests/unictype/test-categ_N.c: Likewise.
25066         * tests/unictype/test-categ_Nd.c: Likewise.
25067         * tests/unictype/test-categ_Nl.c: Likewise.
25068         * tests/unictype/test-categ_No.c: Likewise.
25069         * tests/unictype/test-categ_P.c: Likewise.
25070         * tests/unictype/test-categ_Pc.c: Likewise.
25071         * tests/unictype/test-categ_Pd.c: Likewise.
25072         * tests/unictype/test-categ_Pe.c: Likewise.
25073         * tests/unictype/test-categ_Pf.c: Likewise.
25074         * tests/unictype/test-categ_Pi.c: Likewise.
25075         * tests/unictype/test-categ_Po.c: Likewise.
25076         * tests/unictype/test-categ_Ps.c: Likewise.
25077         * tests/unictype/test-categ_S.c: Likewise.
25078         * tests/unictype/test-categ_Sc.c: Likewise.
25079         * tests/unictype/test-categ_Sk.c: Likewise.
25080         * tests/unictype/test-categ_Sm.c: Likewise.
25081         * tests/unictype/test-categ_So.c: Likewise.
25082         * tests/unictype/test-categ_Z.c: Likewise.
25083         * tests/unictype/test-categ_Zl.c: Likewise.
25084         * tests/unictype/test-categ_Zp.c: Likewise.
25085         * tests/unictype/test-categ_Zs.c: Likewise.
25086         * tests/unictype/test-ctype_alnum.c: Likewise.
25087         * tests/unictype/test-ctype_alpha.c: Likewise.
25088         * tests/unictype/test-ctype_blank.c: Likewise.
25089         * tests/unictype/test-ctype_cntrl.c: Likewise.
25090         * tests/unictype/test-ctype_digit.c: Likewise.
25091         * tests/unictype/test-ctype_graph.c: Likewise.
25092         * tests/unictype/test-ctype_lower.c: Likewise.
25093         * tests/unictype/test-ctype_print.c: Likewise.
25094         * tests/unictype/test-ctype_punct.c: Likewise.
25095         * tests/unictype/test-ctype_space.c: Likewise.
25096         * tests/unictype/test-ctype_upper.c: Likewise.
25097         * tests/unictype/test-ctype_xdigit.c: Likewise.
25098         * tests/unictype/test-decdigit.h: Likewise.
25099         * tests/unictype/test-digit.h: Likewise.
25100         * tests/unictype/test-numeric.h: Likewise.
25101         * tests/unictype/test-pr_alphabetic.c: Likewise.
25102         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
25103         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25104         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25105         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
25106         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25107         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
25108         * tests/unictype/test-pr_bidi_control.c: Likewise.
25109         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
25110         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
25111         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25112         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25113         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25114         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25115         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25116         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25117         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
25118         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
25119         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
25120         * tests/unictype/test-pr_combining.c: Likewise.
25121         * tests/unictype/test-pr_composite.c: Likewise.
25122         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25123         * tests/unictype/test-pr_dash.c: Likewise.
25124         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25125         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
25126         * tests/unictype/test-pr_deprecated.c: Likewise.
25127         * tests/unictype/test-pr_diacritic.c: Likewise.
25128         * tests/unictype/test-pr_extender.c: Likewise.
25129         * tests/unictype/test-pr_format_control.c: Likewise.
25130         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25131         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25132         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25133         * tests/unictype/test-pr_hex_digit.c: Likewise.
25134         * tests/unictype/test-pr_hyphen.c: Likewise.
25135         * tests/unictype/test-pr_id_continue.c: Likewise.
25136         * tests/unictype/test-pr_id_start.c: Likewise.
25137         * tests/unictype/test-pr_ideographic.c: Likewise.
25138         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
25139         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
25140         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25141         * tests/unictype/test-pr_iso_control.c: Likewise.
25142         * tests/unictype/test-pr_join_control.c: Likewise.
25143         * tests/unictype/test-pr_left_of_pair.c: Likewise.
25144         * tests/unictype/test-pr_line_separator.c: Likewise.
25145         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25146         * tests/unictype/test-pr_lowercase.c: Likewise.
25147         * tests/unictype/test-pr_math.c: Likewise.
25148         * tests/unictype/test-pr_non_break.c: Likewise.
25149         * tests/unictype/test-pr_not_a_character.c: Likewise.
25150         * tests/unictype/test-pr_numeric.c: Likewise.
25151         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25152         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
25153         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
25154         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25155         * tests/unictype/test-pr_other_id_start.c: Likewise.
25156         * tests/unictype/test-pr_other_lowercase.c: Likewise.
25157         * tests/unictype/test-pr_other_math.c: Likewise.
25158         * tests/unictype/test-pr_other_uppercase.c: Likewise.
25159         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
25160         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
25161         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
25162         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
25163         * tests/unictype/test-pr_private_use.c: Likewise.
25164         * tests/unictype/test-pr_punctuation.c: Likewise.
25165         * tests/unictype/test-pr_quotation_mark.c: Likewise.
25166         * tests/unictype/test-pr_radical.c: Likewise.
25167         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25168         * tests/unictype/test-pr_soft_dotted.c: Likewise.
25169         * tests/unictype/test-pr_space.c: Likewise.
25170         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25171         * tests/unictype/test-pr_titlecase.c: Likewise.
25172         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25173         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25174         * tests/unictype/test-pr_uppercase.c: Likewise.
25175         * tests/unictype/test-pr_variation_selector.c: Likewise.
25176         * tests/unictype/test-pr_white_space.c: Likewise.
25177         * tests/unictype/test-pr_xid_continue.c: Likewise.
25178         * tests/unictype/test-pr_xid_start.c: Likewise.
25179         * tests/unictype/test-pr_zero_width.c: Likewise.
25180         * tests/unictype/test-sy_c_whitespace.c: Likewise.
25181         * tests/unictype/test-sy_java_whitespace.c: Likewise.
25182
25183 2007-11-12  Bruno Haible  <bruno@clisp.org>
25184
25185         Unicode character classification functions.
25186         * lib/unictype.h: New file.
25187         * modules/unictype/base: New file.
25188         * modules/unictype/category-L: New file.
25189         * modules/unictype/category-Lu: New file.
25190         * modules/unictype/category-Ll: New file.
25191         * modules/unictype/category-Lt: New file.
25192         * modules/unictype/category-Lm: New file.
25193         * modules/unictype/category-Lo: New file.
25194         * modules/unictype/category-M: New file.
25195         * modules/unictype/category-Mn: New file.
25196         * modules/unictype/category-Mc: New file.
25197         * modules/unictype/category-Me: New file.
25198         * modules/unictype/category-N: New file.
25199         * modules/unictype/category-Nd: New file.
25200         * modules/unictype/category-Nl: New file.
25201         * modules/unictype/category-No: New file.
25202         * modules/unictype/category-P: New file.
25203         * modules/unictype/category-Pc: New file.
25204         * modules/unictype/category-Pd: New file.
25205         * modules/unictype/category-Ps: New file.
25206         * modules/unictype/category-Pe: New file.
25207         * modules/unictype/category-Pi: New file.
25208         * modules/unictype/category-Pf: New file.
25209         * modules/unictype/category-Po: New file.
25210         * modules/unictype/category-S: New file.
25211         * modules/unictype/category-Sm: New file.
25212         * modules/unictype/category-Sc: New file.
25213         * modules/unictype/category-Sk: New file.
25214         * modules/unictype/category-So: New file.
25215         * modules/unictype/category-Z: New file.
25216         * modules/unictype/category-Zs: New file.
25217         * modules/unictype/category-Zl: New file.
25218         * modules/unictype/category-Zp: New file.
25219         * modules/unictype/category-C: New file.
25220         * modules/unictype/category-Cc: New file.
25221         * modules/unictype/category-Cf: New file.
25222         * modules/unictype/category-Cs: New file.
25223         * modules/unictype/category-Co: New file.
25224         * modules/unictype/category-Cn: New file.
25225         * modules/unictype/category-or: New file.
25226         * modules/unictype/category-of: New file.
25227         * modules/unictype/category-test: New file.
25228         * modules/unictype/category-test-withtable: New file.
25229         * modules/unictype/category-byname: New file.
25230         * modules/unictype/category-none: New file.
25231         * modules/unictype/category-and: New file.
25232         * modules/unictype/category-and-not: New file.
25233         * modules/unictype/category-name: New file.
25234         * modules/unictype/combining-class: New file.
25235         * modules/unictype/category-all: New file.
25236         * modules/unictype/bidicategory-all: New file.
25237         * modules/unictype/bidicategory-byname: New file.
25238         * modules/unictype/bidicategory-name: New file.
25239         * modules/unictype/bidicategory-of: New file.
25240         * modules/unictype/bidicategory-test: New file.
25241         * modules/unictype/decimal-digit: New file.
25242         * modules/unictype/digit: New file.
25243         * modules/unictype/numeric: New file.
25244         * modules/unictype/mirror: New file.
25245         * modules/unictype/property-white-space: New file.
25246         * modules/unictype/property-alphabetic: New file.
25247         * modules/unictype/property-other-alphabetic: New file.
25248         * modules/unictype/property-not-a-character: New file.
25249         * modules/unictype/property-default-ignorable-code-point: New file.
25250         * modules/unictype/property-other-default-ignorable-code-point: New
25251         file.
25252         * modules/unictype/property-deprecated: New file.
25253         * modules/unictype/property-logical-order-exception: New file.
25254         * modules/unictype/property-variation-selector: New file.
25255         * modules/unictype/property-private-use: New file.
25256         * modules/unictype/property-unassigned-code-value: New file.
25257         * modules/unictype/property-uppercase: New file.
25258         * modules/unictype/property-other-uppercase: New file.
25259         * modules/unictype/property-lowercase: New file.
25260         * modules/unictype/property-other-lowercase: New file.
25261         * modules/unictype/property-titlecase: New file.
25262         * modules/unictype/property-soft-dotted: New file.
25263         * modules/unictype/property-id-start: New file.
25264         * modules/unictype/property-other-id-start: New file.
25265         * modules/unictype/property-id-continue: New file.
25266         * modules/unictype/property-other-id-continue: New file.
25267         * modules/unictype/property-xid-start: New file.
25268         * modules/unictype/property-xid-continue: New file.
25269         * modules/unictype/property-pattern-white-space: New file.
25270         * modules/unictype/property-pattern-syntax: New file.
25271         * modules/unictype/property-join-control: New file.
25272         * modules/unictype/property-grapheme-base: New file.
25273         * modules/unictype/property-grapheme-extend: New file.
25274         * modules/unictype/property-other-grapheme-extend: New file.
25275         * modules/unictype/property-grapheme-link: New file.
25276         * modules/unictype/property-bidi-control: New file.
25277         * modules/unictype/property-bidi-left-to-right: New file.
25278         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
25279         * modules/unictype/property-bidi-arabic-right-to-left: New file.
25280         * modules/unictype/property-bidi-european-digit: New file.
25281         * modules/unictype/property-bidi-eur-num-separator: New file.
25282         * modules/unictype/property-bidi-eur-num-terminator: New file.
25283         * modules/unictype/property-bidi-arabic-digit: New file.
25284         * modules/unictype/property-bidi-common-separator: New file.
25285         * modules/unictype/property-bidi-block-separator: New file.
25286         * modules/unictype/property-bidi-segment-separator: New file.
25287         * modules/unictype/property-bidi-whitespace: New file.
25288         * modules/unictype/property-bidi-non-spacing-mark: New file.
25289         * modules/unictype/property-bidi-boundary-neutral: New file.
25290         * modules/unictype/property-bidi-pdf: New file.
25291         * modules/unictype/property-bidi-embedding-or-override: New file.
25292         * modules/unictype/property-bidi-other-neutral: New file.
25293         * modules/unictype/property-hex-digit: New file.
25294         * modules/unictype/property-ascii-hex-digit: New file.
25295         * modules/unictype/property-ideographic: New file.
25296         * modules/unictype/property-unified-ideograph: New file.
25297         * modules/unictype/property-radical: New file.
25298         * modules/unictype/property-ids-binary-operator: New file.
25299         * modules/unictype/property-ids-trinary-operator: New file.
25300         * modules/unictype/property-zero-width: New file.
25301         * modules/unictype/property-space: New file.
25302         * modules/unictype/property-non-break: New file.
25303         * modules/unictype/property-iso-control: New file.
25304         * modules/unictype/property-format-control: New file.
25305         * modules/unictype/property-dash: New file.
25306         * modules/unictype/property-hyphen: New file.
25307         * modules/unictype/property-punctuation: New file.
25308         * modules/unictype/property-line-separator: New file.
25309         * modules/unictype/property-paragraph-separator: New file.
25310         * modules/unictype/property-quotation-mark: New file.
25311         * modules/unictype/property-sentence-terminal: New file.
25312         * modules/unictype/property-terminal-punctuation: New file.
25313         * modules/unictype/property-currency-symbol: New file.
25314         * modules/unictype/property-math: New file.
25315         * modules/unictype/property-other-math: New file.
25316         * modules/unictype/property-paired-punctuation: New file.
25317         * modules/unictype/property-left-of-pair: New file.
25318         * modules/unictype/property-combining: New file.
25319         * modules/unictype/property-composite: New file.
25320         * modules/unictype/property-decimal-digit: New file.
25321         * modules/unictype/property-numeric: New file.
25322         * modules/unictype/property-diacritic: New file.
25323         * modules/unictype/property-extender: New file.
25324         * modules/unictype/property-ignorable-control: New file.
25325         * modules/unictype/property-test: New file.
25326         * modules/unictype/property-byname: New file.
25327         * modules/unictype/property-all: New file.
25328         * modules/unictype/scripts: New file.
25329         * modules/unictype/scripts-all: New file.
25330         * modules/unictype/block-of: New file.
25331         * modules/unictype/block-test: New file.
25332         * modules/unictype/block-list: New file.
25333         * modules/unictype/block-all: New file.
25334         * modules/unictype/syntax-c-whitespace: New file.
25335         * modules/unictype/syntax-java-whitespace: New file.
25336         * modules/unictype/syntax-c-ident: New file.
25337         * modules/unictype/syntax-java-ident: New file.
25338         * modules/unictype/ctype-alnum: New file.
25339         * modules/unictype/ctype-alpha: New file.
25340         * modules/unictype/ctype-cntrl: New file.
25341         * modules/unictype/ctype-digit: New file.
25342         * modules/unictype/ctype-graph: New file.
25343         * modules/unictype/ctype-lower: New file.
25344         * modules/unictype/ctype-print: New file.
25345         * modules/unictype/ctype-punct: New file.
25346         * modules/unictype/ctype-space: New file.
25347         * modules/unictype/ctype-upper: New file.
25348         * modules/unictype/ctype-xdigit: New file.
25349         * modules/unictype/ctype-blank: New file.
25350         * lib/unictype/bidi_byname.c: New file.
25351         * lib/unictype/bidi_name.c: New file.
25352         * lib/unictype/bidi_of.c: New file.
25353         * lib/unictype/bidi_test.c: New file.
25354         * lib/unictype/bitmap.h: New file.
25355         * lib/unictype/block_test.c: New file.
25356         * lib/unictype/blocks.c: New file.
25357         * lib/unictype/categ_C.c: New file.
25358         * lib/unictype/categ_Cc.c: New file.
25359         * lib/unictype/categ_Cf.c: New file.
25360         * lib/unictype/categ_Cn.c: New file.
25361         * lib/unictype/categ_Co.c: New file.
25362         * lib/unictype/categ_Cs.c: New file.
25363         * lib/unictype/categ_L.c: New file.
25364         * lib/unictype/categ_Ll.c: New file.
25365         * lib/unictype/categ_Lm.c: New file.
25366         * lib/unictype/categ_Lo.c: New file.
25367         * lib/unictype/categ_Lt.c: New file.
25368         * lib/unictype/categ_Lu.c: New file.
25369         * lib/unictype/categ_M.c: New file.
25370         * lib/unictype/categ_Mc.c: New file.
25371         * lib/unictype/categ_Me.c: New file.
25372         * lib/unictype/categ_Mn.c: New file.
25373         * lib/unictype/categ_N.c: New file.
25374         * lib/unictype/categ_Nd.c: New file.
25375         * lib/unictype/categ_Nl.c: New file.
25376         * lib/unictype/categ_No.c: New file.
25377         * lib/unictype/categ_P.c: New file.
25378         * lib/unictype/categ_Pc.c: New file.
25379         * lib/unictype/categ_Pd.c: New file.
25380         * lib/unictype/categ_Pe.c: New file.
25381         * lib/unictype/categ_Pf.c: New file.
25382         * lib/unictype/categ_Pi.c: New file.
25383         * lib/unictype/categ_Po.c: New file.
25384         * lib/unictype/categ_Ps.c: New file.
25385         * lib/unictype/categ_S.c: New file.
25386         * lib/unictype/categ_Sc.c: New file.
25387         * lib/unictype/categ_Sk.c: New file.
25388         * lib/unictype/categ_Sm.c: New file.
25389         * lib/unictype/categ_So.c: New file.
25390         * lib/unictype/categ_Z.c: New file.
25391         * lib/unictype/categ_Zl.c: New file.
25392         * lib/unictype/categ_Zp.c: New file.
25393         * lib/unictype/categ_Zs.c: New file.
25394         * lib/unictype/categ_and.c: New file.
25395         * lib/unictype/categ_and_not.c: New file.
25396         * lib/unictype/categ_byname.c: New file.
25397         * lib/unictype/categ_name.c: New file.
25398         * lib/unictype/categ_none.c: New file.
25399         * lib/unictype/categ_of.c: New file.
25400         * lib/unictype/categ_or.c: New file.
25401         * lib/unictype/categ_test.c: New file.
25402         * lib/unictype/combining.c: New file.
25403         * lib/unictype/ctype_alnum.c: New file.
25404         * lib/unictype/ctype_alpha.c: New file.
25405         * lib/unictype/ctype_blank.c: New file.
25406         * lib/unictype/ctype_cntrl.c: New file.
25407         * lib/unictype/ctype_digit.c: New file.
25408         * lib/unictype/ctype_graph.c: New file.
25409         * lib/unictype/ctype_lower.c: New file.
25410         * lib/unictype/ctype_print.c: New file.
25411         * lib/unictype/ctype_punct.c: New file.
25412         * lib/unictype/ctype_space.c: New file.
25413         * lib/unictype/ctype_upper.c: New file.
25414         * lib/unictype/ctype_xdigit.c: New file.
25415         * lib/unictype/decdigit.c: New file.
25416         * lib/unictype/digit.c: New file.
25417         * lib/unictype/identsyntaxmap.h: New file.
25418         * lib/unictype/mirror.c: New file.
25419         * lib/unictype/numeric.c: New file.
25420         * lib/unictype/pr_alphabetic.c: New file.
25421         * lib/unictype/pr_ascii_hex_digit.c: New file.
25422         * lib/unictype/pr_bidi_arabic_digit.c: New file.
25423         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
25424         * lib/unictype/pr_bidi_block_separator.c: New file.
25425         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
25426         * lib/unictype/pr_bidi_common_separator.c: New file.
25427         * lib/unictype/pr_bidi_control.c: New file.
25428         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
25429         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
25430         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
25431         * lib/unictype/pr_bidi_european_digit.c: New file.
25432         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
25433         * lib/unictype/pr_bidi_left_to_right.c: New file.
25434         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
25435         * lib/unictype/pr_bidi_other_neutral.c: New file.
25436         * lib/unictype/pr_bidi_pdf.c: New file.
25437         * lib/unictype/pr_bidi_segment_separator.c: New file.
25438         * lib/unictype/pr_bidi_whitespace.c: New file.
25439         * lib/unictype/pr_byname.c: New file.
25440         * lib/unictype/pr_byname.gperf: New file.
25441         * lib/unictype/pr_combining.c: New file.
25442         * lib/unictype/pr_composite.c: New file.
25443         * lib/unictype/pr_currency_symbol.c: New file.
25444         * lib/unictype/pr_dash.c: New file.
25445         * lib/unictype/pr_decimal_digit.c: New file.
25446         * lib/unictype/pr_default_ignorable_code_point.c: New file.
25447         * lib/unictype/pr_deprecated.c: New file.
25448         * lib/unictype/pr_diacritic.c: New file.
25449         * lib/unictype/pr_extender.c: New file.
25450         * lib/unictype/pr_format_control.c: New file.
25451         * lib/unictype/pr_grapheme_base.c: New file.
25452         * lib/unictype/pr_grapheme_extend.c: New file.
25453         * lib/unictype/pr_grapheme_link.c: New file.
25454         * lib/unictype/pr_hex_digit.c: New file.
25455         * lib/unictype/pr_hyphen.c: New file.
25456         * lib/unictype/pr_id_continue.c: New file.
25457         * lib/unictype/pr_id_start.c: New file.
25458         * lib/unictype/pr_ideographic.c: New file.
25459         * lib/unictype/pr_ids_binary_operator.c: New file.
25460         * lib/unictype/pr_ids_trinary_operator.c: New file.
25461         * lib/unictype/pr_ignorable_control.c: New file.
25462         * lib/unictype/pr_iso_control.c: New file.
25463         * lib/unictype/pr_join_control.c: New file.
25464         * lib/unictype/pr_left_of_pair.c: New file.
25465         * lib/unictype/pr_line_separator.c: New file.
25466         * lib/unictype/pr_logical_order_exception.c: New file.
25467         * lib/unictype/pr_lowercase.c: New file.
25468         * lib/unictype/pr_math.c: New file.
25469         * lib/unictype/pr_non_break.c: New file.
25470         * lib/unictype/pr_not_a_character.c: New file.
25471         * lib/unictype/pr_numeric.c: New file.
25472         * lib/unictype/pr_other_alphabetic.c: New file.
25473         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
25474         * lib/unictype/pr_other_grapheme_extend.c: New file.
25475         * lib/unictype/pr_other_id_continue.c: New file.
25476         * lib/unictype/pr_other_id_start.c: New file.
25477         * lib/unictype/pr_other_lowercase.c: New file.
25478         * lib/unictype/pr_other_math.c: New file.
25479         * lib/unictype/pr_other_uppercase.c: New file.
25480         * lib/unictype/pr_paired_punctuation.c: New file.
25481         * lib/unictype/pr_paragraph_separator.c: New file.
25482         * lib/unictype/pr_pattern_syntax.c: New file.
25483         * lib/unictype/pr_pattern_white_space.c: New file.
25484         * lib/unictype/pr_private_use.c: New file.
25485         * lib/unictype/pr_punctuation.c: New file.
25486         * lib/unictype/pr_quotation_mark.c: New file.
25487         * lib/unictype/pr_radical.c: New file.
25488         * lib/unictype/pr_sentence_terminal.c: New file.
25489         * lib/unictype/pr_soft_dotted.c: New file.
25490         * lib/unictype/pr_space.c: New file.
25491         * lib/unictype/pr_terminal_punctuation.c: New file.
25492         * lib/unictype/pr_test.c: New file.
25493         * lib/unictype/pr_titlecase.c: New file.
25494         * lib/unictype/pr_unassigned_code_value.c: New file.
25495         * lib/unictype/pr_unified_ideograph.c: New file.
25496         * lib/unictype/pr_uppercase.c: New file.
25497         * lib/unictype/pr_variation_selector.c: New file.
25498         * lib/unictype/pr_white_space.c: New file.
25499         * lib/unictype/pr_xid_continue.c: New file.
25500         * lib/unictype/pr_xid_start.c: New file.
25501         * lib/unictype/pr_zero_width.c: New file.
25502         * lib/unictype/scripts.c: New file.
25503         * lib/unictype/sy_c_ident.c: New file.
25504         * lib/unictype/sy_c_whitespace.c: New file.
25505         * lib/unictype/sy_java_ident.c: New file.
25506         * lib/unictype/sy_java_whitespace.c: New file.
25507
25508         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
25509         Unicode 5.0.0.
25510         * lib/unictype/blocks.h: Likewise.
25511         * lib/unictype/categ_C.h: Likewise.
25512         * lib/unictype/categ_Cc.h: Likewise.
25513         * lib/unictype/categ_Cf.h: Likewise.
25514         * lib/unictype/categ_Cn.h: Likewise.
25515         * lib/unictype/categ_Co.h: Likewise.
25516         * lib/unictype/categ_Cs.h: Likewise.
25517         * lib/unictype/categ_L.h: Likewise.
25518         * lib/unictype/categ_Ll.h: Likewise.
25519         * lib/unictype/categ_Lm.h: Likewise.
25520         * lib/unictype/categ_Lo.h: Likewise.
25521         * lib/unictype/categ_Lt.h: Likewise.
25522         * lib/unictype/categ_Lu.h: Likewise.
25523         * lib/unictype/categ_M.h: Likewise.
25524         * lib/unictype/categ_Mc.h: Likewise.
25525         * lib/unictype/categ_Me.h: Likewise.
25526         * lib/unictype/categ_Mn.h: Likewise.
25527         * lib/unictype/categ_N.h: Likewise.
25528         * lib/unictype/categ_Nd.h: Likewise.
25529         * lib/unictype/categ_Nl.h: Likewise.
25530         * lib/unictype/categ_No.h: Likewise.
25531         * lib/unictype/categ_P.h: Likewise.
25532         * lib/unictype/categ_Pc.h: Likewise.
25533         * lib/unictype/categ_Pd.h: Likewise.
25534         * lib/unictype/categ_Pe.h: Likewise.
25535         * lib/unictype/categ_Pf.h: Likewise.
25536         * lib/unictype/categ_Pi.h: Likewise.
25537         * lib/unictype/categ_Po.h: Likewise.
25538         * lib/unictype/categ_Ps.h: Likewise.
25539         * lib/unictype/categ_S.h: Likewise.
25540         * lib/unictype/categ_Sc.h: Likewise.
25541         * lib/unictype/categ_Sk.h: Likewise.
25542         * lib/unictype/categ_Sm.h: Likewise.
25543         * lib/unictype/categ_So.h: Likewise.
25544         * lib/unictype/categ_Z.h: Likewise.
25545         * lib/unictype/categ_Zl.h: Likewise.
25546         * lib/unictype/categ_Zp.h: Likewise.
25547         * lib/unictype/categ_Zs.h: Likewise.
25548         * lib/unictype/categ_of.h: Likewise.
25549         * lib/unictype/combining.h: Likewise.
25550         * lib/unictype/ctype_alnum.h: Likewise.
25551         * lib/unictype/ctype_alpha.h: Likewise.
25552         * lib/unictype/ctype_blank.h: Likewise.
25553         * lib/unictype/ctype_cntrl.h: Likewise.
25554         * lib/unictype/ctype_digit.h: Likewise.
25555         * lib/unictype/ctype_graph.h: Likewise.
25556         * lib/unictype/ctype_lower.h: Likewise.
25557         * lib/unictype/ctype_print.h: Likewise.
25558         * lib/unictype/ctype_punct.h: Likewise.
25559         * lib/unictype/ctype_space.h: Likewise.
25560         * lib/unictype/ctype_upper.h: Likewise.
25561         * lib/unictype/ctype_xdigit.h: Likewise.
25562         * lib/unictype/decdigit.h: Likewise.
25563         * lib/unictype/digit.h: Likewise.
25564         * lib/unictype/mirror.h: Likewise.
25565         * lib/unictype/numeric.h: Likewise.
25566         * lib/unictype/pr_alphabetic.h: Likewise.
25567         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25568         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25569         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25570         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25571         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25572         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25573         * lib/unictype/pr_bidi_control.h: Likewise.
25574         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25575         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25576         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25577         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25578         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25579         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25580         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25581         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25582         * lib/unictype/pr_bidi_pdf.h: Likewise.
25583         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25584         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25585         * lib/unictype/pr_combining.h: Likewise.
25586         * lib/unictype/pr_composite.h: Likewise.
25587         * lib/unictype/pr_currency_symbol.h: Likewise.
25588         * lib/unictype/pr_dash.h: Likewise.
25589         * lib/unictype/pr_decimal_digit.h: Likewise.
25590         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25591         * lib/unictype/pr_deprecated.h: Likewise.
25592         * lib/unictype/pr_diacritic.h: Likewise.
25593         * lib/unictype/pr_extender.h: Likewise.
25594         * lib/unictype/pr_format_control.h: Likewise.
25595         * lib/unictype/pr_grapheme_base.h: Likewise.
25596         * lib/unictype/pr_grapheme_extend.h: Likewise.
25597         * lib/unictype/pr_grapheme_link.h: Likewise.
25598         * lib/unictype/pr_hex_digit.h: Likewise.
25599         * lib/unictype/pr_hyphen.h: Likewise.
25600         * lib/unictype/pr_id_continue.h: Likewise.
25601         * lib/unictype/pr_id_start.h: Likewise.
25602         * lib/unictype/pr_ideographic.h: Likewise.
25603         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25604         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25605         * lib/unictype/pr_ignorable_control.h: Likewise.
25606         * lib/unictype/pr_iso_control.h: Likewise.
25607         * lib/unictype/pr_join_control.h: Likewise.
25608         * lib/unictype/pr_left_of_pair.h: Likewise.
25609         * lib/unictype/pr_line_separator.h: Likewise.
25610         * lib/unictype/pr_logical_order_exception.h: Likewise.
25611         * lib/unictype/pr_lowercase.h: Likewise.
25612         * lib/unictype/pr_math.h: Likewise.
25613         * lib/unictype/pr_non_break.h: Likewise.
25614         * lib/unictype/pr_not_a_character.h: Likewise.
25615         * lib/unictype/pr_numeric.h: Likewise.
25616         * lib/unictype/pr_other_alphabetic.h: Likewise.
25617         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25618         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25619         * lib/unictype/pr_other_id_continue.h: Likewise.
25620         * lib/unictype/pr_other_id_start.h: Likewise.
25621         * lib/unictype/pr_other_lowercase.h: Likewise.
25622         * lib/unictype/pr_other_math.h: Likewise.
25623         * lib/unictype/pr_other_uppercase.h: Likewise.
25624         * lib/unictype/pr_paired_punctuation.h: Likewise.
25625         * lib/unictype/pr_paragraph_separator.h: Likewise.
25626         * lib/unictype/pr_pattern_syntax.h: Likewise.
25627         * lib/unictype/pr_pattern_white_space.h: Likewise.
25628         * lib/unictype/pr_private_use.h: Likewise.
25629         * lib/unictype/pr_punctuation.h: Likewise.
25630         * lib/unictype/pr_quotation_mark.h: Likewise.
25631         * lib/unictype/pr_radical.h: Likewise.
25632         * lib/unictype/pr_sentence_terminal.h: Likewise.
25633         * lib/unictype/pr_soft_dotted.h: Likewise.
25634         * lib/unictype/pr_space.h: Likewise.
25635         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25636         * lib/unictype/pr_titlecase.h: Likewise.
25637         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25638         * lib/unictype/pr_unified_ideograph.h: Likewise.
25639         * lib/unictype/pr_uppercase.h: Likewise.
25640         * lib/unictype/pr_variation_selector.h: Likewise.
25641         * lib/unictype/pr_white_space.h: Likewise.
25642         * lib/unictype/pr_xid_continue.h: Likewise.
25643         * lib/unictype/pr_xid_start.h: Likewise.
25644         * lib/unictype/pr_zero_width.h: Likewise.
25645         * lib/unictype/scripts.h: Likewise.
25646         * lib/unictype/scripts_byname.gperf: Likewise.
25647         * lib/unictype/sy_c_ident.h: Likewise.
25648         * lib/unictype/sy_c_whitespace.h: Likewise.
25649         * lib/unictype/sy_java_ident.h: Likewise.
25650         * lib/unictype/sy_java_whitespace.h: Likewise.
25651
25652         * lib/unictype/Makefile: New file.
25653         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
25654         glibc.
25655         * lib/unictype/3level.h: New file, copied from glibc.
25656         * lib/unictype/3levelbit.h: New file.
25657
25658 2007-11-11  Bruno Haible  <bruno@clisp.org>
25659
25660         * modules/gperf: New file.
25661         * modules/iconv_open (Depends-on): Add it.
25662         (Makefile.am): Remove the GPERF definition.
25663
25664 2007-11-11  Bruno Haible  <bruno@clisp.org>
25665
25666         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
25667         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
25668
25669 2007-11-11  Bruno Haible  <bruno@clisp.org>
25670
25671         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
25672         (usage): Remove function.
25673
25674 2007-11-11  Bruno Haible  <bruno@clisp.org>
25675
25676         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
25677         gl_FUNC_CEILF_LIBS.
25678         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
25679         gl_FUNC_CEIL_LIBS.
25680         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
25681         gl_FUNC_CEILL_LIBS.
25682         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
25683         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
25684         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
25685
25686 2007-11-11  Bruno Haible  <bruno@clisp.org>
25687
25688         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
25689         roundf were declared but do not exist on functions.
25690         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
25691         roundl were declared but do not exist on functions.
25692         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
25693         HAVE_FLOORL_AND_CEILL, respectively.
25694         Needed for Sun C on Solaris 10.
25695
25696 2007-11-11  Bruno Haible  <bruno@clisp.org>
25697
25698         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
25699         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
25700         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
25701         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
25702         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
25703         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
25704         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
25705         HAVE_DECL_ROUNDF.
25706         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
25707         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
25708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
25709         of HAVE_DECL_ROUND*.
25710         * modules/math (Makefile.am): Update.
25711
25712 2007-11-10  Bruno Haible  <bruno@clisp.org>
25713
25714         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
25715         ptrdiff_t as m4/intl.m4.
25716
25717 2007-11-10  Jim Meyering  <meyering@redhat.com>
25718
25719         Avoid link failure for the argmatch test.
25720         * tests/test-argmatch.c (usage): Define function to avoid a link
25721         failure: argmatch_die requires a usage function.
25722
25723 2007-11-09  Bruno Haible  <bruno@clisp.org>
25724
25725         * doc/functions/snprintf.texi: Mention BeOS deficiency.
25726         * doc/functions/vsnprintf.texi: Likewise.
25727         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
25728         with a size argument < 2.
25729
25730 2007-11-09  Bruno Haible  <bruno@clisp.org>
25731
25732         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
25733         buffer. Fixes an inefficiency introduced on 2007-11-03.
25734
25735 2007-11-09  Bruno Haible  <bruno@clisp.org>
25736
25737         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
25738         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
25739
25740 2007-11-08  Jim Meyering  <meyering@redhat.com>
25741
25742         Change cache variable name prefix "jm_" to "gl_" everywhere.
25743         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
25744         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
25745         * m4/uptime.m4: s/gl_/jm_/
25746
25747 2007-11-07  Bruno Haible  <bruno@clisp.org>
25748
25749         Update to GNU gettext 0.17.
25750         * m4/intl.m4: Update to GNU gettext 0.17.
25751         * m4/po.m4: Likewise.
25752         * modules/gettext (Files): Remove m4/ulonglong.m4.
25753         (configure.ac): Require gettext infrastructure from version 0.17.
25754
25755 2007-11-06  Bruno Haible  <bruno@clisp.org>
25756
25757         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
25758         symbolic values are not defined in a public header.
25759         * lib/freadable.c (freadable) [QNX]: Likewise.
25760         * lib/freadahead.c (freadahead) [QNX]: Likewise.
25761         * lib/freading.c (freading) [QNX]: Likewise.
25762         * lib/fseterr.c (fseterr) [QNX]: Likewise.
25763         * lib/fwritable.c (fwritable) [QNX]: Likewise.
25764         * lib/fwriting.c (fwriting) [QNX]: Likewise.
25765         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
25766         Reported by Alain Magloire.
25767
25768         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
25769
25770 2007-11-05  Bruno Haible  <bruno@clisp.org>
25771
25772         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
25773         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
25774         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
25775         Reported by Eric Blake.
25776
25777 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25778             Bruno Haible  <bruno@clisp.org>
25779
25780         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
25781         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
25782         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
25783         (malloc): Undefine also before including <stdlib.h>.
25784         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
25785         Needed on OSF/1 4.0.
25786
25787 2007-11-05  Jim Meyering  <meyering@redhat.com>
25788
25789         git-version-gen: sync from coreutils.
25790         * build-aux/git-version-gen: Add comments.
25791         Change the first '-' to '.' in the snapshot version string,
25792         e.g., 6.9-377-08144 -> 6.9.377-08144
25793         Remove first parameter.
25794         Don't declare a version "-dirty" merely because a time
25795         stamp has changed.
25796
25797 2007-11-04  Bruno Haible  <bruno@clisp.org>
25798
25799         * lib/lock.h: Protect all macro definitions containing an 'if'
25800         statement through a "do { ... } while (0)".
25801         * lib/tls.h: Likewise.
25802
25803 2007-11-04  Bruno Haible  <bruno@clisp.org>
25804
25805         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
25806
25807 2007-11-04  Bruno Haible  <bruno@clisp.org>
25808
25809         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
25810         * modules/fprintf-posix (Depends-on): Add nocrash.
25811         * modules/snprintf-posix (Depends-on): Likewise.
25812         * modules/sprintf-posix (Depends-on): Likewise.
25813         * modules/vasnprintf-posix (Depends-on): Likewise.
25814         * modules/vasprintf-posix (Depends-on): Likewise.
25815         * modules/vfprintf-posix (Depends-on): Likewise.
25816         * modules/vsnprintf-posix (Depends-on): Likewise.
25817         * modules/vsprintf-posix (Depends-on): Likewise.
25818         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25819         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25820         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25821         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25822         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25823         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25824         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25825
25826 2007-11-04  Bruno Haible  <bruno@clisp.org>
25827
25828         * modules/nocrash: New file.
25829         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
25830         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
25831
25832 2007-11-04  Bruno Haible  <bruno@clisp.org>
25833
25834         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
25835         precision handling.
25836         * tests/test-vasprintf-posix.c (test_function): Likewise.
25837         * tests/test-snprintf-posix.h (test_function): Likewise.
25838         * tests/test-sprintf-posix.h (test_function): Likewise.
25839
25840         Fix *printf behaviour for large precisions on mingw and BeOS.
25841         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
25842         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
25843         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
25844         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25845         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25846         gl_PRINTF_PRECISION and test its result. Invoke
25847         gl_PREREQ_VASNPRINTF_PRECISION.
25848         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25849         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25850         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25851         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25852         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25853         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25854         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25855         * doc/functions/fprintf.texi: Update.
25856         * doc/functions/printf.texi: Update.
25857         * doc/functions/snprintf.texi: Update.
25858         * doc/functions/sprintf.texi: Update.
25859         * doc/functions/vfprintf.texi: Update.
25860         * doc/functions/vprintf.texi: Update.
25861         * doc/functions/vsnprintf.texi: Update.
25862         * doc/functions/vsprintf.texi: Update.
25863
25864 2007-11-04  Bruno Haible  <bruno@clisp.org>
25865
25866         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
25867
25868 2007-11-04  Bruno Haible  <bruno@clisp.org>
25869
25870         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
25871         Reported by Sylvain Beucler <beuc@gnu.org>.
25872
25873 2007-11-03  Bruno Haible  <bruno@clisp.org>
25874
25875         * tests/test-fprintf-posix2.sh: New file.
25876         * tests/test-fprintf-posix2.c: New file.
25877         * modules/fprintf-posix-tests (Files): Add them.
25878         (TESTS): Add test-fprintf-posix2.sh.
25879         (configure.ac): Check for getrlimit and setrlimit.
25880         (check_PROGRAMS): Add test-fprintf-posix2.
25881
25882         * tests/test-printf-posix2.sh: New file.
25883         * tests/test-printf-posix2.c: New file.
25884         * modules/printf-posix-tests (Files): Add them.
25885         (TESTS): Add test-printf-posix2.sh.
25886         (configure.ac): Check for getrlimit and setrlimit.
25887         (check_PROGRAMS): Add test-printf-posix2.
25888
25889         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
25890         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
25891         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
25892         (decode_double): New function, copied from decode_long_double.
25893         (scale10_round_decimal_decoded): New function, extracted from
25894         scale10_round_decimal_long_double.
25895         (scale10_round_decimal_long_double): Use it.
25896         (scale10_round_decimal_double): New function.
25897         (floorlog10): New function.
25898         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
25899         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
25900         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25901         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25902         gl_PRINTF_ENOMEM and test its result. Invoke
25903         gl_PREREQ_VASNPRINTF_ENOMEM.
25904         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25905         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25906         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25907         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25908         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25909         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25910         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25911         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
25912         * modules/snprintf-posix (Depends-on): Likewise.
25913         * modules/sprintf-posix (Depends-on): Likewise.
25914         * modules/vasnprintf-posix (Depends-on): Likewise.
25915         * modules/vasprintf-posix (Depends-on): Likewise.
25916         * modules/vfprintf-posix (Depends-on): Likewise.
25917         * modules/vsnprintf-posix (Depends-on): Likewise.
25918         * modules/vsprintf-posix (Depends-on): Likewise.
25919         * doc/functions/fprintf.texi: Update.
25920         * doc/functions/printf.texi: Update.
25921         * doc/functions/snprintf.texi: Update.
25922         * doc/functions/sprintf.texi: Update.
25923         * doc/functions/vfprintf.texi: Update.
25924         * doc/functions/vprintf.texi: Update.
25925         * doc/functions/vsnprintf.texi: Update.
25926         * doc/functions/vsprintf.texi: Update.
25927
25928 2007-11-03  Bruno Haible  <bruno@clisp.org>
25929
25930         * modules/frexp-nolibm-tests: New file.
25931
25932         * modules/frexp-nolibm: New file.
25933         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
25934
25935 2007-11-03  Bruno Haible  <bruno@clisp.org>
25936
25937         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
25938         value is C99 compliant.
25939         Needed for OSF/1 5.1.
25940
25941 2007-11-03  Bruno Haible  <bruno@clisp.org>
25942
25943         Fix out-of-memory handling of vasnprintf.
25944         * lib/printf-parse.c: Include <errno.h>.
25945         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
25946         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
25947         is already set.
25948
25949 2007-11-02  Eric Blake  <ebb9@byu.net>
25950
25951         Fix tests on cygwin.
25952         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
25953
25954 2007-11-01  Bruno Haible  <bruno@clisp.org>
25955
25956         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
25957         warning.
25958         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
25959         needed for POSIX compatibility.
25960
25961 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
25962
25963         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
25964         for compatibility with GNU.
25965
25966 2007-11-01  Bruno Haible  <bruno@clisp.org>
25967
25968         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
25969         (putenv): Renamed from rpl_putenv. Change argument type from
25970         'const char *' to 'char *'.
25971         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
25972         of defining putenv in config.h, just set REPLACE_PUTENV.
25973         * modules/putenv (Depends-on): Add stdlib.
25974         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25975         (Include): Use <stdlib.h>.
25976         * lib/stdlib.in.h (putenv): New declaration.
25977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
25978         REPLACE_PUTENV.
25979         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
25980         REPLACE_PUTENV.
25981         Needed for MacOS X 10.5.0.
25982         Reported by Peter O'Gorman <peter@pogma.com>.
25983
25984 2007-11-01  Jim Meyering  <meyering@redhat.com>
25985
25986         Treat an empty date string exactly like "0".
25987         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
25988         if the remaining date string (to be parsed) is empty, use "0".
25989         Reported by Mischa Molhoek and discussed in this thread:
25990         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
25991
25992 2007-10-31  Bruno Haible  <bruno@clisp.org>
25993
25994         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
25995         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
25996         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
25997         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
25998         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
25999         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
26000
26001 2007-10-31  Bruno Haible  <bruno@clisp.org>
26002
26003         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
26004         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
26005         (AC_TYPE_LONG_LONG_INT): Use it.
26006         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
26007         it as well.
26008         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
26009         to m4/longlong.m4.
26010         * modules/stdint (Files): Remove m4/ulonglong.m4.
26011         * modules/strtoull (Files): Use m4/longlong.m4 instead of
26012         m4/ulonglong.m4.
26013         * modules/strtoumax (Files): Likewise.
26014
26015 2007-10-30  Bruno Haible  <bruno@clisp.org>
26016
26017         * modules/xvasprintf-posix: New file.
26018         Suggested by Eric Blake.
26019
26020 2007-10-30  Bruno Haible  <bruno@clisp.org>
26021
26022         * modules/xprintf-posix-tests: New file.
26023         * tests/test-xprintf-posix.sh: New file.
26024         * tests/test-xprintf-posix.c: New file.
26025         * tests/test-xfprintf-posix.c: New file.
26026
26027         * modules/xprintf-posix: New file.
26028
26029 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26030
26031         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
26032         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
26033         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
26034
26035 2007-10-29  Bruno Haible  <bruno@clisp.org>
26036
26037         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
26038         contain the special marker '_cv_'.
26039         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26040         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26041         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26042         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26043         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26044         Reported by Ralf Wildenhues.
26045
26046 2007-10-29  Bruno Haible  <bruno@clisp.org>
26047
26048         * gnulib-tool (func_import): When --lgpl is not specified, set
26049         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
26050         GPLv3.
26051         Reported by Simon Josefsson.
26052
26053 2007-10-28  Bruno Haible  <bruno@clisp.org>
26054
26055         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
26056         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
26057         HAVE_DECL_ISFINITE.
26058         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
26059         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
26060         HAVE_DECL_ISFINITE.
26061
26062 2007-10-28  Bruno Haible  <bruno@clisp.org>
26063
26064         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
26065         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
26066
26067 2007-10-28  Bruno Haible  <bruno@clisp.org>
26068
26069         Fix link errors with Sun C 5.0 on Solaris 10.
26070         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
26071         function is declared but not present in the compiler's libm.
26072         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26073         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
26074         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
26075         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
26076         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
26077         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
26078         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
26079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
26080         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
26081         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
26082         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
26083         HAVE_DECL_FLOORL.
26084
26085 2007-10-28  Bruno Haible  <bruno@clisp.org>
26086
26087         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
26088         gl_FUNC_FLOORL. Cache the result.
26089         (gl_FUNC_FLOORL): Use it.
26090         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
26091         gl_FUNC_CEILL. Cache the result.
26092         (gl_FUNC_CEILL): Use it.
26093
26094         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
26095         gl_FUNC_FLOOR. Cache the result.
26096         (gl_FUNC_FLOOR): Use it.
26097         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
26098         gl_FUNC_CEIL. Cache the result.
26099         (gl_FUNC_CEIL): Use it.
26100
26101         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
26102         gl_FUNC_FLOORF. Cache the result.
26103         (gl_FUNC_FLOORF): Use it.
26104         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
26105         gl_FUNC_CEILF. Cache the result.
26106         (gl_FUNC_CEILF): Use it.
26107
26108 2007-10-28  Bruno Haible  <bruno@clisp.org>
26109
26110         * gnulib-tool: Allow specifying the LGPL version number through
26111         --lgpl=2 or --lgpl=3.
26112         (func_usage): Document --lgpl with argument.
26113         Handle --lgpl=... arguments.
26114         (func_import): Recognize also gl_LGPL calls with an argument. When
26115         --lgpl=2 is used and the module's license is just LGPL, report an
26116         error. Set sed_transform_lib_file according to the lgpl variable. In
26117         the generated files, use --lgpl or gl_LGPL invocations with argument,
26118         if necessary.
26119         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
26120         an LGPv2+ license.
26121         * doc/gnulib-tool.texi (Modified imports): Update explanation of
26122         gl_LGPL macro.
26123
26124 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26125             Bruno Haible  <bruno@clisp.org>
26126
26127         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
26128         (u16_uctomb_aux): Likewise.
26129         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
26130         !HAVE_INLINE.
26131         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
26132
26133 2007-10-28  Bruno Haible  <bruno@clisp.org>
26134
26135         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
26136         Invoke AM_GETTEXT_OPTION if it exists.
26137         * modules/vasprintf: Likewise.
26138         * modules/verror: Likewise.
26139         * modules/xprintf: Likewise.
26140         * modules/xvasprintf: Likewise.
26141
26142 2007-10-27  Ben Pfaff  <blp@gnu.org>
26143
26144         * lib/math.in.h: Define isfinite macro and prototypes for
26145         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
26146         implementations.
26147         * m4/math_h.m4: New substitutions for isfinite module.
26148         * lib/isfinite.c: New file.
26149         * m4/isfinite.m4: New file.
26150         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
26151         * modules/isfinite: New file.
26152         * modules/isfinite-tests: New file.
26153         * tests/tests-isfinite.c: New file.
26154         * doc/functions/isfinite.texi: Mention isfinite module.
26155         * MODULES.html.sh: Mention new module.
26156
26157 2007-10-27  Ben Pfaff  <blp@gnu.org>
26158
26159         Ralf Wildenhues reported that Tru64 4.0D declares the round
26160         functions but does not have definitions.
26161         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
26162         cannot be found in any library, set the output variable to
26163         "missing" instead of "".
26164         * m4/round.m4: Also use our substitute if we cannot find round in
26165         any library, even if it is declared.
26166         * m4/roundf.m4: Likewise for roundf.
26167         * m4/roundl.m4: Likewise for roundl.
26168         * lib/math.in.h: Undefine roundf, round, roundl before defining
26169         their replacements, to allow for hypothetical systems where these
26170         may be defined as macros but not available in libraries.
26171
26172 2007-10-27  Bruno Haible  <bruno@clisp.org>
26173
26174         * doc/gnulib.texi: Invoke @firstparagraphindent.
26175         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
26176         changes in gnulib.
26177         (Source changes): New section.
26178
26179 2007-10-26  Bruno Haible  <bruno@clisp.org>
26180
26181         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
26182         borrowed from autoconf.
26183
26184 2007-10-26  Bruno Haible  <bruno@clisp.org>
26185
26186         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
26187         strerror returned the empty string. Needed on HP-UX 11.00.
26188
26189 2007-10-24  Micah Cowan  <micah@cowan.name>
26190
26191         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
26192         * build-aux/bootstrap: Remove support for now-unnecessary option,
26193         --cvs-user, and envvars CVS_USER, CVS_RSH.
26194
26195 2007-10-24  Jim Meyering  <meyering@redhat.com>
26196
26197         Avoid diagnostics from sha1sum when there is no cached checksum.
26198         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
26199         if the po.s1 file hasn't been created yet.
26200
26201         * build-aux/bootstrap: Sync from coreutils:
26202         2007-10-24  Jim Meyering  <meyering@redhat.com>
26203         Get gnulib from the git repository, not from an obsolete cvs one.
26204         * build-aux/bootstrap: Suggestion from Micah Cowan.
26205         2007-10-04  Jim Meyering  <jim@meyering.net>
26206         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
26207         (update_po_files): Work also when there are no .po files in po/.
26208
26209 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
26210
26211         * README: Append ".git" to git and cg examples.
26212         Problem reported by Benoit Sigoure.
26213
26214 2007-10-23  Micah Cowan  <micah@cowan.name>
26215
26216         * users.txt: Add wget.
26217
26218 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26219
26220         Fix linking of some unistdio tests on FreeBSD.
26221         * modules/unistdio/u16-vsnprintf-tests
26222         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
26223         * modules/unistdio/u16-vsprintf-tests
26224         (test_u16_vsnprintf1_LDADD): Likewise.
26225         * modules/unistdio/u32-vsnprintf-tests
26226         (test_u32_vsnprintf1_LDADD): Likewise.
26227         * modules/unistdio/u32-vsprintf-tests
26228         (test_u32_vsprintf1_LDADD): Likewise.
26229         * modules/unistdio/u8-vsnprintf-tests
26230         (test_u8_vsnprintf1_LDADD): Likewise.
26231         * modules/unistdio/u8-vsprintf-tests
26232         (test_u8_vsprintf1_LDADD): Likewise.
26233         * modules/unistdio/ulc-vsnprintf-tests
26234         (test_ulc_vsnprintf1_LDADD): Likewise.
26235         * modules/unistdio/ulc-vsprintf-tests
26236         (test_ulc_vsprintf1_LDADD): Likewise.
26237
26238         Fix linking of some uniconv tests on FreeBSD.
26239         * modules/uniconv/u16-conv-from-enc-tests
26240         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
26241         * modules/uniconv/u16-conv-to-enc-tests
26242         (test_u16_conv_to_enc_LDADD): Likewise.
26243         * modules/uniconv/u16-strconv-from-enc-tests
26244         (test_u16_strconv_from_enc_LDADD): Likewise.
26245         * modules/uniconv/u16-strconv-to-enc-tests
26246         (test_u16_strconv_to_enc_LDADD): Likewise.
26247         * modules/uniconv/u32-conv-from-enc-tests
26248         (test_u32_conv_from_enc_LDADD): Likewise.
26249         * modules/uniconv/u32-conv-to-enc-tests
26250         (test_u32_conv_to_enc_LDADD): Likewise.
26251         * modules/uniconv/u32-strconv-from-enc-tests
26252         (test_u32_strconv_from_enc_LDADD): Likewise.
26253         * modules/uniconv/u32-strconv-to-enc-tests
26254         (test_u32_strconv_to_enc_LDADD): Likewise.
26255         * modules/uniconv/u8-conv-from-enc-tests
26256         (test_u8_conv_from_enc_LDADD): Likewise.
26257         * modules/uniconv/u8-conv-to-enc-tests
26258         (test_u8_conv_to_enc_LDADD): Likewise.
26259         * modules/uniconv/u8-strconv-from-enc-tests
26260         (test_u8_strconv_from_enc_LDADD): Likewise.
26261         * modules/uniconv/u8-strconv-to-enc-tests
26262         (test_u8_strconv_to_enc_LDADD): Likewise.
26263
26264 2007-10-22  Bruno Haible  <bruno@clisp.org>
26265
26266         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
26267         size.
26268
26269 2007-10-22  Eric Blake  <ebb9@byu.net>
26270
26271         Tweak x*printf documentation.
26272         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
26273         variable name and comments.
26274         Suggested by Bruno Haible.
26275
26276 2007-10-22  Bruno Haible  <bruno@clisp.org>
26277
26278         * lib/acl.c (copy_acl): Fix file name in comment.
26279
26280 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26281
26282         Fix Tru64 problem with stdbool.h.
26283         * lib/stdbool.in.h (false, true):
26284         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
26285         Don't declare as an enum in this situation; it runs afoul of Tru64.
26286         Problem reported by Steven M. Schweda in
26287         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
26288
26289 2007-10-22  Eric Blake  <ebb9@byu.net>
26290
26291         Also wrap vf?printf.
26292         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
26293         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
26294         (xvprintf, xvfprintf): New functions.
26295
26296 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26297
26298         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
26299         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
26300
26301         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
26302         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
26303
26304 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
26305
26306         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
26307         by Bruno Haible.
26308
26309 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26310
26311         * lib/getloadavg.c
26312         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
26313         Undef `sys' after including sys/table.h, for Tru64 4.0D.
26314
26315         * tests/test-i-ring.c: Work for C89.
26316
26317 2007-10-22  Bruno Haible  <bruno@clisp.org>
26318
26319         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
26320         -1u, in preprocessor expression, so that we don't test for the bug
26321         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
26322         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
26323
26324 2007-10-22  Eric Blake  <ebb9@byu.net>
26325
26326         * tests/test-yesno.sh: Silence stderr during test.
26327
26328 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26329
26330         * modules/crypto/gc-camellia: New file.
26331
26332         * m4/gc-camellia.m4: New file.
26333
26334         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
26335
26336         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
26337
26338 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26339
26340         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
26341         --help to stdout.  Reported by sms@antinode.org (Steven
26342         M. Schweda).
26343
26344 2007-10-22  Simon Josefsson  <simon@josefsson.org>
26345
26346         * users.txt: Fix link to libksba.
26347
26348 2007-10-21  Ben Pfaff  <blp@gnu.org>
26349
26350         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
26351         round.c roundf implementation that depends on floorf and ceilf to
26352         be tested unconditionally.
26353
26354 2007-10-21  Ben Pfaff  <blp@gnu.org>
26355
26356         * m4/check-libm-func.m4: Removed.
26357         * m4/check-math-lib.m4: New file.
26358         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
26359         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
26360         definition and lack of AC_LIBOBJ([roundf]).
26361         * m4/roundl.m4: Ditto, and similarly for roundl.
26362         * modules/round: Reference new m4 file.
26363         * modules/roundf: Ditto.
26364         * modules/roundl: Ditto.
26365         * tests/test-round2.c (main): Use ROUND instead of round.
26366         Bug report from Bruno Haible.
26367
26368 2007-10-21  Bruno Haible  <bruno@clisp.org>
26369
26370         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
26371         context.
26372
26373 2007-10-21  Bruno Haible  <bruno@clisp.org>
26374
26375         * tests/test-wcwidth.c (main): Allow negative result for some control
26376         characters.
26377
26378         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
26379         Needed on OSF/1 5.1.
26380
26381 2007-10-21  Bruno Haible  <bruno@clisp.org>
26382
26383         * tests/test-floorf1.c: Include isnanf.h.
26384         (main): Use isnanf() instead of isnan().
26385         * tests/test-ceilf1.c: Include isnanf.h.
26386         (main): Use isnanf() instead of isnan().
26387         * tests/test-truncf1.c: Include isnanf.h.
26388         (main): Use isnanf() instead of isnan().
26389         * tests/test-roundf1.c: Include isnanf.h.
26390         (main): Use isnanf() instead of isnan().
26391
26392 2007-10-21  Eric Blake  <ebb9@byu.net>
26393
26394         * users.txt: Update URL for m4.
26395
26396 2007-10-21  Bruno Haible  <bruno@clisp.org>
26397
26398         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
26399
26400 2007-10-21  Bruno Haible  <bruno@clisp.org>
26401
26402         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
26403         Git's management files if the CVS files are not present.
26404
26405 2007-10-20  Bruno Haible  <bruno@clisp.org>
26406
26407         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
26408         gcc-3.4.x.
26409
26410 2007-10-20  Ben Pfaff  <blp@gnu.org>
26411
26412         * lib/math.in.h: Declare round, roundf, roundl if we are providing
26413         implementations.
26414         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
26415         * lib/round.c: New file.
26416         * lib/roundf.c: New file.
26417         * lib/roundl.c: New file.
26418         * m4/round.m4: New file.
26419         * m4/roundf.m4: New file.
26420         * m4/roundl.m4: New file.
26421         * m4/check-libm-func-m4: New file.
26422         * modules/math: Replace round, roundf, roundl related @VARS@ in
26423         math.in.h.
26424         * modules/round: New file.
26425         * modules/round-tests: New file.
26426         * modules/roundf: New file.
26427         * modules/roundf-tests: New file.
26428         * modules/roundl: New file.
26429         * modules/roundl-tests: New file.
26430         * tests/test-round1.c: New file.
26431         * tests/test-round2.c: New file.
26432         * tests/test-roundf1.c: New file.
26433         * tests/test-roundf2.c: New file.
26434         * tests/test-roundl.c: New file.
26435         * doc/functions/round.texi: Mention round module.
26436         * doc/functions/roundf.texi: Mention roundf module.
26437         * doc/functions/roundl.texi: Mention roundl module.
26438         * MODULES.html.sh: Mention new modules.
26439         Thanks to Bruno Haible for suggestions.
26440
26441 2007-10-20  Jim Meyering  <meyering@redhat.com>
26442
26443         * lib/xprintf.c: Include <config.h> unconditionally.
26444
26445         Change xprintf's license to GPL.
26446         * modules/xprintf (License): s/LGPL/GPL/, since this module
26447         depends on modules (exit and exitfail) which are GPL.
26448         Suggestion from Bruno Haible.
26449
26450         xprintf fixes.
26451         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
26452         Use a clearer diagnostic.
26453         Patch from Bruno Haible.
26454
26455 2007-10-20  Bruno Haible  <bruno@clisp.org>
26456
26457         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
26458         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
26459         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26460
26461 2007-10-20  Bruno Haible  <bruno@clisp.org>
26462
26463         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
26464         precision in the comparison result > x - 1 or similar.
26465         * tests/test-ceilf2.c (correct_result_p): Likewise.
26466         * tests/test-truncf2.c (correct_result_p): Likewise.
26467         * tests/test-trunc2.c (correct_result_p): Likewise.
26468         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26469
26470 2007-10-20  Bruno Haible  <bruno@clisp.org>
26471
26472         * modules/ceil: New file.
26473         * m4/ceil.m4: New file.
26474         * doc/functions/ceil.texi: Mention the 'ceil' module.
26475
26476 2007-10-20  Bruno Haible  <bruno@clisp.org>
26477
26478         * modules/floor: New file.
26479         * m4/floor.m4: New file.
26480         * doc/functions/floor.texi: Mention the 'floor' module.
26481
26482 2007-10-20  Bruno Haible  <bruno@clisp.org>
26483
26484         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
26485         of %a.
26486         * modules/floorf-tests (Depends-on): Likewise.
26487         * modules/truncf-tests (Depends-on): Likewise.
26488         * modules/trunc-tests (Depends-on): Likewise.
26489         Reported by Ben Pfaff.
26490
26491 2007-10-19  Jim Meyering  <meyering@redhat.com>
26492
26493         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
26494         Don't bother testing specific errno values.  Just test ferror.
26495
26496         New module: xprintf
26497         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
26498
26499 2007-10-19  Bruno Haible  <bruno@clisp.org>
26500
26501         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
26502         syntax.
26503         * modules/javaexec (Makefile.am): Likewise.
26504         * modules/relocatable-prog (Makefile.am): Likewise.
26505         Suggested by Jim Meyering.
26506
26507 2007-10-18  Bruno Haible  <bruno@clisp.org>
26508
26509         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
26510         Reported by Jim Meyering.
26511
26512 2007-10-18  Eric Blake  <ebb9@byu.net>
26513
26514         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
26515
26516 2007-10-18  Bruno Haible  <bruno@clisp.org>
26517
26518         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
26519         the format string into writable memory. Needed in Fortify conditions.
26520
26521 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
26522             Bruno Haible  <bruno@clisp.org>
26523
26524         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
26525         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
26526         * modules/trim (Depends-on): Add mbchar.
26527         (configure.ac): Add gl_FUNC_MBRTOWC.
26528         (Makefile.am): Augment lib_SOURCES.
26529
26530 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
26531
26532         Modify glob.c to use fstatat and dirfd, to simplify it.
26533         Suggested by Eric Blake.
26534         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
26535         Don't include <stdbool.h>; not used.
26536         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
26537         (link_exists_p): Simplify implementation, since we can now assume
26538         dirfd and fstatat.
26539         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
26540
26541 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26542
26543         * gnulib-tool (func_get_dependencies): Fix sed script to
26544         match only tests.
26545
26546 2007-10-17  Bruno Haible  <bruno@clisp.org>
26547
26548         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
26549         allow locale names without encoding suffix.
26550         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26551         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26552
26553 2007-10-16  Bruno Haible  <bruno@clisp.org>
26554
26555         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
26556         * lib/getgroups.c (getgroups): Likewise.
26557         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
26558
26559 2007-10-16  Bruno Haible  <bruno@clisp.org>
26560
26561         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
26562         * modules/malloc-posix (License): Likewise.
26563         * modules/realloc-posix (License): Likewise.
26564         * modules/calloc-posix (License): Likewise.
26565         * modules/intprops (License): Change from GPL to LGPL, with
26566         Paul Eggert's approval.
26567
26568 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26569
26570         Merge glibc changes into lib/glob.c.
26571
26572         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
26573         2007-10-15 04:59:03 UTC.  Here are the changes:
26574
26575         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
26576
26577         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
26578
26579         * lib/glob.c: Add some branch prediction throughout.
26580
26581         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
26582
26583         [BZ #5103]
26584         * lib/glob.c (glob): Recognize patterns starting \/.
26585
26586         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
26587
26588         [BZ #3996]
26589         * lib/glob.c (attribute_hidden): Define if not defined.
26590         (glob): Unescape dirname, filename or username when needed and not
26591         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
26592         is NULL.  Handle unescaped [ in pattern without closing ].
26593         Don't pass GLOB_CHECK down to recursive glob for directories.
26594         (__glob_pattern_type): New function.
26595         (__glob_pattern_p): Implement using __glob_pattern_type.
26596         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
26597         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
26598         Remove unreachable code.
26599
26600         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
26601
26602         * lib/glob.c (glob_in_dir): Add some comments and asserts to
26603         explain why there are no leaks.
26604
26605         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
26606
26607         [BZ #3253]
26608         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
26609         time, rather allocate increasingly bigger arrays of pointers, if
26610         possible with alloca, if too large with malloc.
26611
26612 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26613
26614         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
26615         Problem reported by H.Merijn Brand in
26616         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
26617         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
26618         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26619
26620 2007-10-15  Bruno Haible  <bruno@clisp.org>
26621
26622         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
26623         with explicit rpl_ prefix.
26624         * lib/fopen.c (fopen): Likewise.
26625         * lib/freopen.c (freopen): Likewise.
26626         * lib/iconv.c (iconv): Likewise.
26627         * lib/iconv_close.c (iconv_close): Likewise.
26628
26629 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26630
26631         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
26632
26633 2007-10-15  Bruno Haible  <bruno@clisp.org>
26634
26635         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
26636         <stddef.h> instead of <stdlib.h> since we only need NULL.
26637         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26638
26639 2007-10-15  Bruno Haible  <bruno@clisp.org>
26640
26641         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
26642         Replace paragraph talking about LIBOBJS.
26643         Reported by Colin Watson <cjwatson@debian.org>.
26644
26645 2007-10-15  Bruno Haible  <bruno@clisp.org>
26646
26647         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
26648         <stdlib.h> before using NULL.
26649
26650 2007-10-15  Simon Josefsson  <simon@josefsson.org>
26651
26652         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
26653         Reported by Albert Chin <china@thewrittenword.com>.
26654
26655 2007-10-14  Bruno Haible  <bruno@clisp.org>
26656
26657         * modules/iconv_open-utf-tests: New file.
26658         * tests/test-iconv-utf.c: New file.
26659
26660         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
26661         * modules/iconv_open-utf: New file.
26662         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
26663         (iconv, iconv_close): New declarations.
26664         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
26665         be defined.
26666         (iconv_open): Add special handling of conversion between UTF-8 and
26667         UTF-{16,32}{BE,LE}.
26668         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
26669         * lib/iconv_close.c: New file.
26670         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
26671         gl_FUNC_ICONV_OPEN.
26672         (gl_FUNC_ICONV_OPEN): Use it.
26673         (gl_FUNC_ICONV_OPEN_UTF): New macro.
26674         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
26675         and REPLACE_ICONV_UTF.
26676         * modules/iconv_open (Depends-on): Add c-strcase.
26677         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
26678         ICONV_CONST.
26679         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
26680
26681 2007-10-13  Albert Chin  <china@thewrittenword.com>
26682             Bruno Haible  <bruno@clisp.org>
26683
26684         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
26685         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
26686
26687 2007-10-13  Bruno Haible  <bruno@clisp.org>
26688
26689         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
26690         defined, use the ISO C99 inline semantics.
26691         * lib/argp.h (ARGP_EI): Likewise.
26692
26693 2007-10-13  Bruno Haible  <bruno@clisp.org>
26694
26695         Handle 'inline' change in gcc 4.3.0.
26696         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
26697         argp_fmtstream_write, argp_fmtstream_set_lmargin,
26698         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
26699         argp_fmtstream_point): Disable 'extern' declaration if the function
26700         definition is going to be provided inline.
26701         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
26702         semantics, not the ISO C99 inline semantics.
26703         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
26704         'extern' declaration if the function definition is going to be provided
26705         inline.
26706         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
26707         the GNU C inline semantics, not the ISO C99 inline semantics. With
26708         GCC 4.2, avoid a warning.
26709
26710 2007-10-13  Bruno Haible  <bruno@clisp.org>
26711
26712         * lib/freading.h (freading): Enable the use of __freading for
26713         glibc >= 2.7.
26714         * lib/freading.c (freading): Likewise.
26715
26716 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
26717
26718         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
26719         "warning: C99 inline functions are not supported; using GNU89".
26720
26721 2007-10-12  Bruno Haible  <bruno@clisp.org>
26722
26723         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
26724         of 2.
26725         * tests/test-ceilf2.c: New file.
26726         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
26727
26728         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
26729         * modules/ceilf-tests: Update.
26730
26731 2007-10-12  Bruno Haible  <bruno@clisp.org>
26732
26733         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
26734         of 2.
26735         * tests/test-floorf2.c: New file.
26736         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
26737
26738         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
26739         * modules/floorf-tests: Update.
26740
26741 2007-10-12  Bruno Haible  <bruno@clisp.org>
26742
26743         * tests/test-trunc2.c: New file.
26744         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
26745
26746         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
26747         * modules/trunc-tests: Update.
26748
26749 2007-10-12  Bruno Haible  <bruno@clisp.org>
26750
26751         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
26752         of 2.
26753         * tests/test-truncf2.c: New file.
26754         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
26755
26756         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
26757         * modules/truncf-tests: Update.
26758
26759 2007-10-11  Eric Blake  <ebb9@byu.net>
26760
26761         Don't claim strerror is broken on Interix.
26762         * doc/functions/strerror.texi (strerror): Known broken systems are
26763         now Solaris 8, and not Interix.
26764         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
26765         Interix on cross-compile.
26766         Reported by Martin Koeppe in
26767         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
26768
26769 2007-10-11  Bruno Haible  <bruno@clisp.org>
26770
26771         * modules/i-ring-tests: New file.
26772         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
26773         instead of assert.
26774
26775 2007-10-11  Bruno Haible  <bruno@clisp.org>
26776
26777         * modules/filenamecat-tests: New file.
26778         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
26779         * lib/filenamecat.c: Remove test code.
26780
26781 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26782
26783         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
26784
26785         * lib/strerror.c: Include <string.h> always, to test interface,
26786         and to remove the need for the dummy.
26787         Include intprops.h to compute width instead of doing it ourselves
26788         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
26789         (strerror): Define it to return NULL if there's no system strerror.
26790         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
26791         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
26792         ancient pre-strerror Unix systems well any more.  Saying "unknown
26793         system error" is enough.
26794         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
26795         simpler strerror.c implementation.
26796         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
26797         Simplify the tests to reflect the simpler strerror implementation.
26798         * modules/strerror (Depends-on): Add intprops.
26799
26800 2007-10-09  Eric Blake  <ebb9@byu.net>
26801
26802         Silence test-fpending.
26803         * modules/fpending-tests (Files): Add wrapper script.
26804         * tests/test-fpending.sh: New file.
26805
26806 2007-10-09  Bruno Haible  <bruno@clisp.org>
26807
26808         * MODULES.html.sh (func_module): Don't create a hyperlink for
26809         function names like 'printf_frexp'.
26810         (Misc): Add crc, memxor.
26811         (Characteristics of floating types): New section.
26812         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
26813         isnanf-nolibm, signbit, trunc, truncf, truncl.
26814         (Enhancements for ISO C 99 functions): New subsection Input/output.
26815         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
26816         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
26817         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
26818         (Compatibility checks for POSIX:2001 functions): Add clock-time.
26819         (Enhancements for POSIX:2001 functions): Add chdir-long.
26820         (File system functions): Add areadlink, chdir-safer, read-file.
26821         Remove cycle-check.
26822         (File system as inode set): New section.
26823         (Date and time): Add gethrxtime.
26824         (Multithreading): Add openmp.
26825         (Internationalization functions): Add localename.
26826         (Unicode string functions): Add unistr/u*-mbsnlen.
26827         (Support for maintaining and releasing projects): Add git-version-gen.
26828         (Lone files): Remove directories.
26829
26830 2007-10-08  Ben Pfaff  <blp@gnu.org>
26831
26832         * lib/xmalloca.h: Fix typo in comment.
26833
26834 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26835
26836         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
26837         when avoiding problems with integer overflow.  Use a portable test
26838         instead.
26839
26840 2007-10-08  Simon Josefsson  <simon@josefsson.org>
26841
26842         * modules/dummy (License): Change to LGPLv2+.
26843         * modules/float (License): Likewise
26844         * modules/realloc (License): Likewise
26845         * modules/stdlib (License): Likewise
26846
26847 2007-10-07  Bruno Haible  <bruno@clisp.org>
26848
26849         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
26850         * floor.c (TWO_MANT_DIG): Likewise.
26851         * ceil.c (TWO_MANT_DIG): Likewise.
26852         Reported by Ben Pfaff.
26853
26854 2007-10-07  Bruno Haible  <bruno@clisp.org>
26855
26856         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
26857         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
26858         * lib/frexp.c (FUNC): Likewise.
26859         * lib/printf-frexp.h (printf_frexp): Likewise.
26860         * lib/printf-frexpl.h (printf_frexpl): Likewise.
26861         * lib/printf-frexp.c (FUNC): Likewise.
26862         Suggested by Jim Meyering.
26863
26864 2007-10-07  Jim Meyering  <meyering@redhat.com>
26865
26866         Make xnanosleep's integer overflow test more robust.
26867         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
26868         so that gcc-4.3.0 doesn't optimize away this test for overflow.
26869
26870 2007-10-07  Bruno Haible  <bruno@clisp.org>
26871
26872         * NEWS: Mention the license change.
26873
26874         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
26875         abbreviations in the modules files.
26876
26877         Change copyright notice from GPLv2+ to GPLv3+.
26878         * README: Change copyright notice.
26879         * MODULES.html.sh: Likewise.
26880         * build-aux/bootstrap.conf: Likewise.
26881         * build-aux/config.libpath: Likewise.
26882         * build-aux/csharpcomp.sh.in: Likewise.
26883         * build-aux/csharpexec.sh.in: Likewise.
26884         * build-aux/install-reloc: Likewise.
26885         * build-aux/javacomp.sh.in: Likewise.
26886         * build-aux/javaexec.sh.in: Likewise.
26887         * build-aux/ldd.sh.in: Likewise.
26888         * build-aux/reloc-ldflags: Likewise.
26889         * build-aux/relocatable.sh.in: Likewise.
26890         * build-aux/x-to-1.in: Likewise.
26891         * check-module: Likewise.
26892         * config/srclistvars.sh: Likewise.
26893         * gnulib-tool: Likewise.
26894         * lib/acl-internal.h: Likewise.
26895         * lib/acl.c: Likewise.
26896         * lib/acl.h: Likewise.
26897         * lib/acl_entries.c: Likewise.
26898         * lib/areadlink-with-size.c: Likewise.
26899         * lib/areadlink.c: Likewise.
26900         * lib/areadlink.h: Likewise.
26901         * lib/argmatch.c: Likewise.
26902         * lib/argmatch.h: Likewise.
26903         * lib/argp-ba.c: Likewise.
26904         * lib/argp-eexst.c: Likewise.
26905         * lib/argp-fmtstream.c: Likewise.
26906         * lib/argp-fmtstream.h: Likewise.
26907         * lib/argp-fs-xinl.c: Likewise.
26908         * lib/argp-help.c: Likewise.
26909         * lib/argp-namefrob.h: Likewise.
26910         * lib/argp-parse.c: Likewise.
26911         * lib/argp-pin.c: Likewise.
26912         * lib/argp-pv.c: Likewise.
26913         * lib/argp-pvh.c: Likewise.
26914         * lib/argp-xinl.c: Likewise.
26915         * lib/argp.h: Likewise.
26916         * lib/at-func.c: Likewise.
26917         * lib/atanl.c: Likewise.
26918         * lib/backupfile.c: Likewise.
26919         * lib/backupfile.h: Likewise.
26920         * lib/basename.c: Likewise.
26921         * lib/binary-io.h: Likewise.
26922         * lib/byteswap.in.h: Likewise.
26923         * lib/c-stack.c: Likewise.
26924         * lib/c-stack.h: Likewise.
26925         * lib/c-strcasestr.c: Likewise.
26926         * lib/c-strcasestr.h: Likewise.
26927         * lib/c-strstr.c: Likewise.
26928         * lib/c-strstr.h: Likewise.
26929         * lib/c-strtod.c: Likewise.
26930         * lib/calloc.c: Likewise.
26931         * lib/canon-host.c: Likewise.
26932         * lib/canon-host.h: Likewise.
26933         * lib/canonicalize-lgpl.c: Likewise.
26934         * lib/canonicalize.c: Likewise.
26935         * lib/canonicalize.h: Likewise.
26936         * lib/ceil.c: Likewise.
26937         * lib/ceilf.c: Likewise.
26938         * lib/ceill.c: Likewise.
26939         * lib/chdir-long.c: Likewise.
26940         * lib/chdir-long.h: Likewise.
26941         * lib/chdir-safer.c: Likewise.
26942         * lib/chdir-safer.h: Likewise.
26943         * lib/chown.c: Likewise.
26944         * lib/classpath.c: Likewise.
26945         * lib/classpath.h: Likewise.
26946         * lib/clean-temp.c: Likewise.
26947         * lib/clean-temp.h: Likewise.
26948         * lib/cloexec.c: Likewise.
26949         * lib/close-stream.c: Likewise.
26950         * lib/closein.c: Likewise.
26951         * lib/closein.h: Likewise.
26952         * lib/closeout.c: Likewise.
26953         * lib/closeout.h: Likewise.
26954         * lib/concat-filename.c: Likewise.
26955         * lib/copy-file.c: Likewise.
26956         * lib/copy-file.h: Likewise.
26957         * lib/count-one-bits.h: Likewise.
26958         * lib/crc.c: Likewise.
26959         * lib/crc.h: Likewise.
26960         * lib/creat-safer.c: Likewise.
26961         * lib/csharpcomp.c: Likewise.
26962         * lib/csharpcomp.h: Likewise.
26963         * lib/csharpexec.c: Likewise.
26964         * lib/csharpexec.h: Likewise.
26965         * lib/cycle-check.c: Likewise.
26966         * lib/cycle-check.h: Likewise.
26967         * lib/diacrit.c: Likewise.
26968         * lib/diacrit.h: Likewise.
26969         * lib/diffseq.h: Likewise.
26970         * lib/dirchownmod.c: Likewise.
26971         * lib/dirent.in.h: Likewise.
26972         * lib/dirfd.c: Likewise.
26973         * lib/dirfd.h: Likewise.
26974         * lib/dirname.c: Likewise.
26975         * lib/dirname.h: Likewise.
26976         * lib/dummy.c: Likewise.
26977         * lib/dup-safer.c: Likewise.
26978         * lib/dup2.c: Likewise.
26979         * lib/eealloc.h: Likewise.
26980         * lib/error.c: Likewise.
26981         * lib/error.h: Likewise.
26982         * lib/euidaccess.c: Likewise.
26983         * lib/exclude.c: Likewise.
26984         * lib/exclude.h: Likewise.
26985         * lib/execute.c: Likewise.
26986         * lib/execute.h: Likewise.
26987         * lib/exitfail.c: Likewise.
26988         * lib/exitfail.h: Likewise.
26989         * lib/expl.c: Likewise.
26990         * lib/fatal-signal.c: Likewise.
26991         * lib/fatal-signal.h: Likewise.
26992         * lib/fbufmode.c: Likewise.
26993         * lib/fbufmode.h: Likewise.
26994         * lib/fchdir.c: Likewise.
26995         * lib/fchmodat.c: Likewise.
26996         * lib/fchownat.c: Likewise.
26997         * lib/fcntl--.h: Likewise.
26998         * lib/fcntl-safer.h: Likewise.
26999         * lib/fcntl.in.h: Likewise.
27000         * lib/fd-safer.c: Likewise.
27001         * lib/fflush.c: Likewise.
27002         * lib/file-has-acl.c: Likewise.
27003         * lib/file-set.c: Likewise.
27004         * lib/file-type.c: Likewise.
27005         * lib/file-type.h: Likewise.
27006         * lib/fileblocks.c: Likewise.
27007         * lib/filemode.c: Likewise.
27008         * lib/filemode.h: Likewise.
27009         * lib/filename.h: Likewise.
27010         * lib/filenamecat.c: Likewise.
27011         * lib/filenamecat.h: Likewise.
27012         * lib/findprog.c: Likewise.
27013         * lib/findprog.h: Likewise.
27014         * lib/float.in.h: Likewise.
27015         * lib/floor.c: Likewise.
27016         * lib/floorf.c: Likewise.
27017         * lib/floorl.c: Likewise.
27018         * lib/fopen-safer.c: Likewise.
27019         * lib/fopen.c: Likewise.
27020         * lib/fpending.c: Likewise.
27021         * lib/fpending.h: Likewise.
27022         * lib/fprintf.c: Likewise.
27023         * lib/fprintftime.h: Likewise.
27024         * lib/fpucw.h: Likewise.
27025         * lib/fpurge.c: Likewise.
27026         * lib/fpurge.h: Likewise.
27027         * lib/freadable.c: Likewise.
27028         * lib/freadable.h: Likewise.
27029         * lib/freadahead.c: Likewise.
27030         * lib/freadahead.h: Likewise.
27031         * lib/freading.c: Likewise.
27032         * lib/freading.h: Likewise.
27033         * lib/free.c: Likewise.
27034         * lib/freopen.c: Likewise.
27035         * lib/frexp.c: Likewise.
27036         * lib/frexpl.c: Likewise.
27037         * lib/fseek.c: Likewise.
27038         * lib/fseterr.c: Likewise.
27039         * lib/fseterr.h: Likewise.
27040         * lib/fstatat.c: Likewise.
27041         * lib/fstrcmp.c: Likewise.
27042         * lib/fstrcmp.h: Likewise.
27043         * lib/fsusage.c: Likewise.
27044         * lib/fsusage.h: Likewise.
27045         * lib/ftell.c: Likewise.
27046         * lib/ftello.c: Likewise.
27047         * lib/fts-cycle.c: Likewise.
27048         * lib/fts.c: Likewise.
27049         * lib/fts_.h: Likewise.
27050         * lib/full-read.c: Likewise.
27051         * lib/full-read.h: Likewise.
27052         * lib/full-write.c: Likewise.
27053         * lib/full-write.h: Likewise.
27054         * lib/fwritable.c: Likewise.
27055         * lib/fwritable.h: Likewise.
27056         * lib/fwriteerror.c: Likewise.
27057         * lib/fwriteerror.h: Likewise.
27058         * lib/fwriting.c: Likewise.
27059         * lib/fwriting.h: Likewise.
27060         * lib/gcd.c: Likewise.
27061         * lib/gcd.h: Likewise.
27062         * lib/getcwd.c: Likewise.
27063         * lib/getdate.h: Likewise.
27064         * lib/getdate.y: Likewise.
27065         * lib/getdomainname.c: Likewise.
27066         * lib/getdomainname.h: Likewise.
27067         * lib/getgroups.c: Likewise.
27068         * lib/gethostname.c: Likewise.
27069         * lib/gethrxtime.c: Likewise.
27070         * lib/gethrxtime.h: Likewise.
27071         * lib/getloadavg.c: Likewise.
27072         * lib/getndelim2.c: Likewise.
27073         * lib/getndelim2.h: Likewise.
27074         * lib/getnline.c: Likewise.
27075         * lib/getnline.h: Likewise.
27076         * lib/getopt.c: Likewise.
27077         * lib/getopt.in.h: Likewise.
27078         * lib/getopt1.c: Likewise.
27079         * lib/getopt_int.h: Likewise.
27080         * lib/getpagesize.h: Likewise.
27081         * lib/getsubopt.c: Likewise.
27082         * lib/gettime.c: Likewise.
27083         * lib/getugroups.c: Likewise.
27084         * lib/getugroups.h: Likewise.
27085         * lib/getusershell.c: Likewise.
27086         * lib/gl_anyavltree_list1.h: Likewise.
27087         * lib/gl_anyavltree_list2.h: Likewise.
27088         * lib/gl_anyhash_list1.h: Likewise.
27089         * lib/gl_anyhash_list2.h: Likewise.
27090         * lib/gl_anylinked_list1.h: Likewise.
27091         * lib/gl_anylinked_list2.h: Likewise.
27092         * lib/gl_anyrbtree_list1.h: Likewise.
27093         * lib/gl_anyrbtree_list2.h: Likewise.
27094         * lib/gl_anytree_list1.h: Likewise.
27095         * lib/gl_anytree_list2.h: Likewise.
27096         * lib/gl_anytree_oset.h: Likewise.
27097         * lib/gl_anytreehash_list1.h: Likewise.
27098         * lib/gl_anytreehash_list2.h: Likewise.
27099         * lib/gl_array_list.c: Likewise.
27100         * lib/gl_array_list.h: Likewise.
27101         * lib/gl_array_oset.c: Likewise.
27102         * lib/gl_array_oset.h: Likewise.
27103         * lib/gl_avltree_list.c: Likewise.
27104         * lib/gl_avltree_list.h: Likewise.
27105         * lib/gl_avltree_oset.c: Likewise.
27106         * lib/gl_avltree_oset.h: Likewise.
27107         * lib/gl_avltreehash_list.c: Likewise.
27108         * lib/gl_avltreehash_list.h: Likewise.
27109         * lib/gl_carray_list.c: Likewise.
27110         * lib/gl_carray_list.h: Likewise.
27111         * lib/gl_linked_list.c: Likewise.
27112         * lib/gl_linked_list.h: Likewise.
27113         * lib/gl_linkedhash_list.c: Likewise.
27114         * lib/gl_linkedhash_list.h: Likewise.
27115         * lib/gl_list.c: Likewise.
27116         * lib/gl_list.h: Likewise.
27117         * lib/gl_oset.c: Likewise.
27118         * lib/gl_oset.h: Likewise.
27119         * lib/gl_rbtree_list.c: Likewise.
27120         * lib/gl_rbtree_list.h: Likewise.
27121         * lib/gl_rbtree_oset.c: Likewise.
27122         * lib/gl_rbtree_oset.h: Likewise.
27123         * lib/gl_rbtreehash_list.c: Likewise.
27124         * lib/gl_rbtreehash_list.h: Likewise.
27125         * lib/gl_sublist.c: Likewise.
27126         * lib/gl_sublist.h: Likewise.
27127         * lib/group-member.c: Likewise.
27128         * lib/group-member.h: Likewise.
27129         * lib/hard-locale.c: Likewise.
27130         * lib/hard-locale.h: Likewise.
27131         * lib/hash-pjw.c: Likewise.
27132         * lib/hash-pjw.h: Likewise.
27133         * lib/hash-triple.c: Likewise.
27134         * lib/hash.c: Likewise.
27135         * lib/hash.h: Likewise.
27136         * lib/human.c: Likewise.
27137         * lib/human.h: Likewise.
27138         * lib/i-ring.c: Likewise.
27139         * lib/i-ring.h: Likewise.
27140         * lib/idcache.c: Likewise.
27141         * lib/imaxabs.c: Likewise.
27142         * lib/imaxdiv.c: Likewise.
27143         * lib/inet_pton.c: Likewise.
27144         * lib/inet_pton.h: Likewise.
27145         * lib/intprops.h: Likewise.
27146         * lib/inttostr.c: Likewise.
27147         * lib/inttostr.h: Likewise.
27148         * lib/inttypes.in.h: Likewise.
27149         * lib/isapipe.c: Likewise.
27150         * lib/isdir.c: Likewise.
27151         * lib/isnan.c: Likewise.
27152         * lib/isnan.h: Likewise.
27153         * lib/isnanf.c: Likewise.
27154         * lib/isnanf.h: Likewise.
27155         * lib/isnanl-nolibm.h: Likewise.
27156         * lib/isnanl.c: Likewise.
27157         * lib/isnanl.h: Likewise.
27158         * lib/javacomp.c: Likewise.
27159         * lib/javacomp.h: Likewise.
27160         * lib/javaexec.c: Likewise.
27161         * lib/javaexec.h: Likewise.
27162         * lib/javaversion.c: Likewise.
27163         * lib/javaversion.h: Likewise.
27164         * lib/javaversion.java: Likewise.
27165         * lib/lbrkprop.h: Likewise.
27166         * lib/lchmod.h: Likewise.
27167         * lib/lchown.c: Likewise.
27168         * lib/ldexpl.c: Likewise.
27169         * lib/linebreak.c: Likewise.
27170         * lib/linebreak.h: Likewise.
27171         * lib/linebuffer.c: Likewise.
27172         * lib/linebuffer.h: Likewise.
27173         * lib/locale.in.h: Likewise.
27174         * lib/logl.c: Likewise.
27175         * lib/long-options.c: Likewise.
27176         * lib/long-options.h: Likewise.
27177         * lib/lstat.c: Likewise.
27178         * lib/lstat.h: Likewise.
27179         * lib/math.in.h: Likewise.
27180         * lib/mbchar.c: Likewise.
27181         * lib/mbchar.h: Likewise.
27182         * lib/mbfile.h: Likewise.
27183         * lib/mbiter.h: Likewise.
27184         * lib/mbscasecmp.c: Likewise.
27185         * lib/mbscasestr.c: Likewise.
27186         * lib/mbschr.c: Likewise.
27187         * lib/mbscspn.c: Likewise.
27188         * lib/mbslen.c: Likewise.
27189         * lib/mbsncasecmp.c: Likewise.
27190         * lib/mbsnlen.c: Likewise.
27191         * lib/mbspbrk.c: Likewise.
27192         * lib/mbspcasecmp.c: Likewise.
27193         * lib/mbsrchr.c: Likewise.
27194         * lib/mbssep.c: Likewise.
27195         * lib/mbsspn.c: Likewise.
27196         * lib/mbsstr.c: Likewise.
27197         * lib/mbstok_r.c: Likewise.
27198         * lib/mbswidth.c: Likewise.
27199         * lib/mbswidth.h: Likewise.
27200         * lib/mbuiter.h: Likewise.
27201         * lib/memcasecmp.c: Likewise.
27202         * lib/memcasecmp.h: Likewise.
27203         * lib/memchr.c: Likewise.
27204         * lib/memcmp.c: Likewise.
27205         * lib/memcoll.c: Likewise.
27206         * lib/memcoll.h: Likewise.
27207         * lib/memcpy.c: Likewise.
27208         * lib/memrchr.c: Likewise.
27209         * lib/mkancesdirs.c: Likewise.
27210         * lib/mkdir-p.c: Likewise.
27211         * lib/mkdir-p.h: Likewise.
27212         * lib/mkdir.c: Likewise.
27213         * lib/mkdirat.c: Likewise.
27214         * lib/mkdtemp.c: Likewise.
27215         * lib/mkstemp-safer.c: Likewise.
27216         * lib/mkstemp.c: Likewise.
27217         * lib/modechange.c: Likewise.
27218         * lib/modechange.h: Likewise.
27219         * lib/mountlist.c: Likewise.
27220         * lib/mountlist.h: Likewise.
27221         * lib/mpsort.c: Likewise.
27222         * lib/nanosleep.c: Likewise.
27223         * lib/obstack.c: Likewise.
27224         * lib/obstack.h: Likewise.
27225         * lib/open-safer.c: Likewise.
27226         * lib/open.c: Likewise.
27227         * lib/openat-die.c: Likewise.
27228         * lib/openat-priv.h: Likewise.
27229         * lib/openat-proc.c: Likewise.
27230         * lib/openat.c: Likewise.
27231         * lib/openat.h: Likewise.
27232         * lib/pagealign_alloc.c: Likewise.
27233         * lib/pagealign_alloc.h: Likewise.
27234         * lib/physmem.c: Likewise.
27235         * lib/physmem.h: Likewise.
27236         * lib/pipe-safer.c: Likewise.
27237         * lib/pipe.c: Likewise.
27238         * lib/pipe.h: Likewise.
27239         * lib/posixtm.c: Likewise.
27240         * lib/posixtm.h: Likewise.
27241         * lib/posixver.c: Likewise.
27242         * lib/printf-frexp.c: Likewise.
27243         * lib/printf-frexp.h: Likewise.
27244         * lib/printf-frexpl.c: Likewise.
27245         * lib/printf-frexpl.h: Likewise.
27246         * lib/printf.c: Likewise.
27247         * lib/progname.c: Likewise.
27248         * lib/progname.h: Likewise.
27249         * lib/progreloc.c: Likewise.
27250         * lib/putenv.c: Likewise.
27251         * lib/quote.c: Likewise.
27252         * lib/quote.h: Likewise.
27253         * lib/quotearg.c: Likewise.
27254         * lib/quotearg.h: Likewise.
27255         * lib/raise.c: Likewise.
27256         * lib/readline.c: Likewise.
27257         * lib/readline.h: Likewise.
27258         * lib/readlink.c: Likewise.
27259         * lib/readtokens.c: Likewise.
27260         * lib/readtokens.h: Likewise.
27261         * lib/readtokens0.c: Likewise.
27262         * lib/readtokens0.h: Likewise.
27263         * lib/readutmp.c: Likewise.
27264         * lib/readutmp.h: Likewise.
27265         * lib/realloc.c: Likewise.
27266         * lib/relocwrapper.c: Likewise.
27267         * lib/rename-dest-slash.c: Likewise.
27268         * lib/rename.c: Likewise.
27269         * lib/rmdir.c: Likewise.
27270         * lib/rpmatch.c: Likewise.
27271         * lib/safe-read.c: Likewise.
27272         * lib/safe-read.h: Likewise.
27273         * lib/safe-write.c: Likewise.
27274         * lib/safe-write.h: Likewise.
27275         * lib/same-inode.h: Likewise.
27276         * lib/same.c: Likewise.
27277         * lib/same.h: Likewise.
27278         * lib/save-cwd.c: Likewise.
27279         * lib/save-cwd.h: Likewise.
27280         * lib/savedir.c: Likewise.
27281         * lib/savedir.h: Likewise.
27282         * lib/savewd.c: Likewise.
27283         * lib/savewd.h: Likewise.
27284         * lib/search.in.h: Likewise.
27285         * lib/setenv.c: Likewise.
27286         * lib/setenv.h: Likewise.
27287         * lib/settime.c: Likewise.
27288         * lib/sh-quote.c: Likewise.
27289         * lib/sh-quote.h: Likewise.
27290         * lib/sig2str.c: Likewise.
27291         * lib/sig2str.h: Likewise.
27292         * lib/signal.in.h: Likewise.
27293         * lib/signbitd.c: Likewise.
27294         * lib/signbitf.c: Likewise.
27295         * lib/signbitl.c: Likewise.
27296         * lib/sigprocmask.c: Likewise.
27297         * lib/sincosl.c: Likewise.
27298         * lib/sleep.c: Likewise.
27299         * lib/sprintf.c: Likewise.
27300         * lib/sqrtl.c: Likewise.
27301         * lib/stat-time.h: Likewise.
27302         * lib/stdio--.h: Likewise.
27303         * lib/stdio-safer.h: Likewise.
27304         * lib/stdlib--.h: Likewise.
27305         * lib/stdlib-safer.h: Likewise.
27306         * lib/stdlib.in.h: Likewise.
27307         * lib/stpcpy.c: Likewise.
27308         * lib/stpncpy.c: Likewise.
27309         * lib/strchrnul.c: Likewise.
27310         * lib/strcspn.c: Likewise.
27311         * lib/strerror.c: Likewise.
27312         * lib/strftime.c: Likewise.
27313         * lib/strftime.h: Likewise.
27314         * lib/striconveh.c: Likewise.
27315         * lib/striconveh.h: Likewise.
27316         * lib/striconveha.c: Likewise.
27317         * lib/striconveha.h: Likewise.
27318         * lib/stripslash.c: Likewise.
27319         * lib/strnlen1.c: Likewise.
27320         * lib/strnlen1.h: Likewise.
27321         * lib/strtod.c: Likewise.
27322         * lib/strtoimax.c: Likewise.
27323         * lib/strtok_r.c: Likewise.
27324         * lib/strtol.c: Likewise.
27325         * lib/strtoll.c: Likewise.
27326         * lib/strtoul.c: Likewise.
27327         * lib/strtoull.c: Likewise.
27328         * lib/sysexits.in.h: Likewise.
27329         * lib/tempname.c: Likewise.
27330         * lib/tempname.h: Likewise.
27331         * lib/timespec.h: Likewise.
27332         * lib/tls.c: Likewise.
27333         * lib/tls.h: Likewise.
27334         * lib/tmpdir.c: Likewise.
27335         * lib/tmpdir.h: Likewise.
27336         * lib/tmpfile-safer.c: Likewise.
27337         * lib/tmpfile.c: Likewise.
27338         * lib/trigl.c: Likewise.
27339         * lib/trigl.h: Likewise.
27340         * lib/trim.c: Likewise.
27341         * lib/trim.h: Likewise.
27342         * lib/trunc.c: Likewise.
27343         * lib/truncf.c: Likewise.
27344         * lib/truncl.c: Likewise.
27345         * lib/tsearch.c: Likewise.
27346         * lib/unicodeio.c: Likewise.
27347         * lib/unicodeio.h: Likewise.
27348         * lib/unistd--.h: Likewise.
27349         * lib/unistd-safer.h: Likewise.
27350         * lib/unistdio/ulc-fprintf.c: Likewise.
27351         * lib/unistdio/ulc-vfprintf.c: Likewise.
27352         * lib/unlinkdir.c: Likewise.
27353         * lib/unlinkdir.h: Likewise.
27354         * lib/unlocked-io.h: Likewise.
27355         * lib/unsetenv.c: Likewise.
27356         * lib/userspec.c: Likewise.
27357         * lib/utime.c: Likewise.
27358         * lib/utimecmp.c: Likewise.
27359         * lib/utimecmp.h: Likewise.
27360         * lib/utimens.c: Likewise.
27361         * lib/verify.h: Likewise.
27362         * lib/verror.c: Likewise.
27363         * lib/verror.h: Likewise.
27364         * lib/version-etc-fsf.c: Likewise.
27365         * lib/version-etc.c: Likewise.
27366         * lib/version-etc.h: Likewise.
27367         * lib/vfprintf.c: Likewise.
27368         * lib/vprintf.c: Likewise.
27369         * lib/vsprintf.c: Likewise.
27370         * lib/w32spawn.h: Likewise.
27371         * lib/wait-process.c: Likewise.
27372         * lib/wait-process.h: Likewise.
27373         * lib/wcwidth.c: Likewise.
27374         * lib/write-any-file.c: Likewise.
27375         * lib/xalloc-die.c: Likewise.
27376         * lib/xalloc.h: Likewise.
27377         * lib/xasprintf.c: Likewise.
27378         * lib/xgetcwd.c: Likewise.
27379         * lib/xgetcwd.h: Likewise.
27380         * lib/xgetdomainname.c: Likewise.
27381         * lib/xgetdomainname.h: Likewise.
27382         * lib/xgethostname.c: Likewise.
27383         * lib/xmalloc.c: Likewise.
27384         * lib/xmalloca.c: Likewise.
27385         * lib/xmalloca.h: Likewise.
27386         * lib/xmemcoll.c: Likewise.
27387         * lib/xnanosleep.c: Likewise.
27388         * lib/xreadlink.c: Likewise.
27389         * lib/xreadlink.h: Likewise.
27390         * lib/xsetenv.c: Likewise.
27391         * lib/xsetenv.h: Likewise.
27392         * lib/xstriconv.c: Likewise.
27393         * lib/xstriconv.h: Likewise.
27394         * lib/xstrndup.c: Likewise.
27395         * lib/xstrndup.h: Likewise.
27396         * lib/xstrtod.c: Likewise.
27397         * lib/xstrtod.h: Likewise.
27398         * lib/xstrtol-error.c: Likewise.
27399         * lib/xstrtol.c: Likewise.
27400         * lib/xstrtol.h: Likewise.
27401         * lib/xtime.h: Likewise.
27402         * lib/xvasprintf.c: Likewise.
27403         * lib/xvasprintf.h: Likewise.
27404         * lib/yesno.c: Likewise.
27405         * lib/yesno.h: Likewise.
27406         * posix-modules: Likewise.
27407         * tests/test-alloca-opt.c: Likewise.
27408         * tests/test-arcfour.c: Likewise.
27409         * tests/test-arctwo.c: Likewise.
27410         * tests/test-argmatch.c: Likewise.
27411         * tests/test-argp-2.sh: Likewise.
27412         * tests/test-argp.c: Likewise.
27413         * tests/test-arpa_inet.c: Likewise.
27414         * tests/test-array_list.c: Likewise.
27415         * tests/test-array_oset.c: Likewise.
27416         * tests/test-atexit.c: Likewise.
27417         * tests/test-avltree_list.c: Likewise.
27418         * tests/test-avltree_oset.c: Likewise.
27419         * tests/test-avltreehash_list.c: Likewise.
27420         * tests/test-base64.c: Likewise.
27421         * tests/test-binary-io.c: Likewise.
27422         * tests/test-byteswap.c: Likewise.
27423         * tests/test-c-ctype.c: Likewise.
27424         * tests/test-c-strcasecmp.c: Likewise.
27425         * tests/test-c-strcasestr.c: Likewise.
27426         * tests/test-c-strncasecmp.c: Likewise.
27427         * tests/test-c-strstr.c: Likewise.
27428         * tests/test-canonicalize-lgpl.c: Likewise.
27429         * tests/test-canonicalize.c: Likewise.
27430         * tests/test-carray_list.c: Likewise.
27431         * tests/test-ceilf.c: Likewise.
27432         * tests/test-ceill.c: Likewise.
27433         * tests/test-count-one-bits.c: Likewise.
27434         * tests/test-crc.c: Likewise.
27435         * tests/test-dirname.c: Likewise.
27436         * tests/test-fbufmode.c: Likewise.
27437         * tests/test-fcntl.c: Likewise.
27438         * tests/test-fflush.c: Likewise.
27439         * tests/test-floorf.c: Likewise.
27440         * tests/test-floorl.c: Likewise.
27441         * tests/test-fopen.c: Likewise.
27442         * tests/test-fprintf-posix.c: Likewise.
27443         * tests/test-fprintf-posix.h: Likewise.
27444         * tests/test-fpurge.c: Likewise.
27445         * tests/test-freadable.c: Likewise.
27446         * tests/test-freadahead.c: Likewise.
27447         * tests/test-freading.c: Likewise.
27448         * tests/test-freopen.c: Likewise.
27449         * tests/test-frexp.c: Likewise.
27450         * tests/test-frexpl.c: Likewise.
27451         * tests/test-fseek.c: Likewise.
27452         * tests/test-fseeko.c: Likewise.
27453         * tests/test-fseterr.c: Likewise.
27454         * tests/test-fstrcmp.c: Likewise.
27455         * tests/test-ftell.c: Likewise.
27456         * tests/test-ftello.c: Likewise.
27457         * tests/test-fwritable.c: Likewise.
27458         * tests/test-fwriting.c: Likewise.
27459         * tests/test-getaddrinfo.c: Likewise.
27460         * tests/test-getpass.c: Likewise.
27461         * tests/test-gettimeofday.c: Likewise.
27462         * tests/test-hmac-md5.c: Likewise.
27463         * tests/test-hmac-sha1.c: Likewise.
27464         * tests/test-iconv.c: Likewise.
27465         * tests/test-iconvme.c: Likewise.
27466         * tests/test-inttypes.c: Likewise.
27467         * tests/test-isnan.c: Likewise.
27468         * tests/test-isnanf.c: Likewise.
27469         * tests/test-isnanl-nolibm.c: Likewise.
27470         * tests/test-isnanl.c: Likewise.
27471         * tests/test-isnanl.h: Likewise.
27472         * tests/test-ldexpl.c: Likewise.
27473         * tests/test-linked_list.c: Likewise.
27474         * tests/test-linkedhash_list.c: Likewise.
27475         * tests/test-locale.c: Likewise.
27476         * tests/test-localename.c: Likewise.
27477         * tests/test-lock.c: Likewise.
27478         * tests/test-lseek.c: Likewise.
27479         * tests/test-malloca.c: Likewise.
27480         * tests/test-math.c: Likewise.
27481         * tests/test-mbscasecmp.c: Likewise.
27482         * tests/test-mbscasestr1.c: Likewise.
27483         * tests/test-mbscasestr2.c: Likewise.
27484         * tests/test-mbscasestr3.c: Likewise.
27485         * tests/test-mbscasestr4.c: Likewise.
27486         * tests/test-mbschr.c: Likewise.
27487         * tests/test-mbscspn.c: Likewise.
27488         * tests/test-mbsncasecmp.c: Likewise.
27489         * tests/test-mbspbrk.c: Likewise.
27490         * tests/test-mbspcasecmp.c: Likewise.
27491         * tests/test-mbsrchr.c: Likewise.
27492         * tests/test-mbsspn.c: Likewise.
27493         * tests/test-mbsstr1.c: Likewise.
27494         * tests/test-mbsstr2.c: Likewise.
27495         * tests/test-mbsstr3.c: Likewise.
27496         * tests/test-md5.c: Likewise.
27497         * tests/test-memmem.c: Likewise.
27498         * tests/test-netinet_in.c: Likewise.
27499         * tests/test-open.c: Likewise.
27500         * tests/test-printf-frexp.c: Likewise.
27501         * tests/test-printf-frexpl.c: Likewise.
27502         * tests/test-printf-posix.c: Likewise.
27503         * tests/test-printf-posix.h: Likewise.
27504         * tests/test-rbtree_list.c: Likewise.
27505         * tests/test-rbtree_oset.c: Likewise.
27506         * tests/test-rbtreehash_list.c: Likewise.
27507         * tests/test-read-file.c: Likewise.
27508         * tests/test-rijndael.c: Likewise.
27509         * tests/test-search.c: Likewise.
27510         * tests/test-signbit.c: Likewise.
27511         * tests/test-sleep.c: Likewise.
27512         * tests/test-snprintf-posix.c: Likewise.
27513         * tests/test-snprintf-posix.h: Likewise.
27514         * tests/test-snprintf.c: Likewise.
27515         * tests/test-sprintf-posix.c: Likewise.
27516         * tests/test-sprintf-posix.h: Likewise.
27517         * tests/test-stat-time.c: Likewise.
27518         * tests/test-stdbool.c: Likewise.
27519         * tests/test-stdint.c: Likewise.
27520         * tests/test-stdio.c: Likewise.
27521         * tests/test-stdlib.c: Likewise.
27522         * tests/test-stpncpy.c: Likewise.
27523         * tests/test-strcasestr.c: Likewise.
27524         * tests/test-striconv.c: Likewise.
27525         * tests/test-striconveh.c: Likewise.
27526         * tests/test-striconveha.c: Likewise.
27527         * tests/test-string.c: Likewise.
27528         * tests/test-sys_select.c: Likewise.
27529         * tests/test-sys_socket.c: Likewise.
27530         * tests/test-sys_stat.c: Likewise.
27531         * tests/test-sys_time.c: Likewise.
27532         * tests/test-sysexits.c: Likewise.
27533         * tests/test-time.c: Likewise.
27534         * tests/test-tls.c: Likewise.
27535         * tests/test-trunc.c: Likewise.
27536         * tests/test-truncf.c: Likewise.
27537         * tests/test-truncl.c: Likewise.
27538         * tests/test-unistd.c: Likewise.
27539         * tests/test-vasnprintf-posix.c: Likewise.
27540         * tests/test-vasnprintf-posix2.c: Likewise.
27541         * tests/test-vasnprintf.c: Likewise.
27542         * tests/test-vasprintf-posix.c: Likewise.
27543         * tests/test-vasprintf.c: Likewise.
27544         * tests/test-verify.c: Likewise.
27545         * tests/test-vfprintf-posix.c: Likewise.
27546         * tests/test-vprintf-posix.c: Likewise.
27547         * tests/test-vsnprintf-posix.c: Likewise.
27548         * tests/test-vsnprintf.c: Likewise.
27549         * tests/test-vsprintf-posix.c: Likewise.
27550         * tests/test-wchar.c: Likewise.
27551         * tests/test-wctype.c: Likewise.
27552         * tests/test-wcwidth.c: Likewise.
27553         * tests/test-xstrtol.c: Likewise.
27554         * tests/test-xvasprintf.c: Likewise.
27555         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27556         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27557         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27558         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27559         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27560         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27561         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27562         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27563         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27564         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27565         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27566         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27567         * tests/uniname/test-uninames.c: Likewise.
27568         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27569         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
27570         * tests/unistdio/test-u16-printf1.h: Likewise.
27571         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27572         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27573         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27574         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27575         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27576         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27577         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27578         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
27579         * tests/unistdio/test-u32-printf1.h: Likewise.
27580         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27581         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27582         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27583         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27584         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27585         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27586         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27587         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
27588         * tests/unistdio/test-u8-printf1.h: Likewise.
27589         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27590         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27591         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27592         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27593         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27594         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27595         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27596         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
27597         * tests/unistdio/test-ulc-printf1.h: Likewise.
27598         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27599         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27600         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27601         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27602         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27603         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27604         * tests/uniwidth/test-u16-strwidth.c: Likewise.
27605         * tests/uniwidth/test-u16-width.c: Likewise.
27606         * tests/uniwidth/test-u32-strwidth.c: Likewise.
27607         * tests/uniwidth/test-u32-width.c: Likewise.
27608         * tests/uniwidth/test-u8-strwidth.c: Likewise.
27609         * tests/uniwidth/test-u8-width.c: Likewise.
27610         * tests/uniwidth/test-uc_width.c: Likewise.
27611         * config/srclist-update: Likewise.
27612         (fixlicense): Update to GPLv3+.
27613
27614         Change copyright notice from LGPLv2.1+ to LGPLv3+.
27615         * tests/test-tsearch.c: Change copyright notice.
27616
27617         Change copyright notice from LGPLv2.0+ to LGPLv3+.
27618         * lib/c-strcaseeq.h: Change copyright notice.
27619         * lib/streq.h: Likewise.
27620         * lib/uniconv.h: Likewise.
27621         * lib/uniconv/u-conv-from-enc.h: Likewise.
27622         * lib/uniconv/u-conv-to-enc.h: Likewise.
27623         * lib/uniconv/u-strconv-from-enc.h: Likewise.
27624         * lib/uniconv/u-strconv-to-enc.h: Likewise.
27625         * lib/uniconv/u16-conv-from-enc.c: Likewise.
27626         * lib/uniconv/u16-conv-to-enc.c: Likewise.
27627         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
27628         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
27629         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
27630         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
27631         * lib/uniconv/u32-conv-from-enc.c: Likewise.
27632         * lib/uniconv/u32-conv-to-enc.c: Likewise.
27633         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
27634         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
27635         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
27636         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
27637         * lib/uniconv/u8-conv-from-enc.c: Likewise.
27638         * lib/uniconv/u8-conv-to-enc.c: Likewise.
27639         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
27640         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
27641         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
27642         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
27643         * lib/uniname.h: Likewise.
27644         * lib/uniname/uniname.c: Likewise.
27645         * lib/unistdio.h: Likewise.
27646         * lib/unistdio/u-asnprintf.h: Likewise.
27647         * lib/unistdio/u-asprintf.h: Likewise.
27648         * lib/unistdio/u-printf-args.c: Likewise.
27649         * lib/unistdio/u-printf-args.h: Likewise.
27650         * lib/unistdio/u-printf-parse.h: Likewise.
27651         * lib/unistdio/u-snprintf.h: Likewise.
27652         * lib/unistdio/u-sprintf.h: Likewise.
27653         * lib/unistdio/u-vasprintf.h: Likewise.
27654         * lib/unistdio/u-vsnprintf.h: Likewise.
27655         * lib/unistdio/u-vsprintf.h: Likewise.
27656         * lib/unistdio/u16-asnprintf.c: Likewise.
27657         * lib/unistdio/u16-asprintf.c: Likewise.
27658         * lib/unistdio/u16-printf-parse.c: Likewise.
27659         * lib/unistdio/u16-snprintf.c: Likewise.
27660         * lib/unistdio/u16-sprintf.c: Likewise.
27661         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
27662         * lib/unistdio/u16-u16-asprintf.c: Likewise.
27663         * lib/unistdio/u16-u16-snprintf.c: Likewise.
27664         * lib/unistdio/u16-u16-sprintf.c: Likewise.
27665         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
27666         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
27667         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
27668         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
27669         * lib/unistdio/u16-vasnprintf.c: Likewise.
27670         * lib/unistdio/u16-vasprintf.c: Likewise.
27671         * lib/unistdio/u16-vsnprintf.c: Likewise.
27672         * lib/unistdio/u16-vsprintf.c: Likewise.
27673         * lib/unistdio/u32-asnprintf.c: Likewise.
27674         * lib/unistdio/u32-asprintf.c: Likewise.
27675         * lib/unistdio/u32-printf-parse.c: Likewise.
27676         * lib/unistdio/u32-snprintf.c: Likewise.
27677         * lib/unistdio/u32-sprintf.c: Likewise.
27678         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
27679         * lib/unistdio/u32-u32-asprintf.c: Likewise.
27680         * lib/unistdio/u32-u32-snprintf.c: Likewise.
27681         * lib/unistdio/u32-u32-sprintf.c: Likewise.
27682         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
27683         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
27684         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
27685         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
27686         * lib/unistdio/u32-vasnprintf.c: Likewise.
27687         * lib/unistdio/u32-vasprintf.c: Likewise.
27688         * lib/unistdio/u32-vsnprintf.c: Likewise.
27689         * lib/unistdio/u32-vsprintf.c: Likewise.
27690         * lib/unistdio/u8-asnprintf.c: Likewise.
27691         * lib/unistdio/u8-asprintf.c: Likewise.
27692         * lib/unistdio/u8-printf-parse.c: Likewise.
27693         * lib/unistdio/u8-snprintf.c: Likewise.
27694         * lib/unistdio/u8-sprintf.c: Likewise.
27695         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
27696         * lib/unistdio/u8-u8-asprintf.c: Likewise.
27697         * lib/unistdio/u8-u8-snprintf.c: Likewise.
27698         * lib/unistdio/u8-u8-sprintf.c: Likewise.
27699         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
27700         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
27701         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
27702         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
27703         * lib/unistdio/u8-vasnprintf.c: Likewise.
27704         * lib/unistdio/u8-vasprintf.c: Likewise.
27705         * lib/unistdio/u8-vsnprintf.c: Likewise.
27706         * lib/unistdio/u8-vsprintf.c: Likewise.
27707         * lib/unistdio/ulc-asnprintf.c: Likewise.
27708         * lib/unistdio/ulc-asprintf.c: Likewise.
27709         * lib/unistdio/ulc-printf-parse.c: Likewise.
27710         * lib/unistdio/ulc-snprintf.c: Likewise.
27711         * lib/unistdio/ulc-sprintf.c: Likewise.
27712         * lib/unistdio/ulc-vasnprintf.c: Likewise.
27713         * lib/unistdio/ulc-vasprintf.c: Likewise.
27714         * lib/unistdio/ulc-vsnprintf.c: Likewise.
27715         * lib/unistdio/ulc-vsprintf.c: Likewise.
27716         * lib/unistr.h: Likewise.
27717         * lib/unistr/u-cpy-alloc.h: Likewise.
27718         * lib/unistr/u-cpy.h: Likewise.
27719         * lib/unistr/u-endswith.h: Likewise.
27720         * lib/unistr/u-move.h: Likewise.
27721         * lib/unistr/u-set.h: Likewise.
27722         * lib/unistr/u-startswith.h: Likewise.
27723         * lib/unistr/u-stpcpy.h: Likewise.
27724         * lib/unistr/u-stpncpy.h: Likewise.
27725         * lib/unistr/u-strcat.h: Likewise.
27726         * lib/unistr/u-strcpy.h: Likewise.
27727         * lib/unistr/u-strcspn.h: Likewise.
27728         * lib/unistr/u-strdup.h: Likewise.
27729         * lib/unistr/u-strlen.h: Likewise.
27730         * lib/unistr/u-strncat.h: Likewise.
27731         * lib/unistr/u-strncpy.h: Likewise.
27732         * lib/unistr/u-strnlen.h: Likewise.
27733         * lib/unistr/u-strpbrk.h: Likewise.
27734         * lib/unistr/u-strspn.h: Likewise.
27735         * lib/unistr/u-strstr.h: Likewise.
27736         * lib/unistr/u-strtok.h: Likewise.
27737         * lib/unistr/u16-check.c: Likewise.
27738         * lib/unistr/u16-chr.c: Likewise.
27739         * lib/unistr/u16-cmp.c: Likewise.
27740         * lib/unistr/u16-cpy-alloc.c: Likewise.
27741         * lib/unistr/u16-cpy.c: Likewise.
27742         * lib/unistr/u16-endswith.c: Likewise.
27743         * lib/unistr/u16-mblen.c: Likewise.
27744         * lib/unistr/u16-mbsnlen.c: Likewise.
27745         * lib/unistr/u16-mbtouc-aux.c: Likewise.
27746         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
27747         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
27748         * lib/unistr/u16-mbtouc.c: Likewise.
27749         * lib/unistr/u16-mbtoucr.c: Likewise.
27750         * lib/unistr/u16-move.c: Likewise.
27751         * lib/unistr/u16-next.c: Likewise.
27752         * lib/unistr/u16-prev.c: Likewise.
27753         * lib/unistr/u16-set.c: Likewise.
27754         * lib/unistr/u16-startswith.c: Likewise.
27755         * lib/unistr/u16-stpcpy.c: Likewise.
27756         * lib/unistr/u16-stpncpy.c: Likewise.
27757         * lib/unistr/u16-strcat.c: Likewise.
27758         * lib/unistr/u16-strchr.c: Likewise.
27759         * lib/unistr/u16-strcmp.c: Likewise.
27760         * lib/unistr/u16-strcpy.c: Likewise.
27761         * lib/unistr/u16-strcspn.c: Likewise.
27762         * lib/unistr/u16-strdup.c: Likewise.
27763         * lib/unistr/u16-strlen.c: Likewise.
27764         * lib/unistr/u16-strmblen.c: Likewise.
27765         * lib/unistr/u16-strmbtouc.c: Likewise.
27766         * lib/unistr/u16-strncat.c: Likewise.
27767         * lib/unistr/u16-strncmp.c: Likewise.
27768         * lib/unistr/u16-strncpy.c: Likewise.
27769         * lib/unistr/u16-strnlen.c: Likewise.
27770         * lib/unistr/u16-strpbrk.c: Likewise.
27771         * lib/unistr/u16-strrchr.c: Likewise.
27772         * lib/unistr/u16-strspn.c: Likewise.
27773         * lib/unistr/u16-strstr.c: Likewise.
27774         * lib/unistr/u16-strtok.c: Likewise.
27775         * lib/unistr/u16-to-u32.c: Likewise.
27776         * lib/unistr/u16-to-u8.c: Likewise.
27777         * lib/unistr/u16-uctomb-aux.c: Likewise.
27778         * lib/unistr/u16-uctomb.c: Likewise.
27779         * lib/unistr/u32-check.c: Likewise.
27780         * lib/unistr/u32-chr.c: Likewise.
27781         * lib/unistr/u32-cmp.c: Likewise.
27782         * lib/unistr/u32-cpy-alloc.c: Likewise.
27783         * lib/unistr/u32-cpy.c: Likewise.
27784         * lib/unistr/u32-endswith.c: Likewise.
27785         * lib/unistr/u32-mblen.c: Likewise.
27786         * lib/unistr/u32-mbsnlen.c: Likewise.
27787         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
27788         * lib/unistr/u32-mbtouc.c: Likewise.
27789         * lib/unistr/u32-mbtoucr.c: Likewise.
27790         * lib/unistr/u32-move.c: Likewise.
27791         * lib/unistr/u32-next.c: Likewise.
27792         * lib/unistr/u32-prev.c: Likewise.
27793         * lib/unistr/u32-set.c: Likewise.
27794         * lib/unistr/u32-startswith.c: Likewise.
27795         * lib/unistr/u32-stpcpy.c: Likewise.
27796         * lib/unistr/u32-stpncpy.c: Likewise.
27797         * lib/unistr/u32-strcat.c: Likewise.
27798         * lib/unistr/u32-strchr.c: Likewise.
27799         * lib/unistr/u32-strcmp.c: Likewise.
27800         * lib/unistr/u32-strcpy.c: Likewise.
27801         * lib/unistr/u32-strcspn.c: Likewise.
27802         * lib/unistr/u32-strdup.c: Likewise.
27803         * lib/unistr/u32-strlen.c: Likewise.
27804         * lib/unistr/u32-strmblen.c: Likewise.
27805         * lib/unistr/u32-strmbtouc.c: Likewise.
27806         * lib/unistr/u32-strncat.c: Likewise.
27807         * lib/unistr/u32-strncmp.c: Likewise.
27808         * lib/unistr/u32-strncpy.c: Likewise.
27809         * lib/unistr/u32-strnlen.c: Likewise.
27810         * lib/unistr/u32-strpbrk.c: Likewise.
27811         * lib/unistr/u32-strrchr.c: Likewise.
27812         * lib/unistr/u32-strspn.c: Likewise.
27813         * lib/unistr/u32-strstr.c: Likewise.
27814         * lib/unistr/u32-strtok.c: Likewise.
27815         * lib/unistr/u32-to-u16.c: Likewise.
27816         * lib/unistr/u32-to-u8.c: Likewise.
27817         * lib/unistr/u32-uctomb.c: Likewise.
27818         * lib/unistr/u8-check.c: Likewise.
27819         * lib/unistr/u8-chr.c: Likewise.
27820         * lib/unistr/u8-cmp.c: Likewise.
27821         * lib/unistr/u8-cpy-alloc.c: Likewise.
27822         * lib/unistr/u8-cpy.c: Likewise.
27823         * lib/unistr/u8-endswith.c: Likewise.
27824         * lib/unistr/u8-mblen.c: Likewise.
27825         * lib/unistr/u8-mbsnlen.c: Likewise.
27826         * lib/unistr/u8-mbtouc-aux.c: Likewise.
27827         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
27828         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
27829         * lib/unistr/u8-mbtouc.c: Likewise.
27830         * lib/unistr/u8-mbtoucr.c: Likewise.
27831         * lib/unistr/u8-move.c: Likewise.
27832         * lib/unistr/u8-next.c: Likewise.
27833         * lib/unistr/u8-prev.c: Likewise.
27834         * lib/unistr/u8-set.c: Likewise.
27835         * lib/unistr/u8-startswith.c: Likewise.
27836         * lib/unistr/u8-stpcpy.c: Likewise.
27837         * lib/unistr/u8-stpncpy.c: Likewise.
27838         * lib/unistr/u8-strcat.c: Likewise.
27839         * lib/unistr/u8-strchr.c: Likewise.
27840         * lib/unistr/u8-strcmp.c: Likewise.
27841         * lib/unistr/u8-strcpy.c: Likewise.
27842         * lib/unistr/u8-strcspn.c: Likewise.
27843         * lib/unistr/u8-strdup.c: Likewise.
27844         * lib/unistr/u8-strlen.c: Likewise.
27845         * lib/unistr/u8-strmblen.c: Likewise.
27846         * lib/unistr/u8-strmbtouc.c: Likewise.
27847         * lib/unistr/u8-strncat.c: Likewise.
27848         * lib/unistr/u8-strncmp.c: Likewise.
27849         * lib/unistr/u8-strncpy.c: Likewise.
27850         * lib/unistr/u8-strnlen.c: Likewise.
27851         * lib/unistr/u8-strpbrk.c: Likewise.
27852         * lib/unistr/u8-strrchr.c: Likewise.
27853         * lib/unistr/u8-strspn.c: Likewise.
27854         * lib/unistr/u8-strstr.c: Likewise.
27855         * lib/unistr/u8-strtok.c: Likewise.
27856         * lib/unistr/u8-to-u16.c: Likewise.
27857         * lib/unistr/u8-to-u32.c: Likewise.
27858         * lib/unistr/u8-uctomb-aux.c: Likewise.
27859         * lib/unistr/u8-uctomb.c: Likewise.
27860         * lib/unitypes.h: Likewise.
27861         * lib/uniwidth.h: Likewise.
27862         * lib/uniwidth/cjk.h: Likewise.
27863         * lib/uniwidth/u16-strwidth.c: Likewise.
27864         * lib/uniwidth/u16-width.c: Likewise.
27865         * lib/uniwidth/u32-strwidth.c: Likewise.
27866         * lib/uniwidth/u32-width.c: Likewise.
27867         * lib/uniwidth/u8-strwidth.c: Likewise.
27868         * lib/uniwidth/u8-width.c: Likewise.
27869         * lib/uniwidth/width.c: Likewise.
27870
27871 2007-10-07  Bruno Haible  <bruno@clisp.org>
27872
27873         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
27874         The file is still under LGPL (see modules/inttypes).
27875
27876 2007-10-06  Bruno Haible  <bruno@clisp.org>
27877
27878         * modules/trunc (Dependencies): Add 'extensions'.
27879         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
27880         Reported by Ben Pfaff <blp@gnu.org>.
27881
27882 2007-10-06  Bruno Haible  <bruno@clisp.org>
27883
27884         * modules/freopen-tests: New file.
27885         * tests/test-freopen.c: New file.
27886
27887         * modules/fopen-tests: New file.
27888         * tests/test-fopen.c: New file.
27889
27890         * modules/fopen: New file.
27891         * lib/fopen.c: New file.
27892         * m4/fopen.m4: New file.
27893         * modules/freopen: New file.
27894         * lib/freopen.c: New file.
27895         * m4/freopen.m4: New file.
27896         * lib/stdio.in.h (fopen, freopen): New declarations.
27897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
27898         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
27899         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
27900         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
27901         * doc/functions/fopen.texi: Mention the 'fopen' module.
27902         * doc/functions/freopen.texi: Mention the 'freopen' module.
27903
27904 2007-10-06  Bruno Haible  <bruno@clisp.org>
27905
27906         * modules/open-tests: New file.
27907         * tests/test-open.c: New file.
27908
27909         * modules/open: New file.
27910         * lib/open.c: New file.
27911         * m4/open.m4: New file.
27912         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
27913         lib/open.c does.
27914         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
27915         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
27916         macros.
27917         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
27918         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
27919         REPLACE_OPEN.
27920         * doc/functions/open.texi: Mention the 'open' module.
27921
27922 2007-10-04  Bruno Haible  <bruno@clisp.org>
27923
27924         * modules/ceill-tests: New file.
27925         * tests/test-ceill.c: New file.
27926
27927         * modules/ceill: New file.
27928         * lib/ceill.c: Replace entire file.
27929         * m4/ceill.m4: New file.
27930         * lib/math.in.h (ceill): Replace declaration.
27931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
27932         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
27933         * doc/functions/ceill.texi: Mention the 'ceill' module.
27934         * modules/mathl (Files): Remove lib/ceill.c.
27935         (Depends-on): Add ceill.
27936
27937 2007-10-04  Bruno Haible  <bruno@clisp.org>
27938
27939         * modules/ceilf-tests: New file.
27940         * tests/test-ceilf.c: New file.
27941
27942         * modules/ceilf: New file.
27943         * lib/ceil.c: New file.
27944         * lib/ceilf.c: New file.
27945         * m4/ceilf.m4: New file.
27946         * lib/math.in.h (ceilf): New declaration.
27947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
27948         HAVE_DECL_CEILF.
27949         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
27950         HAVE_DECL_CEILF.
27951         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
27952
27953 2007-10-04  Bruno Haible  <bruno@clisp.org>
27954
27955         * modules/floorl-tests: New file.
27956         * tests/test-floorl.c: New file.
27957
27958         * modules/floorl: New file.
27959         * lib/floorl.c: Replace entire file.
27960         * m4/floorl.m4: New file.
27961         * lib/math.in.h (floorl): Replace declaration.
27962         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
27963         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
27964         * doc/functions/floorl.texi: Mention the 'floorl' module.
27965         * modules/mathl (Files): Remove lib/floorl.c.
27966         (Depends-on): Add floorl.
27967
27968 2007-10-04  Bruno Haible  <bruno@clisp.org>
27969
27970         * modules/floorf-tests: New file.
27971         * tests/test-floorf.c: New file.
27972
27973         * modules/floorf: New file.
27974         * lib/floor.c: New file.
27975         * lib/floorf.c: New file.
27976         * m4/floorf.m4: New file.
27977         * lib/math.in.h (floorf): New declaration.
27978         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
27979         HAVE_DECL_FLOORF.
27980         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
27981         HAVE_DECL_FLOORF.
27982         * doc/functions/floorf.texi: Mention the 'floorf' module.
27983
27984 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
27985             Bruno Haible  <bruno@clisp.org>
27986
27987         Advertise for the Git server instead of the CVS server.
27988         * doc/gnulib-intro.texi (Steady Development): Mention the Git
27989         repository instead of the CVS one.
27990         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
27991         about all VCS systems generically.
27992         * doc/gnulib.texi (Introduction): Capitalize `Git'.
27993
27994 2007-10-04  Bruno Haible  <bruno@clisp.org>
27995
27996         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
27997         means.
27998         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
27999
28000 2007-10-04  Bruno Haible  <bruno@clisp.org>
28001
28002         * modules/truncl-tests: New file.
28003         * tests/test-truncl.c: New file.
28004
28005         * modules/truncl: New file.
28006         * lib/truncl.c: New file.
28007         * m4/truncl.m4: New file.
28008         * lib/math.in.h (truncl): New declaration.
28009         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
28010         HAVE_DECL_TRUNCL.
28011         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
28012         HAVE_DECL_TRUNCL.
28013         * doc/functions/truncl.texi: Mention the 'truncl' module.
28014
28015 2007-10-04  Bruno Haible  <bruno@clisp.org>
28016
28017         * modules/truncf-tests: New file.
28018         * tests/test-truncf.c: New file.
28019
28020         * modules/truncf: New file.
28021         * lib/trunc.c: Make paramerizable through USE_* macros.
28022         * lib/truncf.c: New file.
28023         * m4/truncf.m4: New file.
28024         * lib/math.in.h (truncf): New declaration.
28025         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
28026         HAVE_DECL_TRUNCF.
28027         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
28028         HAVE_DECL_TRUNCF.
28029         * doc/functions/truncf.texi: Mention the 'truncf' module.
28030
28031 2007-10-03  Bruno Haible  <bruno@clisp.org>
28032
28033         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
28034         augmentation also for tests modules.
28035         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
28036         * modules/atexit-tests (Makefile.am): Likewise.
28037         * modules/binary-io-tests (Makefile.am): Likewise.
28038         * modules/c-strcase-tests (Makefile.am): Likewise.
28039         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
28040         * modules/canonicalize-tests (Makefile.am): Likewise.
28041         * modules/closein-tests (Makefile.am): Likewise.
28042         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28043         * modules/freadahead-tests (Makefile.am): Likewise.
28044         * modules/fseek-tests (Makefile.am): Likewise.
28045         * modules/fseeko-tests (Makefile.am): Likewise.
28046         * modules/ftell-tests (Makefile.am): Likewise.
28047         * modules/ftello-tests (Makefile.am): Likewise.
28048         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
28049         * modules/isnanl-tests (Makefile.am): Likewise.
28050         * modules/lseek-tests (Makefile.am): Likewise.
28051         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28052         * modules/mbscasestr-tests (Makefile.am): Likewise.
28053         * modules/mbschr-tests (Makefile.am): Likewise.
28054         * modules/mbscspn-tests (Makefile.am): Likewise.
28055         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28056         * modules/mbspbrk-tests (Makefile.am): Likewise.
28057         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28058         * modules/mbsrchr-tests (Makefile.am): Likewise.
28059         * modules/mbsspn-tests (Makefile.am): Likewise.
28060         * modules/mbsstr-tests (Makefile.am): Likewise.
28061         * modules/printf-posix-tests (Makefile.am): Likewise.
28062         * modules/snprintf-posix-tests (Makefile.am): Likewise.
28063         * modules/sprintf-posix-tests (Makefile.am): Likewise.
28064         * modules/tsearch-tests (Makefile.am): Likewise.
28065         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28066         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28067         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28068         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28069         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28070         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28071         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28072         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28073         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
28074         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
28075         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28076         * modules/xstrtol-tests (Makefile.am): Likewise.
28077         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28078         * modules/yesno-tests (Makefile.am): Likewise.
28079
28080 2007-10-03  Bruno Haible  <bruno@clisp.org>
28081
28082         * modules/trunc-tests: New file.
28083         * tests/test-trunc.c: New file.
28084
28085         * modules/trunc: New file.
28086         * lib/trunc.c: New file.
28087         * m4/trunc.m4: New file.
28088         * lib/math.in.h (trunc): New declaration.
28089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
28090         HAVE_DECL_TRUNC.
28091         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
28092         HAVE_DECL_TRUNC.
28093         * doc/functions/trunc.texi: Mention the 'trunc' module.
28094
28095 2007-10-03  Bruno Haible  <bruno@clisp.org>
28096
28097         * tests/test-fpending.c: New file, mostly copied
28098         from coreutils/lib/t-fpending.c.
28099         * modules/fpending-tests: New file.
28100
28101 2007-10-03  Bruno Haible  <bruno@clisp.org>
28102
28103         Port the stdio extensions to QNX (untested).
28104         * lib/fseterr.c (fseterr): Add support for QNX.
28105         * lib/fbufmode.c (fbufmode): Likewise.
28106         * lib/freadable.c (freadable): Likewise.
28107         * lib/fwritable.c (fwritable): Likewise.
28108         * lib/freading.c (freading): Likewise.
28109         * lib/fwriting.c (fwriting): Likewise.
28110         * lib/freadahead.c (freadahed): Likewise.
28111         * lib/fpurge.c (fpurge): Likewise.
28112         * lib/fseeko.c (rpl_fseeko): Likewise.
28113
28114 2007-10-03  Bruno Haible  <bruno@clisp.org>
28115             Jim Meyering  <jim@meyering.net>
28116             Eric Blake  <ebb9@byu.net>
28117
28118         * doc/relocatable.texi: Use @command instead of @program.
28119
28120 2007-10-02  Jim Meyering  <jim@meyering.net>
28121
28122         Perform one more "_.h" -> ".in.h" substitution.
28123         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
28124         instead of unistd_.h here, too.
28125
28126 2007-10-01  Bruno Haible  <bruno@clisp.org>
28127
28128         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
28129         Needed for the alloca-opt module.
28130
28131 2007-09-30  Bruno Haible  <bruno@clisp.org>
28132
28133         * lib/alloca.in.h: Renamed from lib/alloca_.h.
28134         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
28135         alloca_.h.
28136         * lib/argz.in.h: Renamed from lib/argz_.h.
28137         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
28138         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
28139         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
28140         byteswap_.h.
28141         * lib/dirent.in.h: Renamed from lib/dirent_.h.
28142         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
28143         dirent_.h.
28144         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
28145         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
28146         fcntl_.h.
28147         * lib/float.in.h: Renamed from lib/float_.h.
28148         * modules/float (Files, Makefile.am): Use float.in.h instead of
28149         float_.h.
28150         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
28151         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
28152         fnmatch_.h.
28153         * lib/getopt.in.h: Renamed from lib/getopt_.h.
28154         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
28155         getopt_.h.
28156         * lib/glob.in.h: Renamed from lib/glob_.h.
28157         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
28158         * lib/iconv.in.h: Renamed from lib/iconv_.h.
28159         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
28160         iconv_.h.
28161         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
28162         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
28163         inttypes_.h.
28164         * lib/locale.in.h: Renamed from lib/locale_.h.
28165         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
28166         locale_.h.
28167         * lib/math.in.h: Renamed from lib/math_.h.
28168         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
28169         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
28170         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
28171         of netinet_in_.h. Add dependency.
28172         * lib/poll.in.h: Renamed from lib/poll_.h.
28173         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
28174         * lib/search.in.h: Renamed from lib/search_.h.
28175         * modules/search (Files, Makefile.am): Use search.in.h instead of
28176         search_.h.
28177         * lib/signal.in.h: Renamed from lib/signal_.h.
28178         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
28179         _signal.h.
28180         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
28181         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
28182         stdbool_.h.
28183         * lib/stdint.in.h: Renamed from lib/stdint_.h.
28184         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
28185         stdint_.h.
28186         * lib/stdio.in.h: Renamed from lib/stdio_.h.
28187         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
28188         stdio_.h.
28189         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
28190         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
28191         stdlib_.h.
28192         * lib/string.in.h: Renamed from lib/string_.h.
28193         * modules/string (Files, Makefile.am): Use string.in.h instead of
28194         string_.h.
28195         * doc/gnulib-tool.texi (Initial import): Update.
28196         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
28197         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
28198         of sys_select_.h. Add dependency.
28199         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
28200         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
28201         of sys_socket_.h.
28202         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
28203         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
28204         sys_stat_.h.
28205         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
28206         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
28207         sys_time_.h.
28208         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
28209         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
28210         sysexits_.h.
28211         * lib/time.in.h: Renamed from lib/time_.h.
28212         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
28213         * lib/unistd.in.h: Renamed from lib/unistd_.h.
28214         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
28215         unistd_.h.
28216         * lib/wchar.in.h: Renamed from lib/wchar_.h.
28217         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
28218         wchar_.h.
28219         * lib/wctype.in.h: Renamed from lib/wctype_.h.
28220         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
28221         wctype_.h.
28222         * build-aux/bootstrap (slurp): Update.
28223         * lib/.cppi-disable: Update.
28224
28225 2007-09-30  Bruno Haible  <bruno@clisp.org>
28226
28227         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
28228         Needed on BeOS.
28229
28230 2007-09-30  Bruno Haible  <bruno@clisp.org>
28231
28232         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
28233
28234 2007-09-29  Bruno Haible  <bruno@clisp.org>
28235
28236         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
28237
28238 2007-09-29  Bruno Haible  <bruno@clisp.org>
28239
28240         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
28241         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
28242         * build-aux/install-reloc: Compile also areadlink.c.
28243         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
28244
28245 2007-09-29  Bruno Haible  <bruno@clisp.org>
28246
28247         * gnulib-tool (func_emit_initmacro_done): Indentation.
28248
28249 2007-09-29  Bruno Haible  <bruno@clisp.org>
28250
28251         * README: Add CVS checkout update instructions.
28252         Info from Bob Proulx <bob@proulx.com>.
28253
28254 2007-09-28  Eric Blake  <ebb9@byu.net>
28255
28256         Provide move-if-change.
28257         * build-aux/move-if-change: New file, based on best practice
28258         rather than any canonical upstream location.
28259
28260 2007-09-28  Jim Meyering  <jim@meyering.net>
28261
28262         Fix canonicalize loop-detection corner case.
28263         Do not attempt to stat the symlink values stored via seen_triple.
28264         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
28265         on linux-2.6.18, (but not 2.6.22).
28266         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
28267         triple_compare.  The former compares dev,ino,filename, while the latter
28268         would actually stat dirname(filename) when dev and ino were equal.
28269         * lib/hash-triple.c: Install <string.h>.
28270         (STREQ): Define.
28271         (triple_compare_ino_str): New function.
28272         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
28273
28274 2007-09-28  Eric Blake  <ebb9@byu.net>
28275
28276         Enforce that AC_REPLACE_FUNCS files exist.
28277         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
28278         override check for typos.
28279
28280         Fix test-closein on Solaris 10.
28281         * tests/test-closein.c (main): Don't assume stdin can be inherited
28282         closed on all systems.
28283         * tests/test-closein.sh: Likewise.
28284         Reported by Piotr Tarnowski.
28285
28286 2007-09-28  Jim Meyering  <jim@meyering.net>
28287
28288         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
28289
28290 2007-09-27  Jim Meyering  <jim@meyering.net>
28291
28292         canonicalize: Avoid a false-positive cycle failure.
28293         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
28294         Sort.  Remove cycle-check.
28295         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
28296         not cycle-check.h.
28297         (seen_triple): New function.
28298         (canonicalize_filename_mode): Use it instead of cycle-check.
28299         * tests/test-canonicalize.c: Add a test for this bug.
28300         * tests/test-canonicalize.sh: Set up and run the test.
28301
28302         New module, file-set, from coreutils.
28303         * modules/file-set: Define it.
28304         * lib/file-set.c, lib/file-set.h: Implement.
28305
28306         New module, hash-triple, from coreutils.
28307         * modules/hash-triple: Define it.
28308         * lib/hash-triple.c, lib/hash-triple.h: Implement.
28309
28310 2007-09-25  Eric Blake  <ebb9@byu.net>
28311
28312         Fix strerror on Interix.
28313         * lib/string_.h (strerror): Declare replacement.
28314         * doc/functions/strerror.texi (strerror): Document the Interix
28315         shortcoming.
28316         * modules/string (Makefile.am): Support new hooks.
28317         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
28318         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
28319         gl_FUNC_STRERROR_SEPARATE.
28320         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
28321         * lib/strerror.c (rpl_strerror): Provide replacement.
28322         * modules/strerror (Depends-on): Add string.
28323         (configure.ac): Detect use of module.
28324         * tests/test-strerror.c: New file.
28325         * modules/strerror-tests: New test module.
28326         * modules/argp (Depends-on): Add strerror.
28327         * modules/error (Depends-on): Likewise.
28328         Reported by Martin Koeppe.
28329
28330 2007-09-24  Bruno Haible  <bruno@clisp.org>
28331
28332         * README: Update git instructions.
28333
28334 2007-09-24  Eric Blake  <ebb9@byu.net>
28335
28336         Revert fpending breakage from 2007-09-08.
28337         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
28338         __fpending.c.
28339
28340 2007-09-24  Jim Meyering  <jim@meyering.net>
28341
28342         filenamecat.c: Add a test.
28343         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
28344         showing how the function works when DIR is the empty string.
28345
28346 2007-09-21  Simon Josefsson  <simon@josefsson.org>
28347
28348         * tests/test-canonicalize.sh: Turn on executable bit.
28349
28350 2007-09-19  Eric Blake  <ebb9@byu.net>
28351
28352         * README: Update CVS instructions.
28353
28354 2007-09-18  Bruno Haible  <bruno@clisp.org>
28355
28356         * modules/areadlink: New file.
28357         * lib/areadlink.h (areadlink): New declaration.
28358         * lib/areadlink.c: New file, based on lib/xreadlink.c.
28359
28360 2007-09-17  Jim Meyering  <jim@meyering.net>
28361
28362         * lib/savewd.c (ESTALE) [!defined]: Define.
28363         Reported to be required on Interix by Martin Koeppe.
28364
28365 2007-09-17  Bruno Haible  <bruno@clisp.org>
28366
28367         * gnulib-tool (func_version): Use $version.
28368
28369 2007-09-16  Bruno Haible  <bruno@clisp.org>
28370
28371         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
28372         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
28373         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
28374         Reported by Greg Schafer <gschafer@zip.com.au>.
28375
28376 2007-09-15  Bruno Haible  <bruno@clisp.org>
28377
28378         * gnulib-tool (sed): Try a little harder to make bash understand the
28379         alias.
28380         Reported by Bruce Korb <bruce.korb@gmail.com>.
28381
28382 2007-09-13  Eric Blake  <ebb9@byu.net>
28383
28384         * ChangeLog: Remove conflict markers.
28385
28386 2007-09-13  Simon Josefsson  <simon@josefsson.org>
28387
28388         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
28389         Reported by Bruno Haible <bruno@clisp.org>.
28390
28391 2007-09-12  Bruno Haible  <bruno@clisp.org>
28392
28393         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
28394         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
28395         is not defined.
28396
28397 2007-09-12  Eric Blake  <ebb9@byu.net>
28398
28399         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
28400         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
28401         Autoconf definition.
28402         * modules/euidaccess (Depends-on): Add extensions, for
28403         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
28404         * modules/fnmatch (Depends-on): Likewise.
28405         * modules/getaddrinfo (Depends-on): Likewise.
28406         * modules/getdelim (Depends-on): Likewise.
28407         * modules/getline (Depends-on): Likewise.
28408         * modules/getsubopt (Depends-on): Likewise.
28409         * modules/gettext (Depends-on): Likewise.
28410         * modules/group-member (Depends-on): Likewise.
28411         * modules/mbchar (Depends-on): Likewise.
28412         * modules/memmem (Depends-on): Likewise.
28413         * modules/mempcpy (Depends-on): Likewise.
28414         * modules/memrchr (Depends-on): Likewise.
28415         * modules/pagealign_alloc (Depends-on): Likewise.
28416         * modules/readutmp (Depends-on): Likewise.
28417         * modules/stpcpy (Depends-on): Likewise.
28418         * modules/stpncpy (Depends-on): Likewise.
28419         * modules/strchrnul (Depends-on): Likewise.
28420         * modules/strndup (Depends-on): Likewise.
28421         * modules/strsep (Depends-on): Likewise.
28422         * modules/strverscmp (Depends-on): Likewise.
28423         * modules/vasprintf (Depends-on): Likewise.
28424         * modules/wcwidth (Depends-on): Likewise.
28425         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
28426         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
28427         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
28428         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
28429         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28430         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28431         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
28432         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
28433         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
28434         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28435         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28436         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
28437         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
28438         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28439         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
28440         * m4/readutmp.m4 (gl_READUTMP): Likewise.
28441         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28442         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
28443         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28444         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
28445         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28446         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
28447         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
28448         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
28449         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
28450         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28451         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
28452         so that lock.m4 can be used in gettext without extensions module.
28453
28454 2007-09-11  Bruno Haible  <bruno@clisp.org>
28455
28456         * m4/isc-posix.m4: Remove file.
28457         Suggested by Eric Blake.
28458
28459 2007-09-11  Eric Blake  <ebb9@byu.net>
28460
28461         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
28462
28463 2007-09-10  Bruno Haible  <bruno@clisp.org>
28464
28465         * posix-modules: Fix typo in error message.
28466         Reported by Matt <mkraai@beckman.com>.
28467
28468 2007-09-09  Bruno Haible  <bruno@clisp.org>
28469
28470         * doc/functions/getdelim.texi: Update list of platforms lacking the
28471         function.
28472         * doc/functions/getline.texi: Likewise.
28473
28474 2007-09-09  Jim Meyering  <jim@meyering.net>
28475
28476         * lib/hash.c (hash_initialize): Detect calloc failure.
28477         Reported by Bruno Haible.
28478
28479 2007-09-09  Bruno Haible  <bruno@clisp.org>
28480
28481         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
28482         malloc or realloc fails.
28483
28484 2007-09-09  Bruno Haible  <bruno@clisp.org>
28485
28486         * modules/getcwd (Depends-on): Add malloc-posix.
28487         * modules/glob (Depends-on): Likewise.
28488         * modules/putenv (Depends-on): Likewise.
28489         * modules/strdup (Depends-on): Likewise.
28490         * modules/getdelim (Depends-on): Add realloc-posix.
28491         * modules/read-file (Depends-on): Likewise.
28492
28493 2007-09-09  Bruno Haible  <bruno@clisp.org>
28494
28495         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
28496         (gl_FUNC_MALLOC_POSIX): Require it.
28497         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
28498         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
28499         * modules/realloc (Files): Add m4/malloc.m4.
28500         * modules/calloc (Files): Likewise.
28501
28502 2007-09-09  Bruno Haible  <bruno@clisp.org>
28503
28504         * modules/malloc-posix: New file.
28505         * modules/malloc (Depends-on): Add malloc-posix.
28506         * lib/malloc.c: Include errno.h.
28507         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
28508         and a POSIX-compatible malloc into a single function. Set ENOMEM
28509         when returning NULL.
28510         * m4/malloc.m4: New file.
28511         * doc/functions/malloc.texi: Mention the malloc-posix module.
28512         * lib/stdlib_.h (malloc): New declaration.
28513         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28514         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
28515         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
28516         and HAVE_MALLOC_POSIX.
28517
28518 2007-09-09  Bruno Haible  <bruno@clisp.org>
28519
28520         * modules/realloc-posix: New file.
28521         * modules/realloc (Depends-on): Add realloc-posix.
28522         * lib/realloc.c: Include errno.h.
28523         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
28524         and a POSIX-compatible realloc into a single function. Set ENOMEM
28525         when returning NULL.
28526         * m4/realloc.m4: New file.
28527         * doc/functions/realloc.texi: Mention the realloc-posix module.
28528         * lib/stdlib_.h (realloc): New declaration.
28529         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28530         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
28531         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
28532         and HAVE_REALLOC_POSIX.
28533
28534 2007-09-09  Bruno Haible  <bruno@clisp.org>
28535
28536         * modules/calloc-posix: New file.
28537         * modules/calloc (Depends-on): Add calloc-posix.
28538         * lib/calloc.c: Include errno.h.
28539         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
28540         and a POSIX-compatible calloc into a single function. Set ENOMEM
28541         when returning NULL.
28542         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
28543         * doc/functions/calloc.texi: Mention the calloc-posix module.
28544         * lib/stdlib_.h (calloc): New declaration.
28545         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28546         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
28547         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
28548         and HAVE_CALLOC_POSIX.
28549
28550 2007-09-09  Bruno Haible  <bruno@clisp.org>
28551
28552         Allow for modules to show an arbitrary notice.
28553         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
28554         * gnulib-tool: New option --extract-notice.
28555         (func_usage): Document it.
28556         (sed_extract_prog): Update.
28557         (func_get_notice): New function.
28558         (func_modules_notice): New function.
28559         (func_import, func_create_testdir): Invoke it.
28560         Suggested by Jim Meyering.
28561
28562 2007-09-09  Bruno Haible  <bruno@clisp.org>
28563
28564         * gnulib-tool: New options --verbose, --quiet.
28565         (func_usage): Document them.
28566         (verbose): New variable.
28567         (func_execute_command): New function.
28568         (func_import): Don't show the module list and the file list if
28569         $verbose < 0.
28570         (func_create_testdir): Likewise. Use func_execute_command.
28571         (func_create_megatestdir): Use func_execute_command.
28572
28573 2007-09-08  Bruno Haible  <bruno@clisp.org>
28574
28575         * gnulib-tool (func_import): Prefer rsync over wget when available,
28576         for fetching the PO files.
28577
28578 2007-09-08  Bruno Haible  <bruno@clisp.org>
28579
28580         * posix-modules: New file. Portions copied from gnulib-tool.
28581         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
28582
28583 2007-09-08  Jim Meyering  <jim@meyering.net>
28584
28585         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
28586         * lib/fpending.h: Rename from __fpending.h.
28587         * lib/fpending.c: Rename from __fpending.c.
28588         Include "fpending.h", not "__fpending.h".
28589         * lib/__fpending.h, lib/__fpending.c: Remove files.
28590         * modules/fpending (Files): Reflect new file names.
28591         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
28592
28593 2007-09-08  Bruno Haible  <bruno@clisp.org>
28594
28595         * m4/inttypes-h.m4: Remove stub file.
28596
28597 2007-09-07  Simon Josefsson  <simon@josefsson.org>
28598
28599         * doc/headers/stdint.texi: Discuss #include_next issue.
28600
28601 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28602
28603         * build-aux/bootstrap: Remove obsolete comment about wget --help.
28604
28605 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28606
28607         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
28608         in variable name.
28609
28610 2007-09-03  Jim Meyering  <jim@meyering.net>
28611
28612         New module: git-version-gen.
28613         * modules/git-version-gen: New file.
28614
28615         Import changes from coreutils for bootstrap script.
28616
28617         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
28618
28619         bootstrap: uses rsync to download the .po files
28620         * build-aux/bootstrap (po_download_command_format): New global.
28621         (download_po_files): Use rsync.
28622         (update_po_files): Don't remove .po files after download,
28623         so future rsync runs can take advantage of the copies.
28624
28625         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
28626
28627         Solve the unnecessary-.po-file-regeneration problem once and for all.
28628         * build-aux/bootstrap (download_po_files): New function, renamed from
28629         get_translations.  Now, downloads, but doesn't update LINGUAS.
28630         (update_po_files): New function.
28631
28632         bootstrap: Ignore more.
28633         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
28634         uniwidth to e.g., lib/.gitignore.
28635         (slurp): Handle the sys_stat_.h -> sys mapping, too.
28636
28637         * build-aux/bootstrap: New setting: vc_ignore.
28638         (insert_sorted_if_absent): Create $file if absent.
28639         Adapt to new, possibly empty, list: $vc_ignore.
28640
28641         bootstrap: generate more ignorable names
28642         * build-aux/bootstrap (slurp): When generating ignorable names,
28643         also map .sin to .sed, .gperf to .c, and .y to .c.
28644
28645 2007-09-03  Jim Meyering  <jim@meyering.net>
28646
28647         * build-aux/git-version-gen: New file, from coreutils.  For details, see
28648         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
28649
28650 2007-09-02  Bruno Haible  <bruno@clisp.org>
28651
28652         Fix mis-recognition of 'mcs' on QNX 6.
28653         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
28654         output contains the string "Mono".
28655         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
28656         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
28657
28658 2007-09-01  Bruno Haible  <bruno@clisp.org>
28659
28660         Fix collision between uniwidth/* and linebreak modules.
28661         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
28662         u32_width): Remove declarations.
28663         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
28664         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
28665         streq3, streq2, streq1, streq0): Remove functions.
28666         (STREQ): Remove macro.
28667         (is_cjk_encoding): Remove function.
28668         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
28669         (uc_width, u8_width, u16_width, u32_width): Remove functions.
28670         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
28671         * NEWS: Document the change.
28672
28673 2007-09-01  Bruno Haible  <bruno@clisp.org>
28674
28675         * lib/streq.h: Add double-inclusion guard.
28676
28677 2007-09-01  Karl Berry  <karl@gnu.org>
28678
28679         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
28680
28681 2007-08-28  Jim Meyering  <jim@meyering.net>
28682
28683         Rename mreadlink_with_size to areadlink_with_size.
28684         * NEWS: Document the change.
28685         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
28686         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
28687         * lib/mreadlink.h: Rename this to...
28688         * lib/areadlink.h: ...this.
28689         * modules/mreadlink-with-size: Rename this to...
28690         * modules/areadlink-with-size: ...this.
28691         * lib/canonicalize.c: Reflect the renaming.
28692         * modules/canonicalize: Likewise.
28693
28694 2007-08-26  Bruno Haible  <bruno@clisp.org>
28695
28696         * gnulib-tool (func_import): When deciding which files to remove,
28697         consider also dangling symbolic links.
28698         Reported by Eric Blake.
28699
28700 2007-08-26  Bruno Haible  <bruno@clisp.org>
28701
28702         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
28703
28704 2007-08-23  Simon Josefsson  <simon@josefsson.org>
28705
28706         * lib/readline.c: Don't include getline.h, the prototype is now
28707         found in stdio.h.
28708
28709 2007-08-23  Jim Meyering  <jim@meyering.net>
28710
28711         Getdelim touchup.
28712         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
28713         around the funlockfile call, since funlockfile never sets errno.
28714         Don't set errno upon failed realloc.
28715
28716 2007-08-22  Eric Blake  <ebb9@byu.net>
28717
28718         Getline touchups.
28719         * lib/getdelim.c (getdelim): Revert regression that required *n to
28720         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
28721         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
28722         getdelim, rather than whether implementation is missing.
28723         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
28724         * lib/stdio_.h (getline): Also declare if replacement is
28725         required.
28726         * doc/functions/getdelim.texi: New file.
28727         * doc/functions/getline.texi: Likewise.
28728         * doc/gnulib.texi (Function Substitutes): Add new files.
28729         Reported by Bruno Haible.
28730
28731 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
28732
28733         * users.txt: Add Guile.
28734
28735 2007-08-22  Eric Blake  <ebb9@byu.net>
28736
28737         * tests/test-getdelim.c (main): Use remove, not unlink.
28738         * tests/test-getline.c (main): Likewise.
28739
28740         Move getline and getdelim into stdio.h, per POSIX 200x.
28741         * modules/getline (Files): Remove getline.h.
28742         (Depends-on): Add stdio.
28743         (configure.ac): Add module indicator.
28744         * modules/getdelim (Files): Remove getdelim.h.
28745         (Depends-on): Add stdio.
28746         (configure.ac): Add module indicator.
28747         * modules/stdio (Makefile.am): Work with new indicators.
28748         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28749         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
28750         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28751         * lib/getdelim.h: Delete.
28752         * lib/getline.h: Delete.
28753         * lib/stdio_.h (getdelim, getline): Declare.
28754         * modules/getdelim-tests: New module.
28755         * modules/getline-tests: Likewise.
28756         * tests/test-getdelim.c: New file.
28757         * tests/test-getline.c: Likewise.
28758         * NEWS: Document the change.
28759         * lib/getline.c: Update choice of header.
28760         * lib/csharpcomp.c: Likewise.
28761         * lib/getpass.c: Likewise.
28762         * lib/javacomp.c: Likewise.
28763         * lib/javaversion.c: Likewise.
28764         * lib/yesno.c: Likewise.
28765         * lib/getdelim.c: Likewise.
28766         (getdelim): Set errno on failure, and avoid memory leak.
28767
28768 2007-08-19  Bruno Haible  <bruno@clisp.org>
28769
28770         * modules/closein (Depends-on): Add freadahead.
28771         * lib/closein.c: Include freadahead.h.
28772         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
28773         is zero.
28774
28775 2007-08-19  Bruno Haible  <bruno@clisp.org>
28776
28777         * modules/freadahead-tests: New file.
28778         * tests/test-freadahead.sh: New file.
28779         * tests/test-freadahead.c: New file.
28780
28781         * modules/freadahead: New file.
28782         * lib/freadahead.h: New file.
28783         * lib/freadahead.c: New file.
28784         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
28785         fbufmode, fpurge, freadable, fwritable.
28786
28787 2007-08-19  Eric Blake  <ebb9@byu.net>
28788
28789         Test yesno in combination with closein.
28790         * lib/yesno.c (yesno): Document use of stdin.
28791         * modules/yesno-tests (Files): New module.
28792         * tests/test-yesno.c (main): New file.
28793         * tests/test-yesno.sh: Likewise.
28794
28795 2007-08-19  Bruno Haible  <bruno@clisp.org>
28796
28797         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
28798         * lib/fseeko.c (rpl_fseeko): Likewise.
28799         * lib/fseterr.c (fseterr): Likewise.
28800
28801 2007-08-19  Bruno Haible  <bruno@clisp.org>
28802
28803         * tests/test-lseek.c (main): Disable a test for BeOS.
28804         * doc/functions/lseek.texi: Document the BeOS bug.
28805
28806 2007-08-19  Bruno Haible  <bruno@clisp.org>
28807             Eric Blake  <ebb9@byu.net>
28808
28809         * lib/lseek.c: Include <sys/stat.h>.
28810         (rpl_lseek): Add workaround code also for Unix platforms.
28811         Needed for BeOS.
28812         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
28813         * doc/functions/lseek.texi: Document BeOS definiency.
28814
28815 2007-08-18  Bruno Haible  <bruno@clisp.org>
28816
28817         * modules/fstrcmp-tests: New file.
28818         * tests/test-fstrcmp.c: New file.
28819
28820 2007-08-18  Bruno Haible  <bruno@clisp.org>
28821
28822         * modules/fstrcmp: New file, from GNU gettext with modifications.
28823         * lib/fstrcmp.h: New file, from GNU gettext.
28824         * lib/fstrcmp.c: New file, from GNU gettext.
28825         * MODULES.html.sh (String handling): Add fstrcmp.
28826
28827 2007-08-18  Bruno Haible  <bruno@clisp.org>
28828
28829         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
28830         'bool'.
28831         (diag, compareseq): Remove const from the ctxt argument.
28832         (USE_HEURISTIC): Undefine at the end.
28833
28834 2007-08-18  Jim Meyering  <jim@meyering.net>
28835
28836         New file: lib/idcache.h
28837         * NEWS: Mention the addition.
28838         * modules/idcache (Files): Add lib/idcache.h
28839         * lib/idcache.c: Include "idcache.h".
28840         Don't include <sys/types.h>.
28841         Add a FIXME comment.
28842         Move file-scoped "static" declarations to the top.
28843         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
28844
28845 2007-08-17  Bruno Haible  <bruno@clisp.org>
28846         and Paul Eggert  <eggert@cs.ucla.edu>
28847
28848         * MODULES.html.sh: Add diffseq.
28849         * modules/diffseq: New file.
28850         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
28851         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
28852
28853 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
28854
28855         Import changes from coreutils for bootstrap script.
28856
28857         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
28858
28859         * build-aux/bootstrap (slurp): Work even in environments where
28860         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
28861         current code does not slurp files whose names start with ".", and
28862         this looks like it might be a troublesome area.
28863
28864         2007-07-11  Jim Meyering  <jim@meyering.net>
28865
28866         If there's a GPL vN copyright comment, require that N == 3.
28867
28868         2007-07-08  Jim Meyering  <jim@meyering.net>
28869
28870         Run the coreutils-specific code only if tests/Makefile.am.in exists.
28871         * build-aux/bootstrap (mam_template): Move definition out of loop.
28872
28873         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
28874
28875         * build-aux/bootstrap (symlink_to_dir): Rename function from
28876         symlink_to_gnulib.  Add a directory parameter.  Update all
28877         callers.
28878         (cp_mark_as_generated): Also check for -- and link to -- files in
28879         gl/.
28880
28881         2007-07-08  Jim Meyering  <jim@meyering.net>
28882
28883         Adapt to deeper hierarchy in gnulib.
28884         * build-aux/bootstrap (symlink_to_dir): If the destination
28885         directory doesn't exist, create it. This is required at least for
28886         "lib/uniwidth/cjk.h".
28887
28888         2007-05-15  Jim Meyering  <jim@meyering.net>
28889
28890         * build-aux/bootstrap: Now that generated Makefile.am files
28891         are no longer under version control, they must be created at
28892         bootstrap time.
28893
28894 2007-08-14  Ben Pfaff  <blp@gnu.org>
28895
28896         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
28897
28898 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
28899
28900         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
28901         given the changes below.
28902         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
28903         even on hosts that have padding bits beyond the supported 64.
28904
28905 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28906
28907         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
28908         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
28909         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
28910         depends on it.
28911         (xstrtol_error): Remove.
28912         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
28913         but with a different signature.
28914         (ATTRIBUTE_NORETURN, __attribute__): New macros.
28915         * lib/xstrtol-error.c: Include exitfail.h.
28916         (xstrtol_fatal): New function, with a different signature from the
28917         old xstrtol_error, so that the caller need not worry about passing
28918         in an exit status, or about storage management of the option argument.
28919         (xstrtol_error): Now a static function.  Redo signature to
28920         implement xstrtol_fatal.  Output the correct number of hyphens in
28921         front of the option so that the caller need not worry about
28922         storage management.
28923         (N_): New macro.
28924         (_): Remove; not used now.
28925         * modules/xstrtol: Depend on getopt.
28926         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
28927         of old STRTOL_FATAL_ERROR macro.
28928         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
28929         of test program.
28930         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
28931         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
28932
28933 2007-08-08  Eric Blake  <ebb9@byu.net>
28934
28935         * lib/xstrtol-error.c: Add missing include.
28936
28937         Move xstrtol messages into gnulib domain, when --pobase is used.
28938         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
28939         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
28940         * modules/xstrtol (Files): Distribute new file.
28941         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
28942         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
28943         * tests/test-xstrtol.c: ...into new file.
28944         * tests/test-xstrtoul.c: Also test xstrtoul.
28945         * tests/test-xstrtoimax.c: Also test xstrtoimax.
28946         * tests/test-xstrtoumax.c: Also test xstrtoumax.
28947         * tests/test-xstrtol.sh: Drive the tests.
28948         * tests/test-xstrtoimax.sh: Likewise.
28949         * tests/test-xstrtoumax.sh: Likewise.
28950         * modules/xstrtol-tests: New module.
28951         * modules/xstrtoimax-tests: Likewise.
28952         * modules/xstrtoumax-tests: Likewise.
28953
28954 2007-08-08  Jim Meyering  <jim@meyering.net>
28955
28956         New function: mfile_name_concat.
28957         * lib/filenamecat.c (mfile_name_concat): New function, just like
28958         file_name_concat, but return NULL upon failure rather than exiting
28959         with a diagnostic.
28960         * lib/filenamecat.h: Declare it.
28961
28962 2007-08-07  Bruno Haible  <bruno@clisp.org>
28963
28964         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
28965         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
28966         warning from gcc.
28967         Reported by Eric Blake.
28968
28969 2007-08-07  Simon Josefsson  <simon@josefsson.org>
28970
28971         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
28972         * modules/crypto/arcfour (License): Likewise.
28973         * modules/crypto/des-tests (License): Likewise.
28974         * modules/crypto/gc-arctwo-tests (License): Likewise.
28975         * modules/crypto/gc-des-tests (License): Likewise.
28976         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
28977         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
28978         * modules/crypto/gc-md2-tests (License): Likewise.
28979         * modules/crypto/gc-md4-tests (License): Likewise.
28980         * modules/crypto/gc-md5-tests (License): Likewise.
28981         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
28982         * modules/crypto/gc-rijndael-tests (License): Likewise.
28983         * modules/crypto/gc-sha1-tests (License): Likewise.
28984         * modules/crypto/gc-tests (License): Likewise.
28985         * modules/crypto/hmac-md5 (License): Likewise.
28986         * modules/crypto/hmac-sha1 (License): Likewise.
28987         * modules/crypto/md2-tests (License): Likewise.
28988         * modules/crypto/md4-tests (License): Likewise.
28989         * modules/crypto/md5 (License): Likewise.
28990         * modules/crypto/rijndael (License): Likewise.
28991         * modules/crypto/sha1 (License): Likewise.
28992         * modules/memxor (License): Likewise.
28993
28994 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
28995         and Bruno Haible  <bruno@clisp.org>
28996
28997         * NEWS: Describe interface changes to human, xstrtol.
28998         * lib/human.h: Include <xstrtol.h>.
28999         (human_options): Return enum strtol_error, not int.  Remove
29000         bool arg; take int * instead.
29001         * lib/human.c: Don't include "gettext.h".
29002         (_): Remove; no longer used.
29003         Don't include <xstrtol.h>, since human.h does it.
29004         (human_options): Adjust to abovementioned interface changes.
29005         Do not report error to stderr; that's now the caller's
29006         responsibility.
29007         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
29008         interface change.
29009         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
29010         Str, Argument_type_string.  All uses changed.  Put " argument"
29011         in diagnostics to make them clearer.  Change wording of suffix
29012         message for clarity.
29013         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
29014         Argument_type_string.
29015         (STRTOL_FATAL_WARN): Remove; no longer used.
29016         * modules/human (Depends-on): Remove gettext-h.
29017
29018 2007-08-06  Simon Josefsson  <simon@josefsson.org>
29019
29020         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
29021
29022 2007-07-31  Bruno Haible  <bruno@clisp.org>
29023
29024         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
29025         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
29026         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
29027
29028 2007-07-31  Bruno Haible  <bruno@clisp.org>
29029
29030         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
29031         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
29032
29033 2007-07-30  Bruno Haible  <bruno@clisp.org>
29034
29035         * modules/base64 (License): Use the synonymous term "LGPLv2+".
29036         * modules/c-ctype (License): Likewise.
29037         * modules/c-strcase (License): Likewise.
29038         * modules/check-version (License): Likewise.
29039         * modules/iconv (License): Likewise.
29040         * modules/iconv_open (License): Likewise.
29041         * modules/read-file (License): Likewise.
29042         * modules/striconv (License): Likewise.
29043         * modules/strverscmp (License): Likewise.
29044         * modules/vasprintf (License): Likewise.
29045         * modules/crypto/des (License): Likewise.
29046         * modules/crypto/gc (License): Likewise.
29047         * modules/crypto/gc-arcfour (License): Likewise.
29048         * modules/crypto/gc-arctwo (License): Likewise.
29049         * modules/crypto/gc-des (License): Likewise.
29050         * modules/crypto/gc-hmac-md5 (License): Likewise.
29051         * modules/crypto/gc-hmac-sha1 (License): Likewise.
29052         * modules/crypto/gc-md2 (License): Likewise.
29053         * modules/crypto/gc-md4 (License): Likewise.
29054         * modules/crypto/gc-md5 (License): Likewise.
29055         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
29056         * modules/crypto/gc-random (License): Likewise.
29057         * modules/crypto/gc-rijndael (License): Likewise.
29058         * modules/crypto/gc-sha1 (License): Likewise.
29059         * modules/crypto/md2 (License): Likewise.
29060         * modules/crypto/md4 (License): Likewise.
29061
29062 2007-07-30  Jim Meyering  <jim@meyering.net>
29063
29064         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
29065         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
29066         it has valid stat data.  This bug would cause du not to count the
29067         sizes of inaccessible directories.
29068         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
29069         in <http://bugzilla.redhat.com/250077>.
29070
29071 2007-07-25  Peter O'Gorman  <peter@pogma.com>
29072             Bruno Haible  <bruno@clisp.org>
29073
29074         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
29075         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
29076         #include_next, gives a diagnostic about it, but reports no error in
29077         the exit code.
29078         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29079
29080 2007-07-24  Ben Pfaff  <blp@gnu.org>
29081
29082         Improve name: "count-one-bits" is better than "popcount".
29083         * MODULES.html.sh: Update name.
29084         * lib/popcount.h: Renamed lib/count-one-bits.h.
29085         (popcount): Renamed count_one_bits.
29086         (popcountl): Renamed count_one_bits_l.
29087         (popcountll): Renamed count_one_bits_ll.
29088         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
29089         * modules/popcount: Renamed module/count-one-bits.
29090         * modules/popcount-tests: Renamed module/count-one-bits-tests.
29091         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
29092
29093 2007-07-23  Ben Pfaff  <blp@gnu.org>
29094
29095         * lib/popcount.h (popcount32): Reduce size of constants, to allow
29096         better code generation, and add U to large constants to avoid
29097         warnings, in non-GCC case.
29098         Suggested by Bruno Haible.
29099
29100 2007-07-23  Ben Pfaff  <blp@gnu.org>
29101
29102         * lib/popcount.h: Use verify_true instead of if...abort.
29103         * modules/popcount: Depend on verify module.
29104         Suggested by Jim Meyering.
29105
29106 2007-07-23  Bruno Haible  <bruno@clisp.org>
29107
29108         * gnulib-tool (func_import): Create a .cvsignore file also when the
29109         directory is not yet in CVS but the toplevel directory is. When
29110         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
29111         Reported by Karl Berry.
29112
29113 2007-07-22  Ben Pfaff  <blp@gnu.org>
29114
29115         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
29116         case.
29117         Suggested by Eric Blake.
29118
29119 2007-07-22  Ben Pfaff  <blp@gnu.org>
29120
29121         New module: popcount.
29122         * MODULES.html.sh: Add popcount.
29123         * modules/popcount: New file.
29124         * modules/popcount-tests: New file.
29125         * tests/test-popcount.c: New file.
29126         * lib/popcount.h: New file.
29127         * m4/popcount.m4: New file.
29128
29129 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
29130
29131         * build-aux/announce-gen: Update to GPLv3.
29132
29133         * build-aux/config.guess: Update from config.
29134
29135 2007-07-21  Bruno Haible  <bruno@clisp.org>
29136
29137         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
29138         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
29139
29140 2007-07-20  Jim Meyering  <jim@meyering.net>
29141
29142         * check-module: Diagnose a self-dependency.
29143
29144 2007-07-19  Bruno Haible  <bruno@clisp.org>
29145
29146         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
29147         empty.
29148         Reported by Eric Blake.
29149
29150 2007-07-18  Bruno Haible  <bruno@clisp.org>
29151
29152         * gnulib-tool: New options --po-base, --po-domain.
29153         (func_usage): Document them.
29154         (pobase, po_domain): New variables.
29155         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
29156         DEFAULT_TEXT_DOMAIN.
29157         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
29158         (func_import): Consider pobase and po_domain. Create a po/ directory.
29159         (func_create_testdir): Set pobase and po_domain to empty.
29160         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
29161         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
29162
29163 2007-07-18  Bruno Haible  <bruno@clisp.org>
29164
29165         * gnulib-tool (func_get_automake_snippet): Synthesize also an
29166         EXTRA_DIST augmentation for files in build-aux/.
29167
29168 2007-07-16  Bruno Haible  <bruno@clisp.org>
29169
29170         * modules/lseek (License): Use the synonymous term "LGPLv2+".
29171         * modules/getdelim (License): Likewise.
29172
29173 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29174
29175         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
29176         * modules/d-type (License): Likewise.
29177         * modules/extensions (License): Likewise.
29178         * modules/fnmatch (License): Likewise.
29179         * modules/fseeko (License): Likewise.
29180         * modules/getaddrinfo (License): Likewise.
29181         * modules/getline (License): Likewise.
29182         * modules/getlogin_r (License): Likewise.
29183         * modules/getpass (License): Likewise.
29184         * modules/gettimeofday (License): Likewise.
29185         * modules/glob (License): Likewise.
29186         * modules/inet_ntop (License): Likewise.
29187         * modules/malloc (License): Likewise.
29188         * modules/malloca (License): Likewise.
29189         * modules/memmem (License): Likewise.
29190         * modules/mempcpy (License): Likewise.
29191         * modules/memset (License): Likewise.
29192         * modules/minmax (License): Likewise.
29193         * modules/mktime (License): Likewise.
29194         * modules/netinet_in (License): Likewise.
29195         * modules/pathmax (License): Likewise.
29196         * modules/poll (License): Likewise.
29197         * modules/regex (License): Likewise.
29198         * modules/snprintf (License): Likewise.
29199         * modules/stdbool (License): Likewise.
29200         * modules/stdint (License): Likewise.
29201         * modules/stdio (License): Likewise.
29202         * modules/strcase (License): Likewise.
29203         * modules/strcasestr (License): Likewise.
29204         * modules/strdup (License): Likewise.
29205         * modules/string (License): Likewise.
29206         * modules/strndup (License): Likewise.
29207         * modules/strnlen (License): Likewise.
29208         * modules/strpbrk (License): Likewise.
29209         * modules/strptime (License): Likewise.
29210         * modules/strsep (License): Likewise.
29211         * modules/sys_select (License): Likewise.
29212         * modules/sys_socket (License): Likewise.
29213         * modules/sys_stat (License): Likewise.
29214         * modules/sys_time (License): Likewise.
29215         * modules/time (License): Likewise.
29216         * modules/time_r (License): Likewise.
29217         * modules/timegm (License): Likewise.
29218         * modules/unistd (License): Likewise.
29219         * modules/vsnprintf (License): Likewise.
29220         * modules/wctype (License): Likewise.
29221
29222 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29223
29224         * modules/argz (License): LGPLv2+.
29225
29226 2007-07-15  Karl Berry  <karl@gnu.org>
29227
29228         * doc/gnulib.texi: revise node structure per new fdl.texi.
29229
29230 2007-07-14  Bruno Haible  <bruno@clisp.org>
29231
29232         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
29233         the output file.
29234         * lib/uniname/uninames.h: Regenerated.
29235
29236 2007-07-14  Karl Berry  <karl@gnu.org>
29237
29238         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
29239         omitting sectioning and index commands.
29240
29241 2007-07-13  Bruno Haible  <bruno@clisp.org>
29242
29243         New gnulib-tool option --more-symlinks.
29244         * gnulib-tool (func_usage): Document --more-symlinks.
29245         (do_copyrights): New variable.
29246         Recognize option --more-symlinks.
29247         (func_import): Don't add a copyright notice transform to
29248         sed_transform_lib_file if do_copyrights is empty.
29249
29250 2007-07-13  Bruno Haible  <bruno@clisp.org>
29251
29252         * lib/vasnprintf.c (decimal_point_char): Define also if
29253         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
29254         && !NEED_PRINTF_DIRECTIVE_A.
29255         Reported by Clemens Koller <clemens.koller@anagramm.de> via
29256         Gary V. Vaughan <gary@gnu.org>.
29257
29258 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
29259
29260         * lib/inttypes_.h: Undo previous change, since it was fixed
29261         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
29262
29263 2007-07-13  Bruno Haible  <bruno@clisp.org>
29264
29265         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
29266         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
29267
29268 2007-07-13  Jim Meyering  <jim@meyering.net>
29269
29270         df: Don't fail for Tru64's "file-on-file mount".
29271         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
29272         so we fall through and use statfs instead.  Details here:
29273         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
29274         Reported by Albert Chin.
29275
29276 2007-07-13  Bruno Haible  <bruno@clisp.org>
29277
29278         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
29279         * modules/configmake (License): Likewise.
29280         * modules/gettext (License): Likewise.
29281         * modules/gettext-h (License): Likewise.
29282         * modules/include_next (License): Likewise.
29283         * modules/link-warning (License): Likewise.
29284         * modules/localcharset (License): Likewise.
29285         * modules/localename (License): Likewise.
29286         * modules/lock (License): Likewise.
29287         * modules/relocatable-lib-lgpl (License): Likewise.
29288         * modules/size_max (License): Likewise.
29289         * modules/vasnprintf (License): Likewise.
29290         * modules/wchar (License): Likewise.
29291         * modules/xsize (License): Likewise.
29292
29293 2007-07-13  Bruno Haible  <bruno@clisp.org>
29294
29295         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
29296         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
29297
29298 2007-07-12  Bruno Haible  <bruno@clisp.org>
29299
29300         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
29301         in the modules files.
29302
29303 2007-07-11  Karl Berry  <karl@gnu.org>
29304
29305         * MODULES.html.sh (func_module): use
29306          sed -e '\|^'"${includefile}"'$|d'
29307          instead of /.../d, to avoid errors on $includefile's containing /.
29308
29309 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29310
29311         * gnulib-tool (func_import): Avoid duplication of --avoid
29312         statements
29313         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
29314         names to `_' in variable names.
29315
29316 2007-07-10  Eric Blake  <ebb9@byu.net>
29317
29318         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
29319         * NEWS: Document this change.
29320
29321 2007-07-08  Bruno Haible  <bruno@clisp.org>
29322
29323         Update to Unicode 5.0.
29324         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
29325         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
29326         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
29327         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
29328         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
29329         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
29330         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
29331         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
29332         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
29333         U+10A3F, U+1D242..U+1D244.
29334         (nonspacing_table_ind): Update.
29335         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
29336         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
29337
29338 2007-07-08  Bruno Haible  <bruno@clisp.org>
29339
29340         Update to Unicode 5.0.
29341         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
29342         code transform. Extend the name index field of unicode_name_to_code and
29343         unicode_code_to_name from 16 to 24 bits.
29344         * lib/uniname/uniname.c (unicode_character_name,
29345         unicode_name_character): Add the range 0x12xxx to the code transform.
29346         * lib/uniname/uninames.h: Regenerated.
29347         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
29348
29349 2007-07-07  Bruno Haible  <bruno@clisp.org>
29350
29351         * modules/wcwidth-tests: New file.
29352         * tests/test-wcwidth.c: New file.
29353
29354         Work around MacOS X wcwidth() bug.
29355         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
29356         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
29357         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
29358         original wcwidth in non-UTF-8 locales.
29359         * modules/wcwidth (Depends-on): Add localcharset, streq,
29360         uniwidth/width.
29361         * doc/functions/wcwidth.texi: Update.
29362
29363 2007-07-07  Bruno Haible  <bruno@clisp.org>
29364
29365         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
29366         (wcwidth): New declaration.
29367         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
29368         macros.
29369         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
29370         here. Prepare for creating <wchar.h> unconditionally.
29371         * modules/wchar (Depends-on): Add link-warning.
29372         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
29373         REPLACE_WCWIDTH, and GL_LINK_WARNING.
29374         * lib/wcwidth.h: Remove file.
29375         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
29376         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
29377         * modules/wcwidth (Files): Remove lib/wcwidth.h.
29378         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
29379         (Include): Replace wcwidth.h with <wchar.h>.
29380         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
29381         * lib/mbchar.h: Don't include wcwidth.h.
29382         * lib/mbswidth.c: Likewise.
29383         * NEWS: Mention the change.
29384
29385 2007-07-07  Bruno Haible  <bruno@clisp.org>
29386
29387         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
29388         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
29389         definition with an external declaration.
29390         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
29391         defined as a function. Remove AC_C_INLINE requirement.
29392         * modules/wcwidth (Files): Add lib/wcwidth.c.
29393         (Makefile.am): Remove redundant statement.
29394
29395 2007-07-07  Bruno Haible  <bruno@clisp.org>
29396
29397         * MODULES.html.sh (Unicode string functions): Add the new modules.
29398
29399         * tests/uniwidth/test-u32-strwidth.c: New file.
29400         * modules/uniwidth/u32-strwidth-tests: New file.
29401
29402         * lib/uniwidth/u32-strwidth.c: New file.
29403         * modules/uniwidth/u32-strwidth: New file.
29404
29405         * tests/uniwidth/test-u16-strwidth.c: New file.
29406         * modules/uniwidth/u16-strwidth-tests: New file.
29407
29408         * lib/uniwidth/u16-strwidth.c: New file.
29409         * modules/uniwidth/u16-strwidth: New file.
29410
29411         * tests/uniwidth/test-u8-strwidth.c: New file.
29412         * modules/uniwidth/u8-strwidth-tests: New file.
29413
29414         * lib/uniwidth/u8-strwidth.c: New file.
29415         * modules/uniwidth/u8-strwidth: New file.
29416
29417         * tests/uniwidth/test-u32-width.c: New file.
29418         * modules/uniwidth/u32-width-tests: New file.
29419
29420         * lib/uniwidth/u32-width.c: New file.
29421         * modules/uniwidth/u32-width: New file.
29422
29423         * tests/uniwidth/test-u16-width.c: New file.
29424         * modules/uniwidth/u16-width-tests: New file.
29425
29426         * lib/uniwidth/u16-width.c: New file.
29427         * modules/uniwidth/u16-width: New file.
29428
29429         * tests/uniwidth/test-u8-width.c: New file.
29430         * modules/uniwidth/u8-width-tests: New file.
29431
29432         * lib/uniwidth/u8-width.c: New file.
29433         * modules/uniwidth/u8-width: New file.
29434
29435         * tests/uniwidth/test-uc_width.c: New file.
29436         * modules/uniwidth/width-tests: New file.
29437
29438         * lib/uniwidth/width.c: New file, from GNU libiconv.
29439         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
29440         * modules/uniwidth/width: New file.
29441
29442         * lib/uniwidth.h: New file, from GNU libiconv.
29443         * modules/uniwidth/base: New file.
29444
29445 2007-07-07  Bruno Haible  <bruno@clisp.org>
29446
29447         * lib/uniname.h: New file, from GNU gettext.
29448         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
29449         * lib/uniname/uninames.h: New file, from GNU gettext.
29450         * lib/uniname/uniname.c: New file, from GNU gettext.
29451         * tests/uniname/test-uninames.sh: New file.
29452         * tests/uniname/test-uninames.c: New file, from GNU gettext.
29453         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
29454         * modules/uniname/base: New file.
29455         * modules/uniname/uniname: New file.
29456         * modules/uniname/uniname-tests: New file.
29457         * MODULES.html.sh (Unicode string functions): Add the new modules.
29458
29459 2007-07-06  Bruno Haible  <bruno@clisp.org>
29460
29461         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
29462
29463 2007-07-06  Bruno Haible  <bruno@clisp.org>
29464
29465         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
29466         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
29467         includes <cygwin/sys_time.h> which includes <sys/select.h> which
29468         include <sys/time.h>.
29469         Reported by Eric Blake.
29470
29471 2007-07-06  Eric Blake  <ebb9@byu.net>
29472
29473         Fix testing canonicalize on cygwin.
29474         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
29475         Revert patch from 2007-06-19.
29476         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
29477         canonicalize module is also in use.
29478         * tests/test-canonicalize.c: New file.
29479         * tests/test-canonicalize.sh: Likewise.
29480         * modules/canonicalize-tests: Likewise.
29481
29482 2007-07-06  Jim Meyering  <jim@meyering.net>
29483
29484         * lib/getugroups.c (getugroups): Detect getgrent failure.
29485         Adjust comment to reflect reality: this function may return -1.
29486
29487 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29488
29489         * build-aux/bootstrap (TP_URL,get_translations): Update to use
29490         the new TP address.
29491         (usage): Fix typo
29492         (gnulib_mk): New variable.
29493
29494 2007-07-05  Jim Meyering  <jim@meyering.net>
29495
29496         Don't let endgrent clobber errno, no matter how improbable.
29497         * lib/getugroups.c (getugroups): Save and restore errno around
29498         endgrent call.
29499
29500         Close the group DB even when failing with 2^31 or more members.
29501         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
29502
29503 2007-07-04  Jim Meyering  <jim@meyering.net>
29504
29505         * lib/getugroups.h: New file.
29506         * lib/getugroups.c: Include "getugroups.h".
29507         Remove uses of "register" keyword.
29508         Move local variable, "cp", down into scope where used.
29509         Give "username" parameter the "const" attribute.
29510         * modules/getugroups (Files): Add lib/getugroups.h
29511
29512 2007-07-04  Karl Berry  <karl@gnu.org>
29513
29514         * MODULES.html.sh (func_all_modules): Complete rename of
29515         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
29516
29517 2007-07-02  Bruno Haible  <bruno@clisp.org>
29518
29519         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
29520         mode, when inttypes.h comes from gnulib.
29521         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29522
29523 2007-07-02  Simon Josefsson  <simon@josefsson.org>
29524
29525         * NEWS: Mention lgpl module name change.
29526
29527         * modules/lgpl-2.1: Renamed from lgpl.
29528
29529         * NEWS: Mention gpl module name change.
29530
29531         * modules/gpl-3.0: New file, based on gpl-2.0.
29532
29533         * modules/gpl-2.0: Renamed from gpl.
29534
29535         * modules/gpl: Fix filename, doc/gpl.texi is now found at
29536         doc/gpl-2.0.texi.
29537
29538 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
29539
29540         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
29541         #define __STDC_LIMIT_MACROS temporarily while including
29542         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
29543         Problem reported by Joel E. Denny in
29544         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
29545
29546 2007-07-01  Bruno Haible  <bruno@clisp.org>
29547
29548         * lib/unistdio.h: New file.
29549         * lib/unistdio/u-asnprintf.h: New file.
29550         * lib/unistdio/u-asprintf.h: New file.
29551         * lib/unistdio/u-printf-args.c: New file.
29552         * lib/unistdio/u-printf-args.h: New file.
29553         * lib/unistdio/u-printf-parse.h: New file.
29554         * lib/unistdio/u-snprintf.h: New file.
29555         * lib/unistdio/u-sprintf.h: New file.
29556         * lib/unistdio/u-vasprintf.h: New file.
29557         * lib/unistdio/u-vsnprintf.h: New file.
29558         * lib/unistdio/u-vsprintf.h: New file.
29559         * lib/unistdio/ulc-asnprintf.c: New file.
29560         * lib/unistdio/ulc-asprintf.c: New file.
29561         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
29562         * lib/unistdio/ulc-printf-parse.c: New file.
29563         * lib/unistdio/ulc-snprintf.c: New file.
29564         * lib/unistdio/ulc-sprintf.c: New file.
29565         * lib/unistdio/ulc-vasnprintf.c: New file.
29566         * lib/unistdio/ulc-vasprintf.c: New file.
29567         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
29568         * lib/unistdio/ulc-vsnprintf.c: New file.
29569         * lib/unistdio/ulc-vsprintf.c: New file.
29570         * lib/unistdio/u8-asnprintf.c: New file.
29571         * lib/unistdio/u8-asprintf.c: New file.
29572         * lib/unistdio/u8-printf-parse.c: New file.
29573         * lib/unistdio/u8-snprintf.c: New file.
29574         * lib/unistdio/u8-sprintf.c: New file.
29575         * lib/unistdio/u8-vasnprintf.c: New file.
29576         * lib/unistdio/u8-vasprintf.c: New file.
29577         * lib/unistdio/u8-vsnprintf.c: New file.
29578         * lib/unistdio/u8-vsprintf.c: New file.
29579         * lib/unistdio/u8-u8-asnprintf.c: New file.
29580         * lib/unistdio/u8-u8-asprintf.c: New file.
29581         * lib/unistdio/u8-u8-snprintf.c: New file.
29582         * lib/unistdio/u8-u8-sprintf.c: New file.
29583         * lib/unistdio/u8-u8-vasnprintf.c: New file.
29584         * lib/unistdio/u8-u8-vasprintf.c: New file.
29585         * lib/unistdio/u8-u8-vsnprintf.c: New file.
29586         * lib/unistdio/u8-u8-vsprintf.c: New file.
29587         * lib/unistdio/u16-asnprintf.c: New file.
29588         * lib/unistdio/u16-asprintf.c: New file.
29589         * lib/unistdio/u16-printf-parse.c: New file.
29590         * lib/unistdio/u16-snprintf.c: New file.
29591         * lib/unistdio/u16-sprintf.c: New file.
29592         * lib/unistdio/u16-vasnprintf.c: New file.
29593         * lib/unistdio/u16-vasprintf.c: New file.
29594         * lib/unistdio/u16-vsnprintf.c: New file.
29595         * lib/unistdio/u16-vsprintf.c: New file.
29596         * lib/unistdio/u16-u16-asnprintf.c: New file.
29597         * lib/unistdio/u16-u16-asprintf.c: New file.
29598         * lib/unistdio/u16-u16-snprintf.c: New file.
29599         * lib/unistdio/u16-u16-sprintf.c: New file.
29600         * lib/unistdio/u16-u16-vasnprintf.c: New file.
29601         * lib/unistdio/u16-u16-vasprintf.c: New file.
29602         * lib/unistdio/u16-u16-vsnprintf.c: New file.
29603         * lib/unistdio/u16-u16-vsprintf.c: New file.
29604         * lib/unistdio/u32-asnprintf.c: New file.
29605         * lib/unistdio/u32-asprintf.c: New file.
29606         * lib/unistdio/u32-printf-parse.c: New file.
29607         * lib/unistdio/u32-snprintf.c: New file.
29608         * lib/unistdio/u32-sprintf.c: New file.
29609         * lib/unistdio/u32-vasnprintf.c: New file.
29610         * lib/unistdio/u32-vasprintf.c: New file.
29611         * lib/unistdio/u32-vsnprintf.c: New file.
29612         * lib/unistdio/u32-vsprintf.c: New file.
29613         * lib/unistdio/u32-u32-asnprintf.c: New file.
29614         * lib/unistdio/u32-u32-asprintf.c: New file.
29615         * lib/unistdio/u32-u32-snprintf.c: New file.
29616         * lib/unistdio/u32-u32-sprintf.c: New file.
29617         * lib/unistdio/u32-u32-vasnprintf.c: New file.
29618         * lib/unistdio/u32-u32-vasprintf.c: New file.
29619         * lib/unistdio/u32-u32-vsnprintf.c: New file.
29620         * lib/unistdio/u32-u32-vsprintf.c: New file.
29621         * tests/unistdio/test-ulc-asnprintf1.c: New file.
29622         * tests/unistdio/test-ulc-asnprintf1.h: New file.
29623         * tests/unistdio/test-ulc-printf1.h: New file.
29624         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
29625         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
29626         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
29627         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
29628         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
29629         * tests/unistdio/test-ulc-vasprintf1.c: New file.
29630         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
29631         * tests/unistdio/test-ulc-vsprintf1.c: New file.
29632         * tests/unistdio/test-u8-asnprintf1.c: New file.
29633         * tests/unistdio/test-u8-asnprintf1.h: New file.
29634         * tests/unistdio/test-u8-printf1.h: New file.
29635         * tests/unistdio/test-u8-vasnprintf1.c: New file.
29636         * tests/unistdio/test-u8-vasnprintf2.c: New file.
29637         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
29638         * tests/unistdio/test-u8-vasnprintf3.c: New file.
29639         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
29640         * tests/unistdio/test-u8-vasprintf1.c: New file.
29641         * tests/unistdio/test-u8-vsnprintf1.c: New file.
29642         * tests/unistdio/test-u8-vsprintf1.c: New file.
29643         * tests/unistdio/test-u16-asnprintf1.c: New file.
29644         * tests/unistdio/test-u16-asnprintf1.h: New file.
29645         * tests/unistdio/test-u16-printf1.h: New file.
29646         * tests/unistdio/test-u16-vasnprintf1.c: New file.
29647         * tests/unistdio/test-u16-vasnprintf2.c: New file.
29648         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
29649         * tests/unistdio/test-u16-vasnprintf3.c: New file.
29650         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
29651         * tests/unistdio/test-u16-vasprintf1.c: New file.
29652         * tests/unistdio/test-u16-vsnprintf1.c: New file.
29653         * tests/unistdio/test-u16-vsprintf1.c: New file.
29654         * tests/unistdio/test-u32-asnprintf1.c: New file.
29655         * tests/unistdio/test-u32-asnprintf1.h: New file.
29656         * tests/unistdio/test-u32-printf1.h: New file.
29657         * tests/unistdio/test-u32-vasnprintf1.c: New file.
29658         * tests/unistdio/test-u32-vasnprintf2.c: New file.
29659         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
29660         * tests/unistdio/test-u32-vasnprintf3.c: New file.
29661         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
29662         * tests/unistdio/test-u32-vasprintf1.c: New file.
29663         * tests/unistdio/test-u32-vsnprintf1.c: New file.
29664         * tests/unistdio/test-u32-vsprintf1.c: New file.
29665         * modules/unistdio/base: New file.
29666         * modules/unistdio/u-printf-args: New file.
29667         * modules/unistdio/ulc-asnprintf: New file.
29668         * modules/unistdio/ulc-asprintf: New file.
29669         * modules/unistdio/ulc-fprintf: New file.
29670         * modules/unistdio/ulc-printf-parse: New file.
29671         * modules/unistdio/ulc-snprintf: New file.
29672         * modules/unistdio/ulc-sprintf: New file.
29673         * modules/unistdio/ulc-vasnprintf: New file.
29674         * modules/unistdio/ulc-vasprintf: New file.
29675         * modules/unistdio/ulc-vfprintf: New file.
29676         * modules/unistdio/ulc-vsnprintf: New file.
29677         * modules/unistdio/ulc-vsprintf: New file.
29678         * modules/unistdio/u8-asnprintf: New file.
29679         * modules/unistdio/u8-asprintf: New file.
29680         * modules/unistdio/u8-printf-parse: New file.
29681         * modules/unistdio/u8-snprintf: New file.
29682         * modules/unistdio/u8-sprintf: New file.
29683         * modules/unistdio/u8-vasnprintf: New file.
29684         * modules/unistdio/u8-vasprintf: New file.
29685         * modules/unistdio/u8-vsnprintf: New file.
29686         * modules/unistdio/u8-vsprintf: New file.
29687         * modules/unistdio/u8-u8-asnprintf: New file.
29688         * modules/unistdio/u8-u8-asprintf: New file.
29689         * modules/unistdio/u8-u8-snprintf: New file.
29690         * modules/unistdio/u8-u8-sprintf: New file.
29691         * modules/unistdio/u8-u8-vasnprintf: New file.
29692         * modules/unistdio/u8-u8-vasprintf: New file.
29693         * modules/unistdio/u8-u8-vsnprintf: New file.
29694         * modules/unistdio/u8-u8-vsprintf: New file.
29695         * modules/unistdio/u16-asnprintf: New file.
29696         * modules/unistdio/u16-asprintf: New file.
29697         * modules/unistdio/u16-printf-parse: New file.
29698         * modules/unistdio/u16-snprintf: New file.
29699         * modules/unistdio/u16-sprintf: New file.
29700         * modules/unistdio/u16-vasnprintf: New file.
29701         * modules/unistdio/u16-vasprintf: New file.
29702         * modules/unistdio/u16-vsnprintf: New file.
29703         * modules/unistdio/u16-vsprintf: New file.
29704         * modules/unistdio/u16-u16-asnprintf: New file.
29705         * modules/unistdio/u16-u16-asprintf: New file.
29706         * modules/unistdio/u16-u16-snprintf: New file.
29707         * modules/unistdio/u16-u16-sprintf: New file.
29708         * modules/unistdio/u16-u16-vasnprintf: New file.
29709         * modules/unistdio/u16-u16-vasprintf: New file.
29710         * modules/unistdio/u16-u16-vsnprintf: New file.
29711         * modules/unistdio/u16-u16-vsprintf: New file.
29712         * modules/unistdio/u32-asnprintf: New file.
29713         * modules/unistdio/u32-asprintf: New file.
29714         * modules/unistdio/u32-printf-parse: New file.
29715         * modules/unistdio/u32-snprintf: New file.
29716         * modules/unistdio/u32-sprintf: New file.
29717         * modules/unistdio/u32-vasnprintf: New file.
29718         * modules/unistdio/u32-vasprintf: New file.
29719         * modules/unistdio/u32-vsnprintf: New file.
29720         * modules/unistdio/u32-vsprintf: New file.
29721         * modules/unistdio/u32-u32-asnprintf: New file.
29722         * modules/unistdio/u32-u32-asprintf: New file.
29723         * modules/unistdio/u32-u32-snprintf: New file.
29724         * modules/unistdio/u32-u32-sprintf: New file.
29725         * modules/unistdio/u32-u32-vasnprintf: New file.
29726         * modules/unistdio/u32-u32-vasprintf: New file.
29727         * modules/unistdio/u32-u32-vsnprintf: New file.
29728         * modules/unistdio/u32-u32-vsprintf: New file.
29729         * modules/unistdio/ulc-asnprintf-tests: New file.
29730         * modules/unistdio/ulc-vasnprintf-tests: New file.
29731         * modules/unistdio/ulc-vasprintf-tests: New file.
29732         * modules/unistdio/ulc-vsnprintf-tests: New file.
29733         * modules/unistdio/ulc-vsprintf-tests: New file.
29734         * modules/unistdio/u8-asnprintf-tests: New file.
29735         * modules/unistdio/u8-vasnprintf-tests: New file.
29736         * modules/unistdio/u8-vasprintf-tests: New file.
29737         * modules/unistdio/u8-vsnprintf-tests: New file.
29738         * modules/unistdio/u8-vsprintf-tests: New file.
29739         * modules/unistdio/u16-asnprintf-tests: New file.
29740         * modules/unistdio/u16-vasnprintf-tests: New file.
29741         * modules/unistdio/u16-vasprintf-tests: New file.
29742         * modules/unistdio/u16-vsnprintf-tests: New file.
29743         * modules/unistdio/u16-vsprintf-tests: New file.
29744         * modules/unistdio/u32-asnprintf-tests: New file.
29745         * modules/unistdio/u32-vasnprintf-tests: New file.
29746         * modules/unistdio/u32-vasprintf-tests: New file.
29747         * modules/unistdio/u32-vsnprintf-tests: New file.
29748         * modules/unistdio/u32-vsprintf-tests: New file.
29749         * MODULES.html.sh (Unicode string functions): Add the new modules.
29750
29751 2007-07-01  Bruno Haible  <bruno@clisp.org>
29752
29753         * lib/sprintf.c (sprintf): Limit the available length estimation,
29754         to avoid address wraparound.
29755         * lib/vsprintf.c (vsprintf): Likewise.
29756         * modules/sprintf-posix (Dependencies): Add stdint.
29757         * modules/vsprintf-posix (Dependencies): Likewise.
29758
29759 2007-07-01  Bruno Haible  <bruno@clisp.org>
29760
29761         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
29762         Windows PATH as well. Conservative double-quoting. Comments.
29763
29764 2007-07-01  Bruno Haible  <bruno@clisp.org>
29765             Eric Blake  <ebb9@byu.net>
29766             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29767
29768         * gnulib-tool (self_abspathname): Fix algorithm to cope with
29769         empty components in $PATH, denoting '.'.
29770
29771 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29772
29773         * gnulib-tool: Fix indentation.
29774         (func_create_megatestdir): Likewise.
29775         Report by Bruno Haible.
29776
29777 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29778
29779         Sync from Automake.
29780         * build-aux/gnupload: Fix shell portability issues with for loops.
29781         Report by Karl Berry.
29782
29783 2007-06-29  Simon Josefsson  <simon@josefsson.org>
29784
29785         * build-aux/maint.mk (POURL): Use translationproject.org.
29786
29787 2007-06-27  Simon Josefsson  <simon@josefsson.org>
29788             Bruno Haible  <bruno@clisp.org>
29789
29790         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
29791         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
29792         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
29793         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
29794         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
29795
29796 2007-06-27  Bruno Haible  <bruno@clisp.org>
29797
29798         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
29799         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
29800
29801 2007-06-26  Karl Berry  <karl@gnu.org>
29802
29803         * MODULES.html.sh: remove xreadlink-with-size.
29804
29805 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29806
29807         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
29808         method that I hope also handles the double-include problem noted
29809         by Bruno Haible in
29810         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
29811
29812 2007-06-23  Bruno Haible  <bruno@clisp.org>
29813
29814         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29815         Don't let the 'mostlyclean' target fail if the last subdirectory could
29816         not be removed.
29817         Reported by Karl Berry.
29818
29819 2007-06-23  Bruno Haible  <bruno@clisp.org>
29820
29821         * gnulib-tool (echo): Add a speedier workaround for ksh.
29822         * tests/test-echo.sh: Likewise.
29823
29824 2007-06-23  Bruno Haible  <bruno@clisp.org>
29825
29826         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
29827         * tests/test-echo.sh: Likewise.
29828
29829 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29830
29831         * gnulib-tool (IFS): Initialize early, so we don't set it to
29832         empty later.
29833         (self_abspathname): Rewrite algorithm to set it, reindent.
29834         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
29835         (func_create_megatestdir): Merge some sed scripts.
29836
29837 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
29838
29839         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
29840         exposed by Sun Studio 11 cc on Solaris 8.
29841
29842 2007-06-22  Bruno Haible  <bruno@clisp.org>
29843
29844         * gnulib-tool (echo): Ensure the echo primitive does not interpret
29845         backslashes.
29846         * tests/test-echo.sh: New file.
29847
29848 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29849
29850         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
29851         simplify `sed_replace_build_aux' scripts, they are portable but
29852         echoing them with `echo' is not.
29853         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
29854
29855 2007-06-21  Karl Berry  <karl@gnu.org>
29856
29857         * config/srclist.txt: guess we can't handle the licenses via
29858         srclist at the moment.
29859
29860 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
29861
29862         * MODULES.html.sh: Add include_next.
29863         * modules/include_next: New file.
29864
29865 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
29866
29867         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
29868         INCLUDE_NEXT.
29869         (gl_CHECK_NEXT_HEADERS): New macro.
29870         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
29871         the obsolescent gl_ABSOLUTE_HEADER.
29872         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
29873         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
29874         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29875         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29876         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29877         * m4/math_h.m4 (gl_MATH_H): Likewise.
29878         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
29879         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29880         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29881         * m4/stdint.m4 (gl_STDINT_H): Likewise.
29882         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29883         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29884         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29885         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29886         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29887         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29888         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29889         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29890         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
29891         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29892         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29893         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29894         * m4/inttypes.m4 (gl_INTTYPES_H): Define
29895         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
29896         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
29897         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
29898         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
29899         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
29900         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
29901         * lib/float_.h: Likewise.
29902         * lib/inttypes_.h: Likewise.
29903         * lib/math_.h: Likewise.
29904         * lib/search_.h: Likewise.
29905         * lib/signal_.h: Likewise.
29906         * lib/stdint_.h: Likewise.
29907         * lib/stdio_.h: Likewise.
29908         * lib/stdlib_.h: Likewise.
29909         * lib/string_.h: Likewise.
29910         * lib/sys_stat_.h: Likewise.
29911         * lib/sys_time_.h: Likewise.
29912         * lib/time_.h: Likewise.
29913         * lib/unistd_.h: Likewise.
29914         * lib/wchar_.h: Likewise.
29915         * lib/wctype_.h: Likewise.
29916         * lib/dirent_.h: Likewise.
29917         * lib/iconv_.h: Likewise.
29918         * lib/locale_.h: Likewise.
29919         * lib/netinet_in_.h: Likewise.
29920         * lib/sys_select_.h: Likewise.
29921         * lib/sys_socket_.h: Likewise.
29922         * lib/sysexits_.h: Likewise.
29923         * modules/fcntl (Depends-on): Depend on include_next, not
29924         absolute_header.
29925         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
29926         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
29927         * modules/fchdir: Likewise.
29928         * modules/float: Likewise.
29929         * modules/iconv_open: Likewise.
29930         * modules/inttypes: Likewise.
29931         * modules/locale: Likewise.
29932         * modules/math: Likewise.
29933         * modules/netinet_in: Likewise.
29934         * modules/search: Likewise.
29935         * modules/signal: Likewise.
29936         * modules/stdint: Likewise.
29937         * modules/stdio: Likewise.
29938         * modules/stdlib: Likewise.
29939         * modules/string: Likewise.
29940         * modules/sys_select: Likewise.
29941         * modules/sys_socket: Likewise.
29942         * modules/sys_stat: Likewise.
29943         * modules/sys_time: Likewise.
29944         * modules/sysexits: Likewise.
29945         * modules/time: Likewise.
29946         * modules/unistd: Likewise.
29947         * modules/wchar: Likewise.
29948         * modules/wctype: Likewise.
29949         * modules/sys_stat: Change maintainer to "all".
29950         * modules/unistd: Likewise.
29951
29952 2007-06-20  Karl Berry  <karl@gnu.org>
29953
29954         * config/srclist.txt: track www changes in license files.
29955
29956 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
29957
29958         * build-aux/bootstrap: Remove stray dot.
29959         Make sure build_aux settings are honored when linking
29960         gnulib_extra_files.
29961
29962 2007-06-19  Eric Blake  <ebb9@byu.net>
29963
29964         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
29965         Allow compilation on cygwin.
29966
29967 2007-06-19  Jim Meyering  <jim@meyering.net>
29968
29969         xreadlink-with-size: Remove module.  No longer used.
29970         Ex-callers now use xreadlink or mreadlink-with-size.
29971         * modules/xreadlink-with-size: Remove module.
29972         * lib/xreadlink-with-size.c: Remove file.
29973         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
29974         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
29975         just before the function definition *is* accurate.
29976
29977         Eliminate one way canonicalize_filename_mode could exit.
29978         * lib/canonicalize.c (canonicalize_filename_mode):
29979         Use mreadlink_with_size, not xreadlink_with_size.
29980
29981 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
29982
29983         Detect porting problems to FreeBSD/arm, which has time_t wider than
29984         long int.  Original problem reported for GNU diff by Xin Li in
29985         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
29986         * modules/getdate (Depends-on): Add intprops, verify.
29987         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
29988         is an integer type no wider than long int.
29989
29990 2007-06-18  Jim Meyering  <jim@meyering.net>
29991
29992         New module: mreadlink-with-size.
29993         * MODULES.html.sh: Add mreadlink-with-size.
29994         * modules/mreadlink-with-size: New module
29995         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
29996         not xreadlink-with-size.
29997         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
29998
29999 2007-06-16  Bruno Haible  <bruno@clisp.org>
30000
30001         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
30002         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
30003         Reported by Gary V. Vaughan <gary@gnu.org>.
30004
30005 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
30006
30007         Revamp lchown so that it lives in unistd.h where it belongs.
30008         * lib/lchown.h: Remove.
30009         * lib/dirchownmod.c: Don't include lib/lchown.h.
30010         * lib/fchownat.c: Likewise.
30011         * lib/openat.c: Likewise.
30012         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
30013         does not follow symlinks.
30014         (EOPNOTSUPP): Define if not defined.
30015         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
30016         is defined to 0.
30017         (lchown): New decl.
30018         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
30019         Do not check for lchown decl.
30020         Set REPLACE_LCHOWN.
30021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
30022         REPLACE_LCHOWN.
30023         * modules/chown: Make it clear it follows symlinks.
30024         * modules/lchown: Make it clear it doesn't follow symlinks.
30025         (Files): Remove lib/lchown.h
30026         (Depends-on): Add unistd.
30027         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
30028         (Include): Include <unistd.h>, not "lchown.h".
30029         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
30030         REPLACE_LCHOWN.
30031
30032 2007-06-15  Jim Meyering  <jim@meyering.net>
30033
30034         Change license (GPL to LGPL) of fsusage and dependents.
30035         * modules/fsusage (License): Change to LGPL.
30036         * modules/full-read (License): Likewise.
30037         * modules/full-write (License): Likewise.
30038         * modules/safe-read (License): Likewise.
30039         * modules/safe-write (License): Likewise.
30040
30041 2007-06-14  Ben Pfaff  <blp@gnu.org>
30042
30043         Missing part of allocsa -> malloca transition.
30044         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
30045         gl_MALLOCA.
30046
30047 2007-06-12  Bruno Haible  <bruno@clisp.org>
30048
30049         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
30050         to ia64, x86_64, i386.
30051         Reported by Eric Blake.
30052
30053 2007-06-12  Bruno Haible  <bruno@clisp.org>
30054
30055         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
30056         cross-compiling to x86_64.
30057
30058 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
30059
30060         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
30061         glitch reported by Ralf Wildenhues in
30062         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
30063
30064         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
30065         Vin Shelton.
30066
30067 2007-06-11  Bruno Haible  <bruno@clisp.org>
30068
30069         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
30070         replacement string.
30071         Reported by Eric Blake.
30072
30073 2007-06-10  Bruno Haible  <bruno@clisp.org>
30074
30075         Prepare vasnprintf code for use with Unicode strings.
30076         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
30077         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
30078         TYPE_U32_STRING.
30079         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
30080         a_u32_string variants.
30081         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
30082         * lib/printf-args.c: Don't include config.h and the specification
30083         header if PRINTF_FETCHARGS is already defined.
30084         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
30085         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
30086         TYPE_U16_STRING, TYPE_U32_STRING.
30087         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
30088         u16_directive, u16_directives, u32_directive, u32_directives): New
30089         types.
30090         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
30091         New declarations.
30092         * lib/printf-parse.c: Don't include config.h and the specification
30093         header if PRINTF_PARSE is already defined. Eliminate the set of
30094         parameters for WIDE_CHAR_VERSION; the user of this file must provide
30095         them now. Include c-ctype.h.
30096         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
30097         directive and CHAR_T_ONLY_ASCII.
30098         * lib/vasnprintf.c: Don't include config.h and the specification header
30099         if VASNPRINTF is already defined.
30100         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
30101         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
30102         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
30103         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
30104         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
30105         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
30106         code accordingly.
30107         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
30108         pad_ourselves also in this case, with the 'c' and 's' directives, and
30109         with a different notion of "width".
30110         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
30111
30112 2007-06-10  Bruno Haible  <bruno@clisp.org>
30113
30114         * modules/unistr/u32-mbsnlen: New file.
30115         * lib/unistr/u32-mbsnlen.c: New file.
30116
30117         * modules/unistr/u16-mbsnlen: New file.
30118         * lib/unistr/u16-mbsnlen.c: New file.
30119
30120         * modules/unistr/u8-mbsnlen: New file.
30121         * lib/unistr/u8-mbsnlen.c: New file.
30122
30123         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
30124         declarations.
30125
30126 2007-06-10  Bruno Haible  <bruno@clisp.org>
30127
30128         * lib/string_.h (mbsnlen): New declaration.
30129         * lib/mbsnlen.c: New file.
30130         * m4/mbsnlen.m4: New file.
30131         * modules/mbsnlen: New file.
30132         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
30133         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
30134         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
30135
30136 2007-06-10  Bruno Haible  <bruno@clisp.org>
30137
30138         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
30139
30140 2007-06-10  Bruno Haible  <bruno@clisp.org>
30141
30142         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
30143         * lib/mbuiter.h: Likewise.
30144
30145 2007-06-10  Bruno Haible  <bruno@clisp.org>
30146
30147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
30148         declaration.
30149
30150 2007-06-10  Karl Berry  <karl@gnu.org>
30151
30152         * config/srclist.txt: remove gettext entries, Bruno prefers
30153         to update individually.
30154
30155 2007-06-10  Bruno Haible  <bruno@clisp.org>
30156
30157         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
30158         'maxlen'. Ensure only length + width bytes are allocated, not
30159         length + 1 + width.
30160
30161 2007-06-09  Bruno Haible  <bruno@clisp.org>
30162
30163         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
30164         (CHAR_T): Remove macro.
30165         (VASNPRINTF): Update.
30166
30167 2007-06-09  Bruno Haible  <bruno@clisp.org>
30168
30169         * MODULES.html.sh (Unicode string functions): Add the new modules.
30170
30171         * modules/uniconv/u32-conv-to-enc: New file.
30172         * lib/uniconv/u32-conv-to-enc.c: New file.
30173         * modules/uniconv/u32-conv-to-enc-tests: New file.
30174         * tests/uniconv/test-u32-conv-to-enc.c: New file.
30175
30176         * modules/uniconv/u16-conv-to-enc: New file.
30177         * lib/uniconv/u16-conv-to-enc.c: New file.
30178         * lib/uniconv/u-conv-to-enc.h: New file.
30179         * modules/uniconv/u16-conv-to-enc-tests: New file.
30180         * tests/uniconv/test-u16-conv-to-enc.c: New file.
30181
30182         * modules/uniconv/u8-conv-to-enc: New file.
30183         * lib/uniconv/u8-conv-to-enc.c: New file.
30184         * modules/uniconv/u8-conv-to-enc-tests: New file.
30185         * tests/uniconv/test-u8-conv-to-enc.c: New file.
30186
30187         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30188         u32_conv_to_encoding): New declarations.
30189
30190 2007-06-09  Bruno Haible  <bruno@clisp.org>
30191
30192         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
30193
30194 2007-06-09  Bruno Haible  <bruno@clisp.org>
30195
30196         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
30197         * modules/malloca: Renamed from modules/allocsa, updated.
30198         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
30199         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
30200         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
30201         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
30202         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
30203         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
30204         * modules/xmalloca: Renamed from modules/xallocsa, updated.
30205         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
30206         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
30207         * modules/c-strcasestr (Depends-on): Update.
30208         * lib/c-strcasestr.c: Update.
30209         * modules/c-strstr (Depends-on): Update.
30210         * lib/c-strstr.c: Update.
30211         * modules/canonicalize-lgpl (Depends-on): Update.
30212         * lib/canonicalize-lgpl.c: Update.
30213         * modules/clean-temp (Depends-on): Update.
30214         * lib/clean-temp.c: Update.
30215         * modules/csharpcomp (Depends-on): Update.
30216         * lib/csharpcomp.c: Update.
30217         * modules/csharpexec (Depends-on): Update.
30218         * lib/csharpexec.c: Update.
30219         * modules/javacomp (Depends-on): Update.
30220         * lib/javacomp.c: Update.
30221         * modules/javaexec (Depends-on): Update.
30222         * lib/javaexec.c: Update.
30223         * modules/mbscasestr (Depends-on): Update.
30224         * lib/mbscasestr.c: Update.
30225         * modules/mbsstr (Depends-on): Update.
30226         * lib/mbsstr.c: Update.
30227         * modules/setenv (Depends-on): Update.
30228         * lib/setenv.c: Update.
30229         * modules/strcasestr (Depends-on): Update.
30230         * lib/strcasestr.c: Update.
30231         * modules/striconveha (Depends-on): Update.
30232         * lib/striconveha.c: Update.
30233         * modules/relocatable-prog-wrapper (Files): Update.
30234         * lib/relocwrapper.c: Update.
30235         * build-aux/install-reloc: Update.
30236         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
30237
30238 2007-06-08  Bruno Haible  <bruno@clisp.org>
30239
30240         Port to uClibc.
30241         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
30242         * lib/fpurge.c (fpurge): Likewise.
30243         * lib/freading.c (freading): Likewise.
30244         * lib/fseeko.c (rpl_fseeko): Likewise.
30245         * lib/fseterr.c (fseterr): Likewise.
30246         * lib/fwriting.c (fwriting): Likewise.
30247         * tests/test-fflush.c (main): Avoid a failure on uClibc.
30248
30249 2007-06-08  Bruno Haible  <bruno@clisp.org>
30250
30251         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
30252         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
30253         * modules/gettext (Files): Add m4/intlmacosx.m4.
30254
30255 2007-06-07  Bruno Haible  <bruno@clisp.org>
30256
30257         * modules/localename-tests: New file.
30258         * tests/test-localename.c: New file.
30259
30260         New module 'localename'.
30261         * lib/localename.h: New file.
30262         * lib/localename.c: New file, from GNU gettext.
30263         * m4/localename.m4: New file.
30264         * modules/localename: New file.
30265
30266 2007-06-07  Bruno Haible  <bruno@clisp.org>
30267
30268         Work around the lack of <wchar.h> on some builds of uClibc.
30269         * doc/headers/wchar.texi: Update.
30270         * lib/wchar_.h: Include <wchar.h> only if it exists.
30271         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
30272         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
30273         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
30274         doesn't exist.
30275         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
30276         * modules/mbfile (Depends-on): Add wchar.
30277         * modules/mbiter (Depends-on): Likewise.
30278         * modules/mbuiter (Depends-on): Likewise.
30279         Reported by Simon Josefsson.
30280
30281 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
30282
30283         Work around problem reported by Steven M. Schweda in
30284         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
30285         Tru64 5.1B with the Compaq compiler environment installed declares
30286         an 'isblank' function but does not define it in the C library.
30287         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
30288         * lib/regex_internal.h (isblank): Likewise.
30289         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
30290         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30291
30292 2007-06-05  Bruno Haible  <bruno@clisp.org>
30293
30294         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
30295         ia64.
30296         * modules/printf-safe: New file.
30297         * modules/fprintf-posix (Depends-on): Add printf-safe.
30298         * modules/printf-posix (Depends-on): Likewise.
30299         * modules/snprintf-posix (Depends-on): Likewise.
30300         * modules/sprintf-posix (Depends-on): Likewise.
30301         * modules/vasnprintf-posix (Depends-on): Likewise.
30302         * modules/vasprintf-posix (Depends-on): Likewise.
30303         * modules/vfprintf-posix (Depends-on): Likewise.
30304         * modules/vprintf-posix (Depends-on): Likewise.
30305         * modules/vsnprintf-posix (Depends-on): Likewise.
30306         * modules/vsprintf-posix (Depends-on): Likewise.
30307         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
30308         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
30309         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
30310         "no" on i386, x86_64, ia64.
30311         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
30312         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30313         on i386, x86_64, ia64.
30314         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
30315         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30316         on i386, x86_64, ia64.
30317         * tests/test-vasnprintf-posix.c: Include float.h.
30318         (LDBL80_WORDS): New macro.
30319         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30320         on i386, x86_64, ia64.
30321         * tests/test-vasprintf-posix.c: Include float.h.
30322         (LDBL80_WORDS): New macro.
30323         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30324         on i386, x86_64, ia64.
30325         * tests/test-snprintf-posix.c: Include float.h.
30326         * tests/test-sprintf-posix.c: Likewise.
30327         * tests/test-vsnprintf-posix.c: Likewise.
30328         * tests/test-vsprintf-posix.c: Likewise.
30329
30330 2007-06-05  Bruno Haible  <bruno@clisp.org>
30331
30332         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
30333         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
30334         non-IEEE numbers on i386, x86_64, ia64.
30335         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
30336         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
30337         * tests/test-isnanl.h: Include float.h.
30338         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
30339
30340 2007-06-05  Bruno Haible  <bruno@clisp.org>
30341
30342         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
30343         also the %a / %A. Handle the %a / %A code before this extra handling.
30344
30345 2007-06-05  Bruno Haible  <bruno@clisp.org>
30346
30347         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
30348         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
30349
30350 2007-06-05  Bruno Haible  <bruno@clisp.org>
30351
30352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
30353         typo in variable name.
30354
30355 2007-06-05  Eric Blake  <ebb9@byu.net>
30356
30357         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
30358         Reported by Simon Josefsson.
30359
30360 2007-06-04  Bruno Haible  <bruno@clisp.org>
30361
30362         Avoid test failures on some PowerPC platforms.
30363         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
30364         Define differently for PowerPC.
30365         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
30366         Reported by Gary V. Vaughan <gary@gnu.org>.
30367
30368 2007-06-02  Bruno Haible  <bruno@clisp.org>
30369
30370         Fix test-stdint failure on FreeBSD/ia64.
30371         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
30372         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
30373         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
30374         * doc/headers/stdint.texi: Update.
30375
30376 2007-06-01  Bruno Haible  <bruno@clisp.org>
30377
30378         * tests/test-binary-io.c (main): Pass a third argument to open().
30379         Reported by Gary V. Vaughan <gary@gnu.org>.
30380
30381 2007-06-01  Bruno Haible  <bruno@clisp.org>
30382
30383         * doc/functions/frexpl.texi: Update for mingw.
30384
30385 2007-06-01  Bruno Haible  <bruno@clisp.org>
30386
30387         * tests/test-lseek.c (main): Disable test of errno for invalid third
30388         argument.
30389         * doc/functions/lseek.texi: Update.
30390         Reported by Gary V. Vaughan <gary@gnu.org>.
30391
30392 2007-05-28  Bruno Haible  <bruno@clisp.org>
30393
30394         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
30395
30396 2007-05-31  Eric Blake  <ebb9@byu.net>
30397
30398         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
30399         cross compiling.
30400
30401 2007-05-30  Eric Blake  <ebb9@byu.net>
30402         and Bruno Haible  <bruno@clisp.org>
30403
30404         Work around mingw test failures exposed by m4-1.4.9b.
30405         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
30406         * tests/test-unistd.c: Disable uid_t and git_t tests for the
30407         moment.
30408
30409 2007-05-30  Bruno Haible  <bruno@clisp.org>
30410
30411         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
30412         assuming that they are closed. Needed on HP-UX 11.
30413
30414 2007-05-29  Bruno Haible  <bruno@clisp.org>
30415
30416         Fix a problem with #include_next.
30417         * lib/dirent_.h: Split the double-inclusion guard.
30418         * lib/fcntl_.h: Likewise.
30419         * lib/float_.h: Likewise.
30420         * lib/iconv_.h: Likewise.
30421         * lib/inttypes_.h: Likewise.
30422         * lib/locale_.h: Likewise.
30423         * lib/math_.h: Likewise.
30424         * lib/netinet_in_.h: Likewise.
30425         * lib/search_.h: Likewise.
30426         * lib/signal_.h: Likewise.
30427         * lib/stdint_.h: Likewise.
30428         * lib/stdio_.h: Likewise.
30429         * lib/stdlib_.h: Likewise.
30430         * lib/string_.h: Likewise.
30431         * lib/sys_select_.h: Likewise.
30432         * lib/sys_socket_.h: Likewise.
30433         * lib/sys_stat_.h: Likewise.
30434         * lib/sys_time_.h: Likewise.
30435         * lib/sysexits_.h: Likewise.
30436         * lib/time_.h: Likewise.
30437         * lib/unistd_.h: Likewise.
30438         * lib/wchar_.h: Likewise.
30439         * lib/wctype_.h: Likewise.
30440
30441 2007-05-29  Bruno Haible  <bruno@clisp.org>
30442
30443         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
30444         for the moment.
30445
30446 2007-05-29  Bruno Haible  <bruno@clisp.org>
30447
30448         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
30449         invocation.
30450         Reported by Eric Blake.
30451
30452 2007-05-29  Bruno Haible  <bruno@clisp.org>
30453
30454         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
30455         compiling case.
30456
30457 2007-05-29  Eric Blake  <ebb9@byu.net>
30458             Bruno Haible  <bruno@clisp.org>
30459
30460         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
30461         cross compiles.
30462
30463 2007-05-28  Eric Blake  <ebb9@byu.net>
30464
30465         * modules/closein-tests (test_closein_LDADD): Support test on
30466         cygwin with libtool.
30467
30468 2007-05-28  Bruno Haible  <bruno@clisp.org>
30469
30470         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
30471         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30472         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30473         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30474         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30475         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30476         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30477         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30478         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30479
30480 2007-05-28  Eric Blake  <ebb9@byu.net>
30481
30482         Unconditionally include <config.h> in unit tests.
30483         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
30484         * tests/test-allocsa.c, tests/test-arcfour.c,
30485         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
30486         tests/test-array_list.c, tests/test-array_oset.c,
30487         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
30488         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
30489         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
30490         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
30491         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
30492         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
30493         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
30494         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
30495         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
30496         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
30497         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
30498         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
30499         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
30500         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
30501         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
30502         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
30503         test-md5.c, test-memmem.c, test-printf-posix.c,
30504         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
30505         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
30506         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
30507         test-strcasestr.c, test-striconv.c, test-striconveh.c,
30508         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
30509         test-vasnprintf-posix2.c, test-vasnprintf.c,
30510         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
30511         test-vfprintf-posix.c, test-vprintf-posix.c,
30512         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
30513         test-xvasprintf.c: Likewise.
30514
30515 2007-05-28  Bruno Haible  <bruno@clisp.org>
30516
30517         * gnulib-tool (func_import): Remember the --with-tests command-line
30518         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
30519         Reported by Eric Blake.
30520
30521 2007-05-28  Bruno Haible  <bruno@clisp.org>
30522
30523         * modules/ftell-tests: New file.
30524         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
30525         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
30526
30527         * lib/ftell.c: New file.
30528         * modules/ftell: New file.
30529         * m4/ftell.m4: New file.
30530         * doc/functions/ftell.texi: Update.
30531         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
30532         REPLACE_FTELL.
30533         * lib/stdio_.h (rpl_ftell): New declaration.
30534         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
30535         REPLACE_FTELL.
30536
30537 2007-05-28  Eric Blake  <ebb9@byu.net>
30538
30539         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
30540
30541 2007-05-28  Bruno Haible  <bruno@clisp.org>
30542
30543         * modules/fseek-tests: New file.
30544         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
30545         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
30546
30547         * lib/fseek.c: New file.
30548         * modules/fseek: New file.
30549         * m4/fseek.m4: New file.
30550         * doc/functions/fseek.texi: Update.
30551         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
30552         REPLACE_FSEEK.
30553         * lib/stdio_.h (rpl_fseek): New declaration.
30554         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
30555         REPLACE_FSEEK.
30556
30557 2007-05-28  Bruno Haible  <bruno@clisp.org>
30558
30559         * lib/stdio_.h (fflush): More comments.
30560
30561 2007-05-28  Bruno Haible  <bruno@clisp.org>
30562
30563         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
30564         runtime test.
30565
30566 2007-05-28  Eric Blake  <ebb9@byu.net>
30567
30568         Improve lseek module.
30569         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
30570         * lib/unistd_.h (lseek): Scale back link warning message.
30571         * tests/test-lseek.c: Beef up test.
30572         * tests/test-lseek.sh: Exercise more facets of lseek.
30573         Reported by Bruno Haible.
30574
30575 2007-05-28  Bruno Haible  <bruno@clisp.org>
30576
30577         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
30578         to define.
30579
30580 2007-05-27  Bruno Haible  <bruno@clisp.org>
30581
30582         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
30583
30584 2007-05-27  Bruno Haible  <bruno@clisp.org>
30585
30586         * modules/openmp: New file.
30587         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
30588         Noah Misch.
30589
30590 2007-05-26  Bruno Haible  <bruno@clisp.org>
30591
30592         * modules/chdir-long (Depends-on): Add fchdir.
30593         * modules/chdir-safer (Depends-on): Likewise.
30594         * modules/fts (Depends-on): Likewise.
30595         * modules/fts-lgpl (Depends-on): Likewise.
30596         * modules/openat (Depends-on): Likewise.
30597         * modules/savewd (Depends-on): Likewise.
30598
30599 2007-05-24  Eric Blake  <ebb9@byu.net>
30600
30601         Fix lseek on mingw.
30602         * modules/lseek: New module.
30603         * m4/lseek.m4: New file.
30604         * lib/lseek.c: New file.
30605         * modules/lseek-tests: New file.
30606         * tests/test-lseek.c: New file.
30607         * tests/test-lseek.sh: New file.
30608         * MODULES.html.sh: Document lseek module.
30609         * modules/fflush (Depends-on): Add lseek, fseeko.
30610         * modules/fseeko (Depends-on): Likewise.
30611         * modules/ftello (Depends-on): Likewise.
30612         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
30613         broken.
30614         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
30615         broken.
30616         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
30617         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
30618         * lib/ftello.c (rpl_ftello): Likewise.
30619         * tests/test-fseeko.c (main): Test this.
30620         * tests/test-fseeko.sh: Likewise.
30621         * tests/test-ftello.c (main): Likewise.
30622         * tests/test-ftello.sh: Likewise.
30623         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
30624         implies replacing fseek.
30625         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
30626         HAVE_FTELLO.
30627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
30628         * modules/unistd (Makefile.am): Likewise.
30629         * lib/unistd_.h (lseek): Declare a replacement.
30630         * doc/functions/lseek.texi (lseek): Document this fix.
30631         * doc/functions/fseek.texi (fseek): Likewise.
30632         * doc/functions/ftell.texi (ftell): Likewise.
30633
30634 2007-05-24  Bruno Haible  <bruno@clisp.org>
30635
30636         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
30637         in the printed representation of a NaN.
30638         * tests/test-vasprintf-posix.c (test_function): Likewise.
30639         * tests/test-snprintf-posix.h (test_function): Likewise.
30640         * tests/test-sprintf-posix.h (test_function): Likewise.
30641         Reported by Eric Blake.
30642
30643 2007-05-23  Eric Blake  <ebb9@byu.net>
30644
30645         Fix fseeko/ftello on cygwin 1.5.24.
30646         * doc/functions/fseeko.texi (fseeko): Document the fix.
30647         * doc/functions/ftello.texi (ftello): Document the fix.
30648         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
30649         * doc/functions/stdout.text (stdout): New file.
30650         * doc/functions/stderr.text (stderr): New file.
30651         * doc/gnulib.texi (Function Substitutes): Use new files.
30652         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
30653         prior to 1.7.0.
30654         * tests/test-ftello.c (main): Likewise for ftello.
30655         * tests/test-fseeko.sh: New file.
30656         * tests/test-ftello.sh: New file.
30657         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
30658         with seekable stdin.
30659         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
30660         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
30661         (gl_REPLACE_FSEEKO): New macro.
30662         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
30663         * modules/fseeko (Files): Distribute fseeko.c.
30664         * modules/ftello (Files): Distribute ftello.c.
30665         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
30666         mode.
30667         * lib/ftello.c (rpl_ftello): New file.
30668         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
30669         fseeko, ftello.
30670         (gl_STDIN_LARGE_OFFSET): New macro.
30671         * modules/stdio (Makefile.am): Perform the replacement.
30672         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
30673
30674 2007-05-23  Bruno Haible  <bruno@clisp.org>
30675
30676         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
30677         GNULIB_POSIXCHECK is defined.
30678
30679 2007-05-21  Bruno Haible  <bruno@clisp.org>
30680
30681         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
30682         Check also the output for NaN arguments. When cross-compiling, guess
30683         no on IRIX.
30684         * lib/vasnprintf.c: Update comments.
30685         * tests/test-vasnprintf-posix.c (strisnan): New function.
30686         (test_function): Use it.
30687         * tests/test-vasprintf-posix.c (strisnan): New function.
30688         (test_function): Use it.
30689         * tests/test-snprintf-posix.h (strisnan): New function.
30690         (test_function): Use it.
30691         * tests/test-sprintf-posix.h (strisnan): New function.
30692         (test_function): Use it.
30693         Reported by Eric Blake.
30694
30695 2007-05-20  Bruno Haible  <bruno@clisp.org>
30696
30697         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
30698         numbers that fails on BeOS.
30699         * doc/functions/frexpl.texi: Update.
30700
30701 2007-05-20  Jim Meyering  <jim@meyering.net>
30702
30703         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
30704         forced upon us by glibc-2.6.
30705
30706 2007-05-20  Bruno Haible  <bruno@clisp.org>
30707
30708         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
30709         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
30710         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
30711         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
30712         NEED_PRINTF_INFINITE.
30713         (is_infinitel): New function.
30714         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
30715         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
30716         gl_PREREQ_VASNPRINTF_INFINITE.
30717         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
30718         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30719         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
30720         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
30721         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
30722         gl_PREREQ_VASNPRINTF_INFINITE.
30723         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30724         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30725         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30726         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30727         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30728         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30729         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30730         * doc/functions/fprintf.texi: Update.
30731         * doc/functions/printf.texi: Update.
30732         * doc/functions/snprintf.texi: Update.
30733         * doc/functions/sprintf.texi: Update.
30734         * doc/functions/vfprintf.texi: Update.
30735         * doc/functions/vprintf.texi: Update.
30736         * doc/functions/vsnprintf.texi: Update.
30737         * doc/functions/vsprintf.texi: Update.
30738
30739 2007-05-20  Bruno Haible  <bruno@clisp.org>
30740
30741         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
30742         was not found in libc.
30743         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30744
30745 2007-05-20  Bruno Haible  <bruno@clisp.org>
30746
30747         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
30748         printed as "-nan" instead of "nan".
30749         * tests/test-vasprintf-posix.c (test_function): Likewise.
30750         * tests/test-snprintf-posix.h (test_function): Likewise.
30751         * tests/test-sprintf-posix.h (test_function): Likewise.
30752         Needed for HP-UX 11.
30753
30754 2007-05-20  Jim Meyering  <jim@meyering.net>
30755
30756         Fix buggy test for the fchownat-deref bug.
30757         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
30758         symlink required for the run-test.  Without it, this test would
30759         always declare that fchownat doesn't work, and client code would
30760         unnecessarily use the replacement function with fixed libc.
30761         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
30762         Reported by Greg Schafer.
30763
30764 2007-05-19  Bruno Haible  <bruno@clisp.org>
30765
30766         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
30767         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
30768         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
30769         Needed for IRIX 6.5 and Solaris 2.5.1.
30770
30771 2007-05-19  Bruno Haible  <bruno@clisp.org>
30772
30773         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
30774         (test_function): Skip tests involving -0.0 on platforms where
30775         -0.0 = 0.0.
30776         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
30777         (test_function): Skip tests involving -0.0 on platforms where
30778         -0.0 = 0.0.
30779         * tests/test-snprintf-posix.h (have_minus_zero): New function.
30780         (test_function): Skip tests involving -0.0 on platforms where
30781         -0.0 = 0.0.
30782         * tests/test-sprintf-posix.h (have_minus_zero): New function.
30783         (test_function): Skip tests involving -0.0 on platforms where
30784         -0.0 = 0.0.
30785         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
30786         tests.
30787         * tests/test-printf-posix.h (test_function): Likewise.
30788         * tests/test-printf-posix.output: Remove all -0.0 related results.
30789         Needed for IRIX 6.5.
30790
30791 2007-05-19  Bruno Haible  <bruno@clisp.org>
30792
30793         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
30794         printed as "nan0x7fffffff" instead of "nan".
30795         * tests/test-vasprintf-posix.c (test_function): Likewise.
30796         * tests/test-snprintf-posix.h (test_function): Likewise.
30797         * tests/test-sprintf-posix.h (test_function): Likewise.
30798         * tests/test-fprintf-posix.h (NaN): Remove macro.
30799         (test_function): Remove all NaN related tests.
30800         * tests/test-printf-posix.h (NaN): Remove macro.
30801         (test_function): Remove all NaN related tests.
30802         * tests/test-printf-posix.output: Remove all NaN related results.
30803         Needed for IRIX 6.5.
30804
30805 2007-05-19  Bruno Haible  <bruno@clisp.org>
30806
30807         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
30808         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30809
30810 2007-05-19  Bruno Haible  <bruno@clisp.org>
30811
30812         * lib/float_.h: New file.
30813         * m4/float_h.m4: New file.
30814         * modules/float: New file.
30815         * modules/isnanl (Dependencies): Add float.
30816         * modules/isnanl-nolibm (Dependencies): Likewise.
30817         * modules/mathl (Dependencies): Likewise.
30818         * modules/printf-frexpl (Dependencies): Likewise.
30819         * modules/signbit (Dependencies): Likewise.
30820         * modules/vasnprintf (Dependencies): Likewise.
30821         * doc/headers/float.texi: Update.
30822
30823 2007-05-19  Jim Meyering  <jim@meyering.net>
30824
30825         * lib/utimens.c (gl_futimens): Rename from futimens,
30826         now that glibc-2.6 declares futimens.
30827         * lib/utimens.h: Likewise.
30828
30829 2007-05-19  Bruno Haible  <bruno@clisp.org>
30830
30831         Avoid test failures on mingw.
30832         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
30833         * tests/test-printf-posix.sh: Likewise.
30834         * tests/test-vfprintf-posix.sh: Likewise.
30835         * tests/test-vprintf-posix.sh: Likewise.
30836
30837 2007-05-19  Bruno Haible  <bruno@clisp.org>
30838
30839         Fix *printf result for NaN, Inf, -0.0 on mingw.
30840         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
30841         * lib/vasnprintf.c: Include math.h and isnan.h.
30842         (is_infinite_or_zero): New function.
30843         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
30844         values in the %f, %F, %e, %E, %g, %G directives.
30845         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
30846         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30847         gl_PRINTF_INFINITE and test its result. Invoke
30848         gl_PREREQ_VASNPRINTF_INFINITE.
30849         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30850         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30851         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30852         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30853         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30854         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30855         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30856         * doc/functions/fprintf.texi: Update.
30857         * doc/functions/printf.texi: Update.
30858         * doc/functions/snprintf.texi: Update.
30859         * doc/functions/sprintf.texi: Update.
30860         * doc/functions/vfprintf.texi: Update.
30861         * doc/functions/vprintf.texi: Update.
30862         * doc/functions/vsnprintf.texi: Update.
30863         * doc/functions/vsprintf.texi: Update.
30864
30865 2007-05-19  Bruno Haible  <bruno@clisp.org>
30866
30867         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
30868         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
30869         Instead of multiplying with 10^k, set extra_zeroes to k.
30870         (scale10_round_long_double): Remove function.
30871
30872 2007-05-18  Bruno Haible  <bruno@clisp.org>
30873
30874         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
30875         introduced on 2007-05-06.
30876
30877 2007-05-18  Bruno Haible  <bruno@clisp.org>
30878
30879         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
30880         %g directives.
30881         * tests/test-vasprintf-posix.c (test_function): Likewise.
30882         * tests/test-snprintf-posix.h (test_function): Likewise.
30883         * tests/test-sprintf-posix.h (test_function): Likewise.
30884
30885 2007-05-18  Bruno Haible  <bruno@clisp.org>
30886
30887         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
30888         (strmatch): New function.
30889         (test_function): Test the %f directive on numbers of various exponents.
30890         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
30891         (strmatch): New function.
30892         (test_function): Test the %f directive on numbers of various exponents.
30893         * tests/test-snprintf-posix.h (strmatch): New function.
30894         (test_function): Test the %f directive on numbers of various exponents.
30895         * tests/test-sprintf-posix.h (strmatch): New function.
30896         (test_function): Test the %f directive on numbers of various exponents.
30897         * tests/test-snprintf-posix.c (SIZEOF): New macro.
30898         * tests/test-sprintf-posix.c (SIZEOF): New macro.
30899         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
30900         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
30901
30902 2007-05-18  Bruno Haible  <bruno@clisp.org>
30903
30904         Add support for 'long double' number output.
30905         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
30906         * lib/vasnprintf.c: Include math.h and float+.h.
30907         (mp_limb_t): New type.
30908         (GMP_LIMB_BITS): New macro.
30909         (mp_twolimb_t): New type.
30910         (GMP_TWOLIMB_BITS): New macro.
30911         (mpn_t): New type.
30912         (multiply, divide, convert_to_decimal, decode_long_double,
30913         scale10_round_long_double, scale10_round_decimal_long_double,
30914         floorlog10l): New functions.
30915         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
30916         for the %f, %F, %e, %E, %g, %G directives.
30917         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
30918         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30919         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
30920         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
30921         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30922         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30923         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30924         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30925         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30926         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30927         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30928         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
30929         * modules/snprintf-posix (Depends-on): Likewise.
30930         * modules/sprintf-posix (Depends-on): Likewise.
30931         * modules/vasnprintf-posix (Depends-on): Likewise.
30932         * modules/vasprintf-posix (Depends-on): Likewise.
30933         * modules/vfprintf-posix (Depends-on): Likewise.
30934         * modules/vsnprintf-posix (Depends-on): Likewise.
30935         * modules/vsprintf-posix (Depends-on): Likewise.
30936         * modules/vasnprintf (Files): Add lib/float+.h.
30937         * doc/functions/fprintf.texi: Update.
30938         * doc/functions/printf.texi: Update.
30939         * doc/functions/snprintf.texi: Update.
30940         * doc/functions/sprintf.texi: Update.
30941         * doc/functions/vfprintf.texi: Update.
30942         * doc/functions/vprintf.texi: Update.
30943         * doc/functions/vsnprintf.texi: Update.
30944         * doc/functions/vsprintf.texi: Update.
30945
30946 2007-05-18  Bruno Haible  <bruno@clisp.org>
30947
30948         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
30949
30950 2007-05-18  Bruno Haible  <bruno@clisp.org>
30951
30952         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
30953         for printing 64-bit integers. Needed for mingw.
30954
30955 2007-05-18  Bruno Haible  <bruno@clisp.org>
30956
30957         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
30958         gl_FUNC_FREXPL_WORKS.
30959         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
30960
30961 2007-05-18  Bruno Haible  <bruno@clisp.org>
30962
30963         * modules/frexpl-nolibm-tests: New file.
30964
30965         * modules/frexpl-nolibm: New file.
30966         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
30967
30968 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
30969
30970         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
30971         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
30972         GCC 4.2, which otherwise issues a lot of warnings.
30973         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
30974         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
30975         Likewise.
30976         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
30977         * modules/iconv_open (iconv.h): Likewise.
30978         * modules/locale (locale.h): Likewise.
30979         * modules/netinet_in (netinet/in.h): Likewise.
30980         * modules/sys_select (sys_select.h): Likewise.
30981         * modules/sys_socket (sys/socket.h): Likewise.
30982         * modules/sys_stat (sys/stat.h): Likewise.
30983         * modules/sysexits (sysexits.h): Likewise.
30984         * modules/unistd (unistd.h): Likewise.
30985
30986 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30987
30988         * modules/closein-tests (Makefile.am): Distribute
30989         `test-closein.sh'.
30990
30991 2007-05-17  Bruno Haible  <bruno@clisp.org>
30992
30993         * tests/test-printf-posix.output: Renamed from
30994         tests/test-fprintf-posix.out.
30995         * modules/fprintf-posix-tests: Update.
30996         * modules/printf-posix-tests: Update.
30997         * modules/vfprintf-posix-tests: Update.
30998         * modules/vprintf-posix-tests: Update.
30999         * tests/test-fprintf-posix.sh: Update.
31000         * tests/test-printf-posix.sh: Update.
31001         * tests/test-vfprintf-posix.sh: Update.
31002         * tests/test-vprintf-posix.sh: Update.
31003         Reported by Ralf Wildenhues.
31004
31005 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
31006
31007         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
31008         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
31009         GCC 4.2, which otherwise issues a lot of warnings.
31010         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
31011         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
31012         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
31013         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
31014         it should no longer be needed.
31015         * lib/string_.h: Likewise.
31016         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
31017         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
31018         * modules/inttypes (inttypes.h): Likewise.
31019         * modules/math (math.h): Likewise.
31020         * modules/search (search.h): Likewise.
31021         * modules/signal (signal.h): Likewise.
31022         * modules/stdint (stdint.h): Likewise.
31023         * modules/stdio (stdio.h): Likewise.
31024         * modules/stdlib (stdlib.h): Likewise.
31025         * modules/string (string.h): Likewise.
31026         * modules/sys_time (sys/time.h): Likewise.
31027         * modules/time (time.h): Likewise.
31028         * modules/wchar (wchar.h): Likewise.
31029         * modules/wctype (wtype.h): Likewise.
31030
31031 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31032
31033         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
31034
31035 2007-05-13  Bruno Haible  <bruno@clisp.org>
31036
31037         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
31038         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31039         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
31040         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
31041         (gl_PREREQ_STRTOK_R): Don't require it here.
31042
31043 2007-05-13  Bruno Haible  <bruno@clisp.org>
31044
31045         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
31046         when used in C++ mode.
31047
31048 2007-05-12  Bruno Haible  <bruno@clisp.org>
31049
31050         * lib/linebuffer.h: Tweak doc.
31051         * lib/linebuffer.c: Likewise.
31052
31053 2007-05-12  James Youngman  <jay@gnu.org>
31054
31055         * lib/linebuffer.c (readlinebuffer_delim): New function,
31056         like readlinebuffer, but use a caller-specified delimiter.
31057         (readlinebuffer): Just call readlinebuffer_delim with '\n'
31058         as the delimiter.
31059         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
31060
31061 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31062
31063         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
31064         * modules/openat (Files): Remove openat-die.c.
31065         (Depends-on): Add openat-die.
31066         * modules/openat-die: New module.
31067
31068 2007-05-06  Bruno Haible  <bruno@clisp.org>
31069
31070         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
31071         Update with info about Cygwin.
31072         * doc/functions/fprintf.texi: Update.
31073         * doc/functions/printf.texi: Update.
31074         * doc/functions/snprintf.texi: Update.
31075         * doc/functions/sprintf.texi: Update.
31076         * doc/functions/vfprintf.texi: Update.
31077         * doc/functions/vprintf.texi: Update.
31078         * doc/functions/vsnprintf.texi: Update.
31079         * doc/functions/vsprintf.texi: Update.
31080         Reported by Eric Blake.
31081
31082 2007-05-06  Bruno Haible  <bruno@clisp.org>
31083
31084         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
31085         padding ourselves for the floating-point directives.
31086         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
31087         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
31088         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31089         gl_PRINTF_FLAG_ZERO and test its result. Invoke
31090         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
31091         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31092         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
31093         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31094         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31095         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31096         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31097         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31098         * tests/test-snprintf-posix.h (test_function): Also check the width
31099         and some flags in the %f directive.
31100         * tests/test-sprintf-posix.h (test_function): Likewise.
31101         * tests/test-vasnprintf-posix.c (test_function): Likewise.
31102         * tests/test-vasprintf-posix.c (test_function): Likewise.
31103         * doc/functions/fprintf.texi: Update.
31104         * doc/functions/printf.texi: Update.
31105         * doc/functions/snprintf.texi: Update.
31106         * doc/functions/sprintf.texi: Update.
31107         * doc/functions/vfprintf.texi: Update.
31108         * doc/functions/vprintf.texi: Update.
31109         * doc/functions/vsnprintf.texi: Update.
31110         * doc/functions/vsprintf.texi: Update.
31111
31112 2007-05-06  Bruno Haible  <bruno@clisp.org>
31113
31114         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
31115         pass the ' flag character to sprintf or snprintf.
31116         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
31117         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
31118         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31119         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
31120         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
31121         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31122         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
31123         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31124         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31125         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31126         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31127         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31128         * tests/test-snprintf-posix.h (test_function): Also check the grouping
31129         flag.
31130         * tests/test-sprintf-posix.h (test_function): Likewise.
31131         * tests/test-vasnprintf-posix.c (test_function): Likewise.
31132         * tests/test-vasprintf-posix.c (test_function): Likewise.
31133         * doc/functions/fprintf.texi: Update.
31134         * doc/functions/printf.texi: Update.
31135         * doc/functions/snprintf.texi: Update.
31136         * doc/functions/sprintf.texi: Update.
31137         * doc/functions/vfprintf.texi: Update.
31138         * doc/functions/vprintf.texi: Update.
31139         * doc/functions/vsnprintf.texi: Update.
31140         * doc/functions/vsprintf.texi: Update.
31141
31142 2007-05-01  Bruno Haible  <bruno@clisp.org>
31143
31144         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
31145
31146 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
31147
31148         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
31149         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
31150
31151 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
31152
31153         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
31154         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
31155         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
31156
31157 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
31158
31159         * lib/argp-help.c (struct hol_entry): New member `ord'.
31160         (HOL_ENTRY_PTRCMP): Use ord for comparison
31161         (hol_sort): Initialize ord.
31162
31163 2007-05-01  Bruno Haible  <bruno@clisp.org>
31164
31165         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
31166         Reported by Eric Blake.
31167         * doc/gnulib.texi (Function Substitutes): Update.
31168
31169 2007-05-01  Bruno Haible  <bruno@clisp.org>
31170
31171         * doc/functions.texi: Remove file, now redundant through
31172         doc/functions/*.texi.
31173
31174 2007-05-01  Bruno Haible  <bruno@clisp.org>
31175
31176         * modules/argp (Depends-on): Add sleep.
31177
31178 2007-05-01  Bruno Haible  <bruno@clisp.org>
31179
31180         * modules/sleep-tests: New file.
31181         * tests/test-sleep.c: New file.
31182
31183         * modules/sleep: New file.
31184         * lib/sleep.c: New file.
31185         * m4/sleep.m4: New file.
31186         * lib/unistd_.h (sleep): New declaration.
31187         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
31188         HAVE_SLEEP.
31189         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
31190         * doc/functions/sleep.texi: Document the sleep module.
31191
31192 2007-05-01  Bruno Haible  <bruno@clisp.org>
31193
31194         * lib/sigprocmask.h: Remove file.
31195         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
31196         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
31197         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
31198         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
31199         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
31200         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
31201         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
31202         HAVE_SIGSET_T as a shell variable.
31203         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
31204         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
31205         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
31206         (Depends-on): Add signal. Remove verify.
31207         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
31208         (Include): Mention <signal.h> instead of sigprocmask.h.
31209         * NEWS: Mention the change.
31210         * lib/fatal-signal.c: Don't include sigprocmask.h.
31211
31212 2007-05-01  Bruno Haible  <bruno@clisp.org>
31213
31214         * modules/signal: New file.
31215         * lib/signal_.h: New file.
31216         * m4/signal_h.m4: New file.
31217
31218 2007-05-01  Bruno Haible  <bruno@clisp.org>
31219
31220         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
31221         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
31222         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
31223         HAVE_WCTYPE_CTMP_BUG into wctype.h.
31224
31225 2007-05-01  Bruno Haible  <bruno@clisp.org>
31226
31227         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
31228         configure time.
31229         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
31230         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
31231         * modules/sys_stat (Makefile.am): Substitute their values into
31232         sys/stat.h.
31233
31234 2007-05-01  Bruno Haible  <bruno@clisp.org>
31235
31236         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
31237         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
31238         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
31239
31240 2007-05-01  Bruno Haible  <bruno@clisp.org>
31241
31242         * doc/header/assert.texi: Undo last change: don't mention the gnulib
31243         'assert' module here.
31244
31245 2007-05-01  Bruno Haible  <bruno@clisp.org>
31246
31247         * doc/functions/*.texi: New files.
31248         * doc/functions/google-ranking.txt: New file.
31249         * doc/gnulib.texi (Function Substitutes): New chapter.
31250         (ctime, inet_ntoa): Remove sections.
31251         * doc/ctime.texi: Remove file.
31252         * doc/inet_ntoa.texi: Remove file.
31253         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
31254         dependencies.
31255         (%.info): New rule, specifying a --reference-limit.
31256
31257 2007-05-01  Bruno Haible  <bruno@clisp.org>
31258
31259         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
31260
31261 2007-05-01  Bruno Haible  <bruno@clisp.org>
31262
31263         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
31264         the portability of 'mkdir' to mingw systems.
31265
31266 2007-05-01  Bruno Haible  <bruno@clisp.org>
31267
31268         * doc/headers/google-ranking.txt: New file.
31269
31270 2007-04-30  Eric Blake  <ebb9@byu.net>
31271
31272         Prefer fseeko to fseek.
31273         * modules/getpass (Depends-on): Add fseeko.
31274         * lib/getpass.c (getpass): Use fseeko, not fseek.
31275
31276 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
31277
31278         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
31279         assumes the sorting is stable, while most qsort implementations
31280         are not.  Use argument addresses to ensure they never compare as
31281         equal.
31282
31283         * tests/test-argp-2.sh (usage-indent test): Fix output
31284         (func_compare): Restore diff options
31285         * tests/test-argp.c: Restore #include "progname.h"
31286
31287 2007-04-29  Bruno Haible  <bruno@clisp.org>
31288
31289         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
31290         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31291         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
31292         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31293         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
31294         (configure.ac): Define CHECK_SNPRINTF_POSIX.
31295         (TESTS, check_PROGRAMS): Add test-snprintf.
31296         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
31297         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
31298         (TESTS, check_PROGRAMS): Add test-vsnprintf.
31299         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
31300         assertions that fail on HP-UX, OSF/1, or IRIX.
31301         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
31302
31303 2007-04-29  Bruno Haible  <bruno@clisp.org>
31304
31305         * MODULES.html.sh (posix_functions): Remove 'contents'.
31306
31307 2007-04-29  Karl Berry  <karl@gnu.org>
31308
31309         * config/srclist.txt (gendocs_template_min): new entry.
31310
31311 2007-04-29  Bruno Haible  <bruno@clisp.org>
31312
31313         Work around fpurge bug on BSD systems.
31314         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
31315         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
31316         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
31317         fpurge to rpl_fpurge if the system already has this function.
31318         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
31319         the case where the system already has this function. Correct invariants
31320         on BSD systems.
31321         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
31322         BSD systems.
31323
31324 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
31325
31326         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
31327         proposed by Sven Verdoolaege.
31328
31329         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
31330         options.
31331         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
31332         (usage and help tests): Update
31333
31334 2007-04-29  Bruno Haible  <bruno@clisp.org>
31335
31336         * tests/test-fflush.c (main): Use a file of size 17, not 10.
31337         Print more information in case of failure. Disable a test on BeOS.
31338
31339 2007-04-29  Bruno Haible  <bruno@clisp.org>
31340
31341         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
31342         This helps debugging on systems on which no gdb is available.
31343
31344 2007-04-29  Bruno Haible  <bruno@clisp.org>
31345
31346         * lib/freading.h: Improve comments.
31347         * lib/fwriting.h: Likewise.
31348         * tests/test-freading.c (main): Don't check freading immediately after
31349         repositioning. Needed for glibc.
31350
31351 2007-04-29  Bruno Haible  <bruno@clisp.org>
31352
31353         * lib/freading.c (freading): Trivial simplification.
31354
31355 2007-04-28  Bruno Haible  <bruno@clisp.org>
31356
31357         * tests/test-fwriting.c (main): Also test the interaction between
31358         fflush and fwriting.
31359         * modules/fwriting-tests (Depends-on): Add fflush.
31360
31361         * tests/test-freading.c (main): Also test the interaction between
31362         fflush and freading.
31363         * modules/freading-tests (Depends-on): Add fflush.
31364
31365 2007-04-28  Bruno Haible  <bruno@clisp.org>
31366
31367         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
31368         fseeko and ftello.
31369         Suggested by Eric Blake.
31370
31371 2007-04-28  Jim Meyering  <jim@meyering.net>
31372
31373         Avoid false-negative in gl_STDINT_H's C99 conformance test.
31374         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
31375         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
31376
31377 2007-04-27  Eric Blake  <ebb9@byu.net>
31378
31379         * doc/headers/assert.texi (assert.h): Document assert module use.
31380
31381 2007-04-27  Bruno Haible  <bruno@clisp.org>
31382
31383         * doc/headers/*.texi: New files.
31384         * doc/gnulib.texi (Header File Substitutes): New chapter.
31385         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
31386         dependencies.
31387         (standards.info ,standards.html, standards.dvi): Update dependencies.
31388         (mostlyclean, clean): New targets.
31389
31390 2007-04-27  Bruno Haible  <bruno@clisp.org>
31391
31392         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
31393         * modules/sysexits (Files, Makefile.am): Update.
31394
31395         * lib/sys_socket_.h: Renamed from lib/socket_.h.
31396         * modules/sys_socket (Files, Makefile.am): Update.
31397
31398         * lib/sys_stat_.h: Renamed from lib/stat_.h.
31399         * modules/sys_stat (Files, Makefile.am): Update.
31400
31401 2007-04-27  Eric Blake  <ebb9@byu.net>
31402
31403         * lib/freading.h: Improve comments.
31404         * lib/fwriting.h: Likewise.
31405         * lib/fflush.c: Likewise.
31406
31407         Fix closein for mingw.
31408         * modules/closein-tests: Add tests for closein.
31409         * tests/test-closein.c: New file.
31410         * tests/test-closein.sh: Likewise.
31411         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
31412         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
31413
31414 2007-04-27  Bruno Haible  <bruno@clisp.org>
31415
31416         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
31417         version is < 6.
31418         * lib/math_.h [__DECC]: Likewise.
31419         * lib/stdio_.h [__DECC]: Likewise.
31420         * lib/stdlib_.h [__DECC]: Likewise.
31421         * lib/string_.h [__DECC]: Likewise.
31422         * lib/time_.h [__DECC]: Likewise.
31423         * lib/wchar_.h [__DECC]: Likewise.
31424         * lib/wctype_.h [__DECC]: Likewise.
31425
31426 2007-04-27  Bruno Haible  <bruno@clisp.org>
31427
31428         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
31429
31430 2007-04-27  Bruno Haible  <bruno@clisp.org>
31431
31432         * lib/fflush.c: Add comments.
31433         * modules/fpurge-tests (Depends-on): Add fflush.
31434         * modules/freadable-tests (Depends-on): Likewise.
31435         * modules/fwritable-tests (Depends-on): Likewise.
31436
31437 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
31438
31439         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
31440         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
31441         Report by Bruno Haible <bruno@clisp.org>.
31442
31443 2007-04-26  Eric Blake  <ebb9@byu.net>
31444
31445         Fix fflush on mingw.
31446         * modules/fflush (Depends-on): Add freading.
31447         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
31448         but unread data.
31449
31450 2007-04-26  Eric Blake  <ebb9@byu.net>
31451         and Bruno Haible  <bruno@clisp.org>
31452
31453         Implement freading and fwriting.
31454         * lib/freading.c: New file.
31455         * lib/freading.h: Likewise.
31456         * m4/freading.m4: Likewise.
31457         * modules/freading: Likewise.
31458         * modules/freading-tests: Likewise.
31459         * tests/test-freading.c: Likewise.
31460         * lib/fwriting.c: New file.
31461         * lib/fwriting.h: Likewise.
31462         * m4/fwriting.m4: Likewise.
31463         * modules/fwriting: Likewise.
31464         * modules/fwriting-tests: Likewise.
31465         * tests/test-fwriting.c: Likewise.
31466         * MODULES.html.sh (File stream based Input/Output): Mention them.
31467
31468 2007-04-26  Bruno Haible  <bruno@clisp.org>
31469
31470         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
31471         'long' when we assume it.
31472         Suggested by Eric Blake.
31473
31474 2007-04-26  Bruno Haible  <bruno@clisp.org>
31475
31476         Ensure fseeko, ftello are declared on glibc systems.
31477         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
31478         * modules/fseeko (configure.ac-early): Likewise.
31479         * modules/ftello (configure.ac-early): Likewise.
31480         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
31481         AC_FUNC_FSEEKO for this.
31482         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
31483         (gl_CHECK_FSEEKO): Remove macro.
31484
31485 2007-04-26  Bruno Haible  <bruno@clisp.org>
31486
31487         * tests/test-fflush.c (main): Also check the ftell result after
31488         fflush and fseek/fseeko.
31489         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
31490         file descriptor position cache in the stream.
31491         * lib/fseeko.c (rpl_fseeko): Likewise.
31492
31493 2007-04-26  Bruno Haible  <bruno@clisp.org>
31494
31495         * modules/fflush-tests (Depends-on): Add fseeko.
31496
31497 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
31498             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31499
31500         * lib/argz_.h: ensure error_t definition is obtained in same
31501         mechanism system argz.h would have.
31502         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
31503         argz facilities are known bad.  Err on the side of caution if
31504         cross-compiling.
31505
31506 2007-04-25  Eric Blake  <ebb9@byu.net>
31507
31508         * lib/fpurge.c (includes): Use stdlib.h for free.
31509         * tests/test-fflush.c (main): Also test fflush-fseeko.
31510
31511 2007-04-25  Bruno Haible  <bruno@clisp.org>
31512
31513         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
31514         * lib/fseeko.c: New file.
31515         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
31516         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
31517         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
31518         gl_FUNC_FSEEKO.
31519         (gl_FUNC_FSEEKO): Invoke it.
31520         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
31521         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
31522         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
31523
31524 2007-04-25  Bruno Haible  <bruno@clisp.org>
31525
31526         * modules/fflush (Depends-on): Add ftello.
31527
31528 2007-04-25  Bruno Haible  <bruno@clisp.org>
31529
31530         * modules/ftello-tests: New file.
31531         * tests/test-ftello.c: New file.
31532
31533         * modules/ftello: New file.
31534         * m4/ftello.m4: New file.
31535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
31536         HAVE_FTELLO.
31537         * lib/stdio_.h (ftello): New declaration.
31538         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
31539         HAVE_FTELLO.
31540
31541 2007-04-25  Bruno Haible  <bruno@clisp.org>
31542
31543         * modules/fseeko-tests: New file.
31544         * tests/test-fseeko.c: New file.
31545
31546         * modules/fseeko: New file.
31547         * m4/fseeko.m4: New file.
31548         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
31549         HAVE_FSEEKO.
31550         * lib/stdio_.h (fseeko): New declaration.
31551         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
31552         HAVE_FSEEKO.
31553
31554 2007-04-25  Bruno Haible  <bruno@clisp.org>
31555
31556         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
31557
31558 2007-04-25  Bruno Haible  <bruno@clisp.org>
31559
31560         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
31561         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
31562         * tests/test-unistd.c: Likewise.
31563         * tests/test-fcntl.c: Likewise.
31564
31565 2007-04-23  Eric Blake  <ebb9@byu.net>
31566
31567         * lib/fflush.c: Fix missing include.
31568         Reported by Bruno Haible.
31569
31570 2007-04-23  Bruno Haible  <bruno@clisp.org>
31571
31572         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
31573         Reported by Eric Blake.
31574
31575 2007-04-23  Bruno Haible  <bruno@clisp.org>
31576
31577         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
31578
31579 2007-04-23  Bruno Haible  <bruno@clisp.org>
31580
31581         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
31582
31583 2007-04-23  Bruno Haible  <bruno@clisp.org>
31584
31585         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
31586         Needed on HP-UX 11.
31587
31588 2007-04-16  Eric Blake  <ebb9@byu.net>
31589
31590         Make fflush rely on fpurge.
31591         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
31592         open coding all variants.
31593         * modules/fflush (Depends-on): Add fpurge and unistd.
31594         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
31595         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
31596
31597         Fix --with-tests compilation on cygwin.
31598         * modules/argmatch-tests (Makefile.am): List gnulib library first
31599         in LDADD.
31600         * modules/argp-tests (Makefile.am): Likewise.
31601         * modules/array-list-tests (Makefile.am): Likewise.
31602         * modules/array-oset-tests (Makefile.am): Likewise.
31603         * modules/avltree-list-tests (Makefile.am): Likewise.
31604         * modules/avltree-oset-tests (Makefile.am): Likewise.
31605         * modules/avltreehash-list-tests (Makefile.am): Likewise.
31606         * modules/carray-list-tests (Makefile.am): Likewise.
31607         * modules/dirname-tests (Makefile.am): Likewise.
31608         * modules/frexp-tests (Makefile.am): Likewise.
31609         * modules/isnanl-tests (Makefile.am): Likewise.
31610         * modules/linked-list-tests (Makefile.am): Likewise.
31611         * modules/linkedhash-list-tests (Makefile.am): Likewise.
31612         * modules/lock-tests (Makefile.am): Likewise.
31613         * modules/rbtree-list-tests (Makefile.am): Likewise.
31614         * modules/rbtree-oset-tests (Makefile.am): Likewise.
31615         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31616         * modules/tls-tests (Makefile.am): Likewise.
31617         * modules/tsearch-tests (Makefile.am): Likewise.
31618         * modules/xvasprintf-tests (Makefile.am): Likewise.
31619
31620         Fix fpurge for cygwin.
31621         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
31622         value.
31623         * modules/fpurge-tests (Depends-on): Clean up trash.
31624
31625 2007-04-16  Simon Josefsson  <simon@josefsson.org>
31626
31627         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
31628
31629         * m4/autobuild.m4: Re-indent.
31630
31631 2007-04-13  Bruno Haible  <bruno@clisp.org>
31632
31633         * modules/fpurge-tests: New file.
31634         * tests/test-fpurge.c: New file.
31635
31636         * modules/fpurge: New file.
31637         * lib/fpurge.h: New file.
31638         * lib/fpurge.c: New file.
31639         * m4/fpurge.m4: New file.
31640
31641 2007-04-13  Bruno Haible  <bruno@clisp.org>
31642
31643         * modules/fbufmode-tests: New file.
31644         * tests/test-fbufmode.c: New file.
31645
31646         * modules/fbufmode: New file.
31647         * lib/fbufmode.h: New file.
31648         * lib/fbufmode.c: New file.
31649         * m4/fbufmode.m4: New file.
31650
31651 2007-04-13  Bruno Haible  <bruno@clisp.org>
31652
31653         * modules/fwritable-tests: New file.
31654         * tests/test-fwritable.c: New file.
31655
31656         * modules/fwritable: New file.
31657         * lib/fwritable.h: New file.
31658         * lib/fwritable.c: New file.
31659         * m4/fwritable.m4: New file.
31660
31661 2007-04-13  Bruno Haible  <bruno@clisp.org>
31662
31663         * modules/freadable-tests: New file.
31664         * tests/test-freadable.c: New file.
31665
31666         * modules/freadable: New file.
31667         * lib/freadable.h: New file.
31668         * lib/freadable.c: New file.
31669         * m4/freadable.m4: New file.
31670
31671 2007-04-13  Bruno Haible  <bruno@clisp.org>
31672
31673         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
31674         MOSTLYCLEANFILES.
31675
31676 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
31677
31678         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
31679         gzip bootstrap.conf to avoid dragging in i18n machinery.
31680         (gnulib_tool_option): Use it.
31681
31682 2007-04-13  Bruno Haible  <bruno@clisp.org>
31683
31684         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
31685         %F directives.
31686         * tests/test-vasprintf-posix.c (test_function): Likewise.
31687         * tests/test-snprintf-posix.h (test_function): Likewise.
31688         * tests/test-sprintf-posix.h (test_function): Likewise.
31689         * tests/test-fprintf-posix.h (test_function): Likewise.
31690         * tests/test-printf-posix.h (test_function): Likewise.
31691         * tests/test-fprintf-posix.out: Likewise.
31692
31693 2007-04-13  Bruno Haible  <bruno@clisp.org>
31694
31695         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
31696         * modules/tls-tests (configure.ac): Likewise.
31697         Reported by Arto C. Nirkko <anirkko@insel.ch>.
31698
31699 2007-04-13  Bruno Haible  <bruno@clisp.org>
31700
31701         * lib/tls.c (glthread_tls_get): Fix return type.
31702         Patch by Arto C. Nirkko <anirkko@insel.ch>.
31703
31704 2007-04-12  Eric Blake  <ebb9@byu.net>
31705
31706         * modules/gettime (Depends-on): Remove gettime.
31707         Reported by Dmitry V. Levin.
31708
31709 2007-04-12  Bruno Haible  <bruno@clisp.org>
31710
31711         * modules/fflush (Include): Mention <stdio.h>.
31712         * modules/strtoimax (Include): Mention <inttypes.h>.
31713         * modules/strtoumax (Include): Likewise.
31714
31715 2007-04-12  Eric Blake  <ebb9@byu.net>
31716
31717         * .cvsignore: New file.
31718         * .gitignore: Likewise.
31719
31720 2007-04-12  Bruno Haible  <bruno@clisp.org>
31721
31722         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
31723         not before, since $(LDADD) often contains libgnu.a.
31724         * modules/striconv-tests (test_striconv_LDADD): Likewise.
31725         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
31726         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
31727         Needed on Cygwin.
31728
31729 2007-04-12  Eric Blake  <ebb9@byu.net>
31730
31731         Work around glibc's failure to flush stdin on fclose.
31732         * lib/closein.c (close_stdin): Flush stdin before closing.
31733
31734         Work around glibc's failure to reset seekable stdin on exit.
31735         * modules/closein: New module.
31736         * lib/closein.c: New file.
31737         * lib/closein.h: Likewise.
31738         * m4/closein.m4: Likewise.
31739         * MODULES.html.sh (File stream based Input/Output): Document it.
31740
31741 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31742
31743         * gnulib-tool: Rename generated 'autobuild' script to
31744         'do-autobuild' in --create-megatestdir output.
31745
31746         * doc/gnulib.texi (Build robot for gnulib): Fix.
31747
31748 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31749
31750         * modules/sysexits (Depends-on): Add absolute-header.
31751
31752 2007-04-12  Eric Blake  <ebb9@byu.net>
31753
31754         No need to preserve errno on success.
31755         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
31756         Reported by Bruno Haible.
31757
31758 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31759
31760         * MODULES.html.sh (Support for maintaining and releasing
31761         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
31762
31763 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31764
31765         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
31766
31767 2007-04-12  Simon Josefsson  <simon@josefsson.org>
31768
31769         * modules/autobuild: New module.
31770
31771         * m4/autobuild.m4: New file.
31772
31773 2007-04-11  Bruno Haible  <bruno@clisp.org>
31774
31775         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
31776         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
31777         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
31778         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
31779         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31780         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31781         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31782         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31783         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31784         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31785         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
31786         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31787         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31788         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
31789         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31790         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31791         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
31792         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31793         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31794         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
31795         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31796         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31797         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
31798         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31799         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31800         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
31801         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31802         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31803         Reported by Eric Blake.
31804
31805 2007-04-11  Bruno Haible  <bruno@clisp.org>
31806
31807         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
31808
31809 2007-04-10  Bruno Haible  <bruno@clisp.org>
31810
31811         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
31812         for NaN and Infinity. Needed on FreeBSD 6.1.
31813         * tests/test-vasnprintf-posix.c (test_function): Undo last change
31814         regarding results for "%010a" of Infinity and NaN.
31815         * tests/test-vasprintf-posix.c (test_function): Likewise.
31816         * tests/test-snprintf-posix.h (test_function): Likewise.
31817         * tests/test-sprintf-posix.h (test_function): Likewise.
31818         * tests/test-fprintf-posix.h (test_function): Likewise.
31819         * tests/test-printf-posix.h (test_function): Likewise.
31820         * tests/test-fprintf-posix.out: Likewise.
31821
31822 2007-04-10  Bruno Haible  <bruno@clisp.org>
31823
31824         * modules/locale-tests: New file.
31825         * tests/test-locale.c: New file.
31826
31827         * modules/locale: New file.
31828         * lib/locale_.h: New file.
31829         * m4/locale_h.m4: New file.
31830
31831 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
31832             Bruno Haible  <bruno@clisp.org>
31833
31834         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
31835         be determined, test for availability of the copysignf, copysign,
31836         copysignl functions.
31837         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
31838         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
31839         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
31840
31841 2007-04-09  Eric Blake  <ebb9@byu.net>
31842
31843         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
31844         * modules/stdio (Makefile.am): Support fflush.
31845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31846         * modules/fflush: New file.
31847         * lib/fflush.c: Likewise.
31848         * m4/fflush.m4: Likewise.
31849         * modules/fflush-tests: New test.
31850         * tests/test-fflush.c: Likewise.
31851         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
31852
31853 2007-04-06  Bruno Haible  <bruno@clisp.org>
31854
31855         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
31856         (VASNPRINTF): Use signbit for faster determination whether to print a
31857         minus sign.
31858         * modules/vasnprintf (Files): Remove lib/float+.h.
31859         * modules/fprintf-posix (Depends-on): Add signbit.
31860         * modules/snprintf-posix (Depends-on): Likewise.
31861         * modules/sprintf-posix (Depends-on): Likewise.
31862         * modules/vasnprintf-posix (Depends-on): Likewise.
31863         * modules/vasprintf-posix (Depends-on): Likewise.
31864         * modules/vfprintf-posix (Depends-on): Likewise.
31865         * modules/vsnprintf-posix (Depends-on): Likewise.
31866         * modules/vsprintf-posix (Depends-on): Likewise.
31867
31868 2007-04-06  Bruno Haible  <bruno@clisp.org>
31869
31870         * tests/test-frexp.c (main): Test also the sign bit of zero results.
31871         * tests/test-frexpl.c (main): Likewise.
31872         * tests/test-ldexpl.c (main): Likewise.
31873         * modules/frexp-tests (Depends-on): Add signbit.
31874         * modules/frexpl-tests (Depdends-on): Likewise.
31875         * modules/ldexpl-tests (Depdends-on): Likewise.
31876
31877 2007-04-06  Bruno Haible  <bruno@clisp.org>
31878
31879         * modules/signbit-tests: New file.
31880         * tests/test-signbit.c: New file.
31881
31882         * modules/signbit: New file.
31883         * lib/signbitf.c: New file.
31884         * lib/signbitd.c: New file.
31885         * lib/signbitl.c: New file.
31886         * m4/signbit.m4: New file.
31887         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
31888         (signbit): New macro.
31889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
31890         REPLACE_SIGNBIT.
31891         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
31892         REPLACE_FREXPL into math.h.
31893
31894 2007-04-06  Bruno Haible  <bruno@clisp.org>
31895
31896         * modules/isnanf-nolibm-tests: New file.
31897         * tests/test-isnanf.c: New file.
31898
31899         * modules/isnanf-nolibm: New file.
31900         * lib/isnanf.h: New file.
31901         * lib/isnanf.c: New file.
31902         * lib/isnan.c: Consider the USE_FLOAT macro.
31903         * m4/isnanf.m4: New file.
31904
31905 2007-04-06  Bruno Haible  <bruno@clisp.org>
31906
31907         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
31908         (Link): New section.
31909
31910         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
31911
31912 2007-04-06  Bruno Haible  <bruno@clisp.org>
31913
31914         Assume the 'long double' type.
31915         * m4/longdouble.m4: Remove file.
31916         * config/srclist.txt: Don't mention longdouble.m4.
31917         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
31918         * lib/float+.h: Likewise.
31919         * lib/frexp.c: Likewise.
31920         * lib/printf-args.h: Likewise.
31921         * lib/printf-args.c: Likewise.
31922         * lib/printf-frexp.c: Likewise.
31923         * lib/printf-parse.c: Likewise.
31924         * lib/vasnprintf.c: Likewise.
31925         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
31926         * m4/intl.m4: Likewise.
31927         * m4/isnanl.m4: Likewise.
31928         * m4/printf.m4: Likewise.
31929         * m4/printf-frexpl.m4: Likewise.
31930         * m4/vasnprintf.m4: Likewise.
31931         * modules/allocsa (Files): Remove m4/longdouble.m4.
31932         * modules/gettext (Files): Likewise.
31933         * modules/relocatable-prog-wrapper (Files): Likewise.
31934         * modules/vasnprintf (Files): Likewise.
31935         * modules/isnanl (Files): Likewise.
31936         (Include): Simplify.
31937         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
31938         (Include): Simplify.
31939         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
31940         (Include): Simplify.
31941         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
31942         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31943         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
31944         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31945         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
31946         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31947         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
31948         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31949         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
31950         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31951         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
31952         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31953         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
31954         * tests/test-isnanl.c: Likewise.
31955         * tests/test-snprintf-posix.h: Likewise.
31956         * tests/test-sprintf-posix.h: Likewise.
31957         * tests/test-vasnprintf-posix.c: Likewise.
31958         * tests/test-vasnprintf-posix2.c: Likewise.
31959         * tests/test-vasprintf-posix.c: Likewise.
31960
31961 2007-04-06  Bruno Haible  <bruno@clisp.org>
31962
31963         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
31964         * lib/math_.h [__DECC]: Include the overridden include file through
31965         #include_next, outside the double-inclusion guard.
31966         * lib/stdio_.h [__DECC]: Likewise.
31967         * lib/stdlib_.h [__DECC]: Likewise.
31968         * lib/string_.h [__DECC]: Likewise.
31969         * lib/time_.h [__DECC]: Likewise.
31970         * lib/wchar_.h [__DECC]: Likewise.
31971         * lib/wctype_.h [__DECC]: Likewise.
31972         * lib/inttypes_.h [__DECC]: Likewise.
31973         Reported by Albert Chin <china@thewrittenword.com> in
31974         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
31975
31976 2007-04-04  Eric Blake  <ebb9@byu.net>
31977
31978         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
31979         1.5.x.
31980
31981 2007-04-04  Bruno Haible  <bruno@clisp.org>
31982
31983         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
31984         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
31985
31986 2007-04-04  Bruno Haible  <bruno@clisp.org>
31987
31988         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
31989         results for "%010a" of Infinity and NaN.
31990         * tests/test-vasprintf-posix.c (test_function): Likewise.
31991         * tests/test-snprintf-posix.h (test_function): Likewise.
31992         * tests/test-sprintf-posix.h (test_function): Likewise.
31993         * tests/test-fprintf-posix.h (test_function): Remove these tests.
31994         * tests/test-printf-posix.h (test_function): Likewise.
31995         * tests/test-fprintf-posix.out: Update.
31996         Needed for FreeBSD 6.1.
31997
31998 2007-04-04  Bruno Haible  <bruno@clisp.org>
31999
32000         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
32001         directly used by the gnulib modules nor by gnulib-tool.
32002
32003 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
32004
32005         * DEPENDENCIES: Give overall description of version dependency
32006         desirability.  Use more-typical names for apps.
32007         Add shell, coreutils, diffutils, grep, tar, gzip.
32008
32009 2007-04-04  Simon Josefsson  <simon@josefsson.org>
32010
32011         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
32012
32013 2007-04-04  Karl Berry  <karl@gnu.org>
32014
32015         * MODULES.html.sh (func_module): missing '.
32016
32017 2007-04-03  Bruno Haible  <bruno@clisp.org>
32018
32019         * modules/argmatch-tests (Makefile.am): New variable
32020         test_argmatch_LDADD.
32021         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
32022         * modules/array-list-tests (Makefile.am): New variable
32023         test_array_list_LDADD.
32024         * modules/array-oset-tests (Makefile.am): New variable
32025         test_array_oset_LDADD.
32026         * modules/avltree-list-tests (Makefile.am): New variable
32027         test_avltree_list_LDADD.
32028         * modules/avltree-oset-tests (Makefile.am): New variable
32029         test_avltree_oset_LDADD.
32030         * modules/avltreehash-list-tests (Makefile.am): New variable
32031         test_avltreehash_list_LDADD.
32032         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
32033         test_canonicalize_lgpl_LDADD.
32034         * modules/carray-list-tests (Makefile.am): New variable
32035         test_carray_list_LDADD.
32036         * modules/dirname-tests (Makefile.am): New variable
32037         test_dirname_LDADD.
32038         * modules/linked-list-tests (Makefile.am): New variable
32039         test_linked_list_LDADD.
32040         * modules/linkedhash-list-tests (Makefile.am): New variable
32041         test_linkedhash_list_LDADD.
32042         * modules/rbtree-list-tests (Makefile.am): New variable
32043         test_rbtree_list_LDADD.
32044         * modules/rbtree-oset-tests (Makefile.am): New variable
32045         test_rbtree_oset_LDADD.
32046         * modules/rbtreehash-list-tests (Makefile.am): New variable
32047         test_rbtreehash_list_LDADD.
32048         * modules/xvasprintf-tests (Makefile.am): New variable
32049         test_xvasprintf_LDADD.
32050         Reported by Eric Blake.
32051
32052 2007-04-03  Eric Blake  <ebb9@byu.net>
32053
32054         * DEPENDENCIES: Weaken m4 requirements.
32055
32056 2007-04-03  Bruno Haible  <bruno@clisp.org>
32057
32058         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
32059         * modules/isnanl-tests (configure.ac): Likewise.
32060
32061 2007-04-03  Ben Pfaff  <blp@gnu.org>
32062
32063         * modules/iconv_open: Add $(srcdir)/ to source directory
32064         references in Makefile fragments that call gperf, to fix VPATH
32065         builds.
32066
32067 2007-04-03  Bruno Haible  <bruno@clisp.org>
32068
32069         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
32070         * lib/ldexpl.c: Undo last change.
32071
32072 2007-04-03  Bruno Haible  <bruno@clisp.org>
32073
32074         * modules/printf-frexpl (Depends-on): Undo last change.
32075         (Files): Add m4/ldexpl.m4.
32076
32077 2007-04-03  Bruno Haible  <bruno@clisp.org>
32078
32079         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
32080         * modules/isnanl (Link): New section.
32081
32082         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
32083         * modules/frexp (Link): New section.
32084
32085         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
32086         * modules/frexpl (Link): New section.
32087
32088         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
32089         * modules/ldexpl (Link): New section.
32090
32091 2007-04-03  Bruno Haible  <bruno@clisp.org>
32092
32093         * modules/TEMPLATE-EXTENDED: New file.
32094         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
32095
32096 2007-04-03  Bruno Haible  <bruno@clisp.org>
32097
32098         * DEPENDENCIES: New file.
32099         Suggested by Simon Josefsson.
32100
32101 2007-04-03  Bruno Haible  <bruno@clisp.org>
32102
32103         * doc/gnulib.texi: Escape @.
32104
32105 2007-04-03  James Youngman  <jay@gnu.org>
32106         and Paul Eggert  <eggert@cs.ucla.edu>
32107
32108         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
32109         birthtime on all systems that have birthtime, not just those which
32110         use st_birthtimensec rather than st_birthtim.  Putting zero in
32111         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
32112         that the birth time is not available for files on an NFS mount.
32113
32114 2007-04-03  Simon Josefsson  <simon@josefsson.org>
32115
32116         * modules/memxor: Move back from crypto/, suggested by Bruno.
32117         * modules/crypto/hmac-sha1: Fix memxor dependency.
32118
32119         * modules/crypto/gc: Moved from ../.
32120
32121 2007-04-02  Eric Blake  <ebb9@byu.net>
32122
32123         * lib/ldexpl.c (includes): Avoid libm.
32124
32125         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
32126
32127 2007-04-02  Bruno Haible  <bruno@clisp.org>
32128
32129         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
32130         on IRIX.
32131
32132 2007-04-02  Bruno Haible  <bruno@clisp.org>
32133
32134         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
32135         x86 or x86_64 platforms running MacOS X.
32136         Reported by Ryan Schmidt <@ryandesign.com>.
32137
32138 2007-04-02  Bruno Haible  <bruno@clisp.org>
32139
32140         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
32141         i386.
32142
32143 2007-04-01  Simon Josefsson  <simon@josefsson.org>
32144
32145         * modules/crypto/arcfour: Moved from ../.
32146         * modules/crypto/arcfour-tests: Moved from ../.
32147         * modules/crypto/arctwo: Moved from ../.
32148         * modules/crypto/arctwo-tests: Moved from ../.
32149         * modules/crypto/des: Moved from ../.
32150         * modules/crypto/des-tests: Moved from ../.
32151         * modules/crypto/gc-arcfour: Moved from ../.
32152         * modules/crypto/gc-arcfour-tests: Moved from ../.
32153         * modules/crypto/gc-arctwo: Moved from ../.
32154         * modules/crypto/gc-arctwo-tests: Moved from ../.
32155         * modules/crypto/gc-des: Moved from ../.
32156         * modules/crypto/gc-des-tests: Moved from ../.
32157         * modules/crypto/gc-hmac-md5: Moved from ../.
32158         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
32159         * modules/crypto/gc-hmac-sha1: Moved from ../.
32160         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
32161         * modules/crypto/gc-md2: Moved from ../.
32162         * modules/crypto/gc-md2-tests: Moved from ../.
32163         * modules/crypto/gc-md4: Moved from ../.
32164         * modules/crypto/gc-md4-tests: Moved from ../.
32165         * modules/crypto/gc-md5: Moved from ../.
32166         * modules/crypto/gc-md5-tests: Moved from ../.
32167         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
32168         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
32169         * modules/crypto/gc-random: Moved from ../.
32170         * modules/crypto/gc-rijndael: Moved from ../.
32171         * modules/crypto/gc-rijndael-tests: Moved from ../.
32172         * modules/crypto/gc-sha1: Moved from ../.
32173         * modules/crypto/gc-sha1-tests: Moved from ../.
32174         * modules/crypto/gc-tests: Moved from ../.
32175         * modules/crypto/hmac-md5: Moved from ../.
32176         * modules/crypto/hmac-md5-tests: Moved from ../.
32177         * modules/crypto/hmac-sha1: Moved from ../.
32178         * modules/crypto/hmac-sha1-tests: Moved from ../.
32179         * modules/crypto/md2: Moved from ../.
32180         * modules/crypto/md2-tests: Moved from ../.
32181         * modules/crypto/md4: Moved from ../.
32182         * modules/crypto/md4-tests: Moved from ../.
32183         * modules/crypto/md5: Moved from ../.
32184         * modules/crypto/md5-tests: Moved from ../.
32185         * modules/crypto/memxor: Moved from ../.
32186         * modules/crypto/rijndael: Moved from ../.
32187         * modules/crypto/rijndael-tests: Moved from ../.
32188         * modules/crypto/sha1: Moved from ../.
32189
32190 2007-03-30  James Youngman  <jay@gnu.org>
32191
32192         * tests/test-stat-time.c (prepare_test): use chmod() rather than
32193         rename() to change the ctime of a file (because ctime is unaffected
32194         by rename on jfs2 on AIX 5.1).
32195         (main): Start by doing cleanup, in case a previous run failed leaving
32196         test files behind.
32197
32198 2007-03-31  Bruno Haible  <bruno@clisp.org>
32199
32200         Support old proprietary implementations of iconv.
32201         * modules/iconv_open: New file.
32202         * lib/iconv_.h: New file.
32203         * m4/iconv_h.m4: New file.
32204         * lib/iconv_open.c: New file.
32205         * lib/iconv_open-aix.gperf: New file.
32206         * lib/iconv_open-hpux.gperf: New file.
32207         * lib/iconv_open-irix.gperf: New file.
32208         * lib/iconv_open-osf.gperf: New file.
32209         * m4/iconv_open.m4: New file.
32210         * modules/linebreak (Depends-on): Add iconv_open.
32211         * modules/striconv (Depends-on): Likewise.
32212         * modules/striconveh (Depends-on): Likewise.
32213         * modules/unicodeio (Depends-on): Likewise.
32214         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
32215         (iconv_t)(-1).
32216         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
32217         conversion if cd is (iconv_t)(-1).
32218         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
32219         is not possible.
32220
32221 2007-03-31  Bruno Haible  <bruno@clisp.org>
32222
32223         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32224         work on Solaris either. Protect also second use of "autodetect_jp".
32225
32226 2007-03-31  Bruno Haible  <bruno@clisp.org>
32227
32228         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
32229         the function is not present.
32230
32231 2007-03-31  Bruno Haible  <bruno@clisp.org>
32232
32233         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
32234         the function is not present.
32235
32236 2007-03-31  Bruno Haible  <bruno@clisp.org>
32237
32238         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
32239         a bug in HP-UX iconv_open().
32240
32241 2007-03-31  Bruno Haible  <bruno@clisp.org>
32242
32243         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
32244         (Mathematics <math.h>): New section, add fpieee.
32245         (Input/output <stdio.h>): Add fseterr.
32246         (Mathematics <math.h>): New section, add printf-frexp.
32247         (Container data structures): Add sublist.
32248         (Core language properties): Add fpucw, inline.
32249         (Functions for greatest-width integer types <inttypes.h>): Add
32250         imaxabs, imaxdiv, inttypes.
32251         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
32252         isnanl-nolibm, ldexp.
32253         (Mathematics <math.h>): New section, add printf-frexpl.
32254         (Support for systems lacking POSIX:2001): Add fprintf-posix,
32255         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
32256         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
32257         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
32258         (Unicode string functions): Add unistr/u*-mbtoucr.
32259         (Java): Add javacomp-script, javaexec-script.
32260         (C#): Add csharpcomp-script, csharpexec-script.
32261         (Support for building libraries and executables): Add havelib,
32262         relocatable-*.
32263         (Support for maintaining and releasing projects): Renamed from
32264         'Support for maintaining and release projects'. Add announce-gen.
32265
32266 2007-03-31  Bruno Haible  <bruno@clisp.org>
32267
32268         * README: Talk primarily about git.
32269         (git and CVS): Renamed from CVS.
32270         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
32271         gnulib is available through git.
32272         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
32273
32274 2007-03-30  Bruno Haible  <bruno@clisp.org>
32275
32276         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
32277         * lib/poll_.h: Likewise.
32278         * lib/stat_.h: Likewise.
32279         * lib/sys_time_.h: Likewise.
32280         * lib/sysexit_.h: Likewise.
32281         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
32282         * lib/stdbool_.h: Likewise.
32283         * lib/byteswap_.h: Add double-inclusion guard.
32284
32285 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
32286
32287         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
32288
32289 2007-03-30  Karl Berry  <karl@gnu.org>
32290
32291         * config/srclist-update: double space after USA in the license
32292         substitution, since that's how it's usually (?) written.
32293
32294 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32295
32296         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
32297         reported by Bruno Haible.
32298
32299 2007-03-29  Bruno Haible  <bruno@clisp.org>
32300
32301         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
32302         a bug in AIX iconv().
32303
32304 2007-03-29  Bruno Haible  <bruno@clisp.org>
32305
32306         * modules/ldexpl-tests: New file.
32307         * tests/test-ldexpl.c: New file.
32308
32309 2007-03-29  Bruno Haible  <bruno@clisp.org>
32310
32311         * lib/ldexpl.c: Include fpucw.h.
32312         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
32313         multiplication.
32314         * modules/ldexpl (Depends-on): Add fpucw.
32315
32316 2007-03-29  Bruno Haible  <bruno@clisp.org>
32317
32318         * modules/ldexpl: New file.
32319         * m4/ldexpl.m4: New file.
32320         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
32321         set.
32322         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
32323         REPLACE_LDEXPL.
32324         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
32325         REPLACE_LDEXPL.
32326         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
32327         gl_FUNC_LDEXPL_WORKS.
32328         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
32329         * modules/mathl (Files): Remove lib/ldexpl.c.
32330         (Depends-on): Add ldexpl.
32331
32332 2007-03-29  Bruno Haible  <bruno@clisp.org>
32333
32334         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
32335
32336 2007-03-29  Bruno Haible  <bruno@clisp.org>
32337
32338         * tests/test-striconveh.c (main): Don't assume that a direct conversion
32339         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
32340         and possibly also HP-UX.
32341         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32342         work on AIX, IRIX, HP-UX, OSF/1.
32343         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32344         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32345         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32346         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32347         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
32348         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32349
32350 2007-03-29  Bruno Haible  <bruno@clisp.org>
32351
32352         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
32353
32354 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
32355
32356         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
32357         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
32358
32359 2007-03-29  Eric Blake  <ebb9@byu.net>
32360
32361         * lib/acl-internal.h: Remove redundant include.
32362         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
32363         Cygwin when a file is locked.
32364
32365 2007-03-29  Bruno Haible  <bruno@clisp.org>
32366
32367         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
32368         file.
32369         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
32370
32371 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
32372
32373         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
32374         try to remove a parent directory if the child couldn't be removed
32375         (except for the first rmdir, which could fail because the child
32376         doesn't exist).  Problem reported by Jeff Blaine in
32377         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
32378
32379 2007-03-28  Bruno Haible  <bruno@clisp.org>
32380
32381         * lib/striconveh.c (utf8conv_carefully): New function.
32382         (mem_cd_iconveh_internal): Invoke it.
32383
32384 2007-03-28  Bruno Haible  <bruno@clisp.org>
32385
32386         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
32387         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
32388         input.
32389         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
32390         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
32391         unistr/u8-uctomb.
32392
32393 2007-03-28  Bruno Haible  <bruno@clisp.org>
32394
32395         * modules/unistr/u8-mbtoucr: New file.
32396         * lib/unistr/u8-mbtoucr.c: New file.
32397         * modules/unistr/u16-mbtoucr: New file.
32398         * lib/unistr/u16-mbtoucr.c: New file.
32399         * modules/unistr/u16-mbtoucr: New file.
32400         * lib/unistr/u16-mbtoucr.c: New file.
32401         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
32402
32403 2007-03-27  Simon Josefsson  <simon@josefsson.org>
32404             Bruno Haible  <bruno@clisp.org>
32405
32406         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
32407         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
32408         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
32409
32410         * m4/stdio_h.m4: Add stubs for vasprintf too.
32411
32412         * modules/stdio: Support vasprintf in sed command.
32413
32414         * modules/vasprintf: Depend on stdio for prototypes.  Remove
32415         vasprintf.h.  Add stdio module indicator.
32416
32417         * lib/stdio_.h: Declare asprintf and vasprintf, based on
32418         vasprintf.h.
32419
32420         * lib/vasprintf.h: File removed.
32421
32422         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
32423         * lib/vasprintf.c: Ditto.
32424         * lib/xvasprintf.c: Ditto.
32425         * tests/test-vasprintf-posix.c: Ditto.
32426         * tests/test-vasprintf.c: Ditto.
32427
32428 2007-03-27  Bruno Haible  <bruno@clisp.org>
32429
32430         Make vasnprintf multithread-safe.
32431         * lib/vasnprintf.c (decimal_point_char): New function.
32432         (VASNPRINTF): Use it.
32433         Suggested by Simon Josefsson.
32434
32435 2007-03-27  Eric Blake  <ebb9@byu.net>
32436
32437         Support sub-second birthtime on cygwin.
32438         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
32439         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
32440         (get_stat_birthtime): Also work with st_birthtim.
32441
32442 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
32443
32444         * lib/stat-time.h (USE_BIRTHTIME): Remove.
32445         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
32446         (get_stat_birthtime_ns): Do not try to use "spare" fields.
32447         (get_stat_birthtime_ns): Simplify compile-time tests.
32448         (get_stat_birthtime): Change the API to look like
32449         get_stat_mtime etc., except return a negative tv_nsec on error.
32450         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
32451         Don't check for "spare" fields.
32452         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
32453         or for struct stat.st_birthtime, as these tests aren't used.
32454         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
32455
32456 2007-03-27  Bruno Haible  <bruno@clisp.org>
32457
32458         * lib/stat-time.h: Include <sys/stat.h>.
32459
32460 2007-03-27  James Youngman  <jay@gnu.org>
32461
32462         * lib/stat-time.h (get_stat_birthtime): New function for
32463           retrieving st_birthtime as provided by UFS2 (hence *BSD).
32464         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
32465           and its variants.
32466         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
32467         * modules/stat-time-test: New file.
32468         * tests/test-stat-time.c: New test, devised by Bruno Haible.
32469
32470 2007-03-26  Bruno Haible  <bruno@clisp.org>
32471
32472         Better support of signalling NaNs.
32473         * lib/atanl.c: Include isnanl.h.
32474         (atanl): Perform test for NaN at the beginning of the function and
32475         through a call to isnanl.
32476         * lib/cosl.c: Include isnanl.h.
32477         (cosl): Perform test for NaN at the beginning of the function and
32478         through a call to isnanl.
32479         * lib/ldexpl.c: Include isnanl.h.
32480         (ldexpl): Perform test for NaN through a call to isnanl.
32481         * lib/logl.c: Include isnanl.h.
32482         (logl): Perform test for NaN at the beginning of the function and
32483         through a call to isnanl.
32484         * lib/sinl.c: Include isnanl.h.
32485         (sinl): Perform test for NaN at the beginning of the function and
32486         through a call to isnanl.
32487         * lib/sqrtl.c: Include isnanl.h.
32488         (sqrtl): Perform test for NaN at the beginning of the function and
32489         through a call to isnanl.
32490         * lib/tanl.c: Include isnanl.h.
32491         (tanl): Perform test for NaN at the beginning of the function and
32492         through a call to isnanl.
32493         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
32494         * modules/mathl (Depends-on): Add isnanl.
32495
32496 2007-03-26  Eric Blake  <ebb9@byu.net>
32497
32498         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
32499         regression in logic sense of previous patch.
32500
32501 2007-03-26  Bruno Haible  <bruno@clisp.org>
32502
32503         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
32504         unportable shell command "if ! ...".
32505         Reported by Ralf Wildenhues.
32506
32507 2007-03-25  Bruno Haible  <bruno@clisp.org>
32508
32509         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
32510         <sysexits.h> file, and only add EX_CONFIG.
32511         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
32512         absolute file name and whether it is sufficient. Substitute also
32513         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
32514         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
32515         ABSOLUTE_SYSEXITS_H into sysexits.h.
32516
32517 2007-03-25  Bruno Haible  <bruno@clisp.org>
32518
32519         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
32520         hints is NULL.
32521
32522 2007-03-25  Bruno Haible  <bruno@clisp.org>
32523
32524         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
32525         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
32526
32527 2007-03-25  Bruno Haible  <bruno@clisp.org>
32528
32529         * lib/vasnprintf.c: Include langinfo.h.
32530         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
32531         multithread-safe.
32532         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
32533         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
32534         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32535         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32536         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32537         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32538         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32539         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
32540         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32541         Reported by Simon Josefsson.
32542
32543 2007-03-25  Bruno Haible  <bruno@clisp.org>
32544
32545         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
32546         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
32547         * modules/vasnprintf (Depends-on): Add stdint.
32548
32549 2007-03-25  Bruno Haible  <bruno@clisp.org>
32550
32551         * modules/fpieee: New file.
32552         * m4/fpieee.m4: New file.
32553         * modules/isnan-nolibm (Depends-on): Add fpieee.
32554         * modules/isnanl-nolibm (Depends-on): Add fpieee.
32555         * modules/isnanl (Depends-on): Add fpieee.
32556
32557 2007-03-25  Bruno Haible  <bruno@clisp.org>
32558
32559         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
32560
32561 2007-03-25  Bruno Haible  <bruno@clisp.org>
32562
32563         Avoid test failures on IRIX 6.5.
32564         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
32565         (main): Use it.
32566         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
32567         macros.
32568         (main): Use them.
32569
32570 2007-03-25  Bruno Haible  <bruno@clisp.org>
32571
32572         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
32573         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
32574         exists but doesn't work.
32575         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
32576         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
32577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
32578         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
32579
32580 2007-03-25  Bruno Haible  <bruno@clisp.org>
32581
32582         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
32583         returns inf. Needed on IRIX 6.5.
32584
32585 2007-03-25  Bruno Haible  <bruno@clisp.org>
32586
32587         * tests/test-frexpl.c: Include isnanl-nolibm.h.
32588         (main): Use isnanl instead of x != x idiom.
32589         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
32590
32591         * tests/test-frexp.c: Include isnan.h.
32592         (main): Use isnan instead of x != x idiom.
32593         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
32594
32595 2007-03-25  Bruno Haible  <bruno@clisp.org>
32596
32597         * tests/test-frexp.c (NaN): New function/macro.
32598         (main): Use it instead of 0.0 / 0.0.
32599         * tests/test-isnan.c (NaN): New function/macro.
32600         (main): Use it instead of 0.0 / 0.0.
32601         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
32602         (test_function): Use it instead of 0.0 / 0.0.
32603         * tests/test-vasprintf-posix.c (NaN): New function/macro.
32604         (test_function): Use it instead of 0.0 / 0.0.
32605         * tests/test-snprintf-posix.h (NaN): New function/macro.
32606         (test_function): Use it instead of 0.0 / 0.0.
32607         * tests/test-sprintf-posix.h (NaN): New function/macro.
32608         (test_function): Use it instead of 0.0 / 0.0.
32609         * tests/test-fprintf-posix.h (NaN): New function/macro.
32610         (test_function): Use it instead of 0.0 / 0.0.
32611         * tests/test-printf-posix.h (NaN): New function/macro.
32612         (test_function): Use it instead of 0.0 / 0.0.
32613
32614         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
32615
32616 2007-03-25  Bruno Haible  <bruno@clisp.org>
32617
32618         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
32619
32620 2007-03-25  Bruno Haible  <bruno@clisp.org>
32621
32622         * lib/regexec.c (merge_state_with_log): Make static.
32623
32624 2007-03-25  Bruno Haible  <bruno@clisp.org>
32625
32626         * lib/trigl.c (kernel_rem_pio2): Make static.
32627
32628 2007-03-25  Bruno Haible  <bruno@clisp.org>
32629
32630         * lib/sincosl.c (sincosl_table): Make static.
32631
32632 2007-03-25  Bruno Haible  <bruno@clisp.org>
32633
32634         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
32635         if the compiler does not support C99.
32636
32637 2007-03-25  Bruno Haible  <bruno@clisp.org>
32638
32639         * modules/time (Makefile.am): Ensure all rule action lines start with a
32640         tab.
32641
32642 2007-03-24  Bruno Haible  <bruno@clisp.org>
32643
32644         * modules/tsearch-tests: New file.
32645         * tests/test-tsearch.sh: New file.
32646         * tests/test-tsearch.c: New file, mostly copied from glibc.
32647
32648         * modules/search-tests: New file.
32649         * tests/test-search.c: New file.
32650
32651         * modules/search: New file.
32652         * lib/search_.h: New file, incorporating lib/tsearch.h.
32653         * m4/search_h.m4: New file.
32654         * lib/tsearch.h: Remove file.
32655         * lib/tsearch.c: Include search.h instead of tsearch.h.
32656         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
32657         HAVE_TSEARCH.
32658         * modules/tsearch (Files): Remove lib/tsearch.h.
32659         (Depends-on): Add search.
32660         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
32661         (Include): Change tsearch.h into search.h.
32662
32663 2007-03-24  Bruno Haible  <bruno@clisp.org>
32664
32665         * modules/fpucw: New file.
32666         * lib/fpucw.h: New file.
32667         * lib/frexp.c: Include fpucw.h.
32668         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
32669         (FUNC): Use them.
32670         * lib/printf-frexp.c: Include fpucw.h.
32671         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
32672         (FUNC): Use them.
32673         * lib/vasnprintf.c: Include fpucw.h.
32674         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
32675         'long double' calculations.
32676         * tests/test-frexpl.c: Include fpucw.h.
32677         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
32678         * tests/test-printf-frexpl.c: Include fpucw.h.
32679         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
32680         * modules/frexpl (Depends-on): Add fpucw.
32681         * modules/printf-frexpl (Depends-on): Likewise.
32682         * modules/fprintf-posix (Depends-on): Likewise.
32683         * modules/snprintf-posix (Depends-on): Likewise.
32684         * modules/sprintf-posix (Depends-on): Likewise.
32685         * modules/vasnprintf-posix (Depends-on): Likewise.
32686         * modules/vasprintf-posix (Depends-on): Likewise.
32687         * modules/vfprintf-posix (Depends-on): Likewise.
32688         * modules/vsnprintf-posix (Depends-on): Likewise.
32689         * modules/vsprintf-posix (Depends-on): Likewise.
32690         * modules/frexpl-tests (Depends-on): Likewise.
32691         * modules/printf-frexpl-tests (Depends-on): Likewise.
32692
32693 2007-03-24  Bruno Haible  <bruno@clisp.org>
32694
32695         * lib/float+.h: New file.
32696         * lib/isnan.c: Include float+.h.
32697         (SIZE): New macro.
32698         (FUNC): Compare only SIZE bytes of the value.
32699         * lib/vasnprintf.c: Include float+.h.
32700         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
32701         SIZEOF_LDBL or SIZEOF_DBL bytes.
32702         * modules/isnan-nolibm (Files): Add lib/float+.h.
32703         * modules/isnanl-nolibm (Files): Add lib/float+.h.
32704         * modules/isnanl (Files): Add lib/float+.h.
32705         * modules/vasnprintf (Files): Add lib/float+.h.
32706
32707 2007-03-24  Bruno Haible  <bruno@clisp.org>
32708
32709         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
32710         include isnanl-nolibm.h.
32711
32712 2007-03-24  Bruno Haible  <bruno@clisp.org>
32713
32714         * tests/test-read-file.c (main): Don't produce spurious output for
32715         expected situations. Make the test fail if it encountered unexpected
32716         results.
32717
32718 2007-03-24  Bruno Haible  <bruno@clisp.org>
32719
32720         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
32721         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
32722
32723 2007-03-24  Bruno Haible  <bruno@clisp.org>
32724
32725         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
32726
32727 2007-03-24  Bruno Haible  <bruno@clisp.org>
32728
32729         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
32730         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
32731
32732         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
32733         * modules/utf8-ucs4: Turn into a symbolic link to module
32734         unistr/u8-mbtouc.
32735
32736         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
32737         utf8-ucs4-unsafe.
32738         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
32739         unistr/u8-mbtouc-unsafe.
32740
32741         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
32742         * modules/utf16-ucs4: Turn into a symbolic link to module
32743         unistr/u16-mbtouc.
32744
32745         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
32746         utf16-ucs4-unsafe.
32747         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
32748         unistr/u16-mbtouc-unsafe.
32749
32750         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
32751         * modules/ucs4-utf8: Turn into a symbolic link to module
32752         unistr/u8-ubtomb.
32753
32754         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
32755         * modules/ucs4-utf16: Turn into a symbolic link to module
32756         unistr/u16-ubtomb.
32757
32758 2007-03-24  Bruno Haible  <bruno@clisp.org>
32759
32760         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
32761         Enable the function only if HAVE_INLINE.
32762         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
32763         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
32764         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
32765         Enable the function only if HAVE_INLINE.
32766         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
32767         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
32768         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
32769         Enable the function only if HAVE_INLINE.
32770         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
32771         Enable the function only if HAVE_INLINE.
32772         * modules/utf8-ucs4: Update.
32773         * modules/utf8-ucs4-unsafe: Update.
32774         * modules/utf16-ucs4: Update.
32775         * modules/utf16-ucs4-unsafe: Update.
32776         * modules/ucs4-utf8: Update.
32777         * modules/ucs4-utf16: Update.
32778
32779 2007-03-24  Bruno Haible  <bruno@clisp.org>
32780
32781         * lib/utf8-ucs4.h: Remove file.
32782         * lib/utf8-ucs4-unsafe.h: Remove file.
32783         * lib/utf16-ucs4.h: Remove file.
32784         * lib/utf16-ucs4-unsafe.h: Remove file.
32785         * lib/ucs4-utf8.h: Remove file.
32786         * lib/ucs4-utf16.h: Remove file.
32787         * lib/unistr.h: Include their previous contents.
32788         * m4/utf-ucs4.m4: Remove file.
32789         * m4/ucs4-utf.m4: Remove file.
32790         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
32791         (Depends-on): Add unistr/base.
32792         (configure.ac): Remove gl_UTF_UCS4.
32793         (Makefile.am): Update.
32794         (Include): Change to unistr.h.
32795         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
32796         (Depends-on): Add unistr/base.
32797         (configure.ac): Remove gl_UTF_UCS4.
32798         (Makefile.am): Update.
32799         (Include): Change to unistr.h.
32800         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
32801         (Depends-on): Add unistr/base.
32802         (configure.ac): Remove gl_UTF_UCS4.
32803         (Makefile.am): Update.
32804         (Include): Change to unistr.h.
32805         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
32806         (Depends-on): Add unistr/base.
32807         (configure.ac): Remove gl_UTF_UCS4.
32808         (Makefile.am): Update.
32809         (Include): Change to unistr.h.
32810         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
32811         (Depends-on): Add unistr/base.
32812         (configure.ac): Remove gl_UCS4_UTF.
32813         (Makefile.am): Update.
32814         (Include): Change to unistr.h.
32815         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
32816         (Depends-on): Add unistr/base.
32817         (configure.ac): Remove gl_UCS4_UTF.
32818         (Makefile.am): Update.
32819         (Include): Change to unistr.h.
32820         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
32821         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
32822         utf8-ucs4-unsafe.h.
32823         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
32824         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
32825         utf16-ucs4-unsafe.h.
32826         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
32827         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
32828         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
32829         * lib/unistr/u8-strchr.c: Likewise.
32830         * lib/unistr/u8-strrchr.c: Likewise.
32831         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
32832         * lib/unistr/u16-strchr.c: Likewise.
32833         * lib/unistr/u16-strrchr.c: Likewise.
32834         * lib/striconveh.c: Update.
32835         * lib/linebreak.c: Update.
32836
32837 2007-03-24  Bruno Haible  <bruno@clisp.org>
32838
32839         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
32840         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
32841
32842 2007-03-22  Bruno Haible  <bruno@clisp.org>
32843
32844         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
32845
32846 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
32847
32848         * MODULES.html.sh (File system functions): New module write-any-file.
32849         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
32850         * m4/write-any-file.m4: New files.
32851
32852 2007-03-23  Eric Blake  <ebb9@byu.net>
32853
32854         * gnulib-tool: Rearrange space-tab sequences, since some editors
32855         like to eat them.
32856
32857 2007-03-23  Eric Blake  <ebb9@byu.net>
32858
32859         * lib/version-etc.c (version_etc_va): Update license wording to
32860         be more concise.  Recommended by Richard Stallman.
32861
32862 2007-03-22  Bruno Haible  <bruno@clisp.org>
32863
32864         * lib/poll.c (MSG_PEEK): New fallback definition.
32865
32866 2007-03-22  Bruno Haible  <bruno@clisp.org>
32867
32868         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
32869         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
32870         (main): Update.
32871         Fixes a compilation error on BeOS.
32872
32873 2007-03-22  Bruno Haible  <bruno@clisp.org>
32874
32875         * modules/frexpl-tests: New file.
32876         * tests/test-frexpl.c: New file.
32877
32878         * modules/frexpl: New file.
32879         * m4/frexpl.m4: New file.
32880         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
32881         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
32882         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
32883         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
32884         (Depends-on): Add frexpl. Remove isnanl-nolibm.
32885         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
32886
32887 2007-03-22  Bruno Haible  <bruno@clisp.org>
32888
32889         * lib/frexpl.c: Share code with lib/frexp.c.
32890         * modules/mathl (Files): Add lib/frexp.c.
32891         (Depends-on): Add isnanl-nolibm.
32892
32893 2007-03-22  Bruno Haible  <bruno@clisp.org>
32894
32895         * modules/printf-frexp (Files): Add m4/frexp.m4.
32896         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
32897         only if the found frexp function actually works.
32898
32899 2007-03-22  Bruno Haible  <bruno@clisp.org>
32900
32901         * lib/frexp.c: Remove older implementation that uses divisions.
32902
32903 2007-03-21  Bruno Haible  <bruno@clisp.org>
32904
32905         * modules/frexp-tests: New file.
32906         * tests/test-frexp.c: New file.
32907
32908         * modules/frexp: New file.
32909         * lib/frexp.c: New file.
32910         * m4/frexp.m4: New file.
32911         * lib/math_.h (frexp): New declaration.
32912         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
32913         REPLACE_FREXP.
32914         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
32915
32916 2007-03-21  Bruno Haible  <bruno@clisp.org>
32917
32918         * modules/isnanl-tests: New file.
32919         * tests/test-isnanl.c: New file.
32920
32921         * modules/isnanl: New file.
32922         * lib/isnanl.h: New file.
32923         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
32924         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
32925         gl_FUNC_ISNANL_WORKS.
32926         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
32927         New macros.
32928
32929 2007-03-21  Bruno Haible  <bruno@clisp.org>
32930
32931         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
32932         lib/isnanl.h.
32933         (Include): Update.
32934         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
32935         * lib/vasnprintf.c: Update.
32936         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
32937         tests/test-isnanl.h, remove tests/test-isnanl.c.
32938         (Makefile.am): Update.
32939         * tests/test-isnanl-nolibm.c: New file.
32940         * tests/test-isnanl.h: New file.
32941         * tests/test-isnanl.c: Remove file.
32942
32943 2007-03-21  Jim Meyering  <jim@meyering.net>
32944
32945         When trying to open ".", treat ESTALE like EACCES.
32946         * lib/savewd.c (savewd_save): Resort to forking not just upon
32947         failure with EACCES, but also when errno is ESTALE.
32948
32949 2007-03-20  Bruno Haible  <bruno@clisp.org>
32950
32951         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
32952         Needed on AIX 5.1. Reported by Matthew Woehlke.
32953
32954 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
32955
32956         Suggestions by Bruno Haible:
32957         * lib/acl-internal.h: Include "gettext.h" rather than rolling
32958         our own.
32959         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
32960         * modules/acl (Depends-on): Add gettext.
32961
32962 2007-03-19  Bruno Haible  <bruno@clisp.org>
32963
32964         * modules/iconvme: Remove file.
32965         * lib/iconvme.h: Remove file.
32966         * lib/iconvme.c: Remove file.
32967         * m4/iconvme.m4: Remove file.
32968
32969 2007-03-19  Bruno Haible  <bruno@clisp.org>
32970
32971         * doc/relocatable-maint.texi: Break long shell script line.
32972         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
32973
32974 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
32975
32976         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
32977         handle file_has_acl.
32978         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
32979         * lib/acl.c: Move header inclusions and related macro defns into
32980         lib/acl-internal.h.
32981         (S_ISLNK): Remove defn, since that's now done for us.
32982         (file_has_acl): Move to lib/file-has-acl.c.
32983         Call acl_trivial if available.  This is the crucial part of the fix.
32984         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
32985         shared within the library.  Rewrite a bit, partly to make it compatible
32986         with the GNU coding style.
32987         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
32988         Remove unnecessary double-quotes.
32989         Don't test for acl_to_text; the build will catch that.
32990         Replace acl_entries if it doesn't exist and it is needed.
32991         Check for -lsec and acl_trivial (as used on Solaris 10).
32992         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
32993         lib/file-has-acl.c.
32994         (Depends-on): Add sys_stat, for S_ISLNK.
32995
32996 2007-03-19  Ben Pfaff  <blp@gnu.org>
32997
32998         * doc/gnulib.texi: Fix typos.
32999         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
33000
33001 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
33002
33003         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
33004         If size is zero here, buf must be zero.
33005
33006 2007-03-19  Simon Josefsson  <simon@josefsson.org>
33007
33008         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
33009         <bruno@clisp.org>.
33010
33011 2007-03-18  Bruno Haible  <bruno@clisp.org>
33012
33013         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
33014         Suggested by Eric Blake.
33015
33016 2007-03-18  Ben Pfaff  <blp@gnu.org>
33017
33018         * doc/relocatable.texi: Recommend using as prefix a directory
33019         that does not exist and will never be created.  Based on
33020         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
33021         and others.
33022
33023 2007-03-17  Bruno Haible  <bruno@clisp.org>
33024
33025         * lib/fchownat.c: Include lchown.h.
33026
33027 2007-03-17  Bruno Haible  <bruno@clisp.org>
33028
33029         Fix endless loop when the given allocated size was > INT_MAX.
33030         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
33031         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
33032         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
33033         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
33034         * lib/sprintf.c (sprintf): Likewise.
33035
33036 2007-03-17  Bruno Haible  <bruno@clisp.org>
33037
33038         * tests/test-argp-2.sh (func_compare): Output a context diff.
33039
33040 2007-03-17  Bruno Haible  <bruno@clisp.org>
33041
33042         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
33043         locale's decimal-point character.
33044
33045 2007-03-17  Bruno Haible  <bruno@clisp.org>
33046
33047         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
33048         before comparing it. Needed because on some platforms (e.g. x86) a
33049         'long double' occupies less bytes than sizeof (long double).
33050
33051 2007-03-17  Bruno Haible  <bruno@clisp.org>
33052
33053         * tests/test-crc.c (main): Make printf statements 64-bit clean.
33054         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
33055         * tests/test-getaddrinfo.c (simple): Likewise.
33056         * tests/test-read-file.c (main): Likewise.
33057
33058 2007-03-17  Bruno Haible  <bruno@clisp.org>
33059
33060         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
33061
33062 2007-03-17  Bruno Haible  <bruno@clisp.org>
33063
33064         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
33065         unused variable.
33066
33067 2007-03-17  Bruno Haible  <bruno@clisp.org>
33068
33069         * tests/test-c-strcasecmp.c: Include c-strcase.h.
33070         * tests/test-c-strncasecmp.c: Likewise.
33071
33072 2007-03-17  Bruno Haible  <bruno@clisp.org>
33073
33074         * modules/stdlib (Depends-on): Add unistd.
33075         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
33076         Needed for MacOS X 10.3.
33077
33078 2007-03-17  Bruno Haible  <bruno@clisp.org>
33079
33080         * lib/unistr/u-strdup.h: Include <stdlib.h>.
33081
33082 2007-03-17  Bruno Haible  <bruno@clisp.org>
33083
33084         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
33085
33086 2007-03-17  Bruno Haible  <bruno@clisp.org>
33087
33088         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
33089         to reflect files copied from gnulib (with or without modifications).
33090         Suggested by Jim Meyering.
33091
33092 2007-03-17  Eric Blake  <ebb9@byu.net>
33093
33094         * NEWS: Document stdlib change from 2007-02-18.
33095
33096 2007-03-17  Jim Meyering  <jim@meyering.net>
33097
33098         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
33099         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
33100         someone uses a name containing shell meta-characters.
33101         Reported by Alfred M. Szmidt.
33102
33103         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
33104
33105 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
33106
33107         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
33108         and copy gettext configuration files only if configure.ac contains
33109         a use of AM_GNU_GETTEXT_VERSION.
33110
33111 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
33112
33113         * build-aux/bootstrap (gnulib_name): New variable.
33114         (gnulib_tool_options): Use it.
33115
33116 2007-03-13  Simon Josefsson  <simon@josefsson.org>
33117
33118         * tests/test-des.c: Use new namespace.
33119
33120 2007-03-15  Bruno Haible  <bruno@clisp.org>
33121
33122         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
33123         Reported by James Youngman <jay@gnu.org>.
33124
33125 2007-03-15  Bruno Haible  <bruno@clisp.org>
33126
33127         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
33128         declared prototype. Needed with cc on OSF/1 5.1.
33129
33130 2007-03-15  Bruno Haible  <bruno@clisp.org>
33131
33132         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
33133         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
33134         (struct gl_list_implementation): Add dispose_fn argument to the
33135         'create_empty', 'create' methods.
33136         (struct gl_list_impl_base): Add field 'dispose_fn'.
33137         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
33138         argument.
33139         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
33140         dispose_fn argument.
33141         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
33142         dispose_fn on the dropped values.
33143         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
33144         dispose_fn argument.
33145         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
33146         dropped values.
33147         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
33148         (gl_tree_remove_node): Call dispose_fn on the dropped value.
33149         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
33150         (gl_tree_remove_node): Call dispose_fn on the dropped value.
33151         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
33152         argument.
33153         (gl_tree_list_free): Call dispose_fn on the dropped values.
33154         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
33155         the dropped values.
33156         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
33157         Add dispose_fn argument.
33158         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
33159         Call dispose_fn on the dropped values.
33160         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
33161         Add dispose_fn argument.
33162         (gl_sublist_create): Initialize the 'dispose_fn' field.
33163         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
33164         * tests/test-array_list.c (main): Update.
33165         * tests/test-carray_list.c (main): Update.
33166         * tests/test-avltree_list.c (main): Update.
33167         * tests/test-rbtree_list.c (main): Update.
33168         * tests/test-avltreehash_list.c (main): Update.
33169         * tests/test-rbtreehash_list.c (main): Update.
33170         * tests/test-linked_list.c (main): Update.
33171         * tests/test-linkedhash_list.c (main): Update.
33172         * tests/test-array_oset.c (main): Update.
33173
33174 2007-03-15  Bruno Haible  <bruno@clisp.org>
33175
33176         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
33177         (gl_oset_create_empty): Add dispose_fn argument.
33178         (struct gl_oset_implementation): Add dispose_fn argument to
33179         'create_empty' method.
33180         (struct gl_oset_impl_base): Add dispose_fn field.
33181         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
33182         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
33183         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
33184         values.
33185         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
33186         (gl_tree_oset_free): Call dispose_fn on the dropped values.
33187         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
33188         dropped value.
33189         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
33190         dropped value.
33191         * tests/test-array_oset.c (main): Update.
33192         * tests/test-avltree_oset.c (main): Update.
33193         * tests/test-rbtree_oset.c (main): Update.
33194         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
33195
33196 2007-03-13  Bruno Haible  <bruno@clisp.org>
33197
33198         * tests/test-stdbool.c (i): Update after last patch.
33199
33200 2007-03-12  Bruno Haible  <bruno@clisp.org>
33201
33202         * lib/quotearg.c: Include <wctype.h> early, before the definition of
33203         the iswprint macro. Needed on Solaris 2.5.1.
33204
33205 2007-03-12  Bruno Haible  <bruno@clisp.org>
33206
33207         * tests/test-printf-frexp.c (main): Declare x as volatile.
33208
33209 2007-03-12  Simon Josefsson  <simon@josefsson.org>
33210
33211         * doc/gnulib.texi (Build robot for gnulib): New section.
33212
33213 2007-03-12  Jim Meyering  <jim@meyering.net>
33214
33215         * build-aux/bootstrap: New file.
33216         * build-aux/bootstrap.conf: New file, from coreutils.
33217
33218 2007-03-11  Bruno Haible  <bruno@clisp.org>
33219
33220         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
33221
33222 2007-03-12  Simon Josefsson  <simon@josefsson.org>
33223
33224         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
33225         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
33226         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
33227
33228 2007-03-11  Bruno Haible  <bruno@clisp.org>
33229
33230         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
33231         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
33232
33233 2007-03-11  Bruno Haible  <bruno@clisp.org>
33234
33235         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
33236         formula. Needed for SunPRO C 5.0.
33237
33238 2007-03-11  Bruno Haible  <bruno@clisp.org>
33239
33240         * modules/long-options (Depends-on): Add getopt.
33241
33242 2007-03-11  Bruno Haible  <bruno@clisp.org>
33243
33244         * modules/modechange (Depends-on): Add stdbool.
33245
33246 2007-03-11  Bruno Haible  <bruno@clisp.org>
33247
33248         * modules/i-ring (Depends-on): Add stdbool.
33249
33250 2007-03-11  Bruno Haible  <bruno@clisp.org>
33251
33252         * modules/gc-des (Depends-on): Add stdbool.
33253
33254 2007-03-11  Bruno Haible  <bruno@clisp.org>
33255
33256         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
33257
33258 2007-03-11  Bruno Haible  <bruno@clisp.org>
33259
33260         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
33261
33262 2007-03-11  Bruno Haible  <bruno@clisp.org>
33263
33264         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
33265
33266 2007-03-11  Bruno Haible  <bruno@clisp.org>
33267
33268         * lib/vasnprintf.c (sprintf): Undefine.
33269
33270 2007-03-11  Bruno Haible  <bruno@clisp.org>
33271
33272         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
33273         initializers in SunPRO C and Compaq C compilers.
33274
33275 2007-03-11  Bruno Haible  <bruno@clisp.org>
33276
33277         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
33278         decrementing code ANSI C compliant.
33279
33280 2007-03-11  Bruno Haible  <bruno@clisp.org>
33281
33282         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
33283         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
33284
33285 2007-03-11  Bruno Haible  <bruno@clisp.org>
33286
33287         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
33288         <stdbool.h> substitute doesn't pass.
33289
33290 2007-03-11  Bruno Haible  <bruno@clisp.org>
33291
33292         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
33293
33294 2007-03-11  Bruno Haible  <bruno@clisp.org>
33295
33296         * gnulib-tool (func_create_megatestdir): Create also an autobuild
33297         script, for submission to autobuild.josefsson.org.
33298
33299 2007-03-10  Bruno Haible  <bruno@clisp.org>
33300
33301         * modules/canonicalize-lgpl-tests: New file.
33302         * tests/test-canonicalize-lgpl.sh: New file.
33303         * tests/test-canonicalize-lgpl.c: New file.
33304
33305         * modules/c-strcase-tests: New file.
33306         * tests/test-c-strcase.sh: New file.
33307         * tests/test-c-strcasecmp.c: New file.
33308         * tests/test-c-strncasecmp.c: New file.
33309
33310         * modules/atexit-tests: New file.
33311         * tests/test-atexit.sh: New file.
33312         * tests/test-atexit.c: New file.
33313
33314 2007-03-10  Bruno Haible  <bruno@clisp.org>
33315
33316         * tests/test-binary-io.sh: Use temporary filenames that are not so
33317         likely to clash with those of other tests (in a parallel make).
33318         * tests/test-binary-io.c: Likewise.
33319
33320 2007-03-10  Bruno Haible  <bruno@clisp.org>
33321
33322         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
33323         fallback; use #error instead.
33324         Suggested by Simon Josefsson.
33325
33326 2007-03-10  Bruno Haible  <bruno@clisp.org>
33327
33328         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
33329         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
33330         first and the last.
33331
33332 2007-03-10  Bruno Haible  <bruno@clisp.org>
33333
33334         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
33335
33336 2007-03-10  Bruno Haible  <bruno@clisp.org>
33337
33338         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
33339         "make distcheck".
33340         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
33341         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
33342         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
33343
33344 2007-03-10  Bruno Haible  <bruno@clisp.org>
33345
33346         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
33347         variable.
33348         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
33349         variable.
33350
33351 2007-03-09  Eric Blake  <ebb9@byu.net>
33352         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
33353
33354         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
33355         types are not being provided by gnulib.
33356         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
33357         types are supported.
33358
33359 2007-03-10  Bruno Haible  <bruno@clisp.org>
33360
33361         * lib/stdio_.h (__attribute__): New macro.
33362         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
33363         vsprintf): Specify __attribute__ __format__ for GCC.
33364         Suggested by Eric Blake.
33365
33366 2007-03-09  Bruno Haible  <bruno@clisp.org>
33367
33368         * modules/printf-posix-tests: New file.
33369         * tests/test-printf-posix.sh: New file.
33370         * tests/test-printf-posix.c: New file.
33371
33372         * modules/printf-posix: New file.
33373         * lib/printf.c: New file.
33374         * m4/printf-posix-rpl.m4: New file.
33375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
33376         REPLACE_PRINTF.
33377         * lib/stdio_.h (printf): New declaration.
33378         (format, __format__, ____printf____, ____scanf____, ____strftime____,
33379         ____strfmon____): New macros.
33380         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
33381         REPLACE_PRINTF.
33382
33383 2007-03-09  Bruno Haible  <bruno@clisp.org>
33384
33385         * tests/test-vasnprintf-posix2.sh: New file.
33386         * tests/test-vasnprintf-posix2.c: New file.
33387         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
33388         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33389         (Makefile.am): Activate test-vasnprintf-posix2.sh.
33390
33391         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
33392         a locale dependent decimal point, rather than always '.'.
33393
33394 2007-03-09  Eric Blake  <ebb9@byu.net>
33395
33396         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
33397         spite of platforms like Tandem/NSK that define it to -1.
33398
33399 2007-03-08  Bruno Haible  <bruno@clisp.org>
33400
33401         * modules/vprintf-posix-tests: New file.
33402         * tests/test-vprintf-posix.sh: New file.
33403         * tests/test-vprintf-posix.c: New file.
33404         * tests/test-printf-posix.h: New file.
33405
33406         * modules/vprintf-posix: New file.
33407         * lib/vprintf.c: New file.
33408         * m4/vprintf-posix.m4: New file.
33409         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
33410         REPLACE_VPRINTF.
33411         * lib/stdio_.h (vprintf): New declaration.
33412         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
33413         REPLACE_VPRINTF.
33414
33415 2007-03-08  Bruno Haible  <bruno@clisp.org>
33416
33417         * modules/fprintf-posix-tests: New file.
33418         * tests/test-fprintf-posix.sh: New file.
33419         * tests/test-fprintf-posix.c: New file.
33420
33421         * modules/fprintf-posix: New file.
33422         * lib/fprintf.c: New file.
33423         * m4/fprintf-posix.m4: New file.
33424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
33425         REPLACE_FPRINTF.
33426         * lib/stdio_.h (fprintf): New declaration.
33427         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
33428         REPLACE_FPRINTF.
33429
33430 2007-03-08  Bruno Haible  <bruno@clisp.org>
33431
33432         * modules/vfprintf-posix-tests: New file.
33433         * tests/test-vfprintf-posix.sh: New file.
33434         * tests/test-vfprintf-posix.c: New file.
33435         * tests/test-fprintf-posix.h: New file.
33436         * tests/test-fprintf-posix.out: New file.
33437
33438         * modules/vfprintf-posix: New file.
33439         * lib/vfprintf.c: New file.
33440         * m4/vfprintf-posix.m4: New file.
33441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
33442         REPLACE_VFPRINTF.
33443         * lib/stdio_.h (vfprintf): New declaration.
33444         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
33445         REPLACE_VFPRINTF.
33446
33447 2007-03-08  Bruno Haible  <bruno@clisp.org>
33448
33449         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
33450
33451 2007-03-08  Bruno Haible  <bruno@clisp.org>
33452
33453         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
33454         instead of 'expr' invocations.
33455         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33456         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33457         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33458         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33459         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33460         Suggested by Paul Eggert.
33461
33462 2007-03-08  Bruno Haible  <bruno@clisp.org>
33463
33464         * modules/fseterr-tests: New file.
33465         * tests/test-fseterr.c: New file.
33466
33467         * modules/fseterr: New file.
33468         * lib/fseterr.h: New file.
33469         * lib/fseterr.c: New file.
33470
33471 2007-03-08  Bruno Haible  <bruno@clisp.org>
33472
33473         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
33474         * lib/getopt_.h: Likewise.
33475         * lib/mbswidth.h: Likewise.
33476         * lib/setenv.h: Likewise.
33477         * lib/vasnprintf.h: Likewise.
33478         * lib/vasprintf.h: Likewise.
33479         * lib/verror.h: Likewise.
33480         * lib/xsetenv.h: Likewise.
33481         * lib/xvasprintf.h: Likewise.
33482
33483 2007-03-08  Jim Meyering  <jim@meyering.net>
33484
33485         * users.txt: Add parted.
33486
33487         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
33488
33489 2007-03-07  Bruno Haible  <bruno@clisp.org>
33490
33491         * m4/printf.m4: Make the shell script snippets copy&pastable.
33492
33493 2007-03-02  Bruno Haible  <bruno@clisp.org>
33494
33495         * lib/netinet_in_.h: New file.
33496         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
33497         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
33498         * modules/netinet_in (Files): Add lib/netinet_in_.h.
33499         (Depends-on): Add absolute-header.
33500         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
33501         into netinet/in.h.
33502
33503 2007-03-03  Bruno Haible  <bruno@clisp.org>
33504
33505         * lib/sys_select_.h: New file.
33506         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
33507         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
33508         * modules/sys_select (Files): Add lib/sys_select_.h.
33509         (Depends-on): Add absolute-header.
33510         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
33511         into sys/select.h.
33512
33513 2007-03-02  Bruno Haible  <bruno@clisp.org>
33514
33515         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
33516         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
33517         values.
33518         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
33519         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
33520         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
33521         * modules/sys_socket (Depends-on): Add absolute-header.
33522         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
33523         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
33524         (Include): Remove requirement of inclusion of <sys/types.h>.
33525
33526 2007-03-02  Bruno Haible  <bruno@clisp.org>
33527
33528         * lib/byteswap_.h (bswap_32): Fix formula.
33529
33530 2007-03-06  Bruno Haible  <bruno@clisp.org>
33531
33532         * modules/sprintf-posix-tests: New file.
33533         * tests/test-sprintf-posix.c: New file.
33534
33535         * modules/sprintf-posix: New file.
33536         * lib/sprintf.c: New file.
33537         * m4/sprintf-posix.m4: New file.
33538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
33539         REPLACE_SPRINTF.
33540         * lib/stdio_.h (sprintf): New declaration.
33541         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
33542         REPLACE_SPRINTF.
33543
33544 2007-03-06  Bruno Haible  <bruno@clisp.org>
33545
33546         * modules/vsprintf-posix-tests: New file.
33547         * tests/test-vsprintf-posix.c: New file.
33548         * tests/test-sprintf-posix.h: New file.
33549
33550         * modules/vsprintf-posix: New file.
33551         * lib/vsprintf.c: New file.
33552         * m4/vsprintf-posix.m4: New file.
33553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
33554         REPLACE_VSPRINTF.
33555         * lib/stdio_.h (vsprintf): New declaration.
33556         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
33557         REPLACE_VSPRINTF.
33558
33559 2007-03-06  Bruno Haible  <bruno@clisp.org>
33560
33561         * modules/vsnprintf (Depend-on): Remove minmax.
33562
33563 2007-03-06  Bruno Haible  <bruno@clisp.org>
33564
33565         * modules/snprintf-posix-tests: New file.
33566         * tests/test-snprintf-posix.c: New file.
33567
33568         * modules/snprintf-posix: New file.
33569         * m4/snprintf-posix.m4: New file.
33570         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
33571         gl_FUNC_SNPRINTF.
33572         (gl_FUNC_SNPRINTF): Invoke it.
33573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
33574         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
33575         is set.
33576         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
33577
33578 2007-03-06  Bruno Haible  <bruno@clisp.org>
33579
33580         * modules/vsnprintf-posix-tests: New file.
33581         * tests/test-vsnprintf-posix.c: New file.
33582         * tests/test-snprintf-posix.h: New file.
33583
33584         * modules/vsnprintf-posix: New file.
33585         * m4/vsnprintf-posix.m4: New file.
33586         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
33587         gl_FUNC_VSNPRINTF.
33588         (gl_FUNC_VSNPRINTF): Invoke it.
33589         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
33590         * lib/stdio_.h (vsnprintf): Define as a replacement if
33591         REPLACE_VSNPRINTF is set.
33592         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
33593
33594 2007-03-06  Bruno Haible  <bruno@clisp.org>
33595
33596         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
33597         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
33598
33599 2007-03-06  Bruno Haible  <bruno@clisp.org>
33600
33601         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
33602         (asinl): Declare also if HAVE_DECL_ASINL is set.
33603         (atanl): Declare also if HAVE_DECL_ATANL is set.
33604         (ceill): Declare also if HAVE_DECL_CEILL is set.
33605         (cosl): Declare also if HAVE_DECL_COSL is set.
33606         (expl): Declare also if HAVE_DECL_EXPL is set.
33607         (floorl): Declare also if HAVE_DECL_FLOORL is set.
33608         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
33609         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
33610         (logl): Declare also if HAVE_DECL_LOGL is set.
33611         (sinl): Declare also if HAVE_DECL_SINL is set.
33612         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
33613         (tanl): Declare also if HAVE_DECL_TANL is set.
33614         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
33615         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
33616         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
33617         declaration of frexpl, ldexpl.
33618         * modules/printf-frexpl (Depends-on): Add math.
33619         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
33620
33621 2007-03-05  Bruno Haible  <bruno@clisp.org>
33622
33623         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
33624         frexpl and ldexpl are declared.
33625         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
33626
33627 2007-03-05  Bruno Haible  <bruno@clisp.org>
33628
33629         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
33630         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
33631
33632 2007-03-05  Bruno Haible  <bruno@clisp.org>
33633
33634         * lib/stdio_.h: Include <stddef.h>.
33635
33636 2007-03-05  Bruno Haible  <bruno@clisp.org>
33637
33638         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
33639
33640 2007-03-05  Bruno Haible  <bruno@clisp.org>
33641
33642         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
33643         NetBSD 4, from Ralf Wildenhues.
33644
33645 2007-03-04  Bruno Haible  <bruno@clisp.org>
33646
33647         * lib/vasprintf.h: Update #if logic for the case when the functions
33648         exist but are overridden.
33649
33650 2007-03-04  Bruno Haible  <bruno@clisp.org>
33651
33652         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
33653         implementations: glibc-2.4 and MacOS X 10.3.
33654         * tests/test-vasnprintf-posix.c (test_function): Test also the case
33655         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
33656         * tests/test-vasprintf-posix.c (test_function): Likewise.
33657
33658 2007-03-04  Bruno Haible  <bruno@clisp.org>
33659
33660         * modules/vasprintf-posix-tests: New file.
33661         * tests/test-vasprintf-posix.c: New file.
33662
33663         * modules/vasprintf-posix: New file.
33664         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
33665         defined.
33666         * m4/vasprintf-posix.m4: New file.
33667         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
33668         gl_FUNC_VASPRINTF.
33669         (gl_FUNC_VASPRINTF): Invoke it.
33670         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
33671         here.
33672         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
33673
33674 2007-03-04  Bruno Haible  <bruno@clisp.org>
33675
33676         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
33677         REPLACE_GETTIMEOFDAY.
33678         * modules/sys_time (Makefile.am): Likewise.
33679         * m4/sys_time_h.m4: Likewise.
33680         * m4/gettimeofday.m4: Likewise.
33681
33682 2007-03-04  Bruno Haible  <bruno@clisp.org>
33683
33684         * modules/vasnprintf-posix-tests: New file.
33685         * tests/test-vasnprintf-posix.c: New file.
33686
33687         * modules/vasnprintf-posix: New file.
33688         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
33689         printf-frexpl.h.
33690         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
33691         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
33692         REPLACE_VASNPRINTF is defined.
33693         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
33694         gl_FUNC_VASNPRINTF.
33695         (gl_FUNC_VASNPRINTF): Invoke it.
33696         * m4/vasnprintf-posix.m4: New file.
33697         * m4/printf.m4: New file.
33698
33699 2007-03-04  Bruno Haible  <bruno@clisp.org>
33700
33701         Compile progreloc.c only if --enable-relocatable is specified.
33702         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
33703         if --enable-relocatable was specified.
33704         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
33705         lib_SOURCES.
33706
33707 2007-03-04  Jim Meyering  <jim@meyering.net>
33708
33709         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
33710         Use it consistently, rather than enumerating errno constants.
33711
33712 2007-03-04  Bruno Haible  <bruno@clisp.org>
33713
33714         * modules/xvasprintf-tests: New file.
33715         * tests/test-xvasprintf.c: New file.
33716
33717         * modules/vasprintf-tests: New file.
33718         * tests/test-vasprintf.c: New file.
33719
33720         * modules/vasnprintf-tests: New file.
33721         * tests/test-vasnprintf.c: New file.
33722
33723         * modules/vsnprintf-tests: New file.
33724         * tests/test-vsnprintf.c: New file.
33725
33726         * modules/snprintf-tests: New file.
33727         * tests/test-snprintf.c: New file.
33728
33729 2007-03-04  Bruno Haible  <bruno@clisp.org>
33730
33731         Compile relocatable.c only if --enable-relocatable is specified.
33732         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
33733         gl_RELOCATABLE_LIBRARY.
33734         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
33735         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
33736         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
33737         gl_RELOCATABLE_LIBRARY.
33738         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
33739         (Makefile.am): Remove lib_SOURCES.
33740         * modules/relocatable-lib-lgpl (configure.ac): Invoke
33741         gl_RELOCATABLE_LIBRARY.
33742         (Makefile.am): Remove lib_SOURCES.
33743         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
33744         always.
33745         * modules/relocatable-prog-wrapper (configure.ac): Invoke
33746         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
33747
33748 2007-03-04  Bruno Haible  <bruno@clisp.org>
33749
33750         * modules/argmatch-tests: New file.
33751         * tests/test-argmatch.c: New file.
33752
33753         * tests/test-allocsa.c (main): Halve the number of loop runs.
33754
33755         * modules/alloca-opt-tests: New file.
33756         * tests/test-alloca-opt.c: New file.
33757
33758 2007-03-04  Jim Meyering  <jim@meyering.net>
33759
33760         Work around difference between Linux ACLs and Solaris 10 ZFS.
33761         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
33762         for EINVAL.
33763
33764 2007-03-03  Bruno Haible  <bruno@clisp.org>
33765
33766         * modules/relocatable-prog (Depends-on): Add back progreloc's
33767         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
33768
33769 2007-03-03  Bruno Haible  <bruno@clisp.org>
33770
33771         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
33772         * modules/relocatable-lib: New file.
33773
33774 2007-03-03  Bruno Haible  <bruno@clisp.org>
33775
33776         * modules/relocatable-prog: Renamed from modules/relocatable.
33777         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
33778
33779 2007-03-03  Bruno Haible  <bruno@clisp.org>
33780
33781         * modules/relocatable-script (Files): Add doc/relocatable.texi,
33782         m4/relocatable-lib.m4.
33783         (Depends-on): Remove 'relocatable'.
33784         (configure.ac): Add gl_RELOCATABLE_NOP.
33785
33786 2007-03-03  Bruno Haible  <bruno@clisp.org>
33787
33788         * modules/relocatable-prog-wrapper: New file.
33789         * modules/relocatable (Depends-on): Add it. Remove all other
33790         dependencies except progname.
33791         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
33792
33793         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
33794         (gl_FUNC_STRERROR): Nop.
33795         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
33796
33797         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
33798         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
33799
33800         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
33801         (gl_FUNC_READLINK): Update.
33802
33803         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
33804
33805 2007-03-03  Bruno Haible  <bruno@clisp.org>
33806
33807         * lib/xreadlink.c: Include <unistd.h> unconditionally.
33808         * modules/xreadlink (Depends-on): Add unistd.
33809         * modules/xreadlink-with-size (Depends-on): Likewise.
33810
33811 2007-03-03  Bruno Haible  <bruno@clisp.org>
33812
33813         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
33814         extracted from gt_FUNC_SETENV.
33815         (gt_FUNC_SETENV): Remove macro.
33816         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
33817         remove gt_FUNC_SETENV.
33818
33819 2007-03-03  Bruno Haible  <bruno@clisp.org>
33820
33821         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
33822         ENABLE_RELOCATABLE here.
33823         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
33824
33825 2007-03-03  Bruno Haible  <bruno@clisp.org>
33826
33827         * modules/rbtreehash-list-tests (Depends-on): Add progname.
33828         * tests/test-rbtreehash_list.c: Include progname.h.
33829         (main): Call set_program_name.
33830
33831         * modules/rbtree-oset-tests (Depends-on): Add progname.
33832         * tests/test-rbtree_oset.c: Include progname.h.
33833         (main): Call set_program_name.
33834
33835         * modules/rbtree-list-tests (Depends-on): Add progname.
33836         * tests/test-rbtree_list.c: Include progname.h.
33837         (main): Call set_program_name.
33838
33839         * modules/linked-list-tests (Depends-on): Add progname.
33840         * tests/test-linked_list.c: Include progname.h.
33841         (main): Call set_program_name.
33842
33843 2007-03-03  Bruno Haible  <bruno@clisp.org>
33844
33845         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
33846         All uses of __restrict changed to _Restrict_.
33847         * lib/glob_.h (__restrict): Remove macro.
33848
33849 2007-03-02  Bruno Haible  <bruno@clisp.org>
33850
33851         * modules/gettext (configure.ac): Require gettext infrastructure
33852         from version 0.16.1.
33853
33854 2007-03-02  Bruno Haible  <bruno@clisp.org>
33855
33856         * modules/linkedhash-list-tests (Depends-on): Add progname.
33857         * tests/test-linkedhash_list.c: Include progname.h.
33858         (main): Call set_program_name.
33859
33860         * modules/carray-list-tests (Depends-on): Add progname.
33861         * tests/test-carray_list.c: Include progname.h.
33862         (main): Call set_program_name.
33863
33864         * modules/avltreehash-list-tests (Depends-on): Add progname.
33865         * tests/test-avltreehash_list.c: Include progname.h.
33866         (main): Call set_program_name.
33867
33868         * modules/avltree-oset-tests (Depends-on): Add progname.
33869         * tests/test-avltree_oset.c: Include progname.h.
33870         (main): Call set_program_name.
33871
33872         * modules/avltree-list-tests (Depends-on): Add progname.
33873         * tests/test-avltree_list.c: Include progname.h.
33874         (main): Call set_program_name.
33875
33876         * modules/array-oset-tests (Depends-on): Add progname.
33877         * tests/test-array_oset.c: Include progname.h.
33878         (main): Call set_program_name.
33879
33880         * modules/array-list-tests (Depends-on): Add progname.
33881         * tests/test-array_list.c: Include progname.h.
33882         (main): Call set_program_name.
33883
33884         * modules/argp-tests (Depends-on): Add progname.
33885         * tests/test-argp.c: Include argp.h first. Include progname.h.
33886         (main): Call set_program_name.
33887
33888 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
33889
33890         * doc/gnulib-tool.texi (Initial import): Reword description of
33891         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
33892         limited effect even if defined after the first system include.
33893
33894 2007-03-01  Bruno Haible  <bruno@clisp.org>
33895
33896         * build-aux/config.libpath: Update to libtool-1.5.22.
33897         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33898
33899 2007-03-01  Bruno Haible  <bruno@clisp.org>
33900
33901         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
33902         foo_CFLAGS.
33903         Reported by Ralf Wildenhues.
33904
33905 2007-03-01  Bruno Haible  <bruno@clisp.org>
33906
33907         * build-aux/install-reloc: Remove object files left over by some
33908         compilers.
33909         Reported by Ralf Wildenhues.
33910
33911 2007-03-01  Bruno Haible  <bruno@clisp.org>
33912
33913         * build-aux/install-reloc: Break long lines.
33914
33915 2007-03-01  Bruno Haible  <bruno@clisp.org>
33916
33917         * doc/relocatable.texi: Document that it may not work on OpenBSD.
33918         Reported by Ralf Wildenhues.
33919
33920 2007-03-01  Bruno Haible  <bruno@clisp.org>
33921
33922         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
33923         include ordering constraints.
33924
33925 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33926
33927         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
33928         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
33929         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
33930         as another example.
33931         * lib/time_.h: Fix misspelling.
33932         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
33933         Require gl_HEADER_TIME_H_DEFAULTS.
33934         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
33935         * m4/time_r.m4 (gl_TIME_R): Likewise.
33936         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
33937
33938 2007-03-01  Bruno Haible  <bruno@clisp.org>
33939
33940         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
33941         * m4/utimens.m4 (gl_UTIMENS): Likewise.
33942
33943 2007-03-01  Jim Meyering  <jim@meyering.net>
33944
33945         * modules/xreadlink (Maintainer): Add my name.
33946         * modules/xreadlink-with-size (Depends-on): Alphabetize.
33947
33948 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
33949             Bruno Haible  <bruno@clisp.org>
33950
33951         * build-aux/install-reloc: Compile also c-ctype.c.
33952         * build-aux/relocatable.sh.in: New file.
33953         * doc/relocatable.texi: New file.
33954         * doc/relocatable-maint.texi: New file.
33955         * doc/gnulib.texi: Include relocatable-maint.texi.
33956         * lib/progreloc.c: Include unistd.h unconditionally.
33957         * lib/relocwrapper.c: Include unistd.h unconditionally.
33958         Include c-ctype.h.
33959         (add_dotbin): Use c_tolower.
33960         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
33961         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
33962         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
33963         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
33964         to m4/relocatable-lib.m4.
33965         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
33966         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
33967         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
33968         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
33969         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
33970         * modules/relocatable: New file.
33971         * modules/relocatable-lib: New file.
33972         * modules/relocatable-script: New file.
33973
33974 2007-02-28  Bruno Haible  <bruno@clisp.org>
33975
33976         Import --enable-relocatable infrastructure.
33977         * build-aux/config.libpath: New file, from GNU gettext.
33978         * build-aux/install-reloc: New file, from GNU gettext.
33979         * build-aux/reloc-ldflags: New file, from GNU gettext.
33980         * lib/relocatable.h: New file, from GNU gettext.
33981         * lib/relocatable.c: New file, from GNU gettext.
33982         * lib/relocwrapper.c: New file, from GNU gettext.
33983         * m4/relocatable.m4: New file, from GNU gettext.
33984
33985 2007-02-28  Bruno Haible  <bruno@clisp.org>
33986
33987         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
33988
33989         * modules/xreadlink: New file, from GNU gettext with modifications.
33990         * lib/xreadlink.c: New file, from GNU gettext.
33991         * lib/xreadlink.h: Add comments.
33992         (xreadlink): New declaration.
33993
33994         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
33995         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
33996         lib/xreadlink-with-size.c.
33997         (configure.ac): Remove gl_XREADLINK invocation.
33998         (Makefile.am): Augment lib_SOURCES.
33999         * m4/xreadlink.m4: Remove file.
34000         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
34001         (xreadlink_with_size): Renamed from xreadink.
34002         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
34003         * modules/canonicalize (Depends-on): Replace xreadlink with
34004         xreadlink-with-size.
34005         * lib/canonicalize.c (canonicalize_filename_mode): Update.
34006
34007 2007-02-25  Jim Meyering  <jim@meyering.net>
34008
34009         * build-aux/announce-gen: When complaining about excess arguments,
34010         list them.
34011
34012 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
34013
34014         * README: Document signed integer overflow situation more
34015         accurately.
34016
34017 2007-02-25  Bruno Haible  <bruno@clisp.org>
34018
34019         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
34020         'a' or 'A' conversion.
34021
34022 2007-02-25  Bruno Haible  <bruno@clisp.org>
34023
34024         * modules/filename: Renamed from modules/pathname.
34025         (Files): Replace lib/pathname.h with lib/filename.h. Replace
34026         lib/concatpath.c with lib/concat-filename.c.
34027         (Makefile.am): Update.
34028         (Include): Replace pathname.h with filename.h.
34029         * lib/filename.h: Renamed from lib/pathname.h.
34030         (concatenated_filename): Renamed from concatenated_pathname.
34031         * lib/concat-filename.c: Renamed from lib/concatpath.c.
34032         (concatenated_filename): Renamed from concatenated_pathname.
34033         * lib/findprog.c: Include filename.h instead of pathname.h.
34034         (find_in_path): Update.
34035         * lib/javacomp.c: Include filename.h instead of pathname.h.
34036         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
34037         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
34038         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
34039         is_oldgcj_14_13_usable, is_javac_usable): Update.
34040         * lib/javaexec.c: Include filename.h instead of pathname.h.
34041         (execute_java_class): Update.
34042         * modules/findprog: Update.
34043         * modules/javacomp: Update.
34044         * modules/javaexec: Update.
34045         * MODULES.html.sh (File system functions): Add 'filename', remove
34046         'pathname'.
34047
34048 2007-02-25  Bruno Haible  <bruno@clisp.org>
34049
34050         * modules/printf-frexpl-tests: New file.
34051         * tests/test-printf-frexpl.c: New file.
34052
34053         * modules/printf-frexpl: New file.
34054         * lib/printf-frexpl.h: New file.
34055         * lib/printf-frexpl.c: New file.
34056         * m4/printf-frexpl.m4: New file.
34057
34058 2007-02-25  Bruno Haible  <bruno@clisp.org>
34059
34060         * modules/printf-frexp-tests: New file.
34061         * tests/test-printf-frexp.c: New file.
34062
34063         * modules/printf-frexp: New file.
34064         * lib/printf-frexp.h: New file.
34065         * lib/printf-frexp.c: New file.
34066         * m4/printf-frexp.m4: New file.
34067
34068 2007-02-25  Bruno Haible  <bruno@clisp.org>
34069
34070         Assume automake >= 1.10 for the tests.
34071         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
34072         * modules/arctwo-tests: Likewise.
34073         * modules/argp-tests: Likewise.
34074         * modules/avltree-list-tests: Likewise.
34075         * modules/avltree-oset-tests: Likewise.
34076         * modules/avltreehash-list-tests: Likewise.
34077         * modules/carray-list-tests: Likewise.
34078         * modules/crc-tests: Likewise.
34079         * modules/des-tests: Likewise.
34080         * modules/gc-arcfour-tests: Likewise.
34081         * modules/gc-arctwo-tests: Likewise.
34082         * modules/gc-des-tests: Likewise.
34083         * modules/gc-hmac-md5-tests: Likewise.
34084         * modules/gc-hmac-sha1-tests: Likewise.
34085         * modules/gc-md2-tests: Likewise.
34086         * modules/gc-md4-tests: Likewise.
34087         * modules/gc-md5-tests: Likewise.
34088         * modules/gc-pbkdf2-sha1-tests: Likewise.
34089         * modules/gc-rijndael-tests: Likewise.
34090         * modules/gc-sha1-tests: Likewise.
34091         * modules/gc-tests: Likewise.
34092         * modules/getaddrinfo-tests: Likewise.
34093         * modules/hmac-md5-tests: Likewise.
34094         * modules/hmac-sha1-tests: Likewise.
34095         * modules/linked-list-tests: Likewise.
34096         * modules/linkedhash-list-tests: Likewise.
34097         * modules/lock-tests: Likewise.
34098         * modules/md2-tests: Likewise.
34099         * modules/md4-tests: Likewise.
34100         * modules/md5-tests: Likewise.
34101         * modules/rbtree-list-tests: Likewise.
34102         * modules/rbtree-oset-tests: Likewise.
34103         * modules/rbtreehash-list-tests: Likewise.
34104         * modules/read-file-tests: Likewise.
34105         * modules/rijndael-tests: Likewise.
34106         * modules/stdint-tests: Likewise.
34107         * modules/tls-tests: Likewise.
34108
34109 2007-02-24  Bruno Haible  <bruno@clisp.org>
34110
34111         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
34112         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
34113         function; instead check whether isnan with a double argument links.
34114         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
34115         function; instead check whether isnan with a 'long double' argument
34116         links.
34117         Reported by Eric Blake <ebb9@byu.net>.
34118
34119 2007-02-24  Bruno Haible  <bruno@clisp.org>
34120
34121         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
34122         defined.
34123         * lib/isnanl.c: Remove all code. Just include isnan.c.
34124         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
34125
34126 2007-02-25  Jim Meyering  <jim@meyering.net>
34127
34128         Avoid conflicting types for 'unsetenv' on FreeBSD.
34129         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
34130         conflicting with FreeBSD's (5.0 and 6.1) function declaration
34131         in stdlib.h.
34132
34133 2007-02-24  Bruno Haible  <bruno@clisp.org>
34134
34135         * modules/isnanl-nolibm-tests: New file.
34136         * tests/test-isnanl.c: New file.
34137
34138         * modules/isnanl-nolibm: New file.
34139         * lib/isnanl.h: New file.
34140         * lib/isnanl.c: New file.
34141         * m4/isnanl.m4: New file.
34142
34143 2007-02-24  Bruno Haible  <bruno@clisp.org>
34144
34145         * modules/isnan-nolibm-tests: New file.
34146         * tests/test-isnan.c: New file.
34147
34148         * modules/isnan-nolibm: New file.
34149         * lib/isnan.h: New file.
34150         * lib/isnan.c: New file.
34151         * m4/isnan.m4: New file.
34152
34153 2007-02-24  Bruno Haible  <bruno@clisp.org>
34154
34155         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
34156         assume that an exponent fits in 20 bits.
34157
34158 2007-02-24  Jim Meyering  <jim@meyering.net>
34159
34160         * m4/regex.m4: Update the description of the configure-time option,
34161         --without-included-regex, to state accurately what the defaults are,
34162         and perhaps to give people an idea why using this option is risky.
34163
34164 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
34165
34166         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
34167         loops on small arguments.  This attempts to avoid the problem
34168         Bruno Haible reported for AIX 4.3.2 in
34169         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
34170
34171 2007-02-23  Bruno Haible  <bruno@clisp.org>
34172
34173         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
34174         Needed for help2man.
34175
34176 2007-02-23  Karl Berry  <karl@gnu.org>
34177
34178         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
34179         exists, foo.h should be cvs-ignored, not committed.
34180
34181 2007-02-23  Eric Blake  <ebb9@byu.net>
34182
34183         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
34184         * lib/stat-time.h (includes): Likewise.
34185         * lib/utimecmp.c (includes): Likewise.
34186         * lib/utimens.h (includes): Likewise.
34187         * lib/getdate.y (includes): Also include "timespec.h" for use
34188         internal to the module.
34189         * modules/utimens (Depends-on): Revert yesterday's patch.
34190         * modules/nanosleep (Depends-on): Add missing dependency.
34191
34192 2007-02-22  Bruno Haible  <bruno@clisp.org>
34193
34194         * lib/glob.c: Don't include getlogin_r.h.
34195
34196 2007-02-22  Jim Meyering  <jim@meyering.net>
34197
34198         * modules/utimens (Depends-on): Add timespec, required for
34199         utimens.h's inclusion of timespec.h.
34200
34201 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
34202
34203         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
34204         long unreadable paths in GNU/Linux.  Problem reported by Andreas
34205         Schwab in
34206         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
34207         I'll try to think of a better way to fix the Solaris problem.
34208
34209         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
34210         like glibc; on Solaris 10, it fails with errno == EINVAL.
34211         POSIX says the behavior is unspecified if the first argument is NULL,
34212         so play it safe and never pass NULL to the system getcwd.
34213
34214 2007-02-21  Jim Meyering  <jim@meyering.net>
34215
34216         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
34217         of gettimeofday.  It would conflict with the one now always
34218         provided via sys_time_.h.  Reported by Matthew Woehlke, as
34219         an IRIX 6.5 build failure.
34220
34221 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
34222
34223         Minor fixups to port to Solaris 10 with Sun C 5.8.
34224         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
34225         * modules/getcwd (Depends-on): Add dirfd.
34226         * lib/putenv.c (putenv): #undef it.
34227         (rpl_putenv): New decl.
34228         (malloc, free): Include <stdlib.h> rather than prototyping separately.
34229
34230 2007-02-20  Bruno Haible  <bruno@clisp.org>
34231
34232         * modules/stdio-tests: New file.
34233         * tests/test-stdio.c: New file.
34234
34235         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
34236         (Depends-on): Add stdio.
34237         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34238         (Include): Use <stdio.h> instead of vsnprintf.h.
34239         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34240         HAVE_DECL_VSNPRINTF.
34241         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
34242
34243         * modules/snprintf (Files): Remove lib/snprintf.h.
34244         (Depends-on): Add stdio.
34245         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34246         (Include): Use <stdio.h> instead of snprintf.h.
34247         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34248         HAVE_DECL_SNPRINTF.
34249         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
34250         * lib/getaddrinfo.c: Likewise.
34251
34252         * modules/stdio: New file.
34253         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
34254         * lib/snprintf.h: Remove file.
34255         * lib/vsnprintf.h: Remove file.
34256         * lib/.cppi-disable: Remove snprintf.h.
34257         * m4/stdio_h.m4: New file.
34258         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
34259
34260 2007-02-20  Jim Meyering  <jim@meyering.net>
34261
34262         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
34263         used by e.g., mingw.  From Bruno Haible.
34264
34265 2007-02-19  Bruno Haible  <bruno@clisp.org>
34266
34267         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
34268         warnings.
34269         Reported by Ben Pfaff <blp@cs.stanford.edu>.
34270
34271 2007-02-19  Bruno Haible  <bruno@clisp.org>
34272
34273         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
34274         from mingw users.
34275
34276 2007-02-19  Bruno Haible  <bruno@clisp.org>
34277
34278         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
34279         warnings.
34280         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
34281
34282 2007-02-19  Jim Meyering  <jim@meyering.net>
34283
34284         Don't use FD after a successful "fdopendir (fd)".
34285         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
34286         Reset it by calling dirfd on the just-obtained DIR*.
34287
34288         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
34289         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
34290
34291 2007-02-18  Bruno Haible  <bruno@clisp.org>
34292
34293         * lib/readlink.c: Include <unistd.h>.
34294         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
34295         HAVE_READLINK.
34296         * modules/readlink (Depends-on): Add unistd.
34297         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34298         (Include): Add <unistd.h>.
34299
34300         * lib/getlogin_r.h: Remove file.
34301         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
34302         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
34303         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
34304         HAVE_DECL_GETLOGIN_R.
34305         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
34306         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34307         (Include): Use <unistd.h> instead of getlogin_r.h.
34308
34309         * lib/getcwd.h: Remove file.
34310         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
34311         * lib/xgetcwd.c: Likewise.
34312         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
34313         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
34314         * modules/getcwd (Files): Remove lib/getcwd.h.
34315         (Depends-on): Add unistd.
34316         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34317         (Include): Use <unistd.h> instad of getcwd.h.
34318
34319         * lib/ftruncate.c: Include <unistd.h> first.
34320         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
34321         Set HAVE_FTRUNCATE.
34322         * modules/ftruncate (Depends-on): Add unistd.
34323         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34324
34325         * lib/fchdir.c: Include <unistd.h> first.
34326         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
34327         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
34328         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
34329         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34330         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
34331
34332         * lib/dup2.c: Include <unistd.h> first.
34333         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
34334         HAVE_DUP2.
34335         * modules/dup2 (Depends-on): Add unistd.
34336         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34337
34338         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
34339         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
34340         REPLACE_CHOWN. Don't define chown as a macro here.
34341         * modules/chown (Depends-on): Add unistd.
34342         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34343
34344         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
34345         Add definition for GL_LINK_WARNING.
34346         (chown, dup2): New declarations.
34347         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
34348         link warning.
34349         (ftruncate): New declaration.
34350         (getcwd): New declaration, taken from old getcwd.h.
34351         (getlogin_r): New declaration, taken from old getlogin_r.h.
34352         (readlink): New declaration.
34353         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
34354         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
34355         (gl_PREREQ_UNISTD): Remove macro.
34356         (gl_UNISTD_MODULE_INDICATOR): New macro.
34357         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
34358         many new variables. Don't set UNISTD_H.
34359         * modules/unistd (Description): Change.
34360         (Depends-on): Add link-warning.
34361         (configure.ac): Update.
34362         (Makefile.am): Create unistd.h always. Substitute many new variables
34363         into it.
34364
34365 2007-02-18  Bruno Haible  <bruno@clisp.org>
34366
34367         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
34368         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
34369         HAVE_GETSUBOPT.
34370         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
34371         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
34372         * lib/getsubopt.h: Remove file.
34373         * modules/getsubopt (Files): Remove lib/getsubopt.h.
34374         (Depends-on): Add stdlib.
34375         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34376         (Includes): Use <stdlib.h> instead of getsubopt.h.
34377         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
34378         Set HAVE_GETSUBOPT.
34379         * lib/getsubopt.c: Don't include getsubopt.h.
34380
34381 2007-02-18  Bruno Haible  <bruno@clisp.org>
34382
34383         * modules/fchdir (Depends-on): Add dup2.
34384
34385 2007-02-18  Bruno Haible  <bruno@clisp.org>
34386
34387         * lib/stdlib_.h: Handle glibc's special invocation convention
34388         specially.
34389
34390 2007-02-18  Bruno Haible  <bruno@clisp.org>
34391
34392         * modules/stdlib-tests: New file.
34393         * tests/test-stdlib.c: New file.
34394
34395         * modules/mkstemp (Files): Remove lib/mkstemp.h.
34396         (Depends-on): Add stdlib.
34397         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34398         (Includes): Use <stdlib.h> instead of mkstemp.h.
34399         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34400         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
34401         * lib/mkstemp.c: Don't include mkstemp.h.
34402         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
34403         * lib/stdlib--.h: Don't include mkstemp.h.
34404
34405         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
34406         (Depends-on): Add stdlib.
34407         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34408         (Includes): Use <stdlib.h> instead of mkdtemp.h.
34409         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34410         HAVE_MKDTEMP.
34411         * lib/mkdtemp.c: Don't include mkdtemp.h.
34412         * lib/clean-temp.c: Don't include mkdtemp.h.
34413
34414         * modules/exit (Files): Remove lib/exit.h.
34415         (Depends-on): Add stdlib.
34416         (Makefile.am): Remove lib_SOURCES.
34417         (Include): Use <stdlib.h> instead of exit.h.
34418         * lib/argmatch.c: Don't include exit.h.
34419         * lib/execute.c: Likewise.
34420         * lib/pagealign_alloc.c: Likewise.
34421         * lib/pipe.c: Likewise.
34422         * lib/wait-process.c: Likewise.
34423         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
34424         * lib/exitfail.c: Likewise.
34425         * lib/savewd.c: Likewise.
34426         * lib/xsetenv.c: Likewise.
34427
34428         * modules/stdlib: New file.
34429         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
34430         and extra comments about mkstemp().
34431         * lib/exit.h: Remove file.
34432         * lib/mkdtemp.h: Remove file.
34433         * lib/mkstemp.h: Remove file.
34434         * m4/stdlib_h.m4: New file.
34435         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
34436
34437 2007-02-18  Bruno Haible  <bruno@clisp.org>
34438
34439         * modules/math-tests: New file.
34440         * tests/test-math.c: New file.
34441
34442         * modules/math: New file.
34443         * modules/mathl (Files): Remove lib/mathl.h.
34444         (Depends-on): Add math.
34445         (Makefile.am): Don't mention mathl.h.
34446         (Include): Use <math.h> instead of mathl.h.
34447         * lib/math_.h: New file.
34448         * lib/mathl.h: Remove file.
34449         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
34450         mathl.h.
34451         * lib/asinl.c: Likewise.
34452         * lib/atanl.c: Likewise.
34453         * lib/ceill.c: Likewise.
34454         * lib/cosl.c: Likewise.
34455         * lib/expl.c: Likewise.
34456         * lib/floorl.c: Likewise.
34457         * lib/frexpl.c: Likewise.
34458         * lib/ldexpl.c: Likewise.
34459         * lib/logl.c: Likewise.
34460         * lib/sincosl.c: Likewise.
34461         * lib/sinl.c: Likewise.
34462         * lib/sqrtl.c: Likewise.
34463         * lib/tanl.c: Likewise.
34464         * lib/trigl.c: Likewise.
34465         * m4/math_h.m4: New file.
34466         * MODULES.html.sh (Mathematics): Add math.
34467
34468 2007-02-17  Bruno Haible  <bruno@clisp.org>
34469
34470         * modules/wctype-tests: New file.
34471         * tests/test-wctype.c: New file.
34472
34473         * modules/wchar-tests: New file.
34474         * tests/test-wchar.c: New file.
34475
34476         * modules/unistd-tests: New file.
34477         * tests/test-unistd.c: New file.
34478
34479         * modules/time-tests: New file.
34480         * tests/test-time.c: New file.
34481
34482         * modules/sysexits-tests: New file.
34483         * tests/test-sysexits.c: New file.
34484
34485         * modules/sys_time-tests: New file.
34486         * tests/test-sys_time.c: New file.
34487
34488         * modules/sys_stat-tests: New file.
34489         * tests/test-sys_stat.c: New file.
34490
34491         * modules/sys_socket-tests: New file.
34492         * tests/test-sys_socket.c: New file.
34493
34494         * modules/sys_select-tests: New file.
34495         * tests/test-sys_select.c: New file.
34496
34497         * modules/string-tests: New file.
34498         * tests/test-string.c: New file.
34499
34500         * modules/stdbool-tests: New file.
34501         * tests/test-stdbool.c: New file.
34502
34503         * modules/netinet_in-tests: New file.
34504         * tests/test-netinet_in.c: New file.
34505
34506         * modules/inttypes-tests: New file.
34507         * tests/test-inttypes.c: New file.
34508
34509         * modules/fcntl-tests: New file.
34510         * tests/test-fcntl.c: New file.
34511
34512         * modules/byteswap-tests: New file.
34513         * tests/test-byteswap.c: New file.
34514
34515         * modules/arpa_inet-tests: New file.
34516         * tests/test-arpa_inet.c: New file.
34517
34518 2007-02-17  Bruno Haible  <bruno@clisp.org>
34519
34520         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
34521         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
34522         if the corresponding module is not enabled. Emit link warnings if
34523         the function is used nevertheless.
34524         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
34525         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
34526         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
34527         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
34528         * modules/inttypes (Depends-on): Add link-warning.
34529         (Makefile.am): Copy the contents of build-aux/link-warning.h into
34530         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
34531         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
34532         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
34533         * modules/imaxdiv (configure.ac): Likewise.
34534         * modules/strtoimax (configure.ac): Likewise.
34535         * modules/strtoumax (configure.ac): Likewise.
34536
34537 2007-02-17  Bruno Haible  <bruno@clisp.org>
34538
34539         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
34540         gl_STRING_MODULE_INDICATOR_DEFAULTS.
34541         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
34542         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
34543
34544 2007-02-17  Bruno Haible  <bruno@clisp.org>
34545
34546         * modules/link-warning: New file.
34547         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
34548         * lib/string_.h (GL_LINK_WARNING): Remove definition.
34549         * modules/string (Depends-on): Add link-warning.
34550         (Makefile.am): Copy the contents of build-aux/link-warning.h into
34551         string.h.
34552         * MODULES.html.sh (Support for building libraries and executables): Add
34553         link-warning.
34554
34555 2007-02-17  Bruno Haible  <bruno@clisp.org>
34556
34557         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
34558         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
34559         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
34560         long lines.
34561
34562 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
34563             Bruno Haible  <bruno@clisp.org>
34564
34565         * modules/tmpfile: New file.
34566         * lib/tmpfile.c: New file.
34567         * m4/tmpfile.m4: New file.
34568         * MODULES.html.sh (func_all_modules): New section "Input/output".
34569
34570 2007-02-15  Bruno Haible  <bruno@clisp.org>
34571
34572         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
34573         (supports_delete_on_close): New function.
34574         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
34575
34576 2007-02-14  Bruno Haible  <bruno@clisp.org>
34577
34578         * modules/mbspcasecmp-tests: New file.
34579         * tests/test-mbspcasecmp.sh: New file.
34580         * tests/test-mbspcasecmp.c: New file.
34581
34582         New module mbspcasecmp.
34583         * modules/mbspcasecmp: New file.
34584         * lib/mbspcasecmp.c: New file.
34585         * lib/string_.h (strncasecmp): Change warning message.
34586         (mbspcasecmp): New declaration.
34587         * m4/mbspcasecmp.m4: New file.
34588         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34589         GNULIB_MBSPCASECMP.
34590         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
34591         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
34592
34593 2007-02-14  Bruno Haible  <bruno@clisp.org>
34594
34595         * modules/mbsncasecmp-tests: New file.
34596         * tests/test-mbsncasecmp.sh: New file.
34597         * tests/test-mbsncasecmp.c: New file.
34598
34599         New module mbsncasecmp.
34600         * modules/mbsncasecmp: New file.
34601         * lib/mbsncasecmp.c: New file.
34602         * lib/string_.h (mbsncasecmp): New declaration.
34603         * m4/mbsncasecmp.m4: New file.
34604         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34605         GNULIB_MBSNCASECMP.
34606         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
34607         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
34608
34609 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
34610
34611         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
34612         Verify that it doesn't overlap with our flags.
34613         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
34614         do not have the desired effect in multibyte locales; instead, use
34615         mbscasecmp.
34616         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
34617         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
34618         we don't require GNU fnmatch ourselves (if our users require it, they
34619         should do so explicitly).
34620
34621         Fix regex code so it doesn't rely on strcasecmp.
34622         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
34623         Otherwise, include gnulib's langinfo.h.
34624         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
34625         undesirable behavior in non-C locales.  Instead, rely on localecharset.
34626         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
34627         * modules/regex (FILES): Remove m4/codeset.m4.
34628         (Depends-on): Add localcharset.  Remove strcase.
34629
34630 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34631
34632         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
34633         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
34634
34635 2007-02-13  Bruno Haible  <bruno@clisp.org>
34636
34637         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
34638         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34639
34640 2007-02-12  Bruno Haible  <bruno@clisp.org>
34641
34642         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
34643         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
34644         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
34645         time warning rather than a link error.
34646
34647 2007-02-12  Bruno Haible  <bruno@clisp.org>
34648
34649         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
34650         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34651         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34652
34653 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
34654
34655         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
34656         args, not 2.
34657
34658 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
34659
34660         New module 'time', so that apps can include <time.h> as per
34661         POSIX and GNU instead of separate include files like time_r.h
34662         and timegm.h.  This implementation tries out a simpler approach
34663         for replacing decls in standard include files (as compared to
34664         the string module), somewhat as an experiment.
34665
34666         * config/srclist.txt: Comment out mktime.c for now.
34667         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
34668         since it doesn't apply any more.  Use generic wording instead.
34669         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
34670         'time'.
34671         * lib/time_.h, m4/time_h.m4, modules/time: New files.
34672         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
34673         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
34674         Don't include <sys/types.h>; no longer needed since we assume C89.
34675         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
34676         * lib/strftime.c: Likewise.
34677         * lib/time_r.c: Likewise.
34678         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
34679         * lib/nanosleep.c: Include <time.h> first, to check interface.
34680         * lib/strptime.c: Likewise.
34681         * lib/time_r.c: Likewise.
34682         * lib/timegm.c: Likewise.
34683         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
34684         needed.
34685         * lib/timegm.c: Don't include timegm.h; no longer needed.
34686         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
34687         time.h now handles any problems in that area.
34688         (struct timespec, nanosleep): Remove; time.h now arranges for these.
34689         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
34690         that time.h defines struct timespec.
34691         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
34692         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
34693         handles that.
34694         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
34695         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
34696         needed.  Set REPLACE_LOCALTIME.
34697         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
34698         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
34699         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
34700         nanosleep; time_h.m4 now does that.  Don't require
34701         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
34702         module handles this now.
34703         * modules/getdate (Depends-on): Remove timespec.  Add time.
34704         * modules/nanosleep (Depends-on): Likewise.
34705         * modules/stat-time (Depends-on): Likewise.
34706         * modules/nanosleep (Include): Include time.h, not timespec.h.
34707         * modules/strptime (Files): Remove lib/strptime.h.
34708         (Depends-on): Add extensions, time.
34709         (Include): Include time.h, not strptime.h.
34710         * modules/time_r (Files): Remove lib/time_r.h.
34711         (Depends-on): Add time.
34712         (Include): Include time.h, not time_r.h.
34713         * modules/timegm: Likewise.
34714         * modules/timespec (Description): Now does timespec-related decls
34715         of our own, instead of struct timespec itself.
34716         (Depends-on): Add time; remove extensions.
34717         (Maintainer): Add self.
34718         * modules/utimecmp (Depends-on): Add time; remove timespec.
34719         * modules/utimens (Depends-on): Likewise.
34720         * modules/xnanosleep (Depends-on): Likewise.
34721
34722 2007-02-11  Bruno Haible  <bruno@clisp.org>
34723
34724         * lib/c-strstr.c: Include allocsa.h.
34725         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34726         * lib/c-strcasestr.c: Include allocsa.h.
34727         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34728         * lib/strcasestr.c: Include allocsa.h.
34729         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34730         * lib/mbsstr.c: Include allocsa.h.
34731         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
34732         allocsa/freesa instead of malloc/free.
34733         * lib/mbscasestr.c: Include allocsa.h.
34734         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
34735         allocsa/freesa instead of malloc/free.
34736         * modules/c-strstr (Depends-on): Add allocsa.
34737         * modules/c-strcasestr (Depends-on): Likewise.
34738         * modules/strcasestr (Depends-on): Likewise.
34739         * modules/mbsstr (Depends-on): Likewise.
34740         * modules/mbscasestr (Depends-on): Likewise.
34741
34742 2007-02-11  Bruno Haible  <bruno@clisp.org>
34743
34744         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
34745
34746         * modules/mbsspn-tests: New file.
34747         * tests/test-mbsspn.sh: New file.
34748         * tests/test-mbsspn.c: New file.
34749
34750 2007-02-11  Bruno Haible  <bruno@clisp.org>
34751
34752         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
34753
34754         * modules/mbspbrk-tests: New file.
34755         * tests/test-mbspbrk.sh: New file.
34756         * tests/test-mbspbrk.c: New file.
34757
34758 2007-02-11  Bruno Haible  <bruno@clisp.org>
34759
34760         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
34761         unneeded cast.
34762
34763         * modules/mbscspn-tests: New file.
34764         * tests/test-mbscspn.sh: New file.
34765         * tests/test-mbscspn.c: New file.
34766
34767 2007-02-11  Bruno Haible  <bruno@clisp.org>
34768
34769         * modules/mbscasecmp-tests: New file.
34770         * tests/test-mbscasecmp.sh: New file.
34771         * tests/test-mbscasecmp.c: New file.
34772
34773 2007-02-11  Bruno Haible  <bruno@clisp.org>
34774
34775         Ensure O(n) worst-case complexity of mbscasestr.
34776         * lib/mbscasestr.c: Include stdbool.h.
34777         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
34778         functions.
34779         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
34780         the bookkeeping indicates that it's worth it.
34781         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
34782
34783         * modules/mbscasestr-tests: New file.
34784         * tests/test-mbscasestr1.c: New file.
34785         * tests/test-mbscasestr2.sh: New file.
34786         * tests/test-mbscasestr2.c: New file.
34787         * tests/test-mbscasestr3.sh: New file.
34788         * tests/test-mbscasestr3.c: New file.
34789         * tests/test-mbscasestr4.sh: New file.
34790         * tests/test-mbscasestr4.c: New file.
34791         * m4/locale-tr.m4: New file.
34792
34793 2007-02-11  Bruno Haible  <bruno@clisp.org>
34794
34795         Ensure O(n) worst-case complexity of mbsstr.
34796         * lib/mbsstr.c: Include stdbool.h.
34797         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
34798         functions.
34799         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
34800         bookkeeping indicates that it's worth it.
34801         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
34802
34803         * modules/mbsstr-tests: New file.
34804         * tests/test-mbsstr1.c: New file.
34805         * tests/test-mbsstr2.sh: New file.
34806         * tests/test-mbsstr2.c: New file.
34807         * tests/test-mbsstr3.sh: New file.
34808         * tests/test-mbsstr3.c: New file.
34809         * m4/locale-fr.m4: New file.
34810
34811 2007-02-11  Bruno Haible  <bruno@clisp.org>
34812
34813         * lib/mbsrchr.c (mbsrchr): Fix bug.
34814
34815         * modules/mbsrchr-tests: New file.
34816         * tests/test-mbsrchr.sh: New file.
34817         * tests/test-mbsrchr.c: New file.
34818
34819 2007-02-11  Bruno Haible  <bruno@clisp.org>
34820
34821         * lib/mbschr.c (mbschr): Fix bug.
34822
34823         * modules/mbschr-tests: New file.
34824         * tests/test-mbschr.sh: New file.
34825         * tests/test-mbschr.c: New file.
34826         * m4/locale-zh.m4: New file.
34827
34828 2007-02-11  Bruno Haible  <bruno@clisp.org>
34829
34830         Support for copying multibyte string iterators.
34831         * lib/mbiter.h: Include <string.h>.
34832         (mbiter_multi_copy): New function.
34833         (mbi_copy): New macro.
34834         * lib/mbuiter.h: Include <string.h>.
34835         (mbuiter_multi_copy): New function.
34836         (mbui_copy): New macro.
34837
34838 2007-02-11  Bruno Haible  <bruno@clisp.org>
34839
34840         New module mbslen.
34841         * modules/mbslen: New file.
34842         * lib/mbslen.c: New file.
34843         * lib/string_.h (mbslen): New declaration.
34844         * m4/mbslen.m4: New file.
34845         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34846         GNULIB_MBSLEN.
34847         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
34848         * MODULES.html.sh (Internationalization functions): Add mbslen.
34849
34850 2007-02-11  Bruno Haible  <bruno@clisp.org>
34851
34852         Ensure O(n) worst-case complexity of strcasestr substitute.
34853         * lib/strcasestr.c: Include stdbool.h.
34854         (knuth_morris_pratt): New function.
34855         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
34856         bookkeeping indicates that it's worth it.
34857         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
34858
34859         * modules/strcasestr-tests: New file.
34860         * tests/test-strcasestr.c: New file.
34861
34862 2007-02-11  Bruno Haible  <bruno@clisp.org>
34863
34864         Ensure O(n) worst-case complexity of c_strcasestr.
34865         * lib/c-strcasestr.c: Include stdbool.h, string.h.
34866         (knuth_morris_pratt): New function.
34867         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
34868         the bookkeeping indicates that it's worth it.
34869         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
34870
34871         * modules/c-strcasestr-tests: New file.
34872         * tests/test-c-strcasestr.c: New file.
34873
34874 2007-02-11  Bruno Haible  <bruno@clisp.org>
34875
34876         Ensure O(n) worst-case complexity of c_strstr.
34877         * lib/c-strstr.c: Include stdbool.h, string.h.
34878         (knuth_morris_pratt): New function.
34879         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
34880         bookkeeping indicates that it's worth it.
34881         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
34882
34883         * lib/c-strstr.c: Complete rewrite for maintainability.
34884
34885         * modules/c-strstr-tests: New file.
34886         * tests/test-c-strstr.c: New file.
34887
34888 2007-02-11  Bruno Haible  <bruno@clisp.org>
34889
34890         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
34891         5.2.1 and earlier, whereby \055 was treated just like the range
34892         delimiter '-'.
34893         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
34894
34895 2007-02-08  Bruno Haible  <bruno@clisp.org>
34896
34897         * modules/regex (Depends-on): Add stdbool.
34898         Reported by Dalibor Topic <robilad@kaffe.org>.
34899
34900 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
34901
34902         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
34903         Prefer returning from main to exiting from it.
34904         Remove unnecessary parens after sizeof.
34905
34906 2007-02-05  Bruno Haible  <bruno@clisp.org>
34907
34908         New module mbssep.
34909         * modules/mbssep: New file.
34910         * lib/mbssep.c: New file.
34911         * lib/string_.h (strsep): Add a conditional link warning.
34912         (mbssep): New declaration.
34913         * m4/mbssep.m4: New file.
34914         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34915         GNULIB_MBSSEP.
34916         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
34917         * MODULES.html.sh (Internationalization functions): Add mbssep.
34918
34919 2007-02-05  Bruno Haible  <bruno@clisp.org>
34920
34921         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
34922         Optimize search in case of 1 delimiter.
34923
34924 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
34925
34926         * lib/acl.h: Include sys/types.h before sys/acl.h.
34927
34928 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
34929
34930         Merge upstream fix for glibc bugzilla #3957:
34931
34932         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
34933
34934         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
34935         bit for RE_HAT_LISTS_NOT_NEWLINE.
34936         (build_charclass_op): Remove bogus comment.
34937
34938 2007-02-05  Simon Josefsson  <simon@josefsson.org>
34939
34940         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
34941
34942 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
34943
34944         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
34945         * lib/memmem.c [!defined _LIBC]: Include config.h.
34946
34947 2007-02-04  Bruno Haible  <bruno@clisp.org>
34948
34949         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
34950         warning message.
34951
34952 2007-02-04  Bruno Haible  <bruno@clisp.org>
34953
34954         New module mbstok_r.
34955         * modules/mbstok_r: New file.
34956         * lib/mbstok_r.c: New file.
34957         * lib/string_.h (strtok_r): Change argument names to match the
34958         comments. Add a conditional link warning.
34959         (mbstok_r): New declaration.
34960         * m4/mbstok_r.m4: New file.
34961         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34962         GNULIB_MBSTOK_R.
34963         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
34964         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
34965
34966 2007-02-04  Bruno Haible  <bruno@clisp.org>
34967
34968         New module mbsspn.
34969         * modules/mbsspn: New file.
34970         * lib/mbsspn.c: New file.
34971         * lib/string_.h (strspn): Add a conditional link warning.
34972         (mbsspn): New declaration.
34973         * m4/mbsspn.m4: New file.
34974         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34975         GNULIB_MBSSPN.
34976         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
34977         * MODULES.html.sh (Internationalization functions): Add mbsspn.
34978
34979 2007-02-04  Bruno Haible  <bruno@clisp.org>
34980
34981         New module mbspbrk.
34982         * modules/mbspbrk: New file.
34983         * lib/mbspbrk.c: New file.
34984         * lib/string_.h (strpbrk): Add a conditional link warning.
34985         (mbspbrk): New declaration.
34986         * m4/mbspbrk.m4: New file.
34987         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34988         GNULIB_MBSPBRK.
34989         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
34990         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
34991
34992 2007-02-04  Bruno Haible  <bruno@clisp.org>
34993
34994         New module mbscspn.
34995         * modules/mbscspn: New file.
34996         * lib/mbscspn.c: New file.
34997         * lib/string_.h (strcspn): Add a conditional link warning.
34998         (mbscspn): New declaration.
34999         * m4/mbscspn.m4: New file.
35000         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35001         GNULIB_MBSCSPN.
35002         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
35003         * MODULES.html.sh (Internationalization functions): Add mbscspn.
35004
35005 2007-02-04  Bruno Haible  <bruno@clisp.org>
35006
35007         New module mbscasestr, reduced goal of strcasestr.
35008         * modules/mbscasestr: New file.
35009         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
35010         (mbscasestr): Renamed from strcasestr.
35011         * lib/strcasestr.c: Don't include mbuiter.h.
35012         (strcasestr): Remove support for multibyte locales.
35013         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
35014         Change the conditional link warning.
35015         (mbscasestr): New declaration.
35016         * m4/mbscasestr.m4: New file.
35017         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
35018         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
35019         REPLACE_STRCASESTR.
35020         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
35021         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35022         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
35023         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
35024         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
35025         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
35026         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
35027         (Depends-on): Remove mbuiter.
35028         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
35029
35030 2007-02-04  Bruno Haible  <bruno@clisp.org>
35031
35032         Simplify handling of strncasecmp.
35033         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
35034         the conditional link warning.
35035         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35036         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
35037         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
35038         * modules/strcase (configure.ac): Don't invoke
35039         gl_STRING_MODULE_INDICATOR.
35040         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
35041
35042 2007-02-04  Bruno Haible  <bruno@clisp.org>
35043
35044         New module mbscasecmp, reduced goal of strcasecmp.
35045         * modules/mbscasecmp: New file.
35046         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
35047         (mbscasecmp): Renamed from strcasecmp.
35048         * lib/strcasecmp.c: Don't include mbuiter.h.
35049         (strcasecmp): Remove support for multibyte locales.
35050         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
35051         Change the conditional link warning.
35052         (mbscasecmp): New declaration.
35053         * m4/mbscasecmp.m4: New file.
35054         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
35055         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
35056         REPLACE_STRCASECMP.
35057         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
35058         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35059         GNULIB_MBSCASECMP.
35060         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
35061         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
35062         * modules/strcase (Files): Remove m4/mbrtowc.m4.
35063         (Depends-on): Remove mbuiter.
35064         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
35065
35066 2007-02-04  Bruno Haible  <bruno@clisp.org>
35067
35068         New module mbsstr. Remove module strstr.
35069         * modules/mbsstr: New file.
35070         * modules/strstr: Remove file.
35071         * lib/mbsstr.c: Renamed from lib/strstr.c.
35072         (mbsstr): Renamed from strstr.
35073         * lib/string_.h (strstr): Remove declaration. Change the conditional
35074         link warning.
35075         (mbsstr): New declaration.
35076         * m4/mbsstr.m4: New file.
35077         * m4/strstr.m4: Remove file.
35078         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35079         REPLACE_STRSTR.
35080         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
35081         Don't initialize GNULIB_STRSTR.
35082         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
35083         substitute GNULIB_STRSTR and REPLACE_STRSTR.
35084         * MODULES.html.sh (Internationalization functions): Add mbsstr.
35085         (Support for systems lacking ANSI C 89): Remove strstr.
35086
35087 2007-02-04  Bruno Haible  <bruno@clisp.org>
35088
35089         New module mbsrchr.
35090         * modules/mbsrchr: New file.
35091         * lib/mbsrchr.c: New file.
35092         * lib/string_.h (strrchr): Add a conditional link warning.
35093         (mbsrchr): New declaration.
35094         * m4/mbsrchr.m4: New file.
35095         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35096         GNULIB_MBSRCHR.
35097         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
35098         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
35099
35100 2007-02-04  Bruno Haible  <bruno@clisp.org>
35101
35102         New module mbschr.
35103         * modules/mbschr: New file.
35104         * lib/mbschr.c: New file.
35105         * lib/string_.h (strchr): Add a conditional link warning.
35106         (mbschr): New declaration.
35107         * m4/mbschr.m4: New file.
35108         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35109         GNULIB_MBSCHR.
35110         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
35111         * MODULES.html.sh (Internationalization functions): Add mbschr.
35112
35113 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
35114
35115         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
35116
35117         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
35118
35119 2007-02-04  Bruno Haible  <bruno@clisp.org>
35120
35121         New module description section 'configure.ac-early'.
35122         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
35123         (func_get_autoconf_early_snippet): New function.
35124         (func_import, func_create_testdir): Use it. Remove special cases for
35125         modules 'extensions' and 'lock'.
35126         * modules/extensions (configure.ac-early): Require
35127         gl_USE_SYSTEM_EXTENSIONS.
35128         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
35129
35130 2007-02-04  Bruno Haible  <bruno@clisp.org>
35131
35132         Make use of gcj-4.3's -fsource and -ftarget option.
35133         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
35134         and if so try the options -fsource and -ftarget.
35135         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
35136         source_version, ftarget_option, target_version arguments.
35137         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
35138         (is_envjavac_oldgcj_14_14_usable): Renamed from
35139         is_envjavac_gcj_14_14_usable.
35140         (is_envjavac_oldgcj_14_13_usable): Renamed from
35141         is_envjavac_gcj_14_13_usable.
35142         (is_gcj_present): Update.
35143         (is_gcj_43, is_gcj43_usable): New functions.
35144         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
35145         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
35146         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
35147         try the options -fsource and -ftarget.
35148
35149 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
35150
35151         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
35152         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
35153         larger value.
35154
35155 2007-02-03  Jim Meyering  <jim@meyering.net>
35156
35157         Give tools a better chance to allocate space for very large buffers.
35158         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
35159
35160         Make pwd and readlink work also when run with an unreadable parent dir
35161         on systems with openat support.
35162         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
35163         provided getcwd function, even when we have openat support.
35164         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
35165
35166 2007-02-02  Bruno Haible  <bruno@clisp.org>
35167
35168         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
35169         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
35170         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
35171         portability problems if one of these functions is only used on specific
35172         platforms.
35173         Reported by Paul Eggert.
35174
35175 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
35176
35177         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
35178         is causing more trouble than it's curing.
35179         * lib/regex_internal.h (__mempcpy): Remove.
35180         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
35181         (and make the code a tad smaller to boot).
35182         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
35183
35184 2007-02-02  Jim Meyering  <jim@meyering.net>
35185
35186         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
35187         section, not in the Makefile.am: one.
35188
35189 2007-02-02  Eric Blake  <ebb9@byu.net>
35190
35191         * lib/strchrnul.c: Always include config.h first.
35192
35193         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
35194         gnulib strstr is not necessary here.
35195
35196 2007-02-02  Simon Josefsson  <simon@josefsson.org>
35197
35198         * m4/socklen.m4: Fix typo.
35199
35200 2007-02-02  Eric Blake  <ebb9@byu.net>
35201
35202         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
35203         * modules/netinet_in (Makefile.am): Likewise.
35204
35205 2007-02-01  Bruno Haible  <bruno@clisp.org>
35206
35207         * lib/string_.h (GL_LINK_WARNING): New macro.
35208         (strcasecmp, strstr, strcasestr): If provided by the system,
35209         conditionally define as a macro that leads to a warning instead of to
35210         an error.
35211         (strncasecmp): Conditionally define as a macro that leads to a warning.
35212
35213 2007-02-01  Karl Berry  <karl@gnu.org>
35214
35215         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
35216
35217 2007-02-01  Bruno Haible  <bruno@clisp.org>
35218
35219         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
35220         renamings.
35221
35222 2007-02-01  Eric Blake  <ebb9@byu.net>
35223
35224         * modules/regex (Depends-on): Revert dependence on mempcpy.
35225         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
35226         module's definition of mempcpy.
35227         Reported by Paul Eggert.
35228
35229 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
35230
35231         * lib/string_.h: If the gnulib module XYZ is not present, undefine
35232         the symbol XYZ before redefining it.  This fixes a problem with
35233         programs that don't use XYZ, when compiled on systems that define
35234         XYZ to something else.
35235
35236 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
35237
35238         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
35239         occurs when "mkdir -m foo" creates a setgid directory that is (1)
35240         writeable to group or other and (2) is intended to have a special
35241         mode bit that is set or cleared.  In such a case, the directory
35242         should be neither group- nor other-writeable until the special
35243         mode bits are right.
35244
35245 2007-01-31  Eric Blake  <ebb9@byu.net>
35246
35247         * modules/mountlist (Depends-on): Add strstr.
35248
35249         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
35250         bug.
35251         * modules/string (Makefile.am): Remove redundant replacement.
35252         * modules/regex (Depends-on): Add mempcpy.
35253
35254 2007-01-31  Bruno Haible  <bruno@clisp.org>
35255
35256         New module description field 'Link'.
35257         * gnulib-tool (func_usage): Document --extract-link-directive.
35258         (sed_extract_prog): Recognize 'Link' directive.
35259         (func_get_link_directive): New function.
35260         (func_import): Show summary of link directives.
35261         Handle --extract-link-directive option.
35262         * modules/acl (Link): New section.
35263         * modules/clock-time (Link): New section.
35264         * modules/euidaccess (Link): New section.
35265         * modules/gettext (Link): New section.
35266         * modules/iconv (Link): New section.
35267         * modules/lock (Link): New section.
35268         * modules/nanosleep (Link): New section.
35269         * modules/readline (Link): New section.
35270
35271 2007-01-27  Bruno Haible  <bruno@clisp.org>
35272
35273         Enforce the use of gnulib modules for unportable <string.h> functions.
35274         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
35275         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
35276         (gl_HEADER_STRING_H_BODY): Require it.
35277         * lib/string_.h: If the gnulib module XYZ is not present, redefine
35278         the symbol XYZ to one that gives a link error.
35279         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
35280         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
35281         * modules/mempcpy (configure.ac): Likewise.
35282         * modules/memrchr (configure.ac): Likewise.
35283         * modules/stpcpy (configure.ac): Likewise.
35284         * modules/stpncpy (configure.ac): Likewise.
35285         * modules/strcase (configure.ac): Likewise.
35286         * modules/strcasestr (configure.ac): Likewise.
35287         * modules/strchrnul (configure.ac): Likewise.
35288         * modules/strdup (configure.ac): Likewise.
35289         * modules/strndup (configure.ac): Likewise.
35290         * modules/strnlen (configure.ac): Likewise.
35291         * modules/strpbrk (configure.ac): Likewise.
35292         * modules/strsep (configure.ac): Likewise.
35293         * modules/strstr (configure.ac): Likewise.
35294         * modules/strtok_r (configure.ac): Likewise.
35295
35296 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
35297
35298         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
35299
35300 2007-01-30  Jim Meyering  <jim@meyering.net>
35301
35302         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
35303
35304 2007-01-29  Bruno Haible  <bruno@clisp.org>
35305
35306         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
35307         * lib/execute.c: Likewise.
35308         * lib/pipe.c: Likewise.
35309         * lib/printf-args.h: Likewise.
35310         * lib/printf-args.c: Likewise.
35311         * lib/printf-parse.c: Likewise.
35312         * lib/vasnprintf.c: Likewise.
35313
35314 2007-01-29  Eric Blake  <ebb9@byu.net>
35315
35316         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
35317         declaration.
35318
35319 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
35320
35321         * lib/strptime.h (strptime): Use 'restrict' for args where
35322         POSIX requires this.
35323         * lib/strptime.c (strptime): Likewise.
35324         Change license notice from LGPL to GPL, since gnulib-tool will
35325         change this as needed.
35326         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
35327         defined.
35328         Include "strptime.h" first, to check interface.
35329         Do not #undef _LIBC and _NL_CURRENT.
35330         Do not include <stdlib.h>; no longer needed.
35331         Include "time_r.h" and declare ptime_locale_status
35332         only if _LIBC is not defined.
35333         (__P): Remove unused macro.
35334         (match_string): Bring back glibc version, but use it only if _LIBC
35335         is defined.
35336         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
35337         Remove unnecessary assertion and abort() call.
35338         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
35339         * m4/strptime.m4: Fix serial number comment.
35340         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
35341         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
35342         (Depends-on): Add time_r.
35343
35344 2007-01-29  Bruno Haible  <bruno@clisp.org>
35345
35346         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35347         strptime.
35348         * modules/strptime (Depends-on): Add stdbool.
35349         * lib/strptime.h: Include <time.h> always. Add comments.
35350
35351 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35352
35353         * modules/strptime: New file.
35354         * lib/strptime.h: New file.
35355         * lib/strptime.c: New file.
35356         * m4/strptime.m4: New file.
35357
35358 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
35359
35360         * MODULES.html.sh: New module mpsort.
35361         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
35362
35363         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
35364         a circularity problem with HP-UX ia64 reported by Bob Proulx in
35365         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
35366         All uses changed.
35367         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
35368         All uses changed.
35369         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
35370         to _Restrict_.
35371         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
35372         the parameter matches the prototype.
35373
35374 2007-01-28  Jim Meyering  <jim@meyering.net>
35375
35376         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
35377         sys/time.h here, reverting that part of the previous patch:
35378         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
35379
35380 2007-01-28  Bruno Haible  <bruno@clisp.org>
35381
35382         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
35383         value of $(SYS_TIME_H).
35384         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
35385         remove it conditionally, too. [added by Jim Meyering]
35386         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
35387         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
35388         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
35389         GETTIMEOFDAY_REPLACEMENT to 1.
35390
35391 2007-01-28  Bruno Haible  <bruno@clisp.org>
35392
35393         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
35394         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
35395         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
35396         Set UNISTD_H instead of UNISTD_H2.
35397         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
35398
35399 2007-01-28  Bruno Haible  <bruno@clisp.org>
35400
35401         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
35402         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
35403
35404 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35405
35406         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
35407         (func_create_testdir): Ensure C locale for `grep' and `tr'
35408         character ranges.
35409         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
35410         ACLOCAL_AMFLAGS parsing state machine.
35411
35412 2007-01-27  Bruno Haible  <bruno@clisp.org>
35413
35414         * modules/unistr/base: Update.
35415
35416 2007-01-27  Bruno Haible  <bruno@clisp.org>
35417
35418         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
35419         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
35420         * modules/unistr/u32-mbtouc-unsafe: Renamed from
35421         modules/unistr/u32-mbtouc.
35422         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
35423         * lib/unistr.h: Update.
35424         * lib/linebreak.c: Update.
35425         * modules/unistr/u32-mbtouc: Renamed from
35426         modules/unistr/u32-mbtouc-safe.
35427         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
35428         * lib/unistr.h: Update.
35429         * lib/unistr/u32-to-u8.c: Update.
35430         * lib/unistr/u32-to-u16.c: Update.
35431
35432 2007-01-27  Bruno Haible  <bruno@clisp.org>
35433
35434         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
35435         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
35436         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
35437         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
35438         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
35439         * modules/unistr/u16-mbtouc-unsafe: Renamed from
35440         modules/unistr/u16-mbtouc.
35441         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
35442         * lib/unistr.h: Update.
35443         * lib/linebreak.c: Update.
35444         * modules/linebreak: Update.
35445         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
35446         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
35447         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
35448         * modules/unistr/u16-mbtouc: Renamed from
35449         modules/unistr/u16-mbtouc-safe.
35450         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
35451         * lib/unistr.h: Update.
35452         * lib/unistr/u16-to-u8.c: Update.
35453         * modules/unistr/u16-to-u8: Update.
35454         * lib/unistr/u16-to-u32.c: Update.
35455         * modules/unistr/u16-to-u32: Update.
35456
35457 2007-01-27  Bruno Haible  <bruno@clisp.org>
35458
35459         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
35460         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
35461         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
35462         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
35463         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
35464         * modules/unistr/u8-mbtouc-unsafe: Renamed from
35465         modules/unistr/u8-mbtouc.
35466         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
35467         * lib/unistr.h: Update.
35468         * lib/striconveh.c: Update.
35469         * modules/striconveh: Update.
35470         * lib/linebreak.c: Update.
35471         * modules/linebreak: Update.
35472         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
35473         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
35474         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
35475         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
35476         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
35477         * lib/unistr.h: Update.
35478         * lib/striconveh.c: Update.
35479         * modules/striconveh: Update.
35480         * lib/unistr/u8-to-u16.c: Update.
35481         * modules/unistr/u8-to-u16: Update.
35482         * lib/unistr/u8-to-u32.c: Update.
35483         * modules/unistr/u8-to-u32: Update.
35484
35485 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35486
35487         Sync from Libtool.
35488         * lib/argz.c: Do not include strings.h nor memory.h, include
35489         string.h unconditionally.  Patch by Simon Josefsson.
35490
35491 2007-01-27  Bruno Haible  <bruno@clisp.org>
35492
35493         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
35494         from gl_HEADER_STRING_H_BODY.
35495         (gl_HEADER_STRING_H_BODY): Require it.
35496         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
35497         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35498         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35499         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35500         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35501         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
35502         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35503         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35504         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
35505         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35506         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35507         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
35508         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35509         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35510         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35511
35512 2007-01-27  Bruno Haible  <bruno@clisp.org>
35513
35514         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
35515         check_PROGRAMS into noinst_PROGRAMS.
35516         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
35517         check_PROGRAMS in this case.
35518         (func_import): Set for_test to false.
35519         (func_create_testdir): Set for_test to true.
35520
35521 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35522             Bruno Haible  <bruno@clisp.org>
35523
35524         * modules/strcasestr (Files): Remove lib/strcasestr.h.
35525         (Depends-on): Add string.
35526         (Includes): Use <string.h> instead of strcasestr.h.
35527         * modules/string (Makefile.am): Also substitute the value of
35528         REPLACE_STRCASESTR.
35529         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
35530         assume strcasestr is declared in <string.h> not <strings.h>. Also
35531         set REPLACE_STRCASESTR.
35532         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
35533         REPLACE_STRCASESTR.
35534         * lib/strcasestr.h: Remove file.
35535         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
35536         * lib/string_.h (strcasestr): New declaration.
35537
35538 2007-01-27  Bruno Haible  <bruno@clisp.org>
35539
35540         * lib/string_.h: Use 'extern'.
35541
35542 2007-01-27  Jim Meyering  <jim@meyering.net>
35543
35544         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
35545         of set-but-not-used local, "q".
35546
35547         * lib/mempcpy.c: Include <config.h> before <string.h>.
35548         This fixes a compilation error on HP-UX, due to the system's
35549         "restrict"-using mempcpy prototype.
35550
35551 2007-01-26  Bruno Haible  <bruno@clisp.org>
35552
35553         Small optimization.
35554         * lib/javacomp.c: Include c-strstr.h.
35555          (is_envjavac_gcj): Use c_strstr instead of strstr.
35556         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
35557
35558 2007-01-26  Bruno Haible  <bruno@clisp.org>
35559
35560         * MODULES.html.sh (Unicode string functions): Add the new modules.
35561
35562         * modules/uniconv/u32-strconv-to-locale: New file.
35563         * lib/uniconv/u32-strconv-to-locale.c: New file.
35564
35565         * modules/uniconv/u16-strconv-to-locale: New file.
35566         * lib/uniconv/u16-strconv-to-locale.c: New file.
35567
35568         * modules/uniconv/u8-strconv-to-locale: New file.
35569         * lib/uniconv/u8-strconv-to-locale.c: New file.
35570
35571         * modules/uniconv/u32-strconv-from-locale: New file.
35572         * lib/uniconv/u32-strconv-from-locale.c: New file.
35573
35574         * modules/uniconv/u16-strconv-from-locale: New file.
35575         * lib/uniconv/u16-strconv-from-locale.c: New file.
35576
35577         * modules/uniconv/u8-strconv-from-locale: New file.
35578         * lib/uniconv/u8-strconv-from-locale.c: New file.
35579
35580         * modules/uniconv/u32-strconv-to-enc: New file.
35581         * lib/uniconv/u32-strconv-to-enc.c: New file.
35582         * modules/uniconv/u32-strconv-to-enc-tests: New file.
35583         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
35584
35585         * modules/uniconv/u16-strconv-to-enc: New file.
35586         * lib/uniconv/u16-strconv-to-enc.c: New file.
35587         * lib/uniconv/u-strconv-to-enc.h: New file.
35588         * modules/uniconv/u16-strconv-to-enc-tests: New file.
35589         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
35590
35591         * modules/uniconv/u8-strconv-to-enc: New file.
35592         * lib/uniconv/u8-strconv-to-enc.c: New file.
35593         * modules/uniconv/u8-strconv-to-enc-tests: New file.
35594         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
35595
35596         * modules/uniconv/u32-strconv-from-enc: New file.
35597         * lib/uniconv/u32-strconv-from-enc.c: New file.
35598         * modules/uniconv/u32-strconv-from-enc-tests: New file.
35599         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
35600
35601         * modules/uniconv/u16-strconv-from-enc: New file.
35602         * lib/uniconv/u16-strconv-from-enc.c: New file.
35603         * modules/uniconv/u16-strconv-from-enc-tests: New file.
35604         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
35605
35606         * modules/uniconv/u8-strconv-from-enc: New file.
35607         * lib/uniconv/u8-strconv-from-enc.c: New file.
35608         * lib/uniconv/u-strconv-from-enc.h: New file.
35609         * modules/uniconv/u8-strconv-from-enc-tests: New file.
35610         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
35611
35612         * modules/uniconv/u32-conv-from-enc: New file.
35613         * lib/uniconv/u32-conv-from-enc.c: New file.
35614         * modules/uniconv/u32-conv-from-enc-tests: New file.
35615         * tests/uniconv/test-u32-conv-from-enc.c: New file.
35616
35617         * modules/uniconv/u16-conv-from-enc: New file.
35618         * lib/uniconv/u16-conv-from-enc.c: New file.
35619         * lib/uniconv/u-conv-from-enc.h: New file.
35620         * modules/uniconv/u16-conv-from-enc-tests: New file.
35621         * tests/uniconv/test-u16-conv-from-enc.c: New file.
35622
35623         * modules/uniconv/u8-conv-from-enc: New file.
35624         * lib/uniconv/u8-conv-from-enc.c: New file.
35625         * modules/uniconv/u8-conv-from-enc-tests: New file.
35626         * tests/uniconv/test-u8-conv-from-enc.c: New file.
35627
35628         * modules/uniconv/base: New file.
35629         * lib/uniconv.h: New file.
35630
35631 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
35632
35633         * doc/gnulib-tool.texi (Initial import): Update to match current
35634         behavior with strdup module.
35635         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
35636         * lib/memmem.h: Remove; all uses removed.  This is now done
35637         by <string.h>.
35638         * lib/mempcpy.h: Likewise.
35639         * lib/memrchr.h: Likewise.
35640         * lib/stpcpy.h: Likewise.
35641         * lib/stpncpy.h: Likewise.
35642         * lib/strcase.h: Likewise.
35643         * lib/strchrnul.h: Likewise.
35644         * lib/strdup.h: Likewise.
35645         * lib/strndup.h: Likewise.
35646         * lib/strnlen.h: Likewise.
35647         * lib/strpbrk.h: Likewise.
35648         * lib/strsep.h: Likewise.
35649         * lib/strstr.h: Likewise.
35650         * lib/strtok_r.h: Likewise.
35651         * lib/string_.h: New file.
35652         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
35653         Rely on <string.h> instead.
35654         * lib/canon-host.c: Likewise.
35655         * lib/chdir-long.c: Likewise.
35656         * lib/concatpath.c: Likewise.
35657         * lib/exclude.c: Likewise.
35658         * lib/fchdir.c: Likewise.
35659         * lib/getaddrinfo.c: Likewise.
35660         * lib/getcwd.c: Likewise.
35661         * lib/getsubopt.c: Likewise.
35662         * lib/glob.c: Likewise.
35663         * lib/hard-locale.c: Likewise.
35664         * lib/iconvme.c: Likewise.
35665         * lib/javacomp.c: Likewise.
35666         * lib/mempcpy.c: Likewise.
35667         * lib/memrchr.c: Likewise.
35668         * lib/regex_internal.h: Likewise.
35669         * lib/stpncpy.c: Likewise.
35670         * lib/strcasecmp.c: Likewise.
35671         * lib/strchrnul.c: Likewise.
35672         * lib/strdup.c: Likewise.
35673         * lib/striconv.c: Likewise.
35674         * lib/striconveh.c: Likewise.
35675         * lib/striconveha.c: Likewise.
35676         * lib/strncasecmp.c: Likewise.
35677         * lib/strndup.c: Likewise.
35678         * lib/strnlen.c: Likewise.
35679         * lib/strsep.c: Likewise.
35680         * lib/strstr.c: Likewise.
35681         * lib/strtok_r.c: Likewise.
35682         * lib/userspec.c: Likewise.
35683         * lib/w32spawn.h: Likewise.
35684         * lib/xstrndup.c: Likewise.
35685         * lib/mountlist.c (strstr): Remove decl.
35686         * m4/string_h.m4: New file.
35687         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
35688         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
35689         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
35690         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
35691         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
35692         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
35693         Set REPLACE_STRCASECMP if necessary.
35694         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
35695         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
35696         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
35697         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
35698         HAVE_DECL_STRDUP if necessary.
35699         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
35700         since gl_FUNC_STRNDUP does that now.
35701         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
35702         Check for decl here...
35703         (gl_PREREQ_STRNLEN): ... not here.
35704         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
35705         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
35706         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
35707         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
35708         necessary.
35709         * modules/string: New file.
35710         * modules/memmem (Files): Remove special-purpose include file.
35711         (Depends-on): Add string.
35712         (Include): Include <string.h>, not the removed file.
35713         * modules/mempcpy: Likewise.
35714         * modules/memrchr: Likewise.
35715         * modules/stpcpy: Likewise.
35716         * modules/stpncpy: Likewise.
35717         * modules/strcase: Likewise.
35718         * modules/strchrnul: Likewise.
35719         * modules/strdup: Likewise.
35720         * modules/strndup: Likewise.
35721         * modules/strnlen: Likewise.
35722         * modules/strpbrk: Likewise.
35723         * modules/strsep: Likewise.
35724         * modules/strstr: Likewise.
35725         * modules/strtok_r: Likewise.
35726         * tests/test-dirname.c: Don't include "strdup.h", since
35727         <string.h> now suffices.
35728         * tests/test-memmem.c: Don't include "memmem.h", since
35729         <string.h> now suffices.
35730
35731 2007-01-25  Bruno Haible  <bruno@clisp.org>
35732
35733         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
35734         *resultp is 0.
35735
35736         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
35737         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
35738         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
35739         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
35740
35741         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
35742         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
35743         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
35744         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
35745         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
35746         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
35747
35748 2007-01-24  Bruno Haible  <bruno@clisp.org>
35749
35750         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
35751         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
35752         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
35753         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
35754         gl_FUNC_FTS_CORE.
35755         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
35756         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
35757         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35758         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
35759         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
35760         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
35761         gl_FUNC_FCHOWNAT.
35762         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
35763         gl_FUNC_STRFTIME.
35764         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
35765         Reported by Ralf Wildenhues.
35766
35767 2007-01-24  Bruno Haible  <bruno@clisp.org>
35768
35769         Drop AC_REQUIRE calls that are redundant with the module dependencies.
35770         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
35771         gl_GETADDRINFO.
35772         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
35773         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
35774         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
35775
35776 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
35777
35778         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
35779         Don't use 'exit'; just return from 'main'.
35780         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
35781
35782         * lib/fnmatch_.h: Readjust white space and comments to match
35783         glibc, to avoid spurious diffs.
35784
35785 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35786
35787         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
35788         2004-12-01 change by Jakub Jelinek, since this code won't compile
35789         if !LIBC.  Problem reported by Bob Proulx.
35790
35791 2007-01-23  Bruno Haible  <bruno@clisp.org>
35792
35793         * lib/striconveh.c: Include c-strcaseeq.h.
35794         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
35795         * modules/striconveh (Depends-on): Add c-strcaseeq.
35796
35797 2007-01-23  Bruno Haible  <bruno@clisp.org>
35798
35799         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
35800
35801         * modules/c-strcaseeq: New file.
35802         * lib/c-strcaseeq.h: New file.
35803
35804         * modules/streq: New file.
35805         * lib/streq.h: New file.
35806
35807 2007-01-23  Bruno Haible  <bruno@clisp.org>
35808
35809         * modules/striconveha-tests: New file.
35810         * tests/test-striconveha.c: New file.
35811
35812         * lib/striconveha.h: Include <stdbool.h>.
35813         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
35814         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
35815         (mem_iconveha_notranslit): Renamed from mem_iconveha.
35816         (mem_iconveha): New function.
35817         (str_iconveha_notranslit): Renamed from str_iconveha.
35818         (str_iconveha): New function.
35819         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
35820         c-strcase.
35821
35822 2007-01-23  Bruno Haible  <bruno@clisp.org>
35823
35824         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
35825         encodings without forgiving before trying any encoding with handler.
35826         (str_iconveha): Try all encodings without forgiving before trying any
35827         encoding with handler.
35828
35829 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
35830
35831         Import the following changes from libc.
35832
35833         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
35834
35835         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
35836
35837         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
35838
35839         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
35840         normal_bracket label.
35841
35842         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
35843
35844         [BZ #361]
35845         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
35846         to normal_bracket after fetching the next character.
35847
35848 2007-01-22  Bruno Haible  <bruno@clisp.org>
35849
35850         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
35851         argument.
35852         * lib/striconveh.c (iconv_carefully_1): New function.
35853         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
35854         argument.
35855         (str_cd_iconveh): Update.
35856         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
35857         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
35858         * tests/test-striconveh.c (MAGIC): New macro.
35859         (new_offsets): New function.
35860         (main): Test call with and without offsets.
35861
35862 2007-01-22  Bruno Haible  <bruno@clisp.org>
35863
35864         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
35865         * modules/sys_select (Makefile.am): Likewise.
35866         * modules/sys_socket (Makefile.am): Likewise.
35867         * modules/sys_time (Makefile.am): Likewise.
35868
35869 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
35870
35871         * modules/gettimeofday (License): Change from GPL to LGPL, since
35872         gettimeofday is a library function.
35873
35874 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35875
35876         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
35877
35878 2007-01-21  Bruno Haible  <bruno@clisp.org>
35879
35880         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
35881
35882 2007-01-21  Bruno Haible  <bruno@clisp.org>
35883
35884         * modules/striconveha: New file.
35885         * lib/striconveha.h: New file.
35886         * lib/striconveha.c: New file.
35887         * MODULES.html.sh (Internationalization functions): Add striconveha.
35888         * lib/striconv.c (str_iconv): Optimize the case of an empty input
35889         string.
35890         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
35891
35892 2007-01-21  Bruno Haible  <bruno@clisp.org>
35893
35894         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
35895         * lib/striconveh.c (str_iconveh): Likewise.
35896
35897 2007-01-21  Bruno Haible  <bruno@clisp.org>
35898
35899         * lib/striconveh.h (mem_iconveh): New declaration.
35900         * lib/striconveh.c (mem_iconveh): New function.
35901         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
35902
35903 2007-01-21  Bruno Haible  <bruno@clisp.org>
35904
35905         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
35906
35907         * lib/striconveh.h (mem_cd_iconveh): Change specification.
35908         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
35909         original result buffer.
35910         (str_cd_iconveh): Update.
35911         * tests/test-striconveh.c (main): Update.
35912
35913         * lib/striconv.h (mem_cd_iconv): Change specification.
35914         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
35915         result buffer.
35916         (str_cd_iconv): Update.
35917         * tests/test-striconv.c (main): Update.
35918
35919 2007-01-21  Bruno Haible  <bruno@clisp.org>
35920
35921         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
35922
35923 2007-01-20  Jim Meyering  <jim@meyering.net>
35924
35925         * lib/userspec.c (parse_with_separator): If a user or group string
35926         starts with "+", skip the corresponding name-to-ID look-up, since
35927         such a look-up must fail: user and group names may not include "+".
35928
35929 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
35930
35931         * lib/poll.c: Include sys/time.h and time.h unconditionally,
35932         since we now assume the sys_time module.
35933         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
35934         check for sys/time.h; no longer needed.
35935         * modules/poll (Depends-on): Depend on sys_time.
35936
35937 2007-01-18  Bruno Haible  <bruno@clisp.org>
35938
35939         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
35940         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
35941
35942         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
35943         gettimeofday.
35944
35945         * tests/test-gettimeofday.c: Include <time.h>.
35946         (dummy): Remove variable.
35947
35948         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
35949         gl_HEADER_SYS_TIME_H.
35950         (gl_HEADER_SYS_TIME_H): New macro.
35951
35952         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
35953         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35954         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
35955         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
35956         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35957         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
35958         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
35959         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35960         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
35961         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
35962         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35963
35964         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
35965         last change; it caused a compilation error when cross-compiling to
35966         Cygwin.
35967
35968 2007-01-18  Jim Meyering  <jim@meyering.net>
35969
35970         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
35971         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
35972         than the race-prone "test -d sys || mkdir sys".
35973         (configure.ac): Use AC_PROG_MKDIR_P.
35974         * modules/sys_select: Likewise.
35975         * modules/sys_socket: Likewise.
35976         * modules/sys_time: Likewise.
35977
35978 2007-01-18  Eric Blake  <ebb9@byu.net>
35979
35980         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
35981         replace gettimeofday.
35982         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
35983         name, to avoid infinite recursion.
35984
35985 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
35986
35987         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
35988         module sys_time.
35989         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
35990         assume timespec.h defines struct timeval.
35991         * lib/settime.c: Likewise.
35992         * lib/utimens.c: Likewise.
35993         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
35994         since we now assume the gettimeofday module.
35995         * lib/tempname.c (__gen_tempname): Likewise.
35996         * lib/gettimeofday.h: Remove.
35997         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
35998         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
35999         Include <time.h>, for 'time()'.
36000         (localtime_buffer_addr): Also use this workaround if
36001         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
36002         to simplify the uses.  All uses changed.
36003         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
36004         that #undef is inside {}, and 'const' follows type name consistently.
36005         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
36006         (gettimeofday): Do not use the maximum possible value for
36007         tv->tv_usec, since that might break usages other than ls.c.
36008         Instead, we'll leave ls.c alone.  This undoes today's patch
36009         by Bruno.  Add a compile-time warning for 1s-clock resolution;
36010         we've never observed the problem but might as well keep the
36011         canary.
36012         * lib/nanosleep.c: Include timespec.h first, for interface check.
36013         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
36014         now assume the sys_time module.
36015         * lib/tempname.c: Likewise.
36016         * lib/timespec.h: Likewise.
36017         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
36018         needed.
36019         * lib/strftime.c: Likewise.
36020         * lib/timespec.h: Likewise.
36021         * lib/posixtm.c: Include posixtm.h first, for interface check.
36022         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
36023         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
36024         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
36025         * lib/sys_time_.h: New file.
36026         * lib/timespec.h (struct timespec): Use long int, not long.
36027         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
36028         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
36029         Remove obsolescent call to AC_HEADER_TIME.
36030         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
36031         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36032         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
36033         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
36034         Likewise.
36035         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
36036         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
36037         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
36038         into the sys_time module.  Check for gettimeofday just once.
36039         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
36040         for gettimeofday signature to just check the signature.  Merely
36041         compile it, since linking doesn't test signature.  Improve test for
36042         whether gettimeofday.o is actually needed.
36043         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
36044         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
36045         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
36046         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36047         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
36048         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
36049         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
36050         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
36051         than worrying about sys/time.h.
36052         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36053         Don't bother worrying about TIME_WITH_SYS_TIME.
36054         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36055         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
36056         * m4/sys_time_h.m4: New file.
36057         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
36058         Don't include sys/time.h.  Return from main rather than exiting.
36059         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
36060         all uses changed.
36061         * modules/gethrxtime (Depends-on): Add sys_time.
36062         * modules/gettime (Depends-on): Likewise.
36063         * modules/gettimeofday (Depends-on): Likewise.
36064         * modules/nanosleep (Depends-on): Likewise.
36065         * modules/settime (Depends-on): Likewise.
36066         * modules/tempname (Depends-on): Likewise.
36067         * modules/utimens (Depends-on): Likewise.
36068         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
36069         (Include:) Change back to <sys/time.h>.
36070         (Maintainer:) Add self.
36071         * modules/sys_time: New file.
36072         * modules/tempname (Depends-on): Add gettimeofday.
36073         * tests/test-gettimeofday.c: Include <sys/time.h>
36074         rather than gettimeofday.h.
36075
36076 2007-01-17  Bruno Haible  <bruno@clisp.org>
36077
36078         * gnulib-tool (func_get_license): Revert last patch. Instead, let
36079         the license default to GPL.
36080         (func_create_testdir): Don't complain if a module is LGPL and its
36081         tests module depends on GPLed modules.
36082
36083 2007-01-17  Bruno Haible  <bruno@clisp.org>
36084
36085         * lib/gettimeofday.c (gettimeofday): Add code for the case
36086         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
36087         maximum possible value for tv->tv_usec, rather than the minimum one.
36088
36089 2005-10-08  Martin Lambers  <marlam@marlam.de>
36090 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
36091 2007-01-16  Bruno Haible  <bruno@clisp.org>
36092
36093         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
36094         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
36095         gl_FUNC_GETTIMEOFDAY.
36096         (Include): Add gettimeofday.h.
36097         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
36098         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
36099         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
36100         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
36101         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
36102         * lib/gettimeofday.h: New file.
36103         * lib/gettimeofday.c: Include <sys/timeb.h>.
36104         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
36105         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36106         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
36107         fall back on time().
36108
36109         * tests/test-gettimeofday.c: New file.
36110         * modules/gettimeofday-tests: New file.
36111
36112 2007-01-16  Eric Blake  <ebb9@byu.net>
36113
36114         * modules/fnmatch (Depends-on): Depend on wchar.
36115         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
36116         * m4/fnmatch.m4: Likewise.
36117         * modules/mbchar (Makefile.am): Assume <wchar.h>.
36118         * m4/mbchar.m4: Likewise.
36119         * modules/mbswidth (Depends-on): Depend on wchar.
36120         * lib/mbswidth.c: Assume <wchar.h>.
36121         * m4/mbswidth.m4: Likewise.
36122         * modules/quotearg (Depends-on): Depend on wchar.
36123         * lib/quotearg.c: Assume <wchar.h>.
36124         * m4/quotearg.m4: Likewise.
36125         * modules/regex (Depends-on): Depend on wchar.
36126         * lib/regex_internal.h: Assume <wchar.h>.
36127         * m4/regex.m4: Likewise.
36128         * modules/stdint (Depends-on): Depend on wchar.
36129         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
36130         * m4/stdint.m4: Likewise.
36131         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
36132         * modules/strftime (Depends-on): Depend on wchar.
36133         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
36134         * modules/strtol (Depends-on): Depend on wchar.
36135         * lib/strtol.c: Assume <wchar.h>.
36136         * modules/wcwidth (Depends-on): Depend on wchar.
36137         * lib/wcwidth.h: Assume <wchar.h>.
36138         * m4/wcwidth.m4: Likewise.
36139
36140 2007-01-16  Bruno Haible  <bruno@clisp.org>
36141
36142         * modules/csharpexec-script: New, created from...
36143         * modules/csharpexec: ... this.
36144
36145 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
36146
36147         * modules/javaexec-script: New, created from...
36148         * modules/javaexec: ... this.
36149
36150 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36151
36152         * modules/poll (Dependencies): Add sys_select.
36153
36154 2007-01-15  Jim Meyering  <jim@meyering.net>
36155
36156         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
36157         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
36158         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
36159         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
36160
36161 2007-01-15  Bruno Haible  <bruno@clisp.org>
36162
36163         * modules/striconveh: New file.
36164         * lib/striconveh.h: New file.
36165         * lib/striconveh.c: New file.
36166         * MODULES.html.sh (Internationalization functions): Add striconveh.
36167
36168         * modules/striconveh-tests: New file.
36169         * tests/test-striconveh.c: New file.
36170
36171 2007-01-15  Bruno Haible  <bruno@clisp.org>
36172
36173         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
36174         not from GNU libiconv or GNU libc.
36175
36176 2007-01-15  Bruno Haible  <bruno@clisp.org>
36177
36178         * doc/gnulib-intro.texi (Copyright): Explain the different license
36179         terms for module descriptions, autoconf macros, tests, documentation.
36180
36181 2007-01-14  Bruno Haible  <bruno@clisp.org>
36182
36183         * modules/striconv-tests: New file.
36184         * tests/test-striconv.c: New file.
36185
36186 2007-01-14  Bruno Haible  <bruno@clisp.org>
36187
36188         * modules/iconv-tests: New file.
36189         * tests/test-iconv.c: New file.
36190
36191 2007-01-14  Bruno Haible  <bruno@clisp.org>
36192
36193         * gnulib-tool (func_get_license): For test modules, use the license of
36194         the main module.
36195
36196 2007-01-14  Bruno Haible  <bruno@clisp.org>
36197
36198         * modules/iconv (Include): Clarify that <iconv.h> can only be included
36199         if iconv is found to exist.
36200
36201 2007-01-14  Bruno Haible  <bruno@clisp.org>
36202
36203         * modules/c-ctype-tests: New file.
36204         * tests/test-c-ctype.c: New file.
36205
36206 2007-01-14  Bruno Haible  <bruno@clisp.org>
36207
36208         * modules/binary-io-tests: New file.
36209         * tests/test-binary-io.sh: New file.
36210         * tests/test-binary-io.c: New file.
36211
36212 2007-01-14  Bruno Haible  <bruno@clisp.org>
36213
36214         * modules/array-oset-tests: New file.
36215         * tests/test-array_oset.c: New file.
36216
36217 2007-01-14  Bruno Haible  <bruno@clisp.org>
36218
36219         * modules/array-list-tests: New file.
36220         * tests/test-array_list.c: New file.
36221
36222 2007-01-14  Bruno Haible  <bruno@clisp.org>
36223
36224         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
36225         and make.
36226         Reported by Simon Josefsson in
36227         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
36228
36229 2007-01-14  Bruno Haible  <bruno@clisp.org>
36230
36231         * modules/allocsa-tests: New file.
36232         * tests/test-allocsa.c: New file.
36233
36234 2007-01-14  Bruno Haible  <bruno@clisp.org>
36235
36236         * modules/fchdir (Depends-on): Add absolute-header.
36237         * modules/unistd (Depends-on): Likewise.
36238
36239 2006-12-30  Bruno Haible  <bruno@clisp.org>
36240
36241         * modules/fchdir: New file.
36242         * modules/unistd (Files): Add lib/unistd_.h.
36243         (Makefile.am): Generate unistd.h from unistd_.h.
36244         * lib/fchdir.c: New file.
36245         * lib/dirent_.h: New file.
36246         * lib/unistd_.h: New file.
36247         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
36248         * m4/fchdir.m4: New file.
36249         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
36250         (gl_HEADER_UNISTD): Invoke it.
36251         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
36252         function.
36253         * lib/backupfile.c (opendir, closedir): Undefine.
36254         * lib/chown.c (open, close): Undefine.
36255         * lib/clean-temp.c (open, close): Undefine.
36256         * lib/copy-file.c (open, close): Undefine.
36257         * lib/execute.c (open, close): Undefine.
36258         * lib/fsusage.c (open, close): Undefine.
36259         * lib/gc-gnulib.c (open, close): Undefine.
36260         * lib/getcwd.c (opendir, closedir): Undefine.
36261         * lib/glob.c (opendir, closedir): Undefine.
36262         * lib/javacomp.c (open, close): Undefine.
36263         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
36264         * lib/openat-proc.c (open, close): Undefine.
36265         * lib/pagealign_alloc.c (open, close): Undefine.
36266         * lib/pipe.c (open, close): Undefine.
36267         * lib/progreloc.c (open, close): Undefine.
36268         * lib/savedir.c (opendir, closedir): Undefine.
36269         * lib/utime.c (open, close): Undefine.
36270         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
36271
36272 2007-01-10  Bruno Haible  <bruno@clisp.org>
36273
36274         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
36275
36276 2007-01-12  Eric Blake  <ebb9@byu.net>
36277
36278         Provide a robust <wchar.h>.  Further simplifications are now
36279         possible in other modules, but not included here.
36280         * modules/wchar: New module.
36281         * m4/wchar.m4: New file.
36282         * lib/wchar_.h: Likewise.
36283         * modules/mbchar (Depends-on): Depend on wchar, as the first use
36284         of the new module.
36285         * MODULES.html.sh (Extended multibyte and wide character utilities):
36286         New section.
36287
36288 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
36289
36290         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
36291         to a reasonable default for memory allocation.
36292         (xreadlink): Don't allocate a huge buffer, to work around a buggy
36293         file system that reports garbage st_size values for symlinks.
36294         Problem reported by Liyang Hu.
36295
36296 2007-01-11  Simon Josefsson  <simon@josefsson.org>
36297
36298         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
36299         Emacs .#* auto-save files).
36300
36301 2007-01-11  Bruno Haible  <bruno@clisp.org>
36302
36303         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
36304         directory.
36305
36306 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36307
36308         Use @...@ consistently in lib/wctype_.h.
36309         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
36310         on it being set to 1 or 0.
36311         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
36312         go back to AC_SUBSTing it.
36313         * modules/wctype (Makefile.am): Undo previous change.
36314
36315 2007-01-10  Eric Blake  <ebb9@byu.net>
36316
36317         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
36318         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
36319         * modules/wctype (Makefile.am): Likewise.
36320         Reported by Chris McGuire.
36321
36322 2007-01-10  Jim Meyering  <jim@meyering.net>
36323
36324         fts.c: a small readability/maintainability improvement
36325         * lib/fts.c (fts_read): Make this code slightly more readable and
36326         maintainable by hoisting the "sp->fts_cur = p" assignments to
36327         immediately follow the statements that set P.  Derived from
36328         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
36329
36330 2007-01-10  Eric Blake  <ebb9@byu.net>
36331
36332         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
36333         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
36334         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
36335         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
36336         Reported by Chris McGuire.
36337
36338 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36339
36340         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
36341         in sed script.
36342
36343 2007-01-09  Bruno Haible  <bruno@clisp.org>
36344
36345         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
36346         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
36347         variables.
36348         (func_module): Use them.
36349
36350 2007-01-09  Bruno Haible  <bruno@clisp.org>
36351
36352         * modules/unistr/base: New file.
36353         * lib/unistr.h: New file.
36354
36355         * modules/unistr/u8-to-u16: New file.
36356         * lib/unistr/u8-to-u16.c: New file.
36357
36358         * modules/unistr/u8-to-u32: New file.
36359         * lib/unistr/u8-to-u32.c: New file.
36360
36361         * modules/unistr/u16-to-u8: New file.
36362         * lib/unistr/u16-to-u8.c: New file.
36363
36364         * modules/unistr/u16-to-u32: New file.
36365         * lib/unistr/u16-to-u32.c: New file.
36366
36367         * modules/unistr/u32-to-u8: New file.
36368         * lib/unistr/u32-to-u8.c: New file.
36369
36370         * modules/unistr/u32-to-u16: New file.
36371         * lib/unistr/u32-to-u16.c: New file.
36372
36373         * modules/unistr/u8-check: New file.
36374         * modules/unistr/u16-check: New file.
36375         * modules/unistr/u32-check: New file.
36376         * lib/unistr/u8-check.c: New file.
36377         * lib/unistr/u16-check.c: New file.
36378         * lib/unistr/u32-check.c: New file.
36379
36380         * modules/unistr/u8-chr: New file.
36381         * modules/unistr/u16-chr: New file.
36382         * modules/unistr/u32-chr: New file.
36383         * lib/unistr/u8-chr.c: New file.
36384         * lib/unistr/u16-chr.c: New file.
36385         * lib/unistr/u32-chr.c: New file.
36386
36387         * modules/unistr/u8-cmp: New file.
36388         * modules/unistr/u16-cmp: New file.
36389         * modules/unistr/u32-cmp: New file.
36390         * lib/unistr/u8-cmp.c: New file.
36391         * lib/unistr/u16-cmp.c: New file.
36392         * lib/unistr/u32-cmp.c: New file.
36393
36394         * modules/unistr/u8-cpy: New file.
36395         * modules/unistr/u16-cpy: New file.
36396         * modules/unistr/u32-cpy: New file.
36397         * lib/unistr/u8-cpy.c: New file.
36398         * lib/unistr/u16-cpy.c: New file.
36399         * lib/unistr/u32-cpy.c: New file.
36400         * lib/unistr/u-cpy.h: New file.
36401
36402         * modules/unistr/u8-cpy-alloc: New file.
36403         * modules/unistr/u16-cpy-alloc: New file.
36404         * modules/unistr/u32-cpy-alloc: New file.
36405         * lib/unistr/u8-cpy-alloc.c: New file.
36406         * lib/unistr/u16-cpy-alloc.c: New file.
36407         * lib/unistr/u32-cpy-alloc.c: New file.
36408         * lib/unistr/u-cpy-alloc.h: New file.
36409
36410         * modules/unistr/u8-endswith: New file.
36411         * modules/unistr/u16-endswith: New file.
36412         * modules/unistr/u32-endswith: New file.
36413         * lib/unistr/u8-endswith.c: New file.
36414         * lib/unistr/u16-endswith.c: New file.
36415         * lib/unistr/u32-endswith.c: New file.
36416         * lib/unistr/u-endswith.h: New file.
36417
36418         * modules/unistr/u8-mblen: New file.
36419         * modules/unistr/u16-mblen: New file.
36420         * modules/unistr/u32-mblen: New file.
36421         * lib/unistr/u8-mblen.c: New file.
36422         * lib/unistr/u16-mblen.c: New file.
36423         * lib/unistr/u32-mblen.c: New file.
36424
36425         * modules/unistr/u8-mbtouc: New file.
36426         * modules/unistr/u16-mbtouc: New file.
36427         * modules/unistr/u32-mbtouc: New file.
36428         * lib/unistr/u8-mbtouc.c: New file.
36429         * lib/unistr/u16-mbtouc.c: New file.
36430         * lib/unistr/u32-mbtouc.c: New file.
36431
36432         * modules/unistr/u8-mbtouc-safe: New file.
36433         * modules/unistr/u16-mbtouc-safe: New file.
36434         * modules/unistr/u32-mbtouc-safe: New file.
36435         * lib/unistr/u8-mbtouc-safe.c: New file.
36436         * lib/unistr/u16-mbtouc-safe.c: New file.
36437         * lib/unistr/u32-mbtouc-safe.c: New file.
36438
36439         * modules/unistr/u8-move: New file.
36440         * modules/unistr/u16-move: New file.
36441         * modules/unistr/u32-move: New file.
36442         * lib/unistr/u8-move.c: New file.
36443         * lib/unistr/u16-move.c: New file.
36444         * lib/unistr/u32-move.c: New file.
36445         * lib/unistr/u-move.h: New file.
36446
36447         * modules/unistr/u8-next: New file.
36448         * modules/unistr/u16-next: New file.
36449         * modules/unistr/u32-next: New file.
36450         * lib/unistr/u8-next.c: New file.
36451         * lib/unistr/u16-next.c: New file.
36452         * lib/unistr/u32-next.c: New file.
36453
36454         * modules/unistr/u8-prev: New file.
36455         * modules/unistr/u16-prev: New file.
36456         * modules/unistr/u32-prev: New file.
36457         * lib/unistr/u8-prev.c: New file.
36458         * lib/unistr/u16-prev.c: New file.
36459         * lib/unistr/u32-prev.c: New file.
36460
36461         * modules/unistr/u8-set: New file.
36462         * modules/unistr/u16-set: New file.
36463         * modules/unistr/u32-set: New file.
36464         * lib/unistr/u8-set.c: New file.
36465         * lib/unistr/u16-set.c: New file.
36466         * lib/unistr/u32-set.c: New file.
36467         * lib/unistr/u-set.h: New file.
36468
36469         * modules/unistr/u8-startswith: New file.
36470         * modules/unistr/u16-startswith: New file.
36471         * modules/unistr/u32-startswith: New file.
36472         * lib/unistr/u8-startswith.c: New file.
36473         * lib/unistr/u16-startswith.c: New file.
36474         * lib/unistr/u32-startswith.c: New file.
36475         * lib/unistr/u-startswith.h: New file.
36476
36477         * modules/unistr/u8-stpcpy: New file.
36478         * modules/unistr/u16-stpcpy: New file.
36479         * modules/unistr/u32-stpcpy: New file.
36480         * lib/unistr/u8-stpcpy.c: New file.
36481         * lib/unistr/u16-stpcpy.c: New file.
36482         * lib/unistr/u32-stpcpy.c: New file.
36483         * lib/unistr/u-stpcpy.h: New file.
36484
36485         * modules/unistr/u8-stpncpy: New file.
36486         * modules/unistr/u16-stpncpy: New file.
36487         * modules/unistr/u32-stpncpy: New file.
36488         * lib/unistr/u8-stpncpy.c: New file.
36489         * lib/unistr/u16-stpncpy.c: New file.
36490         * lib/unistr/u32-stpncpy.c: New file.
36491         * lib/unistr/u-stpncpy.h: New file.
36492
36493         * modules/unistr/u8-strcat: New file.
36494         * modules/unistr/u16-strcat: New file.
36495         * modules/unistr/u32-strcat: New file.
36496         * lib/unistr/u8-strcat.c: New file.
36497         * lib/unistr/u16-strcat.c: New file.
36498         * lib/unistr/u32-strcat.c: New file.
36499         * lib/unistr/u-strcat.h: New file.
36500
36501         * modules/unistr/u8-strchr: New file.
36502         * modules/unistr/u16-strchr: New file.
36503         * modules/unistr/u32-strchr: New file.
36504         * lib/unistr/u8-strchr.c: New file.
36505         * lib/unistr/u16-strchr.c: New file.
36506         * lib/unistr/u32-strchr.c: New file.
36507
36508         * modules/unistr/u8-strcmp: New file.
36509         * modules/unistr/u16-strcmp: New file.
36510         * modules/unistr/u32-strcmp: New file.
36511         * lib/unistr/u8-strcmp.c: New file.
36512         * lib/unistr/u16-strcmp.c: New file.
36513         * lib/unistr/u32-strcmp.c: New file.
36514
36515         * modules/unistr/u8-strcpy: New file.
36516         * modules/unistr/u16-strcpy: New file.
36517         * modules/unistr/u32-strcpy: New file.
36518         * lib/unistr/u8-strcpy.c: New file.
36519         * lib/unistr/u16-strcpy.c: New file.
36520         * lib/unistr/u32-strcpy.c: New file.
36521         * lib/unistr/u-strcpy.h: New file.
36522
36523         * modules/unistr/u8-strcspn: New file.
36524         * modules/unistr/u16-strcspn: New file.
36525         * modules/unistr/u32-strcspn: New file.
36526         * lib/unistr/u8-strcspn.c: New file.
36527         * lib/unistr/u16-strcspn.c: New file.
36528         * lib/unistr/u32-strcspn.c: New file.
36529         * lib/unistr/u-strcspn.h: New file.
36530
36531         * modules/unistr/u8-strdup: New file.
36532         * modules/unistr/u16-strdup: New file.
36533         * modules/unistr/u32-strdup: New file.
36534         * lib/unistr/u8-strdup.c: New file.
36535         * lib/unistr/u16-strdup.c: New file.
36536         * lib/unistr/u32-strdup.c: New file.
36537         * lib/unistr/u-strdup.h: New file.
36538
36539         * modules/unistr/u8-strlen: New file.
36540         * modules/unistr/u16-strlen: New file.
36541         * modules/unistr/u32-strlen: New file.
36542         * lib/unistr/u8-strlen.c: New file.
36543         * lib/unistr/u16-strlen.c: New file.
36544         * lib/unistr/u32-strlen.c: New file.
36545         * lib/unistr/u-strlen.h: New file.
36546
36547         * modules/unistr/u8-strmblen: New file.
36548         * modules/unistr/u16-strmblen: New file.
36549         * modules/unistr/u32-strmblen: New file.
36550         * lib/unistr/u8-strmblen.c: New file.
36551         * lib/unistr/u16-strmblen.c: New file.
36552         * lib/unistr/u32-strmblen.c: New file.
36553
36554         * modules/unistr/u8-strmbtouc: New file.
36555         * modules/unistr/u16-strmbtouc: New file.
36556         * modules/unistr/u32-strmbtouc: New file.
36557         * lib/unistr/u8-strmbtouc.c: New file.
36558         * lib/unistr/u16-strmbtouc.c: New file.
36559         * lib/unistr/u32-strmbtouc.c: New file.
36560
36561         * modules/unistr/u8-strncat: New file.
36562         * modules/unistr/u16-strncat: New file.
36563         * modules/unistr/u32-strncat: New file.
36564         * lib/unistr/u8-strncat.c: New file.
36565         * lib/unistr/u16-strncat.c: New file.
36566         * lib/unistr/u32-strncat.c: New file.
36567         * lib/unistr/u-strncat.h: New file.
36568
36569         * modules/unistr/u8-strncmp: New file.
36570         * modules/unistr/u16-strncmp: New file.
36571         * modules/unistr/u32-strncmp: New file.
36572         * lib/unistr/u8-strncmp.c: New file.
36573         * lib/unistr/u16-strncmp.c: New file.
36574         * lib/unistr/u32-strncmp.c: New file.
36575
36576         * modules/unistr/u8-strncpy: New file.
36577         * modules/unistr/u16-strncpy: New file.
36578         * modules/unistr/u32-strncpy: New file.
36579         * lib/unistr/u8-strncpy.c: New file.
36580         * lib/unistr/u16-strncpy.c: New file.
36581         * lib/unistr/u32-strncpy.c: New file.
36582         * lib/unistr/u-strncpy.h: New file.
36583
36584         * modules/unistr/u8-strnlen: New file.
36585         * modules/unistr/u16-strnlen: New file.
36586         * modules/unistr/u32-strnlen: New file.
36587         * lib/unistr/u8-strnlen.c: New file.
36588         * lib/unistr/u16-strnlen.c: New file.
36589         * lib/unistr/u32-strnlen.c: New file.
36590         * lib/unistr/u-strnlen.h: New file.
36591
36592         * modules/unistr/u8-strpbrk: New file.
36593         * modules/unistr/u16-strpbrk: New file.
36594         * modules/unistr/u32-strpbrk: New file.
36595         * lib/unistr/u8-strpbrk.c: New file.
36596         * lib/unistr/u16-strpbrk.c: New file.
36597         * lib/unistr/u32-strpbrk.c: New file.
36598         * lib/unistr/u-strpbrk.h: New file.
36599
36600         * modules/unistr/u8-strrchr: New file.
36601         * modules/unistr/u16-strrchr: New file.
36602         * modules/unistr/u32-strrchr: New file.
36603         * lib/unistr/u8-strrchr.c: New file.
36604         * lib/unistr/u16-strrchr.c: New file.
36605         * lib/unistr/u32-strrchr.c: New file.
36606
36607         * modules/unistr/u8-strspn: New file.
36608         * modules/unistr/u16-strspn: New file.
36609         * modules/unistr/u32-strspn: New file.
36610         * lib/unistr/u8-strspn.c: New file.
36611         * lib/unistr/u16-strspn.c: New file.
36612         * lib/unistr/u32-strspn.c: New file.
36613         * lib/unistr/u-strspn.h: New file.
36614
36615         * modules/unistr/u8-strstr: New file.
36616         * modules/unistr/u16-strstr: New file.
36617         * modules/unistr/u32-strstr: New file.
36618         * lib/unistr/u8-strstr.c: New file.
36619         * lib/unistr/u16-strstr.c: New file.
36620         * lib/unistr/u32-strstr.c: New file.
36621         * lib/unistr/u-strstr.h: New file.
36622
36623         * modules/unistr/u8-strtok: New file.
36624         * modules/unistr/u16-strtok: New file.
36625         * modules/unistr/u32-strtok: New file.
36626         * lib/unistr/u8-strtok.c: New file.
36627         * lib/unistr/u16-strtok.c: New file.
36628         * lib/unistr/u32-strtok.c: New file.
36629         * lib/unistr/u-strtok.h: New file.
36630
36631         * modules/unistr/u8-uctomb: New file.
36632         * modules/unistr/u16-uctomb: New file.
36633         * modules/unistr/u32-uctomb: New file.
36634         * lib/unistr/u8-uctomb.c: New file.
36635         * lib/unistr/u16-uctomb.c: New file.
36636         * lib/unistr/u32-uctomb.c: New file.
36637
36638         * MODULES.html.sh (Unicode string functions): Add the new modules.
36639
36640 2007-01-08  Bruno Haible  <bruno@clisp.org>
36641
36642         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
36643         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
36644         subdirectories.
36645
36646 2007-01-08  Karl Berry  <karl@gnu.org>
36647
36648         * doc/error.texi: mention that main() fns must set program_name
36649         when progname is used.
36650
36651 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
36652
36653         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
36654         WCTYPE_H is empty, for the benefit of builds from non-distclean
36655         directories.  Problem reported by Eric Blake in
36656         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
36657
36658 2007-01-08  Bruno Haible  <bruno@clisp.org>
36659
36660         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
36661         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
36662         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
36663         PROVIDE_CANONICALIZE_FILENAME_MODE.
36664         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
36665
36666 2007-01-08  Bruno Haible  <bruno@clisp.org>
36667
36668         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
36669         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
36670         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
36671         * lib/fts.c: Likewise.
36672         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
36673
36674 2006-12-25  Bruno Haible  <bruno@clisp.org>
36675
36676         * modules/utf8-ucs4-safe: New file.
36677         * lib/utf8-ucs4-safe.h: New file.
36678         * lib/unistr/utf8-ucs4-safe.c: New file.
36679
36680         * modules/utf16-ucs4-safe: New file.
36681         * lib/utf16-ucs4-safe.h: New file.
36682         * lib/unistr/utf16-ucs4-safe.c: New file.
36683
36684         * MODULES.html.sh (Unicode string functions): Add the new modules.
36685
36686 2007-01-08  Bruno Haible  <bruno@clisp.org>
36687
36688         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
36689         (Depends-on): Add unitypes.
36690         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
36691         (u8_mbtouc_aux): Move out to separate file.
36692         (u8_mbtouc): Use ucs4_t, uint8_t types.
36693         * lib/unistr/utf8-ucs4.c: New file.
36694
36695         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
36696         (Depends-on): Add unitypes.
36697         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
36698         (u16_mbtouc_aux): Move out to separate file.
36699         (u16_mbtouc): Use ucs4_t, uint16_t types.
36700         * lib/unistr/utf16-ucs4.c: New file.
36701
36702         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
36703         (Depends-on): Add unitypes.
36704         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
36705         (u8_uctomb_aux): Move out to separate file.
36706         (u8_uctomb): Use ucs4_t, uint8_t types.
36707         * lib/unistr/ucs4-utf8.c: New file.
36708
36709         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
36710         (Depends-on): Add unitypes.
36711         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
36712         (u16_uctomb_aux): Move out to separate file.
36713         (u16_uctomb): Use ucs4_t, uint16_t types.
36714         * lib/unistr/ucs4-utf16.c: New file.
36715
36716 2006-12-25  Bruno Haible  <bruno@clisp.org>
36717
36718         * modules/unitypes: New file.
36719         * lib/unitypes.h: New file.
36720         * MODULES.html.sh (func_all_modules): New section "Unicode string
36721         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
36722         this section. Add unitypes.
36723
36724 2007-01-08  Bruno Haible  <bruno@clisp.org>
36725
36726         Avoid variable names that conflict with those from libtool.
36727         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
36728         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
36729         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
36730         library_names_spec to acl_library_names_spec, hardcode_* to
36731         acl_hardcode_*.
36732         Reported by Ralf Wildenhues.
36733
36734 2007-01-08  Bruno Haible  <bruno@clisp.org>
36735
36736         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
36737         definition.
36738         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
36739         definition.
36740         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
36741         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
36742         definition.
36743         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
36744         definition.
36745         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
36746         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
36747         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
36748         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
36749         definition.
36750         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
36751         definition.
36752         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
36753         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
36754         GC_USE_<algorithm>.
36755         * lib/gc-libgcrypt.c: Likewise.
36756         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
36757         * modules/gc-arctwo (configure.ac): Likewise.
36758         * modules/gc-des (configure.ac): Likewise.
36759         * modules/gc-hmac-md5 (configure.ac): Likewise.
36760         * modules/gc-hmac-sha1 (configure.ac): Likewise.
36761         * modules/gc-md2 (configure.ac): Likewise.
36762         * modules/gc-md4 (configure.ac): Likewise.
36763         * modules/gc-md5 (configure.ac): Likewise.
36764         * modules/gc-random (configure.ac): Likewise.
36765         * modules/gc-rijndael (configure.ac): Likewise.
36766         * modules/gc-sha1 (configure.ac): Likewise.
36767
36768 2007-01-08  Bruno Haible  <bruno@clisp.org>
36769
36770         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
36771         macro definition.
36772         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
36773         definition.
36774         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
36775         definition.
36776         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
36777         * modules/fcntl-safer (configure.ac): Likewise.
36778         * modules/fopen-safer (configure.ac): Likewise.
36779         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
36780         GNULIB_FWRITEERROR macro definition.
36781
36782 2007-01-08  Bruno Haible  <bruno@clisp.org>
36783
36784         * m4/gnulib-common.m4: New file.
36785         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
36786         (func_get_filelist): Add m4/gnulib-common.m4.
36787
36788 2007-01-08  Bruno Haible  <bruno@clisp.org>
36789
36790         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
36791         command.
36792
36793 2007-01-08  Jim Meyering  <jim@meyering.net>
36794
36795         Use a more robust test for a "can't happen" condition.
36796         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
36797         narrowed the st_size value.  Presuming the "can't happen" condition
36798         is true, that narrowing could conceivably convert an invalid st_size
36799         value into a valid one.  Instead, use a change based on Matthew
36800         Woehlke's original patch.
36801
36802         Slight readability improvement: use an assert-like macro
36803         in place of literal "abort ()" uses.
36804         * lib/fts.c (fts_assert): Define.
36805         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
36806         Use this macro instead of a bare 'abort'.
36807
36808 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
36809
36810         Don't worry about using IRIX 5.3's wctype.h broken definitions;
36811         simply work around them.
36812         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
36813         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
36814         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
36815         declaring.
36816         Don't bother to define as macros, since the standard doesn't require it.
36817         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
36818         longer worry about IRIX 5.3.
36819         (HAVE_WCTYPE_CTMP_BUG): Remove.
36820
36821 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36822
36823         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
36824         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
36825         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36826         Problems reported by Georg Schwarz for IRIX 5.3.
36827
36828         * gnulib-tool (autoconf_minversion): Take the maximum version number
36829         found, not the minimum.  Problem reported by James Youngman.
36830
36831 2007-01-03  Karl Berry  <karl@gnu.org>
36832
36833         * doc/error.texi: new file, explaining interaction with progname.
36834         * doc/gnulib.texi: include it.  Update copyright.
36835
36836 2007-01-03  Simon Josefsson  <simon@josefsson.org>
36837
36838         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
36839         AC_CANONICAL_HOST, to improve autobuild outputs.
36840
36841 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
36842             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36843
36844         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
36845         sockets, server sockets, and other file descriptors.  Count errors
36846         to compute the return value.  Reorder the code a bit to be easier
36847         to follow.  Don't set event bits that were not requested (except
36848         POLLERR and POLLHUP).
36849
36850 2007-01-01  Bruno Haible  <bruno@clisp.org>
36851
36852         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
36853
36854 2007-01-03  Jim Meyering  <jim@meyering.net>
36855
36856         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
36857
36858 2007-01-02  Bruno Haible  <bruno@clisp.org>
36859
36860         * modules/settime (Include): Require timespec.h.
36861         * modules/nanosleep (Include): Likewise.
36862
36863 2007-01-01  Bruno Haible  <bruno@clisp.org>
36864
36865         * gnulib-tool (func_emit_copyright_notice): Bump year.
36866         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
36867
36868 2007-01-01  Bruno Haible  <bruno@clisp.org>
36869
36870         Improve support for OpenBSD.
36871         * build-aux/config.rpath (libname_spec): Export.
36872         (library_names_spec): New variable. Export.
36873         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
36874         library_names_spec from the config.rpath output. Locate shared library
36875         through the name pattern in library_names_spec.
36876
36877 2007-01-01  Eric Blake  <ebb9@byu.net>
36878
36879         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
36880
36881 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
36882
36883         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
36884         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
36885         assume the C locale, and avoid an "eval" that could cause trouble.
36886         Problem with SORT reported by Bob Proulx.
36887
36888         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
36889         Define.  Trivial patch from Henning Nielsen Lund, originally
36890         sent to bug-grep@gnu.org today.
36891
36892 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
36893
36894         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
36895         struct stat.  Problem reported by Henning Nielsen Lund.
36896         * lib/acl.c: Include acl.h first, to check interface.  Don't
36897         bother to include sys/types.h and sys/stat.h again.
36898
36899 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
36900
36901         Import the following change from libc; problem reported by
36902         Sven Verdoolaege.
36903
36904         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
36905
36906         [BZ #1373]
36907         * lib/argp.h: Remove __NTH for __argp_usage inline function.
36908
36909 2006-12-28  Jim Meyering  <jim@meyering.net>
36910
36911         * build-aux/announce-gen: Do not assume that the package
36912         builds any of tar.gz, tar.bz2, and .xdelta files.
36913         Suggestion from Simon Josefsson.
36914
36915 2006-12-28  Simon Josefsson  <simon@josefsson.org>
36916
36917         * modules/announce-gen: New file.
36918
36919 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
36920
36921         * lib/mbchar.h: Just include <wctype.h>; the wctype module
36922         handles its gotchas now.
36923         * lib/mbswidth.c: Likewise.
36924         * lib/wcwidth.h: Likewise.
36925         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
36926         and iswcntrl; the wctype module does this stuff now.
36927         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36928         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
36929         * modules/mbchar (Depends-on): Add wctype.
36930         * modules/mbswidth (Depends-on): Likewise.
36931         * modules/wcwidth (Depends-on): Likewise.
36932
36933 2006-12-27  Eric Blake  <ebb9@byu.net>
36934
36935         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
36936         module uses more than what <wctype.h> is required to provide.
36937
36938 2006-12-26  Eric Blake  <ebb9@byu.net>
36939
36940         * gnulib-tool (sed_extract_prog): Avoid space-tab.
36941
36942 2006-12-26  Eric Blake  <ebb9@byu.net>
36943
36944         * modules/absolute-header: New module.
36945         * modules/fcntl (Depends-on): Depend on it.
36946         * modules/inttypes (Depends-on): Likewise.
36947         * modules/stdint (Depends-on): Likewise.
36948         * modules/sys_stat (Depends-on): Likewise.
36949         * modules/wctype (Depends-on): Likewise.
36950         * MODULES.html.sh (Support for building libraries and
36951         executables): Document it.
36952
36953 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
36954
36955         * gnulib-tool (SED): Remove, undoing previous change.
36956         The problem was that it broke coreutils on Solaris, because
36957         "sed --posix" leaked into a makefile.
36958         (sed): New alias, if 'alias' and GNU sed.
36959
36960 2006-12-24  Jim Meyering  <jim@meyering.net>
36961
36962         Work around an fchownat bug in glibc-2.4:
36963         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
36964         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
36965         in spite of the -P option.
36966         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
36967         New macros.
36968         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
36969         * modules/openat (Files): Add lib/fchownat.c.
36970         * lib/openat.c (fchownat): Don't define here.  Move to...
36971         * lib/fchownat.c: ...this new file.
36972
36973 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
36974
36975         Fix bug reported by Bruno Haible in
36976         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
36977         where quotearg.c didn't compile on Mac OS X 10.2 because it
36978         lacks <wchar.h> and wint_t.
36979         * lib/wctype_.h (__wctype_wint_t): New type.
36980         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
36981         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
36982         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
36983         Arg is now of type __wctype_wint_t, not wint_t.
36984         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
36985         substitute HAVE_WINT_T.
36986         * modules/wctype (Files): Add m4/wint_t.m4.
36987         (wctype.h): Substitute HAVE_WINT_T.
36988
36989 2006-12-23  Bruno Haible  <bruno@clisp.org>
36990
36991         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
36992
36993 2006-12-23  Bruno Haible  <bruno@clisp.org>
36994
36995         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
36996         S_ISLNK.
36997         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
36998         mingw.
36999
37000 2006-12-22  Bruno Haible  <bruno@clisp.org>
37001
37002         * lib/copy-file.c: Include acl.h.
37003         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
37004         Close the file descriptors only after being done with copy_acl.
37005         * modules/copy-file (Depends-on): Add acl.
37006
37007 2006-12-22  Bruno Haible  <bruno@clisp.org>
37008
37009         * gnulib-tool (SED): New variable.
37010         Use $SED instead of sed everywhere.
37011
37012 2006-12-22  Bruno Haible  <bruno@clisp.org>
37013
37014         * modules/no-c++: New file.
37015         * m4/no-c++.m4: New file.
37016         * MODULES.html.sh (Support for building libraries and executables):
37017         Add no-c++.
37018
37019 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
37020
37021         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
37022         Include <limits.h>, and use its INT_MAX to rewrite the
37023         j loop so that it does not overflow 'int'.  Problem reported by
37024         Ralf Wildenhues in
37025         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
37026         Play it safe by shifting left by 1 rather than multiplying by 2,
37027         as GCC is less likely to optimize this away when the value
37028         is signed (when it assumes overflow leads to undefined behavior).
37029         Also, don't assume time_t uses two's complement.
37030
37031 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
37032
37033         * MODULES.html.sh: New module wctype.
37034         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
37035         * lib/fnmatch.c: Don't bother to include <wchar.h> before
37036         <wctype.h>, since the new wctype module should fix this.
37037         * lib/quotearg.c: Include <wctype.h> unconditionally, since
37038         the wctype module should arrange for it.
37039         * lib/regex_internal.h: Likewise.
37040         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
37041         since the wctype module should handle this now.
37042         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
37043         * modules/fnmatch (Depends-on): Add wctype.
37044         * modules/quotearg (Depends-on): Likewise.
37045         * modules/regex (Depends-on): Likewise.
37046
37047 2006-12-19  Bruno Haible  <bruno@clisp.org>
37048
37049         * lib/strdup.h [C++]: Wrap definitions in extern "C".
37050         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
37051
37052 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37053
37054         * modules/savewd (Depends-on): Fix dependency on fcntl.
37055
37056 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37057
37058         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
37059         conforms to C99, rather than relying on the user's environment
37060         setting of STDINT_H.
37061
37062 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
37063         and Eric Blake  <ebb9@byu.net>
37064
37065         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
37066         This is more consistent with the other defines here.
37067         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
37068         Port to z/OS.  Problem reported by Paul Gilmartin.
37069         Change local vars to use gl_ prefix rather than ac_.
37070         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
37071         with other defines.
37072         * modules/double-slash-root: New module.
37073         * modules/dirname (Files): Remove m4/double-slash-root.m4.
37074         (Depends-on): Add double-slash-root.
37075         * MODULES.html.sh (File system functions): Mention new module.
37076
37077 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
37078
37079         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
37080         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
37081         This is for the benefit of gzip, which doesn't do i18n.
37082
37083 2006-12-12  Jim Meyering  <jim@meyering.net>
37084
37085         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
37086         Reported by Andreas Schwab <schwab@suse.de>.
37087
37088 2006-12-12  Bruno Haible  <bruno@clisp.org>
37089
37090         Merge these changes.
37091         2006-09-05  Bruno Haible  <bruno@clisp.org>
37092         * lib/iconvme.c (iconv_string): No need to save and restore errno when
37093         iconv_alloc succeeded.
37094         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
37095         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
37096         test for " && dest " at the end - dest is always != NULL there. Call
37097         iconv with 4xNULL arguments initially, to reset the state. Call iconv
37098         with 2xNULL arguments, also to flush the state storage. Handle the
37099         IRIX iconv behaviour. Realloc the final result, to throw away unused
37100         memory.
37101
37102 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
37103
37104         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
37105         and fchmodat unconditionally, since glibc 2.4 has them.
37106         Problem reported by Arkadiusz Miskiewicz.
37107
37108 2006-12-10  Bruno Haible  <bruno@clisp.org>
37109
37110         * gnulib-tool (func_import): Show the include files only for those
37111         modules that are copied and specified.
37112         Reported by Karl Berry.
37113
37114 2006-12-08  Jim Meyering  <jim@meyering.net>
37115
37116         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
37117         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
37118
37119         * build-aux/announce-gen: Add two new options, both optional:
37120         --bootstrap-tools=TOOL_LIST
37121               a comma-separated list of tools, e.g.,
37122               autoconf,automake,bison,gnulib
37123         --gnulib-snapshot-date=DATE
37124               if gnulib is in the bootstrap tool list,
37125               then report this as the snapshot date.
37126               If not specified, use the current date/time.
37127               If you specify a date here, be sure it's UTC.
37128
37129 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37130
37131         * tests/test-argp-2.sh: Fix test to match actual output.
37132         (func_compare): Fix sed script to be portable.
37133
37134 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
37135
37136         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
37137         workaround for this case.  It is not autoconfigured now; offhand
37138         it's hard to see how to autoconfigure it.
37139
37140 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
37141
37142         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
37143         a directory that is about to be chowned.  Such a directory's
37144         initial file permissions should permit the owner only and this
37145         should not be changed until after the chown, since the group and
37146         other bits would be incorrect if they granted permission before
37147         the chown.
37148
37149         Fix porting problem for iswctype reported by Georg Schwarz in:
37150         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
37151         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
37152         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
37153         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
37154         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37155
37156 2006-12-03  Jim Meyering  <jim@meyering.net>
37157
37158         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
37159         p->fts_statp may not yet be defined.
37160         (fts_read): Instead, set it in the caller, once p->fts_statp is
37161         sure to be defined, and corresponds to a top-level directory.
37162         This bug made du -x fail.  Here's the coreutils test case:
37163         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
37164         Reported by Mike Frysinger.
37165
37166 2006-12-01  Jim Meyering  <jim@meyering.net>
37167
37168         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
37169         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
37170         Reported by Simon Josefsson.
37171
37172 2006-11-30  Jim Meyering  <jim@meyering.net>
37173
37174         * m4/warning.m4: Use the all-permissive copyright notice
37175         recommended by RMS (rather than LGPL).
37176         * m4/vararrays.m4: Likewise.
37177         * m4/flexmember.m4: Likewise.
37178
37179 2006-11-29  Bruno Haible  <bruno@clisp.org>
37180
37181         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37182         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
37183         using +=.
37184         Reported by Simon Josefsson <simon@josefsson.org>.
37185
37186 2006-11-28  James Youngman <jay@gnu.org>
37187
37188         * README: Advise users that they might find the bug-gnulib@gnu.org
37189         and autotools-announce@gnu.org mailing lists useful.
37190
37191 2006-11-28  Bruno Haible  <bruno@clisp.org>
37192
37193         * m4/ptrdiff_max.m4: Remove file.
37194
37195 2006-11-21  Bruno Haible  <bruno@clisp.org>
37196
37197         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
37198         _AC_COMPUTE_INT.
37199         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37200         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
37201         _AC_COMPUTE_INT.
37202         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37203         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
37204         _AC_COMPUTE_INT.
37205         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37206
37207 2006-11-28  Jim Meyering  <jim@meyering.net>
37208
37209         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
37210         warning from "gcc -Wshadow" about shadowing the builtin.
37211
37212 2006-11-27  Bruno Haible  <bruno@clisp.org>
37213
37214         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
37215         _AC_COMPUTE_INT.
37216         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37217
37218 2006-11-27  Bruno Haible  <bruno@clisp.org>
37219             Paul Eggert  <eggert@cs.ucla.edu>
37220
37221         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
37222
37223 2006-11-26  Bruno Haible  <bruno@clisp.org>
37224
37225         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37226         noinst_LTLIBRARIES.
37227
37228 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
37229             Bruno Haible  <bruno@clisp.org>
37230
37231         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
37232         if compiling with "gcc -ansi".
37233
37234 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
37235
37236         Fix some incompatibilities with gcc -ansi -pedantic.
37237         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
37238         if compiling pedantically with GCC, unless it's C99 or later.
37239         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
37240         it mishandles gcc -ansi -pedantic as well.
37241         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
37242         if gcc -pedantic.
37243         * lib/regexec.c (check_node_accept_bytes): Don't use auto
37244         initializers for struct if -pedantic, unless it's C99 or later.
37245
37246 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
37247
37248         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
37249         Don't close an fd more than once. Identical atimes indicate
37250         success, not failure.
37251
37252 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
37253
37254         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
37255
37256 2006-11-23  Jim Meyering  <jim@meyering.net>
37257
37258         * build-aux/announce-gen: New file.  From coreutils.
37259
37260 2006-11-22  Jim Meyering  <jim@meyering.net>
37261
37262         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
37263         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
37264         (fts_read): Use a temporary to narrow the overused st_size member
37265         before using it in a switch statement.  Reported by Matthew Woehlke.
37266
37267         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
37268         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37269
37270 2006-11-20  Bruno Haible  <bruno@clisp.org>
37271
37272         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
37273         changequote instead of pairs of brackets.
37274         Reported by Andreas Schwab <schwab@suse.de>.
37275
37276 2006-11-21  Jim Meyering  <jim@meyering.net>
37277
37278         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
37279         so as to remain compatible with older compilers.
37280         Patch from Michael Deutschmann.
37281
37282 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
37283
37284         * MODULES.html.sh (File system functions): Add openat.
37285
37286         * lib/openat.h (rpl_fstatat): New macro, if
37287         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
37288         (fstatat): Define to rpl_fstatat under the same conditions,
37289         unless COMPILING_FSTATAT.
37290         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
37291         seems to have the bug.
37292         * lib/fstatat.c: New file.
37293         * modules/openat (Files): Add it.
37294
37295 2006-11-20  Bruno Haible  <bruno@clisp.org>
37296
37297         * Makefile: New file.
37298
37299 2006-11-20  Jim Meyering  <jim@meyering.net>
37300
37301         The beginnings of syntax-related checks for gnulib.
37302         * lib/Makefile: New file.
37303         * lib/t-idcache: New script.  Ensure that the two halves of
37304         idcache.c stay in sync.
37305
37306         * lib/idcache.c: Adjust comments in user- and group- portions to
37307         be more accurate, and to be consistent with one another.
37308
37309 2006-11-20  Jim Meyering  <jim@meyering.net>
37310
37311         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
37312         continue using the flexible array member (thus, this module performs
37313         half as many malloc calls), with the addition that...
37314         (getgroup, getuser): Consistently record a non-match via an empty
37315         "name" string, and map an empty string match to a NULL return value.
37316         * modules/idcache (Depends-on): Re-add flexmember.
37317
37318         * lib/idcache.c (getuser): Remove all uses of the register keyword.
37319         (getuidbyname, getgroup, getgidbyname): Likewise.
37320
37321         Use cleaner syntax: NULL rather than 0.
37322         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
37323
37324 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
37325
37326         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
37327         It mishandled the case where the group was missing.
37328         Problem reported by Greg Schafer.
37329         * modules/idcache: Likewise.
37330
37331 2006-11-18  Jim Meyering  <jim@meyering.net>
37332
37333         * check-module (%exempt_header): Add exception for some
37334         conditionally-included headers.
37335
37336         * modules/i-ring (Depends-on): Add verify.
37337         (License): Change to LGPL.
37338
37339 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
37340
37341         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
37342         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
37343         and inttostr.h.  Use snprintf rather than uinttostr, so that
37344         LGPLed code doesn't depend on GPLed.
37345
37346 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
37347
37348         * modules/inline (License): Change from GPL to LGPL.
37349
37350 2006-11-17  Jim Meyering  <jim@meyering.net>
37351
37352         * modules/d-type (License): Switch to LGPL.
37353
37354 2006-11-15  Bruno Haible  <bruno@clisp.org>
37355
37356         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
37357
37358 2006-11-15  Eric Blake  <ebb9@byu.net>
37359
37360         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
37361         the module dependency.
37362
37363 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37364             Bruno Haible  <bruno@clisp.org>
37365
37366         * gnulib-tool (func_create_testdir): Add license consistency check.
37367
37368 2006-11-15  Eric Blake  <ebb9@byu.net>
37369
37370         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
37371         random "(cached)" in configure output.
37372
37373 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37374
37375         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
37376         test for conforming inttypes.h is both announced and cached.
37377
37378         * MODULES.html.sh (seen_modules, seen_files): New variables.
37379         (func_module): Rewrite to use a few less gnulib-tool and sed
37380         invocations.  Avoid a couple of quadratic algorithms for ...
37381         (missed_modules, missed_files): ... these, with ...
37382         (func_append, func_tmpdir): ... these new functions, from
37383         gnulib-tool.  Analogously, install traps for cleanup.
37384
37385         * tests/test-gc.c (main): Remove unused variables.
37386         * tests/test-read-file.c: Include stdlib.h, for 'free'.
37387
37388 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
37389
37390         * modules/inttostr (License): Change to LGPL.
37391
37392 2006-11-14  Eric Blake  <ebb9@byu.net>
37393
37394         * modules/tempname (License): Change to LGPL.
37395
37396 2006-11-14  Eric Blake  <ebb9@byu.net>
37397
37398         * doc/functions.texi (Function Portability): *printf functions on
37399         Cygwin now understand all POSIX size specifiers.
37400
37401 2006-11-14  Bruno Haible  <bruno@clisp.org>
37402
37403         * modules/c-ctype (License): Change to LGPL.
37404
37405 2006-11-12  Bruno Haible  <bruno@clisp.org>
37406
37407         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
37408         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
37409         for GNOME libraries, for which the include files are installed in
37410         subdirectories of $prefix/include.
37411
37412 2006-11-12  Bruno Haible  <bruno@clisp.org>
37413
37414         * m4/lib-link.m4: Require at least autoconf-2.54.
37415         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
37416         name to underscores for the --with option.
37417
37418 2006-11-13  Bruno Haible  <bruno@clisp.org>
37419
37420         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
37421         the tests directory.
37422         Reported by Ralf Wildenhues.
37423
37424 2006-11-13  Bruno Haible  <bruno@clisp.org>
37425
37426         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
37427         (func_emit_initmacro_end): Undo the override here.
37428         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
37429         Works around the famous automake error in coreutils.
37430
37431 2006-11-13  Eric Blake  <ebb9@byu.net>
37432
37433         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
37434         element, not its node.
37435
37436 2006-11-12  Bruno Haible  <bruno@clisp.org>
37437
37438         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
37439         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
37440
37441 2006-11-12  Bruno Haible  <bruno@clisp.org>
37442
37443         * gnulib-tool: New option --local-symlink.
37444         (func_usage): Document it.
37445         (lsymbolic): New variable.
37446         (func_import, func_create_testdir): If --symlink was not specified,
37447         test whether --local-symlink was specified and the file comes from
37448         the local_gnulib_dir.
37449
37450 2006-11-12  Bruno Haible  <bruno@clisp.org>
37451
37452         * gnulib-tool (func_ln): New function.
37453         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
37454
37455 2006-11-12  Bruno Haible  <bruno@clisp.org>
37456
37457         Finish support for source files in subdirectories.
37458         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
37459         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
37460         AUTOMAKE_OPTIONS.
37461         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
37462
37463 2006-11-12  Bruno Haible  <bruno@clisp.org>
37464
37465         * gnulib-tool (func_get_automake_snippet): Synthesize also an
37466         EXTRA_lib_SOURCES augmentation.
37467         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
37468
37469 2006-11-12  Jim Meyering  <jim@meyering.net>
37470
37471         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
37472         file descriptors.  This also averts a failure on systems with
37473         native openat support when a traversed directory lacks "x" access.
37474         * lib/fts_.h: Include "i-ring.h"
37475         (struct FTS) [fts_fd_ring]: New member.
37476         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
37477         (FCHDIR): Add parentheses.
37478         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
37479         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
37480         When descending, rather than simply closing the previous
37481         fts_cwd_fd value, push that file descriptor onto the ring.
37482         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
37483         (fts_open): Initialize the new fd_ring member.
37484         (fts_close): Clear the ring.
37485         (fts_safe_changedir): When possible, use our new fd_ring to skip
37486         the diropen and fstat and dev/ino comparison that would normally
37487         accompany a virtual `chdir ("..")'.
37488
37489         * modules/fts (Depends-on): Add i-ring.
37490         * modules/i-ring: New module.
37491         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
37492         * m4/i-ring.m4: New file.
37493
37494 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37495
37496         * gnulib-tool (func_create_testdir): Fix replacement of
37497         `build-aux' in configure.ac.  Run autotools in gltests
37498         subdirectory.
37499         (func_create_testdir, func_create_megatestdir, test): There is
37500         no need for '--force' in most autotool invocations in a new
37501         tree.  Actually fail the whole test if any of the tools, or the
37502         configure or make stages fail.
37503
37504         Sync from Automake.
37505         * build-aux/gnupload: Revert last change.  Add pointer to upload
37506         instructions of the GNU Maintenance Instructions.
37507         Suggestion by Karl Berry.
37508
37509 2006-11-10  Jim Meyering  <jim@meyering.net>
37510
37511         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
37512
37513 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37514
37515         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
37516         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
37517         (bind_textdomain_codeset) [! ENABLE_NLS]:
37518         Evaluate all the arguments.  That way, callers get compatible behavior
37519         if the arguments have side effects.  Also, it avoids some GCC
37520         diagnostics in some cases; Joel E. Denny reported problems when Bison
37521         was configured with --enable-gcc-warnigs.
37522
37523 2006-11-10  Jim Meyering  <jim@meyering.net>
37524
37525         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
37526         relevant options in CFLAGS (like -O, -fno-inline) are taken into
37527         account.
37528
37529 2006-11-10  Jim Meyering  <jim@meyering.net>
37530
37531         * modules/inline: New file/module.
37532         * modules/xalloc (Files): Remove m4/inline.m4.
37533         (Depends-on): Add inline, instead.
37534         * modules/oset: Likewise.
37535         * modules/list: Likewise.
37536
37537 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37538
37539         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
37540         Problem reported by Matthew Woehlke.
37541
37542 2006-11-09  Bruno Haible  <bruno@clisp.org>
37543
37544         * lib/tempname.c (gen_tempname): Remove variant that invokes
37545         __gen_tempname.
37546         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
37547         __gen_tempname.
37548
37549 2006-11-08  Bruno Haible  <bruno@clisp.org>
37550
37551         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
37552         to 'yes' instead of 'cross-compiling'.
37553
37554 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
37555
37556         * lib/quotearg.h (quotearg_free): New decl.
37557         * lib/quotearg.c (quotearg_free): New function.
37558         (slot0, nslots, slotvec0, slotvec):
37559         Now file-scope so that quotearg_free can get at them.
37560
37561 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37562
37563         Sync from Automake.
37564         * build-aux/gnupload: Add missing 'gnu' to example URL.
37565         Report by Karl Berry.
37566
37567 2006-11-08  Bruno Haible  <bruno@clisp.org>
37568
37569         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
37570         Suggested by Paul Eggert.
37571
37572 2006-11-08  Jim Meyering  <jim@meyering.net>
37573
37574         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
37575         It's already included if !_LIBC.
37576         (fts_safe_changedir): Add a comment.
37577
37578 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37579
37580         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
37581         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
37582         Matthew Woehlke.
37583
37584         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
37585         definitions up, to avoid colliding with change below.
37586         (static_inline) [HAVE_INLINE]: New macro.
37587         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
37588         Provide extern decls when !HAVE_INLINE.  Do not define unless
37589         static_inline is defined, either by us or by xmalloc.c.  Use
37590         static_inline rather than static inline.
37591         (XCALLOC): Optimize sizeof(T) = 1 case.
37592         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
37593
37594 2006-11-07  Bruno Haible  <bruno@clisp.org>
37595
37596         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
37597         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
37598         AC_C_INLINE.
37599         * modules/xalloc (Files): Add m4/inline.m4.
37600
37601 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37602
37603         * README: Fix typo.
37604         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
37605         (Miscellanous Notes): ...from this.
37606
37607 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37608
37609         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
37610         Mention that offsetof should be used instead of sizeof.
37611         From Bruno Haible.
37612
37613 2006-11-07  Bruno Haible  <bruno@clisp.org>
37614
37615         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
37616
37617 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
37618
37619         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
37620         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
37621         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
37622         (gl_tree_add_before, gl_tree_add_after):
37623         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
37624         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
37625         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37626         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
37627         (gl_linked_add_after, gl_linked_add_at): Likewise.
37628         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
37629         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
37630         (gl_tree_add_before, gl_tree_add_after): Likewise.
37631         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
37632         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
37633         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37634
37635 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37636
37637         * lib/gl_oset.h: Use C comment style, not C++ comment style.
37638
37639 2006-11-06  Bruno Haible  <bruno@clisp.org>
37640
37641         * m4/inline.m4: New file.
37642         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
37643         * modules/list (Files): Add m4/inline.m4.
37644         * modules/oset (Files): Likewise.
37645
37646 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
37647
37648         * lib/idcache.c: Include <stddef.h>, for offsetof.
37649         (struct userid.name): Change from char * to a flexible array member.
37650         All uses changed.
37651         * modules/idcache (Depends-on): Add flexmember.
37652
37653         * MODULES.html.sh (Core language properties): New module flexmember.
37654         * modules/flexmember, m4/flexmember.m4: New files.
37655
37656         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
37657         inline functions that are identical with the old xnmalloc_inline,
37658         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
37659         that we can avoid some unnecessary integer multiplications and
37660         divisions in the common case where the element size is known at
37661         compile time.
37662         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
37663         needed.
37664         (xnboundedmalloc): Remove.
37665         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
37666         arguments, for consistency with rest of this header.
37667         (xcharalloc): Rewrite using XNMALLOC.
37668         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
37669         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
37670         versions have been moved to lib/xalloc.h and renamed to be the
37671         non-*_inline versions.
37672         (xmalloc, xrealloc): Implement without reference to the xnmalloc
37673         and xnrealloc functions, since those functions are now inline and
37674         now call us.
37675         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
37676         renaming described above.
37677         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
37678         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
37679         captures the dependency in AC_C_INLINE.
37680
37681         New module canonicalize-lgpl, proposed by Charles Wilson in
37682         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
37683         with a few small changes afterwards.
37684         * MODULES.html.sh (File system functions): New module
37685         canonicalize-lgpl.
37686         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
37687         and canonicalize_file_name.
37688         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
37689         * modules/canonicalize-lgpl: New files.
37690
37691 2006-11-05  Bruno Haible  <bruno@clisp.org>
37692
37693         * gnulib-tool (func_import, func_create_testdir): Create directories
37694         also for files in subdirectories of lib/.
37695
37696 2006-11-05  Bruno Haible  <bruno@clisp.org>
37697
37698         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
37699         ANSI C compliant.
37700
37701 2006-11-03  Bruno Haible  <bruno@clisp.org>
37702
37703         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
37704         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
37705         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
37706         (xnboundedmalloc): New inline function.
37707         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
37708         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
37709         xmalloc.
37710         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
37711         xmalloc.
37712         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
37713         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
37714         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
37715         xmalloc.
37716         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
37717         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
37718         xmalloc.
37719         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
37720         gl_tree_add_after): Use XMALLOC instead of xmalloc.
37721         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
37722         xmalloc.
37723         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
37724         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
37725         gl_tree_add_after): Use XMALLOC instead of xmalloc.
37726         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
37727         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
37728         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
37729         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
37730
37731 2006-11-03  Bruno Haible  <bruno@clisp.org>
37732
37733         * lib/c-ctype.h [C++]: Define functions without name mangling.
37734         * lib/fwriteerror.h [C++]: Likewise.
37735         * lib/gcd.h [C++]: Likewise.
37736         * lib/linebreak.h [C++]: Likewise.
37737
37738 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
37739
37740         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
37741         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
37742         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
37743         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
37744         Check for functions and headers just once.
37745         Check for declaration of canonicalize_file_name.
37746         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
37747
37748 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
37749
37750         * gnulib-tool (func_import): Fix typo in actioncmd.
37751
37752 2006-11-02  Bruno Haible  <bruno@clisp.org>
37753
37754         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
37755         newline sequence in the Makefile.am snippet as a space, like "make"
37756         does.
37757         Reported by Roger Persson <perrog@gmail.com>.
37758
37759 2006-11-01  Bruno Haible  <bruno@clisp.org>
37760
37761         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
37762         already declared in <string.h>.
37763         * lib/strcase.h (strncasecmp): Don't declare it if yes.
37764
37765 2006-11-01  Bruno Haible  <bruno@clisp.org>
37766
37767         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
37768         * lib/strcase.h: Include <string.h>.
37769         (strcasecmp): Define to rpl_strcasecmp here.
37770
37771 2006-11-01  Bruno Haible  <bruno@clisp.org>
37772
37773         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
37774
37775 2006-11-01  Eric Blake  <ebb9@byu.net>
37776
37777         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
37778
37779         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
37780
37781 2006-10-29  Bruno Haible  <bruno@clisp.org>
37782
37783         Make it compile in C++ mode.
37784         * lib/full-write.c (full_rw): Add a cast.
37785
37786 2006-11-01  Bruno Haible  <bruno@clisp.org>
37787
37788         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
37789         be POSIX compliant.
37790         Reported by Roger Persson <perrog@gmail.com>.
37791
37792 2006-11-01  Eric Blake  <ebb9@byu.net>
37793
37794         * lib/getopt_.h: Fix comments.
37795
37796 2006-10-31  Eric Blake  <ebb9@byu.net>
37797
37798         * modules/tmpdir (Depends-on): Add sys_stat.
37799         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
37800         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
37801         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
37802         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
37803         tempname.
37804
37805 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
37806
37807         Avoid some C++ diagnostics reported by Bruno Haible.
37808         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
37809         xmalloc.
37810         (quotearg_alloc): Use xcharalloc rather than xmalloc.
37811         (struct slotvec): Move to top level.
37812         (quotearg_n_options): Rewrite to avoid xmalloc.
37813         * lib/xalloc.h (xcharalloc): New function.
37814         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
37815         [defined __cplusplus]: Add function template that provides result
37816         type propagation.  This part of the change is from Bruno Haible.
37817
37818 2006-10-29  Bruno Haible  <bruno@clisp.org>
37819
37820         Make it compile in C++ mode.
37821         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
37822         * lib/strnlen1.c (strnlen1): Cast memchr result.
37823         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
37824         * lib/clean-temp.c (string_equals, string_hash): Add casts.
37825         (create_temp_dir): Rename local variable 'template'.
37826         (compile_csharp_using_sscli): Add cast.
37827         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
37828         * lib/findprog.c (find_in_path): Likewise.
37829         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
37830         * lib/wait-process.c (register_slave_subprocess): Likewise.
37831
37832 2006-10-22  Bruno Haible  <bruno@clisp.org>
37833
37834         * modules/tsearch: New file.
37835         * lib/tsearch.h: New file.
37836         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
37837         * m4/tsearch.m4: New file.
37838         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
37839
37840 2006-10-29  Eric Blake  <ebb9@byu.net>
37841
37842         * lib/arcfour.c: Assume config.h.
37843         * lib/arctwo.c: Likewise.
37844         * lib/base64.c: Likewise.
37845         * lib/check-version.c: Likewise.
37846         * lib/crc.c: Likewise.
37847         * lib/des.c: Likewise.
37848         * lib/gc-gnulib.c: Likewise.
37849         * lib/gc-libgcrypt.c: Likewise.
37850         * lib/gc-pbkdf2-sha1.c: Likewise.
37851         * lib/getaddrinfo.c: Likewise.
37852         * lib/getdelim.c: Likewise.
37853         * lib/getline.c: Likewise.
37854         * lib/hmac-md5.c: Likewise.
37855         * lib/hmac-sha1.c: Likewise.
37856         * lib/iconvme.c: Likewise.
37857         * lib/md2.c: Likewise.
37858         * lib/md4.c: Likewise.
37859         * lib/memxor.c: Likewise.
37860         * lib/read-file.c: Likewise.
37861         * lib/readline.c: Likewise.
37862         * lib/rijndael-alg-fst.c: Likewise.
37863         * lib/rijndael-api-fst.c: Likewise.
37864         * lib/xgetdomainname.c: Likewise.
37865
37866 2006-10-28  Eric Blake  <ebb9@byu.net>
37867
37868         * lib/xstrndup.c: Assume config.h.
37869
37870 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
37871
37872         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
37873         stat-macros.h is now for our own macros, whereas stat_h is for
37874         macros in the <sys/stat.h> name space.
37875         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
37876         (STAT_MACROS_H): Remove.
37877         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
37878         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
37879         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
37880         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
37881         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
37882         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
37883         Move these macros to ...
37884         * lib/stat_.h: here.  Don't include stat-macros.h.
37885         * lib/canonicalize.c: Don't include stat-macros.h.
37886         * lib/chown.c: Likewise.
37887         * lib/euidaccess.c: Likewise.
37888         * lib/file-type.c: Likewise.
37889         * lib/filemode.c: Likewise.
37890         * lib/glob.c: Likewise.
37891         * lib/isapipe.c: Likewise.
37892         * lib/lchown.c: Likewise.
37893         * lib/lstat.c: Likewise.
37894         * lib/mkdir-p.c: Likewise.
37895         * lib/rmdir.c: Likewise.
37896         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
37897         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
37898         unless mkdir isn't declared, to speed up 'configure'.
37899         Always create sys/stat.h, since it's unlikely any real sys/stat.h
37900         would define all the S_* symbols.
37901         * modules/canonicalize (Depends-on):
37902         Depend on sys_stat, not stat-macros.
37903         * modules/chown: Likewise.
37904         * modules/euidaccess: Likewise.
37905         * modules/filemode: Likewise.
37906         * modules/file-type: Likewise.
37907         * modules/glob: Likewise.
37908         * modules/isapipe: Likewise.
37909         * modules/lchown: Likewise.
37910         * modules/lstat: Likewise.
37911         * modules/mkancesdirs: Likewise.
37912         * modules/rmdir: Likewise.
37913         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
37914         * modules/modechange: Likewise.
37915         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
37916         (configure.ac): Remove gl_STAT_MACROS.
37917         * modules/sys_stat (Depends-on): Remove stat-macros.
37918
37919 2006-10-27  Bruno Haible  <bruno@clisp.org>
37920
37921         * m4/signed.m4: Remove file.
37922         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
37923         invocation.
37924         * modules/vasnprintf (Files): Remove m4/signed.m4.
37925
37926 2006-10-27  Bruno Haible  <bruno@clisp.org>
37927
37928         Update to GNU gettext 0.16.
37929         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
37930         m4/inttypes-h.m4, m4/signed.m4.
37931         * m4/gettext.m4: Update to GNU gettext 0.16.
37932         * m4/intl.m4: New file, from GNU gettext.
37933         * m4/intldir.m4: New file, from GNU gettext.
37934         * config/srclist.txt: Update
37935
37936 2006-10-27  Eric Blake  <ebb9@byu.net>
37937
37938         * MODULES.html.sh: Document tempname.
37939         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
37940         dependencies.
37941         (Files): Move lib/tempname.c...
37942         * modules/tempname: ...to this new module.
37943         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
37944         (gl_PREREQ_TEMPNAME): Move...
37945         * m4/tempname.m4: ...to this new file.
37946         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
37947         * modules/sys_stat (Depends-on): Add stat-macros.
37948         * lib/stat_.h (includes): Pick up stat macros.
37949         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
37950         if stat macros are broken.
37951         * lib/tempname.c (includes): No need to include "stat-macros.h".
37952         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
37953         (direxists, __path_search) [!_LIBC]: Don't compile these in
37954         gnulib; the tmpdir module covers that.
37955         * lib/tempname.h: New file.
37956
37957 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
37958
37959         * COPYING: Explain how gnulib-tool converts licence headers.
37960         Almost all wording by Eric Blake.
37961
37962 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
37963
37964         * lib/mbchar.h (is_basic_table): Make read-only.
37965         * lib/mbchar.c (is_basic_table): Likewise.
37966         Reported by John Darrington.
37967
37968 2006-10-25  Bruno Haible  <bruno@clisp.org>
37969
37970         * lib/progname.h (set_program_name): Undefine before defining.
37971
37972 2006-10-25  Bruno Haible  <bruno@clisp.org>
37973
37974         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
37975         false for non-gcc C++ compilers.
37976         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37977
37978 2006-10-24  Bruno Haible  <bruno@clisp.org>
37979
37980         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
37981         iconv implementations like Irix iconv.
37982
37983 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
37984
37985         * modules/vararrays: New file.
37986         * m4/vararrays.m4: New file, taken from diffutils.
37987         * MODULES.html.sh: New module vararrays.
37988
37989 2006-10-24  Karl Berry  <karl@gnu.org>
37990
37991         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
37992         Don't call GNU Unix.
37993
37994 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37995
37996         * users.txt: Add Libtool.
37997
37998         Sync from Libtool:
37999
38000         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38001
38002         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
38003         to gnulib's policy of including config.h unconditionally.
38004
38005 2006-10-24  Bruno Haible  <bruno@clisp.org>
38006
38007         * modules/wcwidth (Files): Add m4/wint_t.m4.
38008         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
38009         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
38010
38011 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
38012
38013         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
38014         to pacify GCC with some -W flags enabled.  Problem reported by
38015         Bruno Haible.
38016
38017 2006-10-24  Jim Meyering  <jim@meyering.net>
38018
38019         * MODULES.html.sh: Remove uinttostr.  It's not a module.
38020         Reported by Karl Berry.
38021
38022 2006-10-23  Bruno Haible  <bruno@clisp.org>
38023
38024         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
38025
38026 2006-10-24  Bruno Haible  <bruno@clisp.org>
38027
38028         * lib/gl_list.h: Use C comment style, not C++ comment style.
38029
38030 2006-10-23  Eric Blake  <ebb9@byu.net>
38031
38032         * lib/getaddrinfo.c (includes): Add missing include.
38033
38034 2006-10-23  Bruno Haible  <bruno@clisp.org>
38035             Paul Eggert  <eggert@cs.ucla.edu>
38036
38037         Ability to rename obstack_free.
38038         * lib/obstack.h (__obstack_free): New macro. Declare instead of
38039         obstack_free.
38040         (obstack_free): Invoke the __obstack_free macro.
38041         * lib/obstack.c (obstack_free): Use __obstack_free macro.
38042
38043 2006-10-23  Bruno Haible  <bruno@clisp.org>
38044             Paul Eggert  <eggert@cs.ucla.edu>
38045
38046         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
38047         __argc, __argv from the declaration. (They are defined as macros on
38048         mingw.)
38049
38050 2006-10-22  Bruno Haible  <bruno@clisp.org>
38051
38052         * doc/gnulib-intro.texi: New file.
38053         * doc/gnulib.texi: Include it.
38054
38055 2006-10-21  Bruno Haible  <bruno@clisp.org>
38056
38057         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
38058         "Introduction", "Miscellanous Notes", "Particular Modules".
38059
38060 2006-10-21  Bruno Haible  <bruno@clisp.org>
38061
38062         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38063         Change mostlyclean-local rule to avoid sh syntax error from bash
38064         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
38065
38066 2006-10-23  Jim Meyering  <jim@meyering.net>
38067
38068         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
38069         in place of snprintf.
38070
38071         * modules/inttostr (Files): Add lib/uinttostr.c.
38072         * lib/uinttostr.c (inttostr): New file/function.
38073         * lib/inttostr.h (uinttostr): Declare.
38074         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
38075         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
38076         Add uinttostr.
38077         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
38078
38079 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
38080
38081         * lib/canonicalize.c (ELOOP): Define if not already defined.
38082         Problem reported by Bruno Haible in
38083         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
38084
38085 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
38086
38087         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
38088         Problem reported by Perry Smith and Ville Laurikari.
38089
38090         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
38091         uses.
38092
38093 2006-10-19  Bruno Haible  <bruno@clisp.org>
38094
38095         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
38096         for mingw.
38097
38098 2006-10-19  Bruno Haible  <bruno@clisp.org>
38099
38100         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
38101         Needed for mingw.
38102
38103 2006-10-19  Bruno Haible  <bruno@clisp.org>
38104
38105         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
38106
38107 2006-10-19  Bruno Haible  <bruno@clisp.org>
38108
38109         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
38110         it.
38111
38112 2006-10-19  Bruno Haible  <bruno@clisp.org>
38113
38114         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
38115         invocation.
38116
38117 2006-10-19  Bruno Haible  <bruno@clisp.org>
38118
38119         * gnulib-tool (func_create_testdir): Don't include ftruncate and
38120         mountlist by default.
38121
38122 2006-10-16  Bruno Haible  <bruno@clisp.org>
38123
38124         * lib/c-strstr.c: Include c-strstr.h.
38125
38126 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
38127
38128         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
38129         in a slash.
38130
38131 2006-10-18  Bruno Haible  <bruno@clisp.org>
38132
38133         * lib/lock.h [C++]: Wrap definitions in extern "C".
38134
38135 2006-10-18  Bruno Haible  <bruno@clisp.org>
38136
38137         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
38138         gl_LIBOBJS list.
38139
38140 2006-10-18  Bruno Haible  <bruno@clisp.org>
38141
38142         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
38143
38144 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
38145
38146         * lib/xstrtol.h: Include gettext.h.
38147         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
38148         Problem reported by Eric Blake.
38149         * modules/xstrtol (Depends-on): Add gettext-h.
38150
38151 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
38152
38153         * lib/strftime.c (advance): New macro.
38154         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
38155         incomplete type, so you can't add 0 to it.  Problem and patch
38156         reported by Eelco Dolstra for dietlibc.
38157
38158 2006-10-18  Jim Meyering  <jim@meyering.net>
38159
38160         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
38161         type for a local, and rename it: s/up/user_proc/.
38162
38163 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
38164
38165         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
38166         READ_UTMP_USER_PROCESS.
38167         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
38168
38169 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
38170
38171         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
38172         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
38173
38174 2006-10-17  Eric Blake  <ebb9@byu.net>
38175
38176         * lib/sigprocmask.c (sigprocmask): Fix typo.
38177
38178         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
38179
38180         * modules/clean-temp (Makefile.am): Don't add to make output...
38181         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
38182         config.h.
38183
38184 2006-10-17  Bruno Haible  <bruno@clisp.org>
38185
38186         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
38187         differently if DEFAULT_TEXT_DOMAIN is set.
38188
38189 2006-10-16  Bruno Haible  <bruno@clisp.org>
38190
38191         * lib/clean-temp.c: Include fwriteerror.h.
38192
38193 2006-10-16  Bruno Haible  <bruno@clisp.org>
38194
38195         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
38196
38197 2006-10-16  Bruno Haible  <bruno@clisp.org>
38198
38199         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
38200         * lib/sigprocmask.h: Include <sys/types.h>.
38201         (sigset_t): Use the system's definition if present.
38202
38203 2006-10-17  Eric Blake  <ebb9@byu.net>
38204
38205         * lib/xvasprintf.c (includes): Assume config.h.
38206         * lib/xasprintf.c (includes): Likewise.
38207
38208 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38209
38210         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
38211         at least as wide as intmax_t.
38212
38213 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
38214
38215         (Imported from Automake.)
38216         * build-aux/gnupload: Update to version 1.1 of directive file.
38217
38218 2006-10-16  Eric Blake  <ebb9@byu.net>
38219
38220         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
38221         match Automake 1.10a.
38222
38223 2006-10-14  Bruno Haible  <bruno@clisp.org>
38224
38225         * modules/sigprocmask: New file.
38226         * lib/sigprocmask.h: New file.
38227         * lib/sigprocmask.c: New file.
38228         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
38229         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
38230         request sigprocmask.o.
38231         (gl_PREREQ_SIGPROCMASK): New macro.
38232         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
38233         (Depends-on): Add sigprocmask.
38234         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
38235         gt_SIGNALBLOCKING. Test for 'raise' only once.
38236         * lib/fatal-signal.c: Include sigprocmask.h.
38237         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
38238         unblock_fatal_signals): Define always.
38239         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38240         sigprocmask.
38241
38242 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
38243
38244         Sync from Automake.
38245         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
38246         which incorrectly sets the mode of an existing destination
38247         directory.  In some cases the unpatched install-sh could do the
38248         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
38249         system.  We hope this is rare in practice, but it's clearly worth
38250         fixing.  Problem reported by Alex Unleashed in
38251         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
38252         Also, don't bother to check for -m bugs unless we're using -m;
38253         suggested by Stepan Kasal.
38254
38255 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38256
38257         Sync from Automake.
38258         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
38259         `-c' flag, so they appear at the same position as in %FASTDEP%
38260         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
38261         which ignores unknown options only after the first non-option.
38262         Bug report against M4 by Nelson H. F. Beebe.
38263
38264 2006-10-13  Jim Meyering  <jim@meyering.net>
38265
38266         Fix a bug in yesterday's change.
38267         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
38268         p->fts_statp->st_dev would be used uninitialized.
38269         Ensures that we always call fts_stat on the very first entry.
38270         Miklos Szeredi reported that find -xdev stopped working.
38271
38272 2006-10-12  Bruno Haible  <bruno@clisp.org>
38273
38274         * gnulib-tool (func_get_automake_snippet): Append an automatically
38275         computed EXTRA_DIST augmentation.
38276         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
38277         * modules/alloca-opt (Makefile.am): Likewise.
38278         * modules/allocsa (Makefile.am): Likewise.
38279         * modules/arcfour (Makefile.am): Likewise.
38280         * modules/arctwo (Makefile.am): Likewise.
38281         * modules/argmatch (Makefile.am): Likewise.
38282         * modules/argz (Makefile.am): Likewise.
38283         * modules/atexit (Makefile.am): Likewise.
38284         * modules/backupfile (Makefile.am): Likewise.
38285         * modules/byteswap (Makefile.am): Likewise.
38286         * modules/c-strtod (Makefile.am): Likewise.
38287         * modules/c-strtold (Makefile.am): Likewise.
38288         * modules/calloc (Makefile.am): Likewise.
38289         * modules/canon-host (Makefile.am): Likewise.
38290         * modules/canonicalize (Makefile.am): Likewise.
38291         * modules/chdir-long (Makefile.am): Likewise.
38292         * modules/chdir-safer (Makefile.am): Likewise.
38293         * modules/check-version (Makefile.am): Likewise.
38294         * modules/chown (Makefile.am): Likewise.
38295         * modules/cloexec (Makefile.am): Likewise.
38296         * modules/close-stream (Makefile.am): Likewise.
38297         * modules/closeout (Makefile.am): Likewise.
38298         * modules/crc (Makefile.am): Likewise.
38299         * modules/csharpexec (Makefile.am): Likewise.
38300         * modules/cycle-check (Makefile.am): Likewise.
38301         * modules/des (Makefile.am): Likewise.
38302         * modules/dev-ino (Makefile.am): Likewise.
38303         * modules/dirfd (Makefile.am): Likewise.
38304         * modules/dirname (Makefile.am): Likewise.
38305         * modules/dup2 (Makefile.am): Likewise.
38306         * modules/eealloc (Makefile.am): Likewise.
38307         * modules/error (Makefile.am): Likewise.
38308         * modules/euidaccess (Makefile.am): Likewise.
38309         * modules/exclude (Makefile.am): Likewise.
38310         * modules/exitfail (Makefile.am): Likewise.
38311         * modules/fcntl-safer (Makefile.am): Likewise.
38312         * modules/fcntl (Makefile.am): Likewise.
38313         * modules/file-type (Makefile.am): Likewise.
38314         * modules/fileblocks (Makefile.am): Likewise.
38315         * modules/filemode (Makefile.am): Likewise.
38316         * modules/filenamecat (Makefile.am): Likewise.
38317         * modules/fnmatch (Makefile.am): Likewise.
38318         * modules/fopen-safer (Makefile.am): Likewise.
38319         * modules/fpending (Makefile.am): Likewise.
38320         * modules/fprintftime (Makefile.am): Likewise.
38321         * modules/free (Makefile.am): Likewise.
38322         * modules/fsusage (Makefile.am): Likewise.
38323         * modules/ftruncate (Makefile.am): Likewise.
38324         * modules/fts (Makefile.am): Likewise.
38325         * modules/gc-arcfour (Makefile.am): Likewise.
38326         * modules/gc-des (Makefile.am): Likewise.
38327         * modules/gc-hmac-md5 (Makefile.am): Likewise.
38328         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
38329         * modules/gc-md4 (Makefile.am): Likewise.
38330         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
38331         * modules/gc-sha1 (Makefile.am): Likewise.
38332         * modules/gc (Makefile.am): Likewise.
38333         * modules/getaddrinfo (Makefile.am): Likewise.
38334         * modules/getcwd (Makefile.am): Likewise.
38335         * modules/getdelim (Makefile.am): Likewise.
38336         * modules/getdomainname (Makefile.am): Likewise.
38337         * modules/getgroups (Makefile.am): Likewise.
38338         * modules/gethostname (Makefile.am): Likewise.
38339         * modules/gethrxtime (Makefile.am): Likewise.
38340         * modules/getline (Makefile.am): Likewise.
38341         * modules/getloadavg (Makefile.am): Likewise.
38342         * modules/getlogin_r (Makefile.am): Likewise.
38343         * modules/getndelim2 (Makefile.am): Likewise.
38344         * modules/getopt (Makefile.am): Likewise.
38345         * modules/getpagesize (Makefile.am): Likewise.
38346         * modules/getpass-gnu (Makefile.am): Likewise.
38347         * modules/getpass (Makefile.am): Likewise.
38348         * modules/getsubopt (Makefile.am): Likewise.
38349         * modules/gettime (Makefile.am): Likewise.
38350         * modules/gettimeofday (Makefile.am): Likewise.
38351         * modules/getugroups (Makefile.am): Likewise.
38352         * modules/getusershell (Makefile.am): Likewise.
38353         * modules/glob (Makefile.am): Likewise.
38354         * modules/group-member (Makefile.am): Likewise.
38355         * modules/hard-locale (Makefile.am): Likewise.
38356         * modules/hash (Makefile.am): Likewise.
38357         * modules/hmac-md5 (Makefile.am): Likewise.
38358         * modules/hmac-sha1 (Makefile.am): Likewise.
38359         * modules/human (Makefile.am): Likewise.
38360         * modules/idcache (Makefile.am): Likewise.
38361         * modules/imaxabs (Makefile.am): Likewise.
38362         * modules/imaxdiv (Makefile.am): Likewise.
38363         * modules/inet_ntop (Makefile.am): Likewise.
38364         * modules/inet_pton (Makefile.am): Likewise.
38365         * modules/intprops (Makefile.am): Likewise.
38366         * modules/inttostr (Makefile.am): Likewise.
38367         * modules/inttypes (Makefile.am): Likewise.
38368         * modules/isapipe (Makefile.am): Likewise.
38369         * modules/javaversion (Makefile.am): Likewise.
38370         * modules/lchmod (Makefile.am): Likewise.
38371         * modules/lchown (Makefile.am): Likewise.
38372         * modules/localcharset (Makefile.am): Likewise.
38373         * modules/long-options (Makefile.am): Likewise.
38374         * modules/lstat (Makefile.am): Likewise.
38375         * modules/malloc (Makefile.am): Likewise.
38376         * modules/mathl (Makefile.am): Likewise.
38377         * modules/mbchar (Makefile.am): Likewise.
38378         * modules/md2 (Makefile.am): Likewise.
38379         * modules/md4 (Makefile.am): Likewise.
38380         * modules/md5 (Makefile.am): Likewise.
38381         * modules/memcasecmp (Makefile.am): Likewise.
38382         * modules/memchr (Makefile.am): Likewise.
38383         * modules/memcmp (Makefile.am): Likewise.
38384         * modules/memcoll (Makefile.am): Likewise.
38385         * modules/memcpy (Makefile.am): Likewise.
38386         * modules/memmem (Makefile.am): Likewise.
38387         * modules/memmove (Makefile.am): Likewise.
38388         * modules/mempcpy (Makefile.am): Likewise.
38389         * modules/memrchr (Makefile.am): Likewise.
38390         * modules/memset (Makefile.am): Likewise.
38391         * modules/memxor (Makefile.am): Likewise.
38392         * modules/mkancesdirs (Makefile.am): Likewise.
38393         * modules/mkdir-p (Makefile.am): Likewise.
38394         * modules/mkdir (Makefile.am): Likewise.
38395         * modules/mkdtemp (Makefile.am): Likewise.
38396         * modules/mkstemp (Makefile.am): Likewise.
38397         * modules/mktime (Makefile.am): Likewise.
38398         * modules/modechange (Makefile.am): Likewise.
38399         * modules/mountlist (Makefile.am): Likewise.
38400         * modules/nanosleep (Makefile.am): Likewise.
38401         * modules/obstack (Makefile.am): Likewise.
38402         * modules/openat (Makefile.am): Likewise.
38403         * modules/pagealign_alloc (Makefile.am): Likewise.
38404         * modules/pathmax (Makefile.am): Likewise.
38405         * modules/physmem (Makefile.am): Likewise.
38406         * modules/poll (Makefile.am): Likewise.
38407         * modules/posixtm (Makefile.am): Likewise.
38408         * modules/posixver (Makefile.am): Likewise.
38409         * modules/putenv (Makefile.am): Likewise.
38410         * modules/quote (Makefile.am): Likewise.
38411         * modules/quotearg (Makefile.am): Likewise.
38412         * modules/raise (Makefile.am): Likewise.
38413         * modules/read-file (Makefile.am): Likewise.
38414         * modules/readline (Makefile.am): Likewise.
38415         * modules/readlink (Makefile.am): Likewise.
38416         * modules/readtokens (Makefile.am): Likewise.
38417         * modules/readutmp (Makefile.am): Likewise.
38418         * modules/realloc (Makefile.am): Likewise.
38419         * modules/regex (Makefile.am): Likewise.
38420         * modules/rename-dest-slash (Makefile.am): Likewise.
38421         * modules/rename (Makefile.am): Likewise.
38422         * modules/rijndael (Makefile.am): Likewise.
38423         * modules/rmdir (Makefile.am): Likewise.
38424         * modules/rpmatch (Makefile.am): Likewise.
38425         * modules/safe-read (Makefile.am): Likewise.
38426         * modules/safe-write (Makefile.am): Likewise.
38427         * modules/same-inode (Makefile.am): Likewise.
38428         * modules/same (Makefile.am): Likewise.
38429         * modules/save-cwd (Makefile.am): Likewise.
38430         * modules/savedir (Makefile.am): Likewise.
38431         * modules/setenv (Makefile.am): Likewise.
38432         * modules/settime (Makefile.am): Likewise.
38433         * modules/sha1 (Makefile.am): Likewise.
38434         * modules/sig2str (Makefile.am): Likewise.
38435         * modules/snprintf (Makefile.am): Likewise.
38436         * modules/stat-macros (Makefile.am): Likewise.
38437         * modules/stat-time (Makefile.am): Likewise.
38438         * modules/stdbool (Makefile.am): Likewise.
38439         * modules/stdint (Makefile.am): Likewise.
38440         * modules/stdlib-safer (Makefile.am): Likewise.
38441         * modules/stpcpy (Makefile.am): Likewise.
38442         * modules/stpncpy (Makefile.am): Likewise.
38443         * modules/strcase (Makefile.am): Likewise.
38444         * modules/strcasestr (Makefile.am): Likewise.
38445         * modules/strchrnul (Makefile.am): Likewise.
38446         * modules/strcspn (Makefile.am): Likewise.
38447         * modules/strdup (Makefile.am): Likewise.
38448         * modules/strerror (Makefile.am): Likewise.
38449         * modules/strftime (Makefile.am): Likewise.
38450         * modules/strndup (Makefile.am): Likewise.
38451         * modules/strnlen (Makefile.am): Likewise.
38452         * modules/strpbrk (Makefile.am): Likewise.
38453         * modules/strsep (Makefile.am): Likewise.
38454         * modules/strstr (Makefile.am): Likewise.
38455         * modules/strtod (Makefile.am): Likewise.
38456         * modules/strtoimax (Makefile.am): Likewise.
38457         * modules/strtok_r (Makefile.am): Likewise.
38458         * modules/strtol (Makefile.am): Likewise.
38459         * modules/strtoll (Makefile.am): Likewise.
38460         * modules/strtoul (Makefile.am): Likewise.
38461         * modules/strtoull (Makefile.am): Likewise.
38462         * modules/strtoumax (Makefile.am): Likewise.
38463         * modules/strverscmp (Makefile.am): Likewise.
38464         * modules/sys_socket (Makefile.am): Likewise.
38465         * modules/sys_stat (Makefile.am): Likewise.
38466         * modules/sysexits (Makefile.am): Likewise.
38467         * modules/time_r (Makefile.am): Likewise.
38468         * modules/timegm (Makefile.am): Likewise.
38469         * modules/timespec (Makefile.am): Likewise.
38470         * modules/tmpfile-safer (Makefile.am): Likewise.
38471         * modules/trim (Makefile.am): Likewise.
38472         * modules/unistd-safer (Makefile.am): Likewise.
38473         * modules/unlinkdir (Makefile.am): Likewise.
38474         * modules/unlocked-io (Makefile.am): Likewise.
38475         * modules/userspec (Makefile.am): Likewise.
38476         * modules/utime (Makefile.am): Likewise.
38477         * modules/utimecmp (Makefile.am): Likewise.
38478         * modules/utimens (Makefile.am): Likewise.
38479         * modules/vasnprintf (Makefile.am): Likewise.
38480         * modules/vasprintf (Makefile.am): Likewise.
38481         * modules/vsnprintf (Makefile.am): Likewise.
38482         * modules/xalloc (Makefile.am): Likewise.
38483         * modules/xgetcwd (Makefile.am): Likewise.
38484         * modules/xnanosleep (Makefile.am): Likewise.
38485         * modules/xreadlink (Makefile.am): Likewise.
38486         * modules/xstrtod (Makefile.am): Likewise.
38487         * modules/xstrtol (Makefile.am): Likewise.
38488         * modules/xstrtold (Makefile.am): Likewise.
38489         * modules/yesno (Makefile.am): Likewise.
38490         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
38491
38492 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38493
38494         * modules/error (Makefile.am): Distribute files through
38495         EXTRA_DIST, not lib_SOURCES.
38496
38497 2006-10-12  Eric Blake  <ebb9@byu.net>
38498
38499         * modules/error (Makefile.am): Distribute files in /lib.
38500         * modules/obstack (Makefile.am): Likewise.
38501
38502 2006-10-12  Bruno Haible  <bruno@clisp.org>
38503
38504         * modules/acl (Makefile.am): Distribute all files in lib/ through
38505         EXTRA_DIST.
38506         * modules/arcfour (Makefile.am): Likewise.
38507         * modules/arctwo (Makefile.am): Likewise.
38508         * modules/argmatch (Makefile.am): Likewise.
38509         * modules/argz (Makefile.am): Likewise.
38510         * modules/atexit (Makefile.am): Likewise.
38511         * modules/backupfile (Makefile.am): Likewise.
38512         * modules/c-strtod (Makefile.am): Likewise.
38513         * modules/c-strtold (Makefile.am): Likewise.
38514         * modules/calloc (Makefile.am): Likewise.
38515         * modules/canon-host (Makefile.am): Likewise.
38516         * modules/canonicalize (Makefile.am): Likewise.
38517         * modules/chdir-long (Makefile.am): Likewise.
38518         * modules/chdir-safer (Makefile.am): Likewise.
38519         * modules/check-version (Makefile.am): Likewise.
38520         * modules/chown (Makefile.am): Likewise.
38521         * modules/cloexec (Makefile.am): Likewise.
38522         * modules/close-stream (Makefile.am): Likewise.
38523         * modules/closeout (Makefile.am): Likewise.
38524         * modules/crc (Makefile.am): Likewise.
38525         * modules/cycle-check (Makefile.am): Likewise.
38526         * modules/des (Makefile.am): Likewise.
38527         * modules/dirfd (Makefile.am): Likewise.
38528         * modules/dirname (Makefile.am): Likewise.
38529         * modules/dup2 (Makefile.am): Likewise.
38530         * modules/euidaccess (Makefile.am): Likewise.
38531         * modules/exclude (Makefile.am): Likewise.
38532         * modules/exitfail (Makefile.am): Likewise.
38533         * modules/fcntl-safer (Makefile.am): Likewise.
38534         * modules/file-type (Makefile.am): Likewise.
38535         * modules/fileblocks (Makefile.am): Likewise.
38536         * modules/filemode (Makefile.am): Likewise.
38537         * modules/filenamecat (Makefile.am): Likewise.
38538         * modules/fnmatch (Makefile.am): Likewise.
38539         * modules/fopen-safer (Makefile.am): Likewise.
38540         * modules/fpending (Makefile.am): Likewise.
38541         * modules/fprintftime (Makefile.am): Likewise.
38542         * modules/free (Makefile.am): Likewise.
38543         * modules/fsusage (Makefile.am): Likewise.
38544         * modules/ftruncate (Makefile.am): Likewise.
38545         * modules/fts (Makefile.am): Likewise.
38546         * modules/gc (Makefile.am): Likewise.
38547         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
38548         * modules/getaddrinfo (Makefile.am): Likewise.
38549         * modules/getcwd (Makefile.am): Likewise.
38550         * modules/getdelim (Makefile.am): Likewise.
38551         * modules/getdomainname (Makefile.am): Likewise.
38552         * modules/getgroups (Makefile.am): Likewise.
38553         * modules/gethostname (Makefile.am): Likewise.
38554         * modules/gethrxtime (Makefile.am): Likewise.
38555         * modules/getline (Makefile.am): Likewise.
38556         * modules/getloadavg (Makefile.am): Likewise.
38557         * modules/getlogin_r (Makefile.am): Likewise.
38558         * modules/getopt (Makefile.am): Likewise.
38559         * modules/getpass (Makefile.am): Likewise.
38560         * modules/getpass-gnu (Makefile.am): Likewise.
38561         * modules/getsubopt (Makefile.am): Likewise.
38562         * modules/gettime (Makefile.am): Likewise.
38563         * modules/gettimeofday (Makefile.am): Likewise.
38564         * modules/getugroups (Makefile.am): Likewise.
38565         * modules/getusershell (Makefile.am): Likewise.
38566         * modules/glob (Makefile.am): Likewise.
38567         * modules/group-member (Makefile.am): Likewise.
38568         * modules/hard-locale (Makefile.am): Likewise.
38569         * modules/hash (Makefile.am): Likewise.
38570         * modules/hmac-md5 (Makefile.am): Likewise.
38571         * modules/hmac-sha1 (Makefile.am): Likewise.
38572         * modules/human (Makefile.am): Likewise.
38573         * modules/idcache (Makefile.am): Likewise.
38574         * modules/imaxabs (Makefile.am): Likewise.
38575         * modules/imaxdiv (Makefile.am): Likewise.
38576         * modules/inet_ntop (Makefile.am): Likewise.
38577         * modules/inet_pton (Makefile.am): Likewise.
38578         * modules/inttostr (Makefile.am): Likewise.
38579         * modules/isapipe (Makefile.am): Likewise.
38580         * modules/lchown (Makefile.am): Likewise.
38581         * modules/long-options (Makefile.am): Likewise.
38582         * modules/lstat (Makefile.am): Likewise.
38583         * modules/malloc (Makefile.am): Likewise.
38584         * modules/mathl (Makefile.am): Likewise.
38585         * modules/mbchar (Makefile.am): Likewise.
38586         * modules/md2 (Makefile.am): Likewise.
38587         * modules/md4 (Makefile.am): Likewise.
38588         * modules/md5 (Makefile.am): Likewise.
38589         * modules/memcasecmp (Makefile.am): Likewise.
38590         * modules/memchr (Makefile.am): Likewise.
38591         * modules/memcmp (Makefile.am): Likewise.
38592         * modules/memcoll (Makefile.am): Likewise.
38593         * modules/memcpy (Makefile.am): Likewise.
38594         * modules/memmem (Makefile.am): Likewise.
38595         * modules/memmove (Makefile.am): Likewise.
38596         * modules/mempcpy (Makefile.am): Likewise.
38597         * modules/memrchr (Makefile.am): Likewise.
38598         * modules/memset (Makefile.am): Likewise.
38599         * modules/memxor (Makefile.am): Likewise.
38600         * modules/mkancesdirs (Makefile.am): Likewise.
38601         * modules/mkdir (Makefile.am): Likewise.
38602         * modules/mkdir-p (Makefile.am): Likewise.
38603         * modules/mkdtemp (Makefile.am): Likewise.
38604         * modules/mkstemp (Makefile.am): Likewise.
38605         * modules/mktime (Makefile.am): Likewise.
38606         * modules/modechange (Makefile.am): Likewise.
38607         * modules/mountlist (Makefile.am): Likewise.
38608         * modules/nanosleep (Makefile.am): Likewise.
38609         * modules/openat (Makefile.am): Likewise.
38610         * modules/pagealign_alloc (Makefile.am): Likewise.
38611         * modules/physmem (Makefile.am): Likewise.
38612         * modules/poll (Makefile.am): Likewise.
38613         * modules/posixtm (Makefile.am): Likewise.
38614         * modules/posixver (Makefile.am): Likewise.
38615         * modules/putenv (Makefile.am): Likewise.
38616         * modules/quote (Makefile.am): Likewise.
38617         * modules/quotearg (Makefile.am): Likewise.
38618         * modules/raise (Makefile.am): Likewise.
38619         * modules/read-file (Makefile.am): Likewise.
38620         * modules/readline (Makefile.am): Likewise.
38621         * modules/readlink (Makefile.am): Likewise.
38622         * modules/readtokens (Makefile.am): Likewise.
38623         * modules/readutmp (Makefile.am): Likewise.
38624         * modules/realloc (Makefile.am): Likewise.
38625         * modules/regex (Makefile.am): Likewise.
38626         * modules/rename (Makefile.am): Likewise.
38627         * modules/rename-dest-slash (Makefile.am): Likewise.
38628         * modules/rijndael (Makefile.am): Likewise.
38629         * modules/rmdir (Makefile.am): Likewise.
38630         * modules/rpmatch (Makefile.am): Likewise.
38631         * modules/safe-read (Makefile.am): Likewise.
38632         * modules/safe-write (Makefile.am): Likewise.
38633         * modules/same (Makefile.am): Likewise.
38634         * modules/save-cwd (Makefile.am): Likewise.
38635         * modules/savedir (Makefile.am): Likewise.
38636         * modules/setenv (Makefile.am): Likewise.
38637         * modules/settime (Makefile.am): Likewise.
38638         * modules/sha1 (Makefile.am): Likewise.
38639         * modules/sig2str (Makefile.am): Likewise.
38640         * modules/snprintf (Makefile.am): Likewise.
38641         * modules/stdlib-safer (Makefile.am): Likewise.
38642         * modules/stpcpy (Makefile.am): Likewise.
38643         * modules/stpncpy (Makefile.am): Likewise.
38644         * modules/strcase (Makefile.am): Likewise.
38645         * modules/strcasestr (Makefile.am): Likewise.
38646         * modules/strchrnul (Makefile.am): Likewise.
38647         * modules/strcspn (Makefile.am): Likewise.
38648         * modules/strdup (Makefile.am): Likewise.
38649         * modules/strerror (Makefile.am): Likewise.
38650         * modules/strftime (Makefile.am): Likewise.
38651         * modules/strndup (Makefile.am): Likewise.
38652         * modules/strnlen (Makefile.am): Likewise.
38653         * modules/strpbrk (Makefile.am): Likewise.
38654         * modules/strsep (Makefile.am): Likewise.
38655         * modules/strstr (Makefile.am): Likewise.
38656         * modules/strtod (Makefile.am): Likewise.
38657         * modules/strtoimax (Makefile.am): Likewise.
38658         * modules/strtok_r (Makefile.am): Likewise.
38659         * modules/strtol (Makefile.am): Likewise.
38660         * modules/strtoll (Makefile.am): Likewise.
38661         * modules/strtoul (Makefile.am): Likewise.
38662         * modules/strtoull (Makefile.am): Likewise.
38663         * modules/strtoumax (Makefile.am): Likewise.
38664         * modules/strverscmp (Makefile.am): Likewise.
38665         * modules/time_r (Makefile.am): Likewise.
38666         * modules/timegm (Makefile.am): Likewise.
38667         * modules/tmpfile-safer (Makefile.am): Likewise.
38668         * modules/unistd-safer (Makefile.am): Likewise.
38669         * modules/unlinkdir (Makefile.am): Likewise.
38670         * modules/userspec (Makefile.am): Likewise.
38671         * modules/utime (Makefile.am): Likewise.
38672         * modules/utimecmp (Makefile.am): Likewise.
38673         * modules/utimens (Makefile.am): Likewise.
38674         * modules/vasnprintf (Makefile.am): Likewise.
38675         * modules/vasprintf (Makefile.am): Likewise.
38676         * modules/vsnprintf (Makefile.am): Likewise.
38677         * modules/xalloc (Makefile.am): Likewise.
38678         * modules/xgetcwd (Makefile.am): Likewise.
38679         * modules/xnanosleep (Makefile.am): Likewise.
38680         * modules/xreadlink (Makefile.am): Likewise.
38681         * modules/xstrtod (Makefile.am): Likewise.
38682         * modules/xstrtol (Makefile.am): Likewise.
38683         * modules/xstrtold (Makefile.am): Likewise.
38684         * modules/yesno (Makefile.am): Likewise.
38685
38686 2006-10-12  Jim Meyering  <jim@meyering.net>
38687
38688         * m4/getloadavg.m4: Revert the change below.
38689
38690         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
38691         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
38692         fail with a symlink, which is what coreutils' ./bootstrap now
38693         creates by default.
38694
38695 2006-10-12  Bruno Haible  <bruno@clisp.org>
38696
38697         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
38698         mingw.
38699         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
38700         MSVC and mingw explicitly.
38701
38702 2006-10-11  Simon Josefsson  <jas@extundo.com>
38703             Bruno Haible  <bruno@clisp.org>
38704
38705         Add support for multiple gnulib-tool invocations in the scope of a
38706         single configure.ac file.
38707         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
38708         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
38709         with the same contents as the _LIBADD variable.
38710         (func_emit_initmacro_start, func_emit_initmacro_end,
38711         func_emit_initmacro_done): New functions.
38712         (func_import, func_create_testdir): Invoke them. Allow the identifiers
38713         gl_LIBOBJS and gl_LTLIBOBJS.
38714
38715 2006-10-11  Bruno Haible  <bruno@clisp.org>
38716
38717         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
38718         (func_create_testdir): Don't create po/Makefile.am, don't invoke
38719         autoreconf. Instead, invoke autopoint explicitly but move back the
38720         *.m4 files from gnulib.
38721
38722 2006-10-11  Bruno Haible  <bruno@clisp.org>
38723
38724         * gnulib-tool (func_usage): Make module names after --create-testdir
38725         optional.
38726         (func_create_testdir): If no module was specified, use nearly all
38727         modules.
38728
38729 2006-10-12  Jim Meyering  <jim@meyering.net>
38730
38731         Big performance improvement for fts-based tools that use FTS_NOSTAT.
38732         Avoid spurious inode-mismatch problems on non-POSIX file systems.
38733         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
38734         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
38735         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
38736         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
38737         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
38738         (fts_set_stat_required): New function.
38739         (fts_open): Defer the calls to fts_stat, if possible or requested.
38740         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
38741         into fts_stat itself.
38742         (fts_read): Perform any required (deferred) fts_stat call.
38743         (fts_build): Likewise, for the directory we're about to open and read.
38744         In the readdir loop, carefully decide whether each entry will require
38745         an eventual call to fts_stat, using dirent.d_type info if available.
38746         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
38747         a command line argument into this function.  Update all callers.
38748         Map a return value of FTS_DOT to FTS_D for a command line argument.
38749         * modules/fts (Depends-on): Add d-type.  Alphabetize.
38750         Thanks to Miklos Szeredi for his tenacity and for the initial
38751         bug report about "find" failing on a FUSE-based file system.
38752
38753         * lib/fts.c (fts_open): Use consistent indentation.
38754
38755 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38756
38757         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
38758         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
38759         reported by Jim Meyering.  All uses of cache variables renamed
38760         to match Autoconf's.
38761         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
38762         the other one.
38763
38764         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38765         Fix misspelling in diagnostic.
38766
38767 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38768
38769         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
38770         defined.  Problem reported by Matthew Woehlke.
38771
38772         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
38773         Add support for Tandem NonStop R series.
38774         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
38775         Use new macro.
38776
38777         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
38778         (has_trailing_slash): Omit size arg; all callers changed.
38779         Omit 'inline', since it doesn't help performance and we'd
38780         need to configure it.
38781         Don't count //, ///, etc. as having a trailing slash.
38782         As a side effect, this removes a C99ism reported by Matthew Woehlke.
38783         (rpl_rename_dest_slash): On failure, use rename's errno rather
38784         than (in some cases) an incorrect or junk errno.
38785         Simplify code by removing need to compute length; this does
38786         cause it to make two passes instead of one over the file name,
38787         but it's worth it.
38788
38789         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
38790         change, since Autoconf's version may no longer be appropriate now
38791         that we are using CVS Autoconf's version.  Add support for Tandem.
38792
38793 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38794             Bruno Haible  <bruno@clisp.org>
38795
38796         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
38797         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
38798         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
38799         gl_AC_TYPE_LONG_LONG.
38800
38801         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
38802         instead of HAVE_LONG_LONG.
38803         * lib/printf-args.c (printf_fetchargs): Likewise.
38804         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
38805         * lib/vasnprintf.c (VASNPRINTF): Likewise.
38806         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
38807         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
38808         gl_AC_TYPE_LONG_LONG.
38809
38810 2006-10-11  Bruno Haible  <bruno@clisp.org>
38811
38812         * m4/longlong.m4: Add comments.
38813         * m4/ulonglong.m4: Likewise.
38814
38815 2006-10-10  Bruno Haible  <bruno@clisp.org>
38816
38817         Make it possible to #define stpcpy, strdup to aliases.
38818         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
38819         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
38820
38821 2006-10-10  Bruno Haible  <bruno@clisp.org>
38822
38823         Make it possible to #define gcd to an alias.
38824         * lib/gcd.c: Include config.h.
38825
38826 2006-10-10  Bruno Haible  <bruno@clisp.org>
38827
38828         Make it possible to #define c_isascii to an alias.
38829         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
38830         defined. Undefine the macros before defining them, to avoid gcc
38831         warnings.
38832         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
38833         define NO_C_CTYPE_MACROS early.
38834
38835 2006-10-10  Bruno Haible  <bruno@clisp.org>
38836
38837         Make it possible to #define set_program_name to an alias.
38838         * lib/progname.c: Don't undefine set_program_name; instead, undefine
38839         ENABLE_RELOCATABLE early.
38840
38841 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
38842
38843         Port to Tandem NSK OSS, which has 64-bit signed int but at most
38844         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
38845         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
38846         More generally, don't assume that 64-bit signed int is available
38847         if unsigned int is, and vice versa.
38848         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
38849         unsigned symbols, not on their signed counterparts.
38850         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
38851         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
38852         (UINT64_C, UINTMAX_C):
38853         Likewise.
38854         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
38855         unsigned counterparts.
38856         (Have_long_long, Unsigned): New macros.
38857         (Int): Renamed from INT.
38858         (strtoimax): Use the new macros.
38859         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
38860         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
38861         * modules/inttypes (inttypes.h): Substitute
38862         HAVE_UNSIGNED_LONG_LONG_INT.
38863         * modules/stdint (stdint.h): Likewise.
38864         (Files): Add m4/ulonglong.m4.
38865
38866 2006-10-10  Bruno Haible  <bruno@clisp.org>
38867
38868         Fix a gcc -Wshadow warning.
38869         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
38870         to 'bucket'.
38871         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
38872         gl_linked_indexof_from_to): Likewise.
38873         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
38874         Likewise.
38875         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
38876         Likewise.
38877         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
38878         Reported by Eric Blake.
38879
38880 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
38881
38882         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
38883         for NetBSD.  Problem reported by Bruno Haible.
38884
38885 2006-10-09  Jim Meyering  <jim@meyering.net>
38886
38887         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
38888         Patch from Bruno Haible.
38889
38890 2006-10-09  Jim Meyering  <jim@meyering.net>
38891
38892         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
38893         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
38894         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
38895
38896 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38897
38898         Don't include <config.h> twice; this doesn't work in some cases,
38899         e.g., when config.h has "#define intmax_t long long int" and
38900         we include <config.h>, <inttypes.h>, <config.h> in that order.
38901         Problem reported by Matthew Woehlke in:
38902         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
38903         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
38904         * lib/fts-cycle.c: Don't include config.h.
38905         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
38906         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
38907         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
38908         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
38909         inttypes.h.
38910         * lib/xstrtoumax.c: Likewise.
38911         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
38912         __strtol and the like, so that this module is more like its siblings.
38913         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
38914         Remove; no longer needed now that we assume gnulib inttypes.h.
38915
38916 2006-10-08  Bruno Haible  <bruno@clisp.org>
38917
38918         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
38919         option.
38920
38921 2006-10-07  Jim Meyering  <jim@meyering.net>
38922
38923         * modules/inttypes (inttypes.h): Revert what seems to have been
38924         an inadvertent part of today's change: use "|", not "/" in the
38925         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
38926
38927 2006-10-07  Bruno Haible  <bruno@clisp.org>
38928
38929         * modules/sublist: New file.
38930
38931 2006-10-07  Bruno Haible  <bruno@clisp.org>
38932
38933         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
38934         * modules/argz (argz.h): Likewise.
38935         * modules/arpa_inet (arpa/inet.h): Likewise.
38936         * modules/byteswap (byteswap.h): Likewise.
38937         * modules/configmake (configmake.h): Likewise.
38938         * modules/fcntl (fcntl.h): Likewise.
38939         * modules/fnmatch (fnmatch.h): Likewise.
38940         * modules/getopt (getopt.h): Likewise.
38941         * modules/glob (glob.h): Likewise.
38942         * modules/inttypes (inttypes.h): Likewise.
38943         * modules/netinet_in (netinet/in.h): Likewise.
38944         * modules/poll (poll.h): Likewise.
38945         * modules/stdbool (stdbool.h): Likewise.
38946         * modules/stdint (stdint.h): Likewise.
38947         * modules/sys_select (sys/select.h): Likewise.
38948         * modules/sys_socket (sys/socket.h): Likewise.
38949         * modules/sys_stat (sys/stat.h): Likewise.
38950         * modules/sysexits (sysexits.h): Likewise.
38951         * modules/unistd (unistd.h): Likewise.
38952         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38953         Add a "DO NOT EDIT" comment to the generated file.
38954         (func_import): Likewise for gnulib-comp.m4.
38955
38956 2006-10-07  Bruno Haible  <bruno@clisp.org>
38957
38958         * lib/gl_sublist.h: New file.
38959         * lib/gl_sublist.c: New file.
38960
38961 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
38962
38963         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
38964         name (relative to the original working directory) and the file
38965         name component (relative to the temporary working directory).  All
38966         callers changed.
38967         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
38968         * lib/mkdir-p.c (make_dir_parents): Likewise.
38969         * lib/mkdir-p.h (make_dir_parents): Likewise.
38970
38971 2006-10-06  Eric Blake  <ebb9@byu.net>
38972
38973         Define several macros for use by the clean-temp module.
38974         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
38975         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
38976         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
38977
38978         * lib/clean-temp.h (close_stream_temp): New declaration.
38979         * lib/clean-temp.c (includes): Pull in headers according to what
38980         other modules are in use.
38981         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
38982
38983 2006-10-06  Bruno Haible  <bruno@clisp.org>
38984
38985         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
38986         instead of fopen, fwriteerror.
38987
38988 2006-10-06  Bruno Haible  <bruno@clisp.org>
38989
38990         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
38991         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
38992         int.
38993         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
38994         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
38995         Return an error indicator.
38996         Suggested by Eric Blake.
38997
38998 2006-10-06  Bruno Haible  <bruno@clisp.org>
38999
39000         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
39001         Reported by Eric Blake.
39002
39003 2006-10-06  Bruno Haible  <bruno@clisp.org>
39004
39005         * modules/closeout (Description): Mention stderr too.
39006
39007 2006-10-06  Bruno Haible  <bruno@clisp.org>
39008         and Paul Eggert  <eggert@cs.ucla.edu>
39009
39010         * lib/closeout.c (close_stdout): Also close stderr.
39011         * lib/closeout.h: Update comment.
39012
39013 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
39014
39015         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
39016         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
39017         * lib/dirchownmod.c: Include lchown.h.
39018         * lib/lchown.c: Don't include files that lchown.h now includes.
39019         Don't declare chown, since lchown.h now does that.
39020         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
39021         (lchown): Define to rpl_chown if lchown is declared but
39022         does not exist.  Declare using a prototype if lchown is not
39023         declared.  Add a copyright notice.
39024         * lib/mkstemp.h: Include <unistd.h>.
39025         * lib/openat.c: Include lchown.h.
39026
39027         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
39028         we now test for that separately.
39029         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
39030         rather than O_NOFOLLOW, when testing whether it's possible to
39031         avoid a race condition reliably.
39032         * lib/savewd.c (savewd_chdir): Likewise.
39033
39034         Remove macros that are no longer needed now that stdint.h is
39035         reliable.
39036         * lib/fsusage.c (UINTMAX_MAX): Remove.
39037         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
39038         * lib/utimecmp.c (SIZE_MAX): Remove.
39039
39040         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
39041
39042         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
39043         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
39044         O_NOATIME works.
39045
39046 2006-10-05  Bruno Haible  <bruno@clisp.org>
39047
39048         * lib/gl_list.h (gl_sortedlist_search_from_to,
39049         gl_sortedlist_indexof_from_to): New declarations.
39050         (gl_list_implementation): New fields sortedlist_search_from_to,
39051         sortedlist_indexof_from_to.
39052         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
39053         inline functions.
39054         * lib/gl_list.c (gl_sortedlist_search_from_to,
39055         gl_sortedlist_indexof_from_to): New functions.
39056         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
39057         function.
39058         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
39059         (gl_array_sortedlist_search_from_to): New function.
39060         (gl_array_list_implementation): Update.
39061         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
39062         function.
39063         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
39064         (gl_carray_sortedlist_search_from_to): New function.
39065         (gl_carray_list_implementation): Update.
39066         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
39067         gl_linked_sortedlist_indexof_from_to): New functions.
39068         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39069         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39070         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
39071         gl_tree_sortedlist_indexof_from_to): New functions.
39072         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39073         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39074         Update.
39075         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39076         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
39077         Update.
39078
39079 2006-10-05  Bruno Haible  <bruno@clisp.org>
39080
39081         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
39082         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
39083         (struct gl_list_implementation): Add fields search_from_to,
39084         indexof_from_to. Remove fields search, indexof.
39085         (gl_list_search): Use the search_from_to method.
39086         (gl_list_search_from, gl_list_search_from_to): New functions.
39087         (gl_list_indexof): Use the indexof_from_to method.
39088         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
39089         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
39090         (gl_list_search_from, gl_list_search_from_to): New functions.
39091         (gl_list_indexof): Use the indexof_from_to method.
39092         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
39093         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
39094         gl_array_indexof. Add start_index, end_index arguments.
39095         (gl_array_search_from_to): Renamed from gl_array_search. Add
39096         start_index, end_index arguments.
39097         (gl_array_remove, gl_array_list_implementation): Update.
39098         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
39099         gl_carray_indexof. Add start_index, end_index arguments.
39100         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
39101         start_index, end_index arguments.
39102         (gl_carray_remove, gl_carray_list_implementation): Update.
39103         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
39104         gl_linked_search. Add start_index, end_index arguments.
39105         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
39106         start_index, end_index arguments.
39107         (gl_linked_remove): Update.
39108         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39109         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39110         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
39111         field to 'size_t'.
39112         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
39113         gl_tree_search. Add start_index, end_index arguments.
39114         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
39115         start_index, end_index arguments.
39116         (gl_tree_remove): Update.
39117         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39118         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39119         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
39120         function.
39121         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
39122         gl_tree_search. Add start_index, end_index arguments.
39123         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
39124         start_index, end_index arguments.
39125         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39126         Update.
39127         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
39128
39129 2006-10-05  Bruno Haible  <bruno@clisp.org>
39130
39131         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
39132
39133         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
39134         fwriteerror_temp): New declarations.
39135         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
39136         (descriptors): New variable.
39137         (cleanup): First, close the descriptors.
39138         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
39139         fclose_temp, fwriteerror_temp): New functions.
39140
39141 2006-10-04  Jim Meyering  <jim@meyering.net>
39142
39143         * lib/fts.c (fts_open): Tiny comment change.
39144
39145 2006-10-04  Bruno Haible  <bruno@clisp.org>
39146
39147         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
39148         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
39149         gl_LOCK_BODY.
39150         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
39151         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
39152         gl_LOCK_EARLY_BODY.
39153         (gl_LOCK): Require gl_LOCK_BODY.
39154
39155 2006-10-04  Bruno Haible  <bruno@clisp.org>
39156
39157         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
39158         (gl_oset_search_atleast): New declaration.
39159         (struct gl_oset_implementation): Add field 'search_atleast'.
39160         (gl_oset_search_atleast): New inline function.
39161         * lib/gl_oset.c (gl_oset_search_atleast): New function.
39162         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
39163         (gl_array_oset_implementation): Update.
39164         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
39165         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
39166         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
39167
39168 2006-10-04  Bruno Haible  <bruno@clisp.org>
39169
39170         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
39171
39172 2006-10-03  Bruno Haible  <bruno@clisp.org>
39173
39174         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
39175         from gl_avltreehash_list_implementation.
39176
39177 2006-10-03  Bruno Haible  <bruno@clisp.org>
39178
39179         * lib/gl_oset.c (gl_oset_add): Fix return type.
39180
39181 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
39182
39183         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
39184
39185 2006-10-02  Eric Blake  <ebb9@byu.net>
39186
39187         * modules/strnlen (Depends-on): Add extensions.
39188
39189 2006-10-02  Eric Blake  <ebb9@byu.net>
39190
39191         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
39192         definition in 2.60+.
39193
39194 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
39195
39196         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
39197         checks.
39198
39199 2006-10-02  Bruno Haible  <bruno@clisp.org>
39200
39201         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
39202         to the AUTOMAKE_OPTIONS.
39203         Reported by Jim Meyering.
39204
39205 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
39206
39207         Work around bug in Solaris 10 /proc file system:
39208         /proc/self/fd/NNN/.. isn't the parent directory of
39209         the directory whose file descriptor is NNN.  This needs to
39210         be worked around at run time, not compile time, since a
39211         program might be built on Solaris 8, where things work, and
39212         run on Solaris 10.
39213         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
39214         to use the following interface instead:
39215         (OPENAT_BUFFER_SIZE): New macro.
39216         (openat_proc_name): New function.
39217         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
39218         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
39219         Likewise.
39220         * lib/openat-proc.c: New file.
39221         * modules/openat (Files): Add lib/openat-proc.c.
39222         (Depends-on): Add same-inode, stdbool.
39223         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
39224
39225 2006-09-29  Bruno Haible  <bruno@clisp.org>
39226
39227         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
39228         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
39229         argument. Set stdout_closed before testing for ferror, not after.
39230         (fwriteerror, fwriteerror_no_ebadf): New functions.
39231
39232 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39233
39234         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
39235
39236 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
39237
39238         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
39239         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
39240
39241 2006-09-28  Jim Meyering  <jim@meyering.net>
39242
39243         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
39244         Include <unistd.h>.
39245
39246 2006-09-28  Bruno Haible  <bruno@clisp.org>
39247
39248         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
39249         * modules/linkedhash-list (Depends-on): Likewise.
39250         * modules/rbtreehash-list (Depends-on): Likewise.
39251
39252 2006-09-28  Bruno Haible  <bruno@clisp.org>
39253
39254         * lib/strndup.h: Simplify the redefinition of strndup.
39255         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
39256         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
39257
39258 2006-09-28  Bruno Haible  <bruno@clisp.org>
39259
39260         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
39261         * lib/gl_linkedhash_list.c: Likewise.
39262         * lib/gl_rbtreehash_list.c: Likewise.
39263
39264 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
39265
39266         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
39267         getaddrinfo.
39268
39269         * lib/__fpending.h: Don't include <stdio_ext.h> unless
39270         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
39271         it causes <stdio_ext.h> to cause a compile-time error.
39272         Problem reported by Nelson H. F. Beebe.
39273         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
39274         of HAVE_DECL___PENDING.
39275
39276         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
39277         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
39278         declaration.
39279
39280 2006-09-27  Jim Meyering  <jim@meyering.net>
39281
39282         This file could end up with a definition for a function
39283         named __strndup, rather than rpl_strndup on a system with
39284         incomplete weak_alias support.
39285         * lib/strndup.c (strndup): Rename from __strndup.
39286         Remove #defines that used to map __strndup to strndup.
39287         Don't use K&R prototypes.
39288         Remove LIBC-related code, since this file is not sync'd with glibc.
39289         * lib/strndup.h: Revamp, accordingly.
39290         * m4/strndup.m4: Modernize.
39291
39292 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
39293
39294         * modules/savewd (Depends-on): Add 'raise'.
39295         * lib/savewd.c: Include <signal.h>, for 'raise'.
39296
39297 2006-09-26  Jim Meyering  <jim@meyering.net>
39298
39299         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
39300         when we detect Darwin 8.7.0's acl_get_file bug.
39301         Rearrange to perform the new (below) run-test while $LIBS
39302         contains any acl-related library.  Set USE_ACL at the end.
39303         (gl_ACL_GET_FILE): New function.
39304
39305 2006-09-26  Eric Blake  <ebb9@byu.net>
39306
39307         * lib/verror.c: Include <config.h> unconditionally.
39308
39309 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
39310
39311         * modules/clock-time (Maintainer): Add self.
39312         * modules/getlogin_r (Depends-on): Add extensions.
39313
39314 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39315
39316         * modules/clock-time: New module.
39317         * modules/nanosleep (Depends-on): Add clock-time.
39318         * modules/gethrxtime (Depends-on): Likewise.
39319         * modules/gettime (Depends-on): Likewise.
39320         * modules/settime (Depends-on): Likewise.
39321
39322         * modules/fts-lgpl: Depend on openat.
39323         * modules/mkancesdirs: Depend on savewd.
39324         * modules/mkdir-p: Likewise.
39325
39326 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39327
39328         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
39329
39330         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
39331         `gl_have_arbitrary_file_name_length_limit' to
39332         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
39333         actually works between configure runs.
39334
39335 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39336             Bruno Haible  <bruno@clisp.org>
39337
39338         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
39339
39340 2006-09-25  Jim Meyering  <jim@meyering.net>
39341
39342         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
39343         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
39344
39345 2006-09-25  Eric Blake  <ebb9@byu.net>
39346
39347         * gnulib-tool (func_import, func_create_testdir): Fix typos in
39348         exec's in 2006-09-18 patch when shuffling fds.
39349
39350 2006-09-25  Bruno Haible  <bruno@clisp.org>
39351
39352         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
39353         Reported by Jim Meyering.
39354
39355 2006-09-24  Jim Meyering  <jim@meyering.net>
39356
39357         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
39358         compare a pointer against a literal "0".  That caused failures with
39359         at least HP-UX's hpcc.
39360
39361 2006-09-22  Simon Josefsson  <jas@extundo.com>
39362
39363         * modules/gc-sha1:
39364         * modules/gc-md4:
39365         * modules/gc-hmac-sha1:
39366         * modules/gc-hmac-md5:
39367         * modules/gc-des:
39368         * modules/gc-arcfour: Distribute more files.
39369
39370 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39371
39372         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
39373         (gl_linked_iterator_from_to): Initialize struct completely.
39374         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
39375         (gl_tree_iterator_from_to): Likewise
39376         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
39377         * lib/gl_array_list.c [lint] (gl_array_iterator)
39378         (gl_array_iterator_from_to): Likewise.
39379         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
39380         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
39381         (gl_carray_iterator_from_to): Likewise.
39382
39383         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
39384         * lib/md4.c (md4_process_block): Remove unused variable.
39385         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
39386         parentheses for clarity.
39387
39388 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39389
39390         * modules/bison-i18n (Depends-on): Add gettext.
39391
39392 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39393
39394         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
39395         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
39396         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
39397         also add missing comma that caused broken test.
39398         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
39399         stdlib.h, for `abort'.
39400         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
39401         variables.
39402         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
39403         include unistd.h if present, for `rmdir'.
39404         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
39405         variables.
39406         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
39407         in the process include standard headers for prototypes.
39408         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
39409         gets declared on GNU/Linux.
39410         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
39411         unistd.h, for `rmdir'.
39412         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
39413
39414         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
39415         always true.
39416         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
39417
39418         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
39419
39420 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39421
39422         * gnulib-tool (func_version): Create output all at once.  This
39423         may help avoid triggering unnecessary SIGPIPEs, and at any
39424         rate it doesn't hurt.
39425
39426 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39427             Bruno Haible  <bruno@clisp.org>
39428
39429         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
39430         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39431         * m4/signed.m4 (bh_C_SIGNED): Likewise.
39432
39433         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
39434         (gl_FUNC_VASPRINTF): Invoke it.
39435
39436 2006-09-22  Bruno Haible  <bruno@clisp.org>
39437
39438         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
39439         getloadavg.c as first argument.
39440
39441 2006-09-22  Bruno Haible  <bruno@clisp.org>
39442
39443         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
39444         at the beginning of the gl_INIT macro.
39445         * modules/getloadavg (configure.ac): Pass $gl_source_base to
39446         gl_GETLOADAVG.
39447
39448 2006-09-22  Bruno Haible  <bruno@clisp.org>
39449
39450         * gnulib-tool (func_create_megatestdir): Don't include the config-h
39451         module.
39452         Suggested by Ralf Wildenhues.
39453
39454 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
39455
39456         Import this patch from libc:
39457
39458         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
39459
39460         * lib/regex_internal.c (re_string_reconstruct): Handle
39461         offset < pstr->valid_raw_len && pstr->offsets_needed case.
39462         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
39463         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
39464         re_string_context_at.
39465
39466         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
39467         now requires it.
39468         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
39469         gl_REGEX now does it for us.
39470         (gl_REGEX): Add test taken from
39471         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
39472
39473         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
39474         Check that large offsets work.  Modernize Autoconf usages.
39475         Prefer "yes" to mean a good thing rather than a bad.
39476         Don't put "#define mkstemp" in config.h, as this might interfere
39477         with standard system headers that "#define mkstemp mkstemp64".
39478
39479         * modules/mkstemp (Depends-on): Add extensions, so that
39480         mkstemp is visible on some platforms.
39481         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
39482         (Include): Change to "mkstemp.h" from <stdlib.h>.
39483         (Files): Add mkstemp.h.
39484
39485         * lib/mkstemp.h: New file, since some standard headers
39486         #define mkstemp.
39487         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
39488         Include "mkstemp.h".
39489         Make the _LIBC code resemble glibc original more,
39490         e.g., use K&R style.
39491         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
39492         (mkstemp): Remove, since mkstemp.h does this for us.
39493         * lib/stdlib--.h: Include mkstemp.h.
39494
39495         Import this patch from libc:
39496
39497         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
39498
39499         * lib/tempname.c (__gen_tempname): Change attempts_min
39500         into a macro.  Use preprocessor to decide how to initialize
39501         attempts [Coverity CID 67].
39502
39503 2006-09-20  Bruno Haible  <bruno@clisp.org>
39504
39505         * lib/mkdtemp.c: Import from libc.
39506         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
39507                 * sysdeps/posix/tempname.c (__gen_tempname): Change
39508                 attempts_min into a macro.  Use preprocessor to decide how to
39509                 initialize attempts [Coverity CID 67].
39510         2001-11-27  Paul Eggert  <eggert@twinsun.com>
39511                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
39512                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
39513
39514 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39515
39516         * gnulib-tool (func_exit): New function, to allow to pass the
39517         exit status portably through the trap.  Use everywhere.
39518         (--help, --version): Signal a write error.
39519         (trap): catch SIGPIPE, for write errors.
39520         Exit at the end of the trap, with the correct exit status.
39521
39522 2006-09-19  Karl Berry  <karl@gnu.org>
39523
39524         * doc/gnulib.texi: note about the license texinfo files.
39525
39526 2006-09-19  Eric Blake  <ebb9@byu.net>
39527
39528         * gnulib-tool: Avoid space-tab.
39529
39530 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
39531
39532         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
39533         that prevented coreutils 6.1 from building.  Problem reported
39534         by Petter Reinholdtsen.
39535
39536 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
39537
39538         * gnulib-tool (avoidlist): Fix typo that broke options like
39539         --avoid=lock that are used by coreutils bootstrap.
39540
39541 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
39542
39543         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
39544         more systematically.
39545
39546 2006-09-18  Jim Meyering  <jim@meyering.net>
39547
39548         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
39549
39550 2006-09-18  Bruno Haible  <bruno@clisp.org>
39551
39552         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
39553
39554 2006-09-18  Bruno Haible  <bruno@clisp.org>
39555
39556         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
39557         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
39558         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
39559         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
39560         * m4/gettext.m4: Require autoconf >= 2.52.
39561         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
39562         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
39563         of gl_cv_header_inttypes_h.
39564
39565 2006-09-18  Bruno Haible  <bruno@clisp.org>
39566
39567         * lib/javaversion.c: Include configmake.h.
39568
39569 2006-09-18  Bruno Haible  <bruno@clisp.org>
39570
39571         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
39572         avoid that the while loops be executed in a subshell.
39573
39574 2006-09-18  Bruno Haible  <bruno@clisp.org>
39575
39576         * MODULES.html.sh (func_module): Break long lines.
39577         Suggested by Bruce Korb <bkorb@gnu.org>.
39578
39579 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39580
39581         Speed up by a factor of 1.12.
39582         * gnulib-tool (nl): New variable.
39583         (func_import): Rewrite include directive extraction to only read each
39584         directive once.
39585
39586 2006-09-17  Bruno Haible  <bruno@clisp.org>
39587
39588         * modules/javaversion (Makefile.am): Remove DEFS setting.
39589         (Depends-on): Add configmake, for PKGDATADIR definition.
39590
39591 2006-09-17  Bruno Haible  <bruno@clisp.org>
39592
39593         * gnulib-tool (func_create_testdir): Rewrite all files at once.
39594
39595 2006-09-17  Bruno Haible  <bruno@clisp.org>
39596
39597         * gnulib-tool (func_append): New function, stolen from libtool.m4.
39598         (func_modules_transitive_closure, func_modules_add_dummy,
39599         func_modules_to_filelist, func_import, func_create_testdir,
39600         func_create_megatestdir, ...): Use it wherever possible.
39601         Suggested by Ralf Wildenhues.
39602
39603 2006-09-16  Karl Berry  <karl@gnu.org>
39604
39605         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
39606         to avoid sectioning errors.
39607         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
39608         [ifinfo]: blank line after @center-ed titles.
39609         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
39610         Spell FSF address consistently with others.
39611         (These changes approved by rms.)
39612
39613 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39614
39615         Speed up by a factor of 1.61.
39616         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
39617         already checked module names again.
39618
39619 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39620
39621         Speed up by a factor of 1.13.
39622         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
39623         for new_files, and the input to func_add_or_update.
39624
39625 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39626
39627         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
39628         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
39629
39630 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39631
39632         * modules/mkancesdirs (Depends-on): Add fcntl.
39633         * modules/savewd: New file.
39634         * MODULES.html.sh (File system functions): Add savewd.
39635
39636         * modules/configmake (Makefile.am): Add support for the
39637         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
39638
39639 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39640
39641         * m4/savewd.m4: New file.
39642
39643 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
39644
39645         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
39646         (dirchownmod): New arg FD.  All callers changed.
39647         Use FD rather than opening the directory ourself, as opening is
39648         now the caller's responsibility.
39649         * lib/dirchownmod.h: Likewise.
39650         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
39651         hosts that require <sys/types.h> before <sys/stat.h>.  Include
39652         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
39653         (test_dir): Remove.
39654         (mkancesdirs): Return length of prefix of FILE that has already
39655         been made, or -2 if there is a child doing the work.  Redo
39656         algorithm so that it is O(N) rather than O(N**2).  Optimize away
39657         ".", and treat ".." specially since it might stray back into
39658         already-created areas.  Use a subprocess if necessary.  New arg
39659         WD; all users changed.  MAKE_DIR function should now return 1
39660         if it creates a directory that is not readable.  Return -2 if
39661         a child process is spun off.
39662         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
39663         Adjust signature to match code.
39664         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
39665         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
39666         all users changed.
39667         * lib/savewd.c, lib/savewd.h: New files.
39668
39669 2006-09-15  Jim Meyering  <jim@meyering.net>
39670
39671         * modules/rename-dest-slash: New module.
39672         * MODULES.html.sh (posix_compat): Add it here.
39673
39674         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
39675
39676 2006-09-15  Jim Meyering  <jim@meyering.net>
39677
39678         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
39679         file.
39680
39681         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
39682
39683 2006-09-15  Jim Meyering  <jim@meyering.net>
39684
39685         * lib/rename-dest-slash.c (has_trailing_slash): Use
39686         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
39687         (rpl_rename_dest_slash): Perform the cheaper trailing slash
39688         test before testing whether SRC is a directory.
39689         Suggestions from Bruno Haible.
39690
39691         Avoid a warning about an unused variable.
39692         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
39693         into the #ifdef block where it's used.
39694
39695         * lib/rename-dest-slash.c: New file.
39696
39697 2006-09-14  Bruno Haible  <bruno@clisp.org>
39698
39699         * lib/allocsa.c: Include <config.h> unconditionally.
39700         * lib/asnprintf.c: Likewise.
39701         * lib/asprintf.c: Likewise.
39702         * lib/c-strcasecmp.c: Likewise.
39703         * lib/c-strcasestr.c: Likewise.
39704         * lib/c-strncasecmp.c: Likewise.
39705         * lib/c-strstr.c: Likewise.
39706         * lib/classpath.c: Likewise.
39707         * lib/clean-temp.c: Likewise.
39708         * lib/concatpath.c: Likewise.
39709         * lib/copy-file.c: Likewise.
39710         * lib/csharpcomp.c: Likewise.
39711         * lib/csharpexec.c: Likewise.
39712         * lib/execute.c: Likewise.
39713         * lib/fatal-signal.c: Likewise.
39714         * lib/findprog.c: Likewise.
39715         * lib/fwriteerror.c: Likewise.
39716         * lib/gl_array_list.c: Likewise.
39717         * lib/gl_array_oset.c: Likewise.
39718         * lib/gl_avltree_list.c: Likewise.
39719         * lib/gl_avltree_oset.c: Likewise.
39720         * lib/gl_avltreehash_list.c: Likewise.
39721         * lib/gl_carray_list.c: Likewise.
39722         * lib/gl_linked_list.c: Likewise.
39723         * lib/gl_linkedhash_list.c: Likewise.
39724         * lib/gl_list.c: Likewise.
39725         * lib/gl_oset.c: Likewise.
39726         * lib/gl_rbtree_list.c: Likewise.
39727         * lib/gl_rbtree_oset.c: Likewise.
39728         * lib/gl_rbtreehash_list.c: Likewise.
39729         * lib/imaxabs.c: Likewise.
39730         * lib/imaxdiv.c: Likewise.
39731         * lib/javacomp.c: Likewise.
39732         * lib/javaexec.c: Likewise.
39733         * lib/javaversion.c: Likewise.
39734         * lib/linebreak.c: Likewise.
39735         * lib/localcharset.c: Likewise.
39736         * lib/lock.c: Likewise.
39737         * lib/mbchar.c: Likewise.
39738         * lib/mbswidth.c: Likewise.
39739         * lib/mkdtemp.c: Likewise.
39740         * lib/pipe.c: Likewise.
39741         * lib/printf-args.c: Likewise.
39742         * lib/printf-parse.c: Likewise.
39743         * lib/progname.c: Likewise.
39744         * lib/progreloc.c: Likewise.
39745         * lib/readlink.c: Likewise.
39746         * lib/sh-quote.c: Likewise.
39747         * lib/stpcpy.c: Likewise.
39748         * lib/stpncpy.c: Likewise.
39749         * lib/strcasecmp.c: Likewise.
39750         * lib/strcasestr.c: Likewise.
39751         * lib/strcspn.c: Likewise.
39752         * lib/striconv.c: Likewise.
39753         * lib/strncasecmp.c: Likewise.
39754         * lib/strnlen1.c: Likewise.
39755         * lib/strstr.c: Likewise.
39756         * lib/strtok_r.c: Likewise.
39757         * lib/tls.c: Likewise.
39758         * lib/tmpdir.c: Likewise.
39759         * lib/unicodeio.c: Likewise.
39760         * lib/unsetenv.c: Likewise.
39761         * lib/vasnprintf.c: Likewise.
39762         * lib/vasprintf.c: Likewise.
39763         * lib/wait-process.c: Likewise.
39764         * lib/xallocsa.c: Likewise.
39765         * lib/xsetenv.c: Likewise.
39766         * lib/xstriconv.c: Likewise.
39767
39768 2006-09-13  Simon Josefsson  <jas@extundo.com>
39769
39770         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
39771         that internally, suggested by Ralf Wildenhues
39772         <Ralf.Wildenhues@gmx.de>.
39773
39774 2006-09-13  Simon Josefsson  <jas@extundo.com>
39775
39776         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
39777         @LIBOBJS@.
39778         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39779
39780 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
39781
39782         * lib/_fpending.c: Include <config.h> unconditionally, since we no
39783         longer worry about uses that don't define HAVE_CONFIG_H.
39784         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
39785         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
39786         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
39787         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
39788         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
39789         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
39790         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
39791         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
39792         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
39793         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
39794         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
39795         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
39796         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
39797         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
39798         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
39799         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
39800         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
39801         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
39802         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
39803         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
39804         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
39805         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
39806         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
39807         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
39808         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
39809         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
39810         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
39811         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
39812         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
39813         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
39814         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
39815         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
39816         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
39817         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
39818         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
39819         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
39820         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
39821         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
39822         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
39823         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
39824         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
39825         Likewise.
39826
39827 2006-09-13  Eric Blake  <ebb9@byu.net>
39828
39829         * lib/getopt.c: Fix typo in last commit.
39830
39831 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39832
39833         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
39834         dgettext.
39835
39836 2006-09-12  Jim Meyering  <jim@meyering.net>
39837
39838         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
39839         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
39840         Reported by Nelson H. F. Beebe.
39841
39842 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39843
39844         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
39845         program_invocation_name and program_invocation_short_name are
39846         initialized.
39847         * lib/argp-namefrob.h: Move declarations of program_invocation_name
39848         and program_invocation_short_name to argp.h, so they are visible
39849         to user programs.
39850         * lib/argp.h: Likewise
39851
39852 2006-09-10  Bruno Haible  <bruno@clisp.org>
39853
39854         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
39855         m4/inttypes_h.m4, m4/uintmax_t.m4.
39856
39857 2006-09-10  Bruno Haible  <bruno@clisp.org>
39858
39859         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
39860         gl_AC_TYPE_UINTMAX_T.
39861
39862 2006-09-10  Bruno Haible  <bruno@clisp.org>
39863
39864         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
39865
39866 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39867
39868         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
39869         convention.  Text proposed by Bruno Haible.
39870         (struct argp_option): Document the use of N_() wrappers.
39871
39872         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
39873         '\v', and translate the two parts separately, instead of feeding
39874         the whole string to gettext.  This allows to exclude
39875         '\v' from the strings visible to the translator by writing doc
39876         strings as N_("..") "\v" N_("..").
39877
39878 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
39879
39880         * config/srclist.txt: Undo latest change; the bug was fixed.
39881
39882 2006-09-09  Bruno Haible  <bruno@clisp.org>
39883
39884         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
39885         assignments if building a library without libtool.
39886         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
39887         in func_emit_lib_Makefile_am.
39888         (func_import): When building a static library libfoo.a, arrange to
39889         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
39890         (func_create_testdir): Likewise.
39891         * modules/gc (configure.ac, Makefile.am): If building statically,
39892         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
39893         * modules/iconvme (configure.ac, Makefile.am): Likewise.
39894         * modules/striconv (configure.ac, Makefile.am): Likewise.
39895         Based on a suggestion by Ralf Wildenhues.
39896
39897 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39898
39899         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39900         Check for unistd.h too, since Autoconf doesn't assume POSIX.
39901         Also:
39902
39903         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39904         Add year_2050_test to catch glibc bug 2821
39905         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
39906
39907         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
39908         Prefer #ifdef to #if.
39909
39910         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
39911         Return from 'main' instead of calling 'exit'.
39912
39913 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39914
39915         * lib/mktime.c (guess_time_tm): Fix bug where mktime
39916         returned the maximum time_t value rather than (time_t) -1.
39917         Problem originally reported by William Bardwell
39918         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
39919
39920         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
39921         Moved to here ...
39922         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
39923         ... from here.
39924
39925 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
39926
39927         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
39928         2821 is fixed.
39929
39930 2006-09-08  Jim Meyering  <jim@meyering.net>
39931
39932         Don't make generated files read-only.  That would bother too many
39933         people.  However, do retain the ability to work when targets are
39934         read-only: remove the destination and temporary files before writing
39935         them (when generated via sed or echo), or by using the -f option for
39936         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
39937         * modules/alloca-opt, modules/argz, modules/arpa_inet:
39938         * modules/byteswap, modules/configmake, modules/fcntl:
39939         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
39940         * modules/localcharset, modules/netinet_in, modules/poll:
39941         * modules/stdbool, modules/stdint, modules/sys_select:
39942         * modules/sys_socket, modules/sys_stat, modules/sysexits:
39943
39944 2006-09-08  Jim Meyering  <jim@meyering.net>
39945
39946         Avoid new build failure on FreeBSD 6.0.
39947         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
39948         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
39949         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
39950
39951 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39952
39953         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
39954
39955 2006-09-07  Jim Meyering  <jim@meyering.net>
39956
39957         Fix global typo in last change: use chmod u-w, not chmod u-x.
39958         Spotted by Paul Eggert and Bruce Korb.
39959         * modules/alloca-opt, modules/argz, modules/arpa_inet:
39960         * modules/byteswap, modules/configmake, modules/fcntl:
39961         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
39962         * modules/localcharset, modules/netinet_in, modules/poll:
39963         * modules/stdbool, modules/stdint, modules/sys_select:
39964         * modules/sys_socket, modules/sys_stat, modules/sysexits:
39965
39966 2006-09-06  Jim Meyering  <jim@meyering.net>
39967
39968         Make generated files be read-only.
39969         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
39970         Ensure that each generated file is now read-only.
39971         * modules/argz: Likewise.
39972         * modules/arpa_inet: Likewise.
39973         * modules/byteswap: Likewise.
39974         * modules/configmake: Likewise.
39975         * modules/fcntl: Likewise.
39976         * modules/fnmatch: Likewise.
39977         * modules/getopt: Likewise.
39978         * modules/glob: Likewise.
39979         * modules/inttypes: Likewise.
39980         * modules/netinet_in: Likewise.
39981         * modules/poll: Likewise.
39982         * modules/stdbool: Likewise.
39983         * modules/stdint: Likewise.
39984         * modules/sys_select: Likewise.
39985         * modules/sys_socket: Likewise.
39986         * modules/sys_stat: Likewise.
39987         * modules/sysexits: Likewise.
39988         * modules/localcharset: Same as above, but continue using temporary
39989         file named "t-$@" (why different?) rather than the "$@-t" used
39990         everywhere else.
39991
39992         * modules/sysexits (Makefile.am): Replace literal occurrences
39993         of "sysexit.h" more readable, and more consistent, "$@".
39994
39995 2006-09-06  Bruno Haible  <bruno@clisp.org>
39996
39997         * modules/striconv: New file.
39998         * modules/xstriconv: New file.
39999         * MODULES.html.sh (Internationalization functions): Add striconv,
40000         xstriconv.
40001
40002 2006-09-06  Bruno Haible  <bruno@clisp.org>
40003
40004         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
40005         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
40006         not using libtool correctly.
40007
40008 2006-09-06  Bruno Haible  <bruno@clisp.org>
40009
40010         * lib/striconv.h: New file.
40011         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
40012         iconvstring.c.
40013         * lib/xstriconv.h: New file.
40014         * lib/xstriconv.c: New file.
40015
40016 2006-09-06  Bruno Haible  <bruno@clisp.org>
40017
40018         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40019         lib_..._LDFLAGS.
40020
40021 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40022
40023         * lib/argz_.h: Sync from Libtool.
40024
40025         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
40026                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40027
40028         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
40029
40030 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
40031
40032         * modules/trim: New file.
40033
40034 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
40035
40036         * lib/trim.h: New file.
40037         * lib/trim.c: New file.
40038
40039 2006-09-05  Bruno Haible  <bruno@clisp.org>
40040
40041         * MODULES.html.sh (String handling): Add trim.
40042
40043 2006-09-04  Karl Berry  <karl@gnu.org>
40044
40045         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
40046         until next release.
40047
40048 2006-09-03  Bruno Haible  <bruno@clisp.org>
40049
40050         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
40051         correctly.
40052
40053 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40054
40055         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
40056         not gl_GETLOADAVG.  Omit unneeded semicolons.
40057         Problems reported by Ralf Wildenhues in
40058         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
40059         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
40060         at the end, which is the usual gnulib style.
40061
40062         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
40063         of doing all the work ourselves.
40064         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
40065         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
40066
40067 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40068
40069         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
40070         Problem reported by Ralf Wildenhues in
40071         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
40072
40073         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
40074         HAVE_STRUCT_STATFS_F_FSTYPENAME.
40075
40076 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
40077
40078         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
40079         yesterday's patch by changing test -n to test -z.
40080
40081 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40082
40083         * modules/getloadavg (Files): Add m4/getloadavg.m4.
40084         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
40085         the former is now obsolescent.
40086
40087         * modules/chdir-long (Depends-on): Add fcntl.
40088
40089 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40090
40091         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
40092         obsolescent, and programs should use gnulib instead.
40093         * m4/getloadavg.m4: New file, with contents taken from Autoconf
40094         but with prefixes changed.
40095
40096 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
40097
40098         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
40099         or stdbool.h, because they might not exist while configuring.
40100
40101         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
40102         Don't include unistd.h or limits.h; not needed, since chdir-long.h
40103         does that for us.
40104         (O_DIRECTORY): Remove.
40105
40106 2006-08-31  Eric Blake  <ebb9@byu.net>
40107
40108         * gnulib-tool: Don't let emacs change spaces to TAB.
40109
40110 2006-08-31  Bruno Haible  <bruno@clisp.org>
40111
40112         * gnulib-tool: When calling func_import more than once, do it in a
40113         subshell.
40114         Reported by Eric Blake <ebb9@byu.net>.
40115
40116 2006-08-31  Bruno Haible  <bruno@clisp.org>
40117
40118         * gnulib-tool (nl): Remove variable.
40119         (sed_transform_lib_file): Use more robust test for config-h module.
40120         (func_import): Fix typo in 2006-08-25 patch.
40121
40122 2006-08-31  Bruno Haible  <bruno@clisp.org>
40123
40124         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
40125         specified, augment Makefile.am variables instead of assigning them.
40126
40127 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40128
40129         Work around a bug in both the Linux and SunOS 64-bit kernels:
40130         nanosleep mishandles sleeps for longer than 2**31 seconds.
40131         Problem reported by Frank v Waveren in
40132         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
40133         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
40134         Check for nanosleep bug.
40135         (LIB_NANOSLEEP): Append clock_gettime library if needed.
40136
40137 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40138
40139         Work around a bug in both the Linux and SunOS 64-bit kernels:
40140         nanosleep mishandles sleeps for longer than 2**31 seconds.
40141         Problem reported by Frank v Waveren in
40142         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
40143         * lib/nanosleep.c (BILLION): New constant.
40144         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
40145         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
40146         implementation.
40147
40148 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40149
40150         * modules/nanosleep (Depends-on): Add gettime.
40151
40152 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
40153         and Simon Josefsson  <jas@extundo.com>
40154         and Oskar Liljeblad  <oskar@osk.mine.nu>
40155
40156         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
40157         * gnulib-tool (func_import): New license type 'unmodifiable license
40158         text'.
40159         * modules/fdl: Use it.  Longer description.
40160         * module/gpl, module/lgpl: New files.
40161
40162 2006-08-30  Jim Meyering  <jim@meyering.net>
40163
40164         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
40165         shadowing the parameter.
40166
40167 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40168
40169         Sync from Libtool:
40170
40171         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40172
40173         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
40174         sharing with gnulib.  Report by Eric Blake.
40175
40176 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40177
40178         * modules/isapipe: New file.
40179         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
40180
40181 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40182
40183         * modules/configmake (Makefile.am): Add a comment, and omit
40184         the CONFIGMAKE_ prefix from generated macro names.  Suggested
40185         by Bruno Haible.
40186
40187 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40188
40189         * m4/isapipe.m4: New file.
40190
40191 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
40192
40193         * lib/isapipe.c, lib/isapipe.h: New files.
40194
40195 2006-08-29  Jim Meyering  <jim@meyering.net>
40196
40197         * modules/configmake (Makefile.am): Make configmake.h depend on
40198         Makefile.  Otherwise, a stale configmake.h could hang around.
40199
40200 2006-08-29  Eric Blake  <ebb9@byu.net>
40201
40202         * lib/error.c (error_at_line, print_errno_message): Match libc, after
40203         resolution of upstream bug 3044.
40204
40205 2006-08-29  Bruno Haible  <bruno@clisp.org>
40206
40207         * modules/localcharset (Depends-on): Add configmake.
40208         (Makefile.am): Remove setting of LIBDIR through DEFS.
40209
40210 2006-08-29  Bruno Haible  <bruno@clisp.org>
40211
40212         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
40213         defined.
40214
40215 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40216
40217         * modules/fcntl: New file.
40218         * modules/chdir-safer (Depends-on): Add fcntl.
40219         * modules/fts: Likewise.
40220         * modules/mkdir-p: Likewise.
40221
40222         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
40223         This undoes the most recent change, since we're now addressing the
40224         problem in a different way.
40225
40226         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
40227         into output, since the output might be called Makefile.am even
40228         if $makefile_name is something different.
40229         (func_import): Use $makefile_am rather than
40230         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
40231         empty.
40232
40233         * modules/inttypes (Files): Add m4/inttypes-h.m4.
40234
40235 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40236
40237         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
40238         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
40239         recent change to stdint.m4, since we're now addressing the problem in a
40240         different way.
40241
40242 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40243
40244         * m4/fcntl_h.m4: New file.
40245
40246 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
40247
40248         * lib/fcntl_.h: New file.
40249         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
40250         the fcntl module.
40251         * lib/dirchownmod.c: Likewise.
40252         * lib/fts.c: Likewise.
40253
40254         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
40255         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
40256         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
40257         just before including <inttypes.h>, to avoid circular inclusion.
40258
40259 2006-08-28  Jim Meyering  <jim@meyering.net>
40260
40261         * doc/visibility.texi: Actually read and correct the grammar of the
40262         sentence affected by yesterday's change.
40263
40264 2006-08-28  Eric Blake  <ebb9@byu.net>
40265
40266         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
40267         needs wrapper.
40268
40269 2006-08-28  Eric Blake  <ebb9@byu.net>
40270
40271         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
40272
40273 2006-08-28  Eric Blake  <ebb9@byu.net>
40274
40275         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
40276
40277 2006-08-28  Bruno Haible  <bruno@clisp.org>
40278
40279         * modules/c-strstr: New file, from GNU gettext.
40280         * MODULES.html.sh (String handling): Add c-strstr.
40281
40282 2006-08-28  Bruno Haible  <bruno@clisp.org>
40283
40284         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
40285         macros.
40286         Reported by Eric Blake.
40287
40288 2006-08-28  Bruno Haible  <bruno@clisp.org>
40289
40290         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
40291         (VASNPRINTF): Return a string of length > INT_MAX without failing.
40292         * lib/vasprintf.c: Include errno.h, limits.h.
40293         (EOVERFLOW): New fallback definition.
40294         (vasprintf): Test here whether the string length is > INT_MAX.
40295         * lib/vsnprintf.c: Include errno.h, limits.h.
40296         (EOVERFLOW): New fallback definition.
40297         (vsnprintf): Fix bug when generated string was too long for the buffer.
40298         Test here whether the string length is > INT_MAX.
40299
40300 2006-08-28  Bruno Haible  <bruno@clisp.org>
40301
40302         * lib/inttypes_.h (SCNX*): Remove definitions.
40303         Reported by Eric Blake.
40304
40305 2006-08-28  Bruno Haible  <bruno@clisp.org>
40306
40307         * lib/c-strstr.h: New file, from GNU gettext.
40308         * lib/c-strstr.c: New file, from GNU gettext.
40309
40310 2006-08-28  Bruno Haible  <bruno@clisp.org>
40311
40312         * gnulib-tool: Reorder some statements.
40313
40314 2006-08-28  Bruno Haible  <bruno@clisp.org>
40315
40316         * gnulib-tool: New option --makefile-name.
40317         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
40318         $makefile_name.
40319         (func_import): Write $makefile_name to the cache file, and read it from
40320         there unless explicitly specified. Use $makefile_name as file name
40321         instead of Makefile.am. Adjust the recommendations accordingly.
40322
40323 2006-08-28  Bruno Haible  <bruno@clisp.org>
40324
40325         * gnulib-tool (func_verify_module): Check against misapplying patch.
40326
40327 2006-08-28  Bruno Haible  <bruno@clisp.org>
40328
40329         * gnulib-tool (func_relativize, func_relconcat): New functions.
40330         Give an error if --local-dir is given with --update.
40331         Remove trailing slashes from $local_gnulib_dir.
40332         (func_import): Store the relativized $local_gnulib_dir in
40333         gnulib-cache.m4, and read it from there if not specified explicitly.
40334
40335 2006-08-28  Bruno Haible  <bruno@clisp.org>
40336
40337         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
40338         is the current directory. Respect also $local_gnulib_dir.
40339
40340 2006-08-28  Bruno Haible  <bruno@clisp.org>
40341             Simon Josefsson  <jas@extundo.com>
40342
40343         BeOS portability.
40344         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
40345
40346 2006-08-27  Jim Meyering  <jim@meyering.net>
40347
40348         * doc/visibility.texi: Remove duplicate word: "pointer".
40349
40350 2006-08-26  Bruno Haible  <bruno@clisp.org>
40351
40352         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
40353         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
40354         (Makefile.am): Create inttypes.h from inttypes_.h.
40355         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
40356
40357         * modules/imaxabs: New file.
40358
40359         * modules/imaxdiv: New file.
40360
40361 2006-08-26  Bruno Haible  <bruno@clisp.org>
40362
40363         * m4/inttypes.m4: New file.
40364         * m4/_inttypes_h.m4: Remove file.
40365         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
40366         PRI_MACROS_BROKEN.
40367         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
40368
40369         * m4/imaxabs.m4: New file.
40370
40371         * m4/imaxdiv.m4: New file.
40372
40373 2006-08-26  Bruno Haible  <bruno@clisp.org>
40374
40375         * lib/inttypes_.h: New file.
40376         * lib/inttypes.h: Remove file.
40377         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
40378
40379         * lib/imaxabs.c: New file.
40380
40381         * lib/imaxdiv.c: New file.
40382
40383 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40384
40385         New config-h module, so that "make" output needn't be cluttered
40386         by -DHAVE_CONFIG_H.
40387         * MODULES.html.sh (Support for building libraries and executables):
40388         Add config-h.
40389         * modules/config-h: New file.
40390         * gnulib-tool (nl, sed_transform_lib_file): New vars.
40391         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
40392         the config-h module is used.
40393
40394         New configmake module, so that "make" output needn't be cluttered
40395         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
40396         * MODULES.html.sh (Support for building libraries and executables):
40397         Add configmake.
40398         * modules/configmake: New file.
40399
40400 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
40401
40402         * m4/config-h.m4: New file.
40403
40404 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40405
40406         * config/srclist.txt: Add elisp-comp.
40407
40408 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
40409
40410         * MODULES.html.sh (Support for building libraries and executables):
40411         Add elisp-comp.
40412         * build-aux/elisp-comp: New file.
40413         * modules/elisp-comp: New file.
40414
40415 2006-08-24  Bruno Haible  <bruno@clisp.org>
40416
40417         * gnulib-tool (func_create_testdir): Use non-default values of
40418         sourcebase and m4base.
40419
40420 2006-08-24  Bruno Haible  <bruno@clisp.org>
40421
40422         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
40423         HTML structure.
40424
40425 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
40426
40427         * modules/openat (Depends-on): Add lchown.
40428
40429 2006-08-23  Bruno Haible  <bruno@clisp.org>
40430
40431         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
40432         of gl_LOCK_EARLY instead of gl_LOCK.
40433
40434 2006-08-23  Bruno Haible  <bruno@clisp.org>
40435
40436         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
40437         on OSF/1 to no.
40438         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
40439
40440 2006-08-23  Bruno Haible  <bruno@clisp.org>
40441
40442         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
40443         as unusable.
40444
40445         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
40446         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
40447         (gl_LOCK): New macro.
40448
40449 2006-08-22  Simon Josefsson  <jas@extundo.com>
40450
40451         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
40452         to md5 module.
40453
40454 2006-08-22  Simon Josefsson  <jas@extundo.com>
40455
40456         * MODULES.html.sh: Add "Support for maintaining and release
40457         projects".
40458
40459         * build-aux/gnupload: New file, from coreutils.
40460
40461 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40462
40463         Avoid the need for AC_LIBSOURCES in m4 macros.
40464         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
40465         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
40466         * modules/check-version (EXTRA_DIST): Add check-version.h.
40467         * modules/crc (EXTRA_DIST): Add crc.h.
40468         * modules/des (EXTRA_DIST): Add des.h.
40469         * modules/gc (EXTRA_DIST): Add gc.h.
40470         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
40471         * modules/getline (EXTRA_DIST): Add getline.h.
40472         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
40473         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
40474         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
40475         * modules/md2 (EXTRA_DIST): Add md2.h.
40476         * modules/md4 (EXTRA_DIST): Add md4.h.
40477         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
40478         * modules/read-file (EXTRA_DIST): Add read-file.h.
40479         * modules/readline (EXTRA_DIST): Add readline.h.
40480         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
40481         rijndael-api-fst.h.
40482
40483 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40484
40485         * m4/rijndael.m4 (gl_ARCFOUR):
40486         * m4/arctwo.m4 (gl_ARCTWO):
40487         * m4/check-version.m4 (gl_CHECK_VERSION):
40488         * m4/crc.m4 (gl_CRC):
40489         * m4/des.m4 (gl_DES):
40490         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
40491         * m4/gc.m4 (gl_GC):
40492         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
40493         * m4/getline.m4 (gl_FUNC_GETLINE):
40494         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
40495         * m4/hmac-md5.m4 (gl_HMAC_MD5):
40496         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
40497         * m4/md2.m4 (gl_MD2):
40498         * m4/md4.m4 (gl_MD4):
40499         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
40500         * m4/read-file.m4 (gl_FUNC_READ_FILE):
40501         * m4/readline.m4 (gl_FUNC_READLINE):
40502         * m4/rijndael.m4 (gl_RIJNDAEL):
40503         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
40504         to get the necessary .h files and whatnot.
40505
40506 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
40507
40508         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
40509         gnulib rather than the other way around.
40510         * config/srclistvars.sh (COREUTILS): Remove.
40511
40512 2006-08-22  Jim Meyering  <jim@meyering.net>
40513
40514         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
40515
40516         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
40517
40518 2006-08-22  Eric Blake  <ebb9@byu.net>
40519
40520         * modules/regexprops-generic: New file.
40521         * MODULES.html.sh (Support for building documentation): List it.
40522
40523 2006-08-22  Eric Blake  <ebb9@byu.net>
40524
40525         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
40526         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40527         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
40528         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
40529
40530 2006-08-22  Bruno Haible  <bruno@clisp.org>
40531
40532         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
40533         and lib_LTLIBRARIES like the other lib_* variables.
40534
40535 2006-08-22  Bruno Haible  <bruno@clisp.org>
40536
40537         * build-aux/x-to-1.in: New file, from GNU gettext.
40538
40539 2006-08-22  Bruno Haible  <bruno@clisp.org>
40540
40541         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
40542         <utmpx.h> exists.
40543
40544 2006-08-22  Bruno Haible  <bruno@clisp.org>
40545
40546         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
40547         <utmpx.h> exists.
40548
40549 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40550
40551         BeOS portability.
40552         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
40553         exist.
40554         Problem reported by Bruno Haible.
40555
40556 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40557
40558         Avoid the need for AC_LIBSOURCES in m4 macros.
40559         * modules/acl (EXTRA_DIST): Add acl.h.
40560         * modules/argmatch (Files): Add m4/argmatch.m4.
40561         (configure.ac): Add gl_ARGMATCH.
40562         (EXTRA_DIST): Renamed from lib_SOURCES, for
40563         consistency with the other modules.  Remove argmatch.c.
40564         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
40565         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
40566         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
40567         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
40568         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
40569         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
40570         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
40571         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
40572         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
40573         * modules/closeout (EXTRA_DIST): Add closeout.h.
40574         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
40575         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
40576         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
40577         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
40578         dirname.h; remove basename.c and stripslash.c.
40579         * modules/exclude (EXTRA_DIST): Add exclude.h.
40580         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
40581         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
40582         * modules/file-type (EXTRA_DIST): Add file-type.h.
40583         * modules/filemode (EXTRA_DIST): Add filemode.h.
40584         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
40585         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
40586         * modules/fpending (EXTRA_DIST): Add __fpending.h.
40587         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
40588         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
40589         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
40590         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
40591         * modules/getdate (EXTRA_DIST): Add getdate.c.
40592         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
40593         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
40594         * modules/getpass (EXTRA_DIST): Add getpass.h.
40595         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
40596         * modules/group-member (EXTRA_DIST): Add group-member.h.
40597         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
40598         * modules/hash (EXTRA_DIST): Add hash.h.
40599         * modules/human (EXTRA_DIST): Add human.h.
40600         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
40601         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
40602         * modules/lchown (EXTRA_DIST): Add lchown.h.
40603         * modules/long-options (EXTRA_DIST): Add long-options.h.
40604         * modules/lstat (EXTRA_DIST): Add lstat.h.
40605         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
40606         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
40607         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
40608         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
40609         * modules/memxor (EXTRA_DIST): Add memxor.h.
40610         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
40611         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
40612         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
40613         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
40614         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
40615         * modules/physmem (EXTRA_DIST): Add physmem.h.
40616         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
40617         * modules/posixver (EXTRA_DIST): Add posixver.h.
40618         * modules/quote (EXTRA_DIST): Add quote.h.
40619         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
40620         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
40621         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
40622         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
40623         regex_internal.h regexec.c.
40624         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
40625         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
40626         * modules/same (EXTRA_DIST): Add same.h.
40627         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
40628         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
40629         * modules/savedir (EXTRA_DIST): Add savedir.h.
40630         * modules/sha1 (EXTRA_DIST): Add sha1.h.
40631         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
40632         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
40633         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
40634         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
40635         * modules/strdup (EXTRA_DIST): Add strdup.h.
40636         * modules/strftime (EXTRA_DIST): Add strftime.h.
40637         * modules/strndup (EXTRA_DIST): Add strndup.h.
40638         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
40639         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
40640         * modules/time_r (EXTRA_DIST): Add time_r.h.
40641         * modules/timespec (EXTRA_DIST): Add timespec.h.
40642         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
40643         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
40644         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
40645         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
40646         * modules/userspec (EXTRA_DIST): Add userspec.h.
40647         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
40648         * modules/utimens (EXTRA_DIST): Add utimens.h.
40649         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
40650         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
40651         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
40652         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
40653         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
40654         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
40655         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
40656         * modules/yesno (EXTRA_DIST): Add yesno.h.
40657
40658 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
40659
40660         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
40661
40662         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
40663         * m4/dev-ino.m4, same-inode.m4: Remove.
40664
40665         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
40666         * m4/acl.m4 (AC_FUNC_ACL):
40667         * m4/backupfile.m4 (gl_BACKUPFILE):
40668         * m4/c-strtod.m4 (gl_C99_STRTOLD):
40669         * m4/canon-host.m4 (gl_CANON_HOST):
40670         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40671         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
40672         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
40673         * m4/cloexec.m4 (gl_CLOEXEC):
40674         * m4/close-stream.m4 (gl_CLOSE_STREAM):
40675         * m4/closeout.m4 (gl_CLOSEOUT):
40676         * m4/dirfd.m4 (gl_FUNC_DIRFD):
40677         * m4/dirname.m4 (gl_DIRNAME):
40678         * m4/exclude.m4 (gl_EXCLUDE):
40679         * m4/exitfail.m4 (gl_EXITFAIL):
40680         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
40681         * m4/file-type.m4 (gl_FILE_TYPE):
40682         * m4/filemode.m4 (gl_FILEMODE):
40683         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
40684         * m4/fpending.m4 (gl_FUNC_FPENDING):
40685         * m4/fprintftime.m4 (gl_FPRINTFTIME):
40686         * m4/fts.m4 (gl_FUNC_FTS):
40687         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
40688         * m4/getdate.m4 (gl_GETDATE):
40689         * m4/gethrxtime.m4 (gl_GETHRXTIME):
40690         * m4/getpagesize.m4 (gl_GETPAGESIZE):
40691         * m4/getpass.m4 (gl_FUNC_GETPASS):
40692         * m4/gettime.m4 (gl_GETTIME):
40693         * m4/getugroups.m4 (gl_GETUGROUPS):
40694         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
40695         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
40696         * m4/hard-locale.m4 (gl_HARD_LOCALE):
40697         * m4/hash.m4 (gl_HASH):
40698         * m4/idcache.m4 (gl_IDCACHE):
40699         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
40700         * m4/lchown.m4 (gl_FUNC_LCHOWN):
40701         * m4/long-options.m4 (gl_LONG_OPTIONS):
40702         * m4/lstat.m4 (gl_FUNC_LSTAT):
40703         * m4/md5.m4 (gl_MD5):
40704         * m4/memcasecmp.m4 (gl_MEMCASECMP):
40705         * m4/memcoll.m4 (gl_MEMCOLL):
40706         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
40707         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
40708         * m4/memxor.m4 (gl_MEMXOR):
40709         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
40710         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
40711         * m4/modechange.m4 (gl_MODECHANGE):
40712         * m4/mountlist.m4 (gl_MOUNTLIST):
40713         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40714         * m4/openat.m4 (gl_FUNC_OPENAT):
40715         * m4/pathmax.m4 (gl_PATHMAX):
40716         * m4/physmem.m4 (gl_PHYSMEM):
40717         * m4/posixtm.m4 (gl_POSIXTM):
40718         * m4/posixver.m4 (gl_POSIXVER):
40719         * m4/quote.m4 (gl_QUOTE):
40720         * m4/quotearg.m4 (gl_QUOTEARG):
40721         * m4/readtokens.m4 (gl_READTOKENS):
40722         * m4/readutmp.m4 (gl_READUTMP):
40723         * m4/regex.m4 (gl_REGEX):
40724         * m4/safe-read.m4 (gl_SAFE_READ):
40725         * m4/safe-write.m4 (gl_SAFE_WRITE):
40726         * m4/same.m4 (gl_SAME):
40727         * m4/save-cwd.m4 (gl_SAVE_CWD):
40728         * m4/savedir.m4 (gl_SAVEDIR):
40729         * m4/settime.m4 (gl_SETTIME):
40730         * m4/sha1.m4 (gl_SHA1):
40731         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
40732         * m4/stat-macros.m4 (gl_STAT_MACROS):
40733         * m4/stat-time.m4 (gl_STAT_TIME):
40734         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
40735         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
40736         * m4/strdup.m4 (gl_FUNC_STRDUP):
40737         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
40738         * m4/strndup.m4 (gl_FUNC_STRNDUP):
40739         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
40740         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
40741         * m4/time_r.m4 (gl_TIME_R):
40742         * m4/timespec.m4 (gl_TIMESPEC):
40743         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
40744         * m4/unlinkdir.m4 (gl_UNLINKDIR):
40745         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
40746         * m4/userspec.m4 (gl_USERSPEC):
40747         * m4/utimecmp.m4 (gl_UTIMECMP):
40748         * m4/utimens.m4 (gl_UTIMENS):
40749         * m4/xalloc.m4 (gl_XALLOC):
40750         * m4/xgetcwd.m4 (gl_XGETCWD):
40751         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
40752         * m4/xreadlink.m4 (gl_XREADLINK):
40753         * m4/xstrtod.m4 (gl_XSTRTOD):
40754         * m4/yesno.m4 (gl_YESNO):
40755         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
40756         to get the necessary .h files and whatnot.
40757
40758 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
40759             Bruno Haible  <bruno@clisp.org>
40760
40761         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
40762         /bin/sh understanding of '!' conditional negation.
40763
40764 2006-08-21  Jim Meyering  <jim@meyering.net>
40765
40766         * modules/openat (Depends-on): Really alphabetize.
40767
40768         * modules/acl (Depends-on): Add error and quote.
40769
40770         * check-module (find_included_lib_files): Add at-func.c to the
40771         ok-to-include-more-than-once white list.
40772
40773         * modules/openat (Depends-on): Add lstat.  Alphabetize.
40774
40775 2006-08-21  Bruno Haible  <bruno@clisp.org>
40776
40777         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40778         Emit a pkgdata_DATA variable only if some snippets add contents to it.
40779         Reported by Martin Lambers <marlam@marlam.de>.
40780
40781 2006-08-21  Bruno Haible  <bruno@clisp.org>
40782
40783         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
40784         specify an installation location, don't emit a noinst_LIBRARIES or
40785         noinst_LTLIBRARIES assignment.
40786
40787 2006-08-21  Bruno Haible  <bruno@clisp.org>
40788
40789         BeOS portability.
40790         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
40791         BeOS has mbrtowc() but no <wctype.h>.
40792
40793 2006-08-21  Bruno Haible  <bruno@clisp.org>
40794
40795         BeOS portability.
40796         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
40797         exist.
40798
40799 2006-08-21  Bruno Haible  <bruno@clisp.org>
40800
40801         BeOS portability.
40802         * lib/mbchar.h: Include <wctype.h> only if it exists.
40803
40804 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40805
40806         Remove files that are no longer needed by their respective modules.
40807         * m4/obstack.m4: Remove.
40808         * m4/strerror_r.m4: Remove.
40809         * m4/uint32_t.m4: Remove.
40810         * m4/uintptr_t.m4: Remove.
40811         * m4/ullong_max.m4: Remove.
40812         * m4/xstrtoimax.m4: Remove.
40813         * m4/xstrtoumax.m4: Remove.
40814
40815         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
40816         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
40817         dependencies now capture this.
40818
40819         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
40820         Do not use AC_LIBSOURCES, since gnulib modules now do this.
40821         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
40822         * m4/human.m4 (gl_HUMAN): Likewise.
40823         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
40824         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
40825
40826         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
40827
40828         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
40829         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
40830         stdint.
40831         * m4/human.m4 (gl_HUMAN): Likewise.
40832         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
40833         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
40834         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
40835         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
40836         * m4/xstrtol (gl_XSTRTOL): Likewise.
40837
40838         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
40839         AC_TYPE_LONG_LONG_INT.
40840         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
40841         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
40842         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
40843         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
40844
40845         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
40846         on stdbool.
40847
40848         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
40849         (gl_PREREQ_XSTRTOUL): Remove.
40850
40851         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
40852
40853         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
40854         mode.
40855
40856 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40857
40858         Add and change modules to make it easier for coreutils to use
40859         gnulib-tool.
40860         * modules/backupfile (Files): Remove m4/d-ino.m4.
40861         (Depends-on): Add d-ino.
40862         * modules/cycle-check (Depends-on): Add stdint.
40863         (lib_SOURCES): Add cycle-check.h.
40864         * modules/d-ino: New module.
40865         * modules/d-type: New module.
40866         * modules/error (Files): Remove m4/strerror_r.m4.
40867         * modules/filemode (Files): Add m4/st_dm_mode.m4.
40868         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
40869         m4/inttypes_h.m4, m4/uintmax_t.m4.
40870         (Depends-on): Add stdint.
40871         (lib_SOURCES): Add fsusage.h.
40872         * modules/getcwd (Files): Remove d-ino.m4.
40873         (Depends-on): Add d-ino.
40874         * modules/getndelim2 (Depends-on): Add stdint.
40875         * modules/glob (Files): Remove m4/d-type.m4.
40876         (Depends-on): Add d-type.
40877         * modules/host-os: New module.
40878         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
40879         m4/inttypes_h.m4, m4/uintmax_t.m4.
40880         * Depends-on: Add stdint.
40881         (lib_SOURCES): Add human.h.
40882         * modules/inttostr (Files): Remove m4/intmax_t.m4,
40883         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
40884         m4/uintmax_t.m4, m4/ulonglong.m4.
40885         (Depends-on): Add stdint.
40886         (EXTRA_DIST): Add inttostr.h.
40887         * modules/lchmod: New module.
40888         * modules/link-follow: New module.
40889         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
40890         (Depends-on): Add lchmod.
40891         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
40892         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
40893         (Depends-on): Add stdint.
40894         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
40895         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
40896         (Depends-on): Add stdint.
40897         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
40898         * modules/perl: New module.
40899         * modules/regex (Depends-on): Add stdint.
40900         * modules/rmdir-errno: New module.
40901         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
40902         m4/intmax_t.m4.
40903         (Depends-on): Add stdint.
40904         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
40905         m4/uintmax_t.m4.
40906         (Depends-on): Add stdint.
40907         * modules/unlink-busy: New module.
40908         * modules/utimecmp (Depends-on): Add stdint.
40909         * modules/uptime: New module.
40910         * modules/winsz-ioctl: New module.
40911         * modules/winsz-termios: New module.
40912         * modules/xnanosleep (Depends-on): Add nanosleep.
40913         * modules/ullong_max: Remove.
40914         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
40915         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
40916         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
40917         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
40918         (Depends-on): Add inttypes.
40919         (lib_SOURCES): Add xstrtol.h.
40920         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
40921         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
40922         * MODULES.html.sh: Move 'assert' into the assert section.
40923         Move 'dummy' into the linking section.
40924         Remove ullong_max.
40925         Add section for compatibility checks for POSIX:2001 functions,
40926         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
40927         winsz-ioctl, and winsz-termios into it.
40928         Add lchmod.
40929         Add top-level Misc section and put host-os, perl, and uptime
40930         into it.
40931
40932 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
40933
40934         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
40935         now assume the stdint module.  Do not include inttypes.h.
40936         * lib/fsusage.h: Likewise.
40937         * lib/getndelim2.c: Likewise.
40938         * lib/human.h: Likewise.
40939         * lib/inttostr.h: Likewise.
40940         * lib/obstack.c: Likewise.
40941         * lib/regex_internal.h: Likewise.
40942         * lib/tempname.c: Likewise.
40943         * lib/utimecmp.c: Likewise.
40944         * lib/xstrtol.h: Likewise.
40945
40946         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
40947
40948         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
40949         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
40950         * lib/xtime.h: Likewise.
40951
40952 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40953
40954         * modules/openat (Files): Add lib/fchmodat.c.
40955         Fixes problem reported by Jay Youngman.
40956
40957 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
40958
40959         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
40960         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
40961
40962 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
40963             Bruno Haible  <bruno@clisp.org>
40964
40965         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
40966         and is a script that invokes bison. Tighten the code. Add comments.
40967
40968 2006-08-18  Jim Meyering  <jim@meyering.net>
40969
40970         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
40971         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
40972         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
40973         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
40974
40975 2006-08-18  Bruno Haible  <bruno@clisp.org>
40976
40977         * modules/bison-i18n: New file.
40978         * MODULES.html.sh (Internationalization functions): Add it.
40979
40980 2006-08-18  Bruno Haible  <bruno@clisp.org>
40981
40982         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
40983         sys/statvfs.h. When getmntinfo was found, check its declaration and
40984         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
40985
40986 2006-08-18  Bruno Haible  <bruno@clisp.org>
40987
40988         * m4/bison-i18n.m4: New file, from bison.
40989
40990 2006-08-18  Bruno Haible  <bruno@clisp.org>
40991
40992         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
40993         (ME_DUMMY): Treat "kernfs" as a dummy.
40994         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
40995
40996 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
40997
40998         Update from coreutils.
40999
41000         2006-08-15  Jim Meyering  <jim@meyering.net>
41001
41002         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
41003
41004         2006-01-17  Jim Meyering  <jim@meyering.net>
41005
41006         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
41007
41008         2006-01-11  Jim Meyering  <jim@meyering.net>
41009
41010         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
41011         Check for the lchmod function.
41012
41013 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
41014
41015         Update from coreutils.
41016
41017         * lib/__fpending.h: Add copyright notice.
41018         * lib/fprintftime.h: Likewise.
41019         * lib/savedir.c: Use (C) in copyright notice.
41020         * lib/savedir.h: Likewise.
41021
41022         2006-08-15  Jim Meyering  <jim@meyering.net>
41023
41024         * lib/at-func.c: New file, with the logic of all emulated at-functions.
41025         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
41026         in support of the EXPECTED_ERRNO macro.
41027         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
41028         definitions.  Instead, define the appropriate symbols and include
41029         "at-func.c".
41030         * lib/mkdirat.c (mkdirat): Likewise.
41031         * lib/fchmodat.c (fchmodat): Likewise.
41032         (ENOSYS): Remove definition.
41033         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
41034         it.  Don't include "unistd--.h" -- it wasn't ever used.
41035
41036         2006-01-17  Jim Meyering  <jim@meyering.net>
41037
41038         Rewrite fts.c not to change the current working directory,
41039         by using openat, fstatat, fdopendir, etc..
41040
41041         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
41042         (HAVE_OPENAT_SUPPORT): Define.
41043         [_LIBC] (fchdir): Don't undef or define; no longer used.
41044         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
41045         Now, this `function' always succeeds, and consumes its file descriptor
41046         parameter -- so callers must not close such FDs.  Update callers.
41047         (diropen_fd, opendirat, cwd_advance_fd): New functions.
41048         (diropen): Add parameter, SP.  Adjust all callers.
41049         Implement using diropen_fd, rather than open.
41050         (fts_open): Initialize new member, fts_cwd_fd.
41051         Remove fts_rft-setting code.
41052         (fts_close): Close fts_cwd_fd, if necessary.
41053         (__opendir2): Define in terms of opendir or opendirat,
41054         depending on whether the FST_NOCHDIR flag is set.
41055         (fts_build): Since fts_safe_changedir consumes its FD, and since
41056         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
41057         and close the dup'd file descriptor upon failure.
41058         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
41059         (fts_safe_changedir): Tweak semantics to reflect that this function
41060         now calls cwd_advance_fd and hence consumes its FD argument.
41061         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
41062         [struct FTS] (fts_rft): Remove now-unused member.
41063         [struct FTS] (fts_cycle.state): Improve comment.
41064
41065         * lib/openat.c (openat_needs_fchdir): New function.
41066         * lib/openat.h (openat_needs_fchdir): Declare it.
41067
41068 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
41069
41070         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
41071         Problem and fix reported by Pádraig Brady in
41072         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
41073
41074 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41075
41076         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
41077
41078 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41079
41080         * lib/memcoll.c (memcoll): Optimize for the common case where the
41081         arguments are bytewise equal.
41082
41083 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
41084
41085         * doc/regexprops-generic.texi: Add a copyright notice.
41086
41087 2006-08-15  Bruno Haible  <bruno@clisp.org>
41088
41089         * modules/tmpdir (License): Change to LGPL.
41090
41091 2006-08-15  Bruno Haible  <bruno@clisp.org>
41092
41093         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
41094         module.
41095
41096 2006-08-14  Simon Josefsson  <jas@extundo.com>
41097
41098         * config/srclist.txt: Add gnupload.
41099
41100 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41101
41102         Change copyright notice from LGPL 2 to GPL 2, since that's the
41103         standard form used in the gnulib repository.
41104         * tests/test-lock.c: Likewise.
41105         * tests/test-stdint.c: Likewise.
41106         * tests/test-tls.c: Likewise.
41107
41108         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
41109         prelude-manager.  User shorter URLs for GNU projects, without '?'.
41110         Add copyright notice.
41111
41112         * check-module: Add copyright notice.  Output a copyright
41113         notice if "--version" is specified.
41114         * modules/COPYING: New file.
41115         * tests/test-getaddrinfo.c: Add copyright notice.
41116         * tests/test-verify.c: Likewise.
41117
41118 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41119
41120         Change copyright notice from LGPL 2 to GPL 2, since that's the
41121         standard form used in the gnulib repository.
41122         * lib/lock.c: LGPL -> GPL.
41123         * lib/lock.h: Likewise.
41124         * lib/strnlen1.c: Likewise.
41125         * lib/strnlen1.h: Likewise.
41126         * lib/tls.c: Likewise.
41127         * lib/tls.h: Likewise.
41128         * lib/tmpdir.c: Likewise.
41129
41130         * lib/TODO: Remove; this belongs only in coreutils.
41131
41132 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41133
41134         Add copyright notices to long-enough files that lack them, since
41135         otherwise the files aren't clearly free.  Use the same notice that
41136         getdate.texi already uses.
41137         * doc/alloca-opt.texi: Add copyright notice.
41138         * doc/alloca.texi: Likewise.
41139         * doc/ctime.texi: Likewise.
41140         * doc/functions.texi: Likewise.
41141         * doc/gcd.texi: Likewise.
41142         * doc/gnulib-tool.texi: Likewise.
41143         * doc/inet_ntoa.texi: Likewise.
41144         * doc/visibility.texi: Likewise.
41145
41146         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
41147         * doc/quote.texi: Add copyright notice.
41148
41149         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
41150         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
41151         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
41152         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
41153         is now obsolete, and give a pointer to the Sun list.
41154         Add copyright notice.
41155
41156 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
41157
41158         * config/srclistvars.sh: Add copyright notice.
41159
41160 2006-08-14  Eric Blake  <ebb9@byu.net>
41161
41162         Import the following change from libc:
41163
41164         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
41165
41166         Upstream bug 2997.
41167         * lib/misc/error.c: Add space between program name and message if file
41168         name is missing.
41169
41170 2006-08-12  Karl Berry  <karl@gnu.org>
41171
41172         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
41173         remove, these originate in gnulib now.
41174
41175 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41176
41177         * doc/Makefile (standards.info standards.html standards.dvi):
41178         Also depend on make-stds.texi.
41179
41180 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
41181
41182         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
41183         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
41184
41185         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
41186         in wchar_t.  Problem reported by Eric Blake.
41187
41188         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
41189         LEN is smaller than SIZE.  Suggested by Bruno Haible.
41190         Also, help the compiler to keep LEN in a register.
41191
41192 2006-08-11  Eric Blake  <ebb9@byu.net>
41193
41194         * users.txt: Sort.  Add tar.
41195
41196 2006-08-11  Bruno Haible  <bruno@clisp.org>
41197
41198         * users.txt: New file.
41199
41200 2006-08-11  Bruno Haible  <bruno@clisp.org>
41201
41202         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
41203         before <wchar.h>. Needed for OSF/1 and BSD/OS.
41204
41205 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41206
41207         * modules/snprintf (Depends-on): Remove minmax.
41208         (Maintainer): Add self and Bruno.
41209
41210 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
41211
41212         * lib/.cppi-disable: Add snprintf.h, socket_.h.
41213         * lib/snprintf.c: Include <errno.h> and <limits.h>.
41214         (EOVERFLOW): Define if the system does not.
41215         Do not include "minmax.h"; it wasn't used.
41216         (snprintf): Don't assume size_t promotes to an unsigned type.
41217         Fix bug when generated string was too long for the buffer: the
41218         buffer's contents are supposed to be the initial prefix of the
41219         output.  Don't assume vasnprintf returns EOVERFLOW if the size
41220         exceeds INT_MAX; do the check ourselves.
41221
41222         Import the following changes from libc:
41223
41224         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
41225
41226         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
41227         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
41228         set wc to the byte which couldn't be converted.
41229         (re_string_reconstruct): Don't clear valid_raw_len before calling
41230         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
41231         tip_context using re_string_context_at.
41232
41233         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
41234
41235         * lib/posix/regex.h: g++ still cannot handled [restrict].
41236
41237         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
41238
41239         * lib/posix/regex.h: Remove special handling for VMS.
41240
41241 2006-08-10  Jim Meyering  <jim@meyering.net>
41242
41243         * modules/same-inode: New module.
41244         * modules/dev-ino: New module.
41245         * modules/cycle-check: Depend on these modules, rather than simply
41246         including their .h files.
41247         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
41248         required via m4/cycle-check.m4.
41249         * modules/same: Depend on new same-inode module, rather than
41250         including same-inode.h.
41251         * modules/chdir-safer: New file.
41252
41253         * modules/chown (Depends-on): Add stat-macros.
41254
41255 2006-08-10  Jim Meyering  <jim@meyering.net>
41256
41257         * m4/cycle-check.m4: New file.
41258         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
41259         * m4/dev-ino.m4, m4/same-inode.m4: New files.
41260
41261 2006-08-10  Eric Blake  <ebb9@byu.net>
41262
41263         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
41264         in from original proposal.
41265
41266 2006-08-10  Eric Blake  <ebb9@byu.net>
41267         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41268
41269         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
41270         namespace.
41271
41272 2006-08-10  Bruno Haible  <bruno@clisp.org>
41273
41274         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
41275         as well.
41276
41277 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41278
41279         Sync from coreutils.
41280
41281         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
41282
41283         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
41284         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
41285
41286 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41287
41288         * modules/restrict: Remove; no longer needed now that we assume
41289         Autoconf 2.59 or later.
41290         * MODULES.html.sh: Remove 'restrict'.
41291         * modules/argp (Depends-on): Remove 'restrict'.
41292         * modules/base64 (Depends-on): Likewise.
41293         * modules/gc (Depends-on): Likewise.
41294         * modules/getaddrinfo (Depends-on): Likewise.
41295         * modules/glob (Depends-on): Likewise.
41296         * modules/inet_ntop (Depends-on): Likewise.
41297         * modules/inet_pton (Depends-on): Likewise.
41298         * modules/memxor (Depends-on): Likewise.
41299         * modules/regex (Depends-on): Likewise.
41300         * modules/strtok_r (Depends-on): Likewise.
41301         * modules/time_r (Depends-on): Likewise.
41302
41303 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
41304
41305         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
41306         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
41307         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41308         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
41309         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
41310         * m4/memxor.m4 (gl_MEMXOR): Likewise.
41311         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
41312         gl_C_RESTRICT replaced by AC_C_RESTRICT.
41313
41314         Merge from coreutils.
41315         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
41316         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
41317         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41318         * m4/time_r.m4 (gl_TIME_R): Likewise.
41319
41320 2006-08-09  Karl Berry  <karl@gnu.org>
41321
41322         * config/srclist.txt: no more gettext-tools, per Bruno.
41323
41324 2006-08-08  Eric Blake  <ebb9@byu.net>
41325
41326         * modules/verror: New module.
41327         * MODULES.html.sh: Document it.
41328
41329 2006-08-08  Eric Blake  <ebb9@byu.net>
41330
41331         * lib/verror.h, lib/verror.c: New files.
41332
41333 2006-08-08  Eric Blake  <ebb9@byu.net>
41334
41335         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
41336         verror_at_line output complies with GNU Coding Standards even when
41337         file is NULL.
41338
41339 2006-08-07  Bruno Haible  <bruno@clisp.org>
41340
41341         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
41342         versions of AIX.
41343         Reported by Ralf Wildenhues.
41344
41345 2006-08-07  Bruno Haible  <bruno@clisp.org>
41346
41347         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
41348         in an AC_DEFUN. Needed so that the autoconf snippets can use
41349         AC_REQUIRE.
41350
41351 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41352
41353         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41354         Initialize pkgdata_DATA.
41355         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
41356         overriding it.
41357
41358 2006-08-06  Eric Blake  <ebb9@byu.net>
41359
41360         * lib/error.h: Fold in some upstream changes from glibc.
41361         * lib/error.c: Likewise.
41362
41363 2006-08-04  Bruno Haible  <bruno@clisp.org>
41364
41365         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41366         Make the mostlyclean-local rule depend on mostlyclean-generic.
41367         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
41368
41369 2006-07-31  Bruno Haible  <bruno@clisp.org>
41370
41371         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
41372         <stdlib.h>, <string.h>.
41373
41374 2006-07-30  Bruno Haible  <bruno@clisp.org>
41375
41376         * modules/readlink (License): Change to LGPL.
41377
41378 2006-07-30  Bruno Haible  <bruno@clisp.org>
41379
41380         * modules/javaversion (Makefile.am): Distribute javaversion.java and
41381         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
41382         set PKGDATADIR to point to it.
41383
41384 2006-07-30  Bruno Haible  <bruno@clisp.org>
41385
41386         * modules/csharpexec (configure.ac): Comment out macro invocation.
41387         * modules/javaexec (configure.ac): Likewise.
41388         * modules/javacomp-script (configure.ac): Likewise.
41389
41390         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
41391
41392 2006-07-30  Bruno Haible  <bruno@clisp.org>
41393
41394         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
41395         linked-list.
41396
41397 2006-07-30  Bruno Haible  <bruno@clisp.org>
41398
41399         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
41400
41401 2006-07-30  Bruno Haible  <bruno@clisp.org>
41402
41403         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41404         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
41405         get removed.
41406
41407 2006-07-29  Bruno Haible  <bruno@clisp.org>
41408
41409         Make it possible for gnulib-tool to work with locally modified or
41410         augmented gnulib repositories.
41411         * gnulib-tool (func_usage): Document --local-dir option.
41412         (local_gnulib_dir): New variable.
41413         Handle --local-dir option.
41414         (func_lookup_file): New function.
41415         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
41416         (func_get_description, func_get_filelist, func_get_description,
41417         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
41418         func_get_automake_snippet, func_get_include_directive,
41419         func_get_license, func_get_maintainer): Use func_lookup_file.
41420         (func_import, func_create_testdir): Use func_lookup_file.
41421
41422 2006-07-29  Bruno Haible  <bruno@clisp.org>
41423
41424         * modules/setenv (Depends-on): Add unistd.
41425
41426 2006-07-29  Bruno Haible  <bruno@clisp.org>
41427
41428         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
41429
41430 2006-07-29  Bruno Haible  <bruno@clisp.org>
41431
41432         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
41433
41434 2006-07-29  Bruno Haible  <bruno@clisp.org>
41435
41436         * gnulib-tool (import, update): If there is no Makefile.am, look at
41437         aclocal.m4, instead of bailing out.
41438
41439 2006-07-29  Bruno Haible  <bruno@clisp.org>
41440
41441         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
41442         Categorize the options by when they are useful.
41443
41444 2006-07-29  Bruno Haible  <bruno@clisp.org>
41445
41446         * gnulib-tool (func_usage): Document option --no-libtool.
41447         Handle option --no-libtool.
41448         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
41449         for changed semantics of $libtool variable.
41450         (func_import): Likewise. If libtool is not used, show this through
41451         an option --no-libtool.
41452         (func_create_testdir): Update.
41453
41454 2006-07-29  Bruno Haible  <bruno@clisp.org>
41455
41456         * gnulib-tool (func_import): Extend error message about missing
41457         --doc-base.
41458
41459 2006-07-29  Bruno Haible  <bruno@clisp.org>
41460
41461         * gnulib-tool (func_import): Don't create the $docbase directory if
41462         there is no file to store there.
41463
41464 2006-07-29  Bruno Haible  <bruno@clisp.org>
41465
41466         * gnulib-tool (autoconf_minversion): If a --dir option is given and
41467         relevant, look for configure.ac there, not in the current directory.
41468         Also use a simple search for AC_PREREQ, not "autoconf --trace".
41469
41470 2006-07-29  Bruno Haible  <bruno@clisp.org>
41471
41472         * gnulib-tool (SORT): New variable.
41473         (func_usage): Undocument --assume-autoconf option.
41474         Remove --assume-autoconf option handling.
41475         (autoconf_minversion): Determine from the contents of configure.ac.
41476         (func_import): Remove autoconf_minversion handling.
41477         Suggested by Eric Blake.
41478
41479 2006-07-29  Bruno Haible  <bruno@clisp.org>
41480
41481         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
41482
41483 2006-07-29  Bruno Haible  <bruno@clisp.org>
41484
41485         * config/srclist.txt (*setenv.[ch]): Remove rules.
41486
41487 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41488
41489         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
41490
41491 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41492
41493         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
41494         arpa/inet.h.
41495
41496 2006-07-28  Simon Josefsson  <jas@extundo.com>
41497
41498         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
41499         * modules/inet_pton (Depends-on): Likewise.
41500
41501 2006-07-28  Simon Josefsson  <jas@extundo.com>
41502
41503         * m4/netinet_in_h.m4: New file.
41504
41505 2006-07-28  Simon Josefsson  <jas@extundo.com>
41506
41507         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
41508         #include's.
41509
41510 2006-07-28  Simon Josefsson  <jas@extundo.com>
41511
41512         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
41513         #include's.
41514
41515 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
41516
41517         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
41518         setgid on directories only if they set these bits.
41519         * lib/modechange.h: Remove obsolete comment about masks.
41520
41521 2006-07-28  Eric Blake  <ebb9@byu.net>
41522
41523         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
41524         macro expansion.
41525
41526 2006-07-28  Bruno Haible  <bruno@clisp.org>
41527
41528         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
41529
41530 2006-07-28  Bruno Haible  <bruno@clisp.org>
41531
41532         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
41533
41534 2006-07-28  Bruno Haible  <bruno@clisp.org>
41535
41536         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41537         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41538         Define fallbacks.
41539         Avoids link error on FreeBSD 4.x.
41540         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41541
41542         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
41543         encoding.
41544         * lib/mbswidth.c (iswcntrl): Likewise.
41545
41546 2006-07-27  Bruno Haible  <bruno@clisp.org>
41547
41548         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
41549         test.
41550
41551 2006-07-27  Bruno Haible  <bruno@clisp.org>
41552
41553         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
41554         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
41555         defined.
41556
41557 2006-07-26  Eric Blake  <ebb9@byu.net>
41558
41559         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
41560
41561 2006-07-26  Eric Blake  <ebb9@byu.net>
41562
41563         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
41564         like mingw that lack mkstemp.
41565         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
41566         avoid compilation warning on mingw.
41567
41568 2006-07-26  Bruno Haible  <bruno@clisp.org>
41569
41570         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
41571         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
41572         INT_FAST*_MIN, INTPTR_MIN.
41573
41574 2006-07-25  Bruno Haible  <bruno@clisp.org>
41575
41576         * modules/version-etc (Depends-on): Add stdarg.
41577
41578 2006-07-25  Bruno Haible  <bruno@clisp.org>
41579
41580         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
41581         complex commands.
41582
41583 2006-07-25  Bruno Haible  <bruno@clisp.org>
41584
41585         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
41586         defined in <stdarg.h> or config.h.
41587
41588 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
41589
41590         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
41591         (gl_STDIO_SAFER): Remove.
41592
41593 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
41594
41595         * MODULES.html.sh (File stream based Input/Output):
41596         Add fopen-safer, tmpfile-safer; remove stdio-safer.
41597         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
41598         * modules/fopen-safer, modules/tmpfile-safer: New files.
41599         * modules/stdio-safer: Remove.
41600
41601 2006-07-24  Bruno Haible  <bruno@clisp.org>
41602
41603         * modules/tmpdir: New file.
41604         * MODULES.html.sh (File system functions): Add it.
41605
41606 2006-07-24  Bruno Haible  <bruno@clisp.org>
41607
41608         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
41609         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
41610
41611 2006-07-24  Bruno Haible  <bruno@clisp.org>
41612
41613         * modules/clean-temp: New file.
41614
41615 2006-07-24  Bruno Haible  <bruno@clisp.org>
41616
41617         * m4/tmpdir.m4: New file, from GNU gettext.
41618
41619 2006-07-24  Bruno Haible  <bruno@clisp.org>
41620
41621         * lib/tmpdir.h: New file, from GNU gettext.
41622         * lib/tmpdir.c: New file, from GNU gettext.
41623
41624 2006-07-24  Bruno Haible  <bruno@clisp.org>
41625
41626         * lib/clean-temp.h: New file, from GNU gettext.
41627         * lib/clean-temp.c: New file, from GNU gettext.
41628
41629 2006-07-23  Eric Blake  <ebb9@byu.net>
41630
41631         * modules/stdio-safer (Files): Add tmpfile-safer.c.
41632         (Depends-on): Add binary-io.
41633
41634 2006-07-23  Eric Blake  <ebb9@byu.net>
41635
41636         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
41637
41638 2006-07-23  Eric Blake  <ebb9@byu.net>
41639
41640         * lib/tmpfile-safer.c: New file.
41641         * lib/stdio-safer.h (fopen_safer): Add prototype.
41642         * lib/stdio--.h (tmpfile): Make safer.
41643
41644 2006-07-23  Bruno Haible  <bruno@clisp.org>
41645
41646         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
41647         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
41648         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
41649         gl_linked_remove_at): Use it.
41650
41651 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41652         and Simon Josefsson <jas@extundo.com>
41653
41654         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
41655
41656         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
41657
41658 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41659
41660         * modules/close-stream: New file.
41661         * modules/closeout (Description): Make it clear that it exits
41662         with a diagnostic on error.
41663         (Depends-on): Add close-stream.  Remove fpending, stdbool.
41664         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
41665
41666 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41667
41668         * m4/close-stream.m4: New file.
41669
41670 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
41671
41672         * lib/close-stream.c, lib/close-stream.h: New files.
41673
41674 2006-07-22  Bruno Haible  <bruno@clisp.org>
41675
41676         Merge from GNU gettext 0.15.
41677
41678         2006-05-01  Bruno Haible  <bruno@clisp.org>
41679
41680                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
41681
41682         2006-07-22  Bruno Haible  <bruno@clisp.org>
41683
41684                 * modules/javaversion: New file.
41685                 * MODULES.html.sh (Java): Add javaversion.
41686
41687         2006-03-12  Bruno Haible  <bruno@clisp.org>
41688
41689                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
41690
41691         2005-12-04  Bruno Haible  <bruno@clisp.org>
41692
41693                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
41694                 (untested).
41695
41696         2006-06-21  Bruno Haible  <bruno@clisp.org>
41697
41698                 Avoid warnings from recent versions of mcs.
41699                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
41700                 -o, -L, -r any more. Use options documented since mcs-1.0
41701                 instead. Similarly for -g.
41702
41703         2005-12-04  Bruno Haible  <bruno@clisp.org>
41704
41705                 * build-aux/csharpcomp.sh.in: Suffix for resources is
41706                 .resources, not .resource.
41707
41708         2005-07-09  Bruno Haible  <bruno@clisp.org>
41709
41710                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
41711                 add a .dll suffix.
41712                 Reported by Mark Junker <mjscod@gmx.de>.
41713
41714         2006-07-22  Bruno Haible  <bruno@clisp.org>
41715
41716                 * modules/gettext: Upgrade to gettext-0.15.
41717                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
41718                 m4/visibility.m4.
41719                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
41720
41721 2006-07-22  Bruno Haible  <bruno@clisp.org>
41722
41723         Merge from GNU gettext 0.15.
41724
41725         2006-03-25  Bruno Haible  <bruno@clisp.org>
41726
41727                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
41728
41729         2006-07-21  Bruno Haible  <bruno@clisp.org>
41730
41731                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
41732                 "1.1".
41733
41734         2006-05-09  Bruno Haible  <bruno@clisp.org>
41735
41736                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
41737                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
41738                 for the conftestver execution.
41739
41740         2006-05-01  Bruno Haible  <bruno@clisp.org>
41741
41742                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
41743                 optional target-version argument. Verify that the compiler
41744                 groks source of the specified source-version, or add -source
41745                 option as necessary. Verify that the compiler produces
41746                 bytecode in the specified target-version, or add -target and
41747                 -source options as necessary. Make the result of the test
41748                 available as variable CONF_JAVAC. Also log error output in
41749                 config.log.
41750
41751         2006-03-11  Bruno Haible  <bruno@clisp.org>
41752
41753                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
41754
41755         2006-05-09  Bruno Haible  <bruno@clisp.org>
41756
41757                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
41758                 CLASSPATH_SEPARATOR to a semicolon.
41759
41760         2006-03-12  Bruno Haible  <bruno@clisp.org>
41761
41762                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
41763                 available as variable CONF_JAVA, for subsequent autoconf
41764                 tests. Also log error output in config.log.
41765
41766         2006-07-19  Bruno Haible  <bruno@clisp.org>
41767
41768                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
41769                 that getline works on glibc2 systems. Needed to avoid trouble
41770                 in relocatable.c.
41771                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
41772
41773         2005-12-04  Bruno Haible  <bruno@clisp.org>
41774
41775                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
41776                 launcher (untested).
41777
41778         2005-12-04  Bruno Haible  <bruno@clisp.org>
41779
41780                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
41781
41782         2006-07-22  Bruno Haible  <bruno@clisp.org>
41783
41784                 * gettext.m4: Update from GNU gettext-0.15.
41785                 * nls.m4: Likewise.
41786                 * po.m4: Likewise.
41787                 * inttypes-pri.m4: Likewise.
41788                 * inttypes-h.m4: Renamed from inttypes.m4.
41789                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
41790
41791 2006-07-22  Bruno Haible  <bruno@clisp.org>
41792
41793         Merge from GNU gettext 0.15.
41794
41795         2005-07-05  Bruno Haible  <bruno@clisp.org>
41796
41797                 * printf-args.c (printf_fetchargs): Work around broken
41798                 definition of wint_t on mingw.
41799
41800         2005-02-12  Bruno Haible  <bruno@clisp.org>
41801
41802                 * xallocsa.h: Add extern "C" for C++.
41803
41804         2006-05-17  Bruno Haible  <bruno@clisp.org>
41805
41806                 Cygwin portability.
41807                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
41808
41809         2006-04-30  Bruno Haible  <bruno@clisp.org>
41810
41811                 * progreloc.c: Include <mach-o/dyld.h> if available.
41812                 (find_executable): Use _NSGetExecutablePath when possible.
41813
41814         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
41815
41816                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
41817                 function.
41818
41819         2005-12-29  Bruno Haible  <bruno@clisp.org>
41820
41821                 * progreloc.c (set_program_name_and_installdir): Fix
41822                 compilation error.
41823
41824         2005-12-04  Bruno Haible  <bruno@clisp.org>
41825
41826                 Cygwin portability.
41827                 * progreloc.c: Include <windows.h> also on Cygwin.
41828                 (find_executable): Add support for Cygwin.
41829                 (set_program_name_and_installdir): Handle also platforms with
41830                 nonempty EXEEXT.
41831
41832         2006-07-11  Bruno Haible  <bruno@clisp.org>
41833
41834                 * javacomp.c: Fix a comment.
41835                 Reported by Jim Meyering.
41836
41837         2006-04-30  Bruno Haible  <bruno@clisp.org>
41838
41839                 * javacomp.h (compile_java_class): Add source_version,
41840                 target_version arguments.
41841                 * javacomp.c: Rewritten to choose only a compiler that
41842                 respects the specified source_version and target_version.
41843
41844         2006-06-27  Bruno Haible  <bruno@clisp.org>
41845
41846                 Assume correct S_ISDIR macro.
41847                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
41848
41849         2006-07-22  Bruno Haible  <bruno@clisp.org>
41850
41851                 * javaversion.h: New file, from GNU gettext.
41852                 * javaversion.c: New file, from GNU gettext.
41853                 * javaversion.java: New file, from GNU gettext.
41854                 * javaversion.class: New file, from GNU gettext.
41855
41856         2006-05-17  Bruno Haible  <bruno@clisp.org>
41857
41858                 Cygwin portability.
41859                 * javaexec.c (execute_java_class): Test for jview program
41860                 also on Cygwin.
41861
41862         2006-04-09  Bruno Haible  <bruno@clisp.org>
41863
41864                 * fatal-signal.c: Don't include string.h.
41865                 (at_fatal_signal): Use a copying loop instead of memcpy.
41866
41867         2005-12-04  Bruno Haible  <bruno@clisp.org>
41868
41869                 * csharpexec.c: Add support for 'clix' launcher (untested).
41870                 (execute_csharp_using_sscli): New function.
41871                 (execute_csharp_program): Call it.
41872
41873         2006-06-21  Bruno Haible  <bruno@clisp.org>
41874
41875                 Avoid warnings from recent versions of mcs.
41876                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
41877                 -o, -L, -r any more. Use options documented since mcs-1.0
41878                 instead. Similarly for -g.
41879
41880         2005-07-09  Bruno Haible  <bruno@clisp.org>
41881
41882                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
41883                 add a .dll suffix.
41884                 Reported by Mark Junker <mjscod@gmx.de>.
41885
41886         2006-06-17  Bruno Haible  <bruno@clisp.org>
41887
41888                 * config.charset: Update for NetBSD 3.0.
41889
41890         2006-05-17  Bruno Haible  <bruno@clisp.org>
41891
41892                 Cygwin portability.
41893                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
41894
41895         2006-05-16  Bruno Haible  <bruno@clisp.org>
41896
41897                 * localcharset.c [CYGWIN]: Include <windows.h>.
41898                 (get_charset_aliases): For Cygwin, return the same CPxxx
41899                 aliases list as under WIN32.
41900                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
41901                 the environment variables. Fall back to GetACP().
41902
41903         2006-04-05  Bruno Haible  <bruno@clisp.org>
41904
41905                 * config.charset: Update Juan Manuel Guerrero's address.
41906
41907         2005-02-12  Bruno Haible  <bruno@clisp.org>
41908
41909                 * allocsa.h: Add extern "C" for C++.
41910
41911         2005-02-10  Bruno Haible  <bruno@clisp.org>
41912
41913                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
41914                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
41915
41916         2006-07-22  Bruno Haible  <bruno@clisp.org>
41917
41918                 * gettext.h: Update to GNU gettext-0.15.
41919
41920 2006-07-22  Bruno Haible  <bruno@clisp.org>
41921
41922         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
41923         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
41924         lib-prefix.m4, longdouble.m4, ssize_t.m4.
41925
41926 2006-07-21  Eric Blake  <ebb9@byu.net>
41927
41928         * modules/stdlib-safer: New file.
41929         * MODULES.html.sh (File stream based Input/Output): Add
41930         stdlib-safer.
41931
41932 2006-07-21  Eric Blake  <ebb9@byu.net>
41933
41934         * lib/stdlib-safer.h: New file from coreutils, required by
41935         stdlib--.h.
41936
41937 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
41938
41939         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
41940
41941 2006-07-20  Bruno Haible  <bruno@clisp.org>
41942
41943         * gnulib-tool: Recognize new option --assume-autoconf.
41944         (autoconf_minversion): New variable.
41945         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
41946
41947 2006-07-20  Bruno Haible  <bruno@clisp.org>
41948
41949         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
41950
41951 2006-07-19  Derek R. Price  <derek@ximbiot.com>
41952
41953         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
41954         Reindent and repaginate.
41955
41956 2006-07-19  Derek Price  <derek@ximbiot.com>
41957
41958         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
41959         Correct grammar.
41960
41961 2006-07-17  Bruno Haible  <bruno@clisp.org>
41962
41963         * modules/list: New file.
41964         * modules/array-list: New file.
41965         * modules/carray-list, modules/carray-list-tests: New files.
41966         * modules/linked-list, modules/linked-list-tests: New files.
41967         * modules/avltree-list, modules/avltree-list-tests: New files.
41968         * modules/rbtree-list, modules/rbtree-list-tests: New files.
41969         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
41970         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
41971         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
41972         * modules/oset: New file.
41973         * modules/array-oset: New file.
41974         * modules/avltree-oset, modules/avltree-oset-tests: New files.
41975         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
41976         * tests/test-carray_list.c: New file.
41977         * tests/test-linked_list.c: New file.
41978         * tests/test-avltree_list.c: New file.
41979         * tests/test-rbtree_list.c: New file.
41980         * tests/test-linkedhash_list.c: New file.
41981         * tests/test-avltreehash_list.c: New file.
41982         * tests/test-rbtreehash_list.c: New file.
41983         * tests/test-avltree_oset.c: New file.
41984         * tests/test-rbtree_oset.c: New file.
41985         * MODULES.html.sh (Container data structures): New section.
41986
41987 2006-07-17  Bruno Haible  <bruno@clisp.org>
41988
41989         * m4/gl_list.m4: New file.
41990
41991 2006-07-17  Bruno Haible  <bruno@clisp.org>
41992
41993         * lib/gl_list.h: New file.
41994         * lib/gl_list.c: New file.
41995         * lib/gl_array_list.h: New file.
41996         * lib/gl_array_list.c: New file.
41997         * lib/gl_carray_list.h: New file.
41998         * lib/gl_carray_list.c: New file.
41999         * lib/gl_linked_list.h: New file.
42000         * lib/gl_linked_list.c: New file.
42001         * lib/gl_anylinked_list1.h: New file.
42002         * lib/gl_anylinked_list2.h: New file.
42003         * lib/gl_avltree_list.h: New file.
42004         * lib/gl_avltree_list.c: New file.
42005         * lib/gl_anyavltree_list1.h: New file.
42006         * lib/gl_anyavltree_list2.h: New file.
42007         * lib/gl_rbtree_list.h: New file.
42008         * lib/gl_rbtree_list.c: New file.
42009         * lib/gl_anyrbtree_list1.h: New file.
42010         * lib/gl_anyrbtree_list2.h: New file.
42011         * lib/gl_anytree_list1.h: New file.
42012         * lib/gl_anytree_list2.h: New file.
42013         * lib/gl_linkedhash_list.h: New file.
42014         * lib/gl_linkedhash_list.c: New file.
42015         * lib/gl_anyhash_list1.h: New file.
42016         * lib/gl_anyhash_list2.h: New file.
42017         * lib/gl_avltreehash_list.h: New file.
42018         * lib/gl_avltreehash_list.c: New file.
42019         * lib/gl_rbtreehash_list.h: New file.
42020         * lib/gl_rbtreehash_list.c: New file.
42021         * lib/gl_anytreehash_list1.h: New file.
42022         * lib/gl_anytreehash_list2.h: New file.
42023
42024         * lib/gl_oset.h: New file.
42025         * lib/gl_oset.c: New file.
42026         * lib/gl_array_oset.h: New file.
42027         * lib/gl_array_oset.c: New file.
42028         * lib/gl_avltree_oset.h: New file.
42029         * lib/gl_avltree_oset.c: New file.
42030         * lib/gl_rbtree_oset.h: New file.
42031         * lib/gl_rbtree_oset.c: New file.
42032         * lib/gl_anytree_oset.h: New file.
42033
42034 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
42035
42036         * m4/mkancesdirs.m4: New file.
42037         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
42038         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
42039         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
42040         it.
42041
42042 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
42043
42044         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
42045         * lib/mkancesdirs.h: New files.
42046         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
42047         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
42048         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
42049         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
42050         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
42051         callers changed.  Revamp internals significantly, by not
42052         attempting to create directories that are temporarily more
42053         permissive than the final results.  Do not attempt to use
42054         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
42055         This removes some race conditions, fixes some bugs, and simplifies
42056         things.  Use new dirchownmod function to do owner and mode changes.
42057         * lib/mkdir-p.h: Likewise.
42058         * lib/modechange.c (octal_to_mode): New function.
42059         (struct mode_change): New member mentioned.
42060         (make_node_op_equals): New arg mentioned.  All callers changed.
42061         (mode_compile): Keep track of which mode bits the user has explicitly
42062         mentioned.
42063         (mode_adjust): New arg DIR, so that we implement the X op correctly.
42064         New arg PMODE_BITS, to keep track of which mode bits the user
42065         mentioned; it treats S_ISUID and S_ISGID speciall.
42066         All callers changed.
42067         * lib/modechange.h: Likewise.
42068
42069 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
42070
42071         * MODULES.html.sh: Add mkancestors.
42072         * modules/mkancesdirs: New module.
42073         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
42074         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
42075         The chdir-safer and afs files are now orphans; I'll remove them
42076         unless someone speaks up.
42077         Add lib/dirchownmod.c, lib/dirchownmod.h.
42078         (Depends-on): Remove alloca, chown, save-cwd, dirname.
42079         Add lchown, mkancesdirs.
42080         (Maintainer): Add self.
42081
42082 2006-07-15  Karl Berry  <karl@gnu.org>
42083
42084         * gnulib-tool: help message wording/arrangement.
42085
42086 2006-07-14  Simon Josefsson  <jas@extundo.com>
42087
42088         * doc/gnulib.texi (Libtool and Windows): New section.
42089
42090 2006-07-12  Simon Josefsson  <jas@extundo.com>
42091
42092         * modules/gendocs (License): Fix license, approved by Karl.
42093
42094 2006-07-12  Eric Blake  <ebb9@byu.net>
42095
42096         * MODULES.html.sh: Add gendocs.
42097
42098 2006-07-11  Eric Blake  <ebb9@byu.net>
42099
42100         * modules/fdl: New module, to install doc/fdl.texi.
42101         * MODULES.html.sh: Add new section for documentation modules.
42102         * gnulib-tool: Avoid space-tab.
42103         (--doc-base): New option, to manage files from doc.
42104
42105 2006-07-11  Eric Blake  <ebb9@byu.net>
42106
42107         * m4/absolute-header.m4: Fix comments to match recent change.
42108
42109 2006-07-11  Eric Blake  <ebb9@byu.net>
42110
42111         * gnulib-tool: List --doc-base before --tests-base.
42112
42113 2006-07-11  Derek R. Price  <derek@ximbiot.com>
42114
42115         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
42116
42117 2006-07-11  Bruno Haible  <bruno@clisp.org>
42118
42119         * README: Mention where to put documentation.
42120
42121 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42122
42123         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
42124
42125 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
42126
42127         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
42128         to stdint.m4.
42129
42130 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
42131
42132         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
42133         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
42134         "no/such/file/stdint.h" when there is no such file, so that
42135         the resulting C code can be parsed by dodgy compilers.
42136         Problems reported by Bob Proulx.
42137
42138 2006-07-10  Derek R. Price  <derek@ximbiot.com>
42139
42140         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
42141         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
42142         macros into the GNU _D_EXACT_NAMLEN.
42143         * lib/savedir.c:  Likewise.
42144         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
42145
42146 2006-07-10  Derek R. Price  <derek@ximbiot.com>
42147         and Paul Eggert  <eggert@cs.ucla.edu>
42148
42149         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
42150         * m4/savedir.m4:
42151         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
42152         macros into the GNU _D_EXACT_NAMLEN.
42153
42154 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42155
42156         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
42157         around the absolute name, to work around a problem with the HP-UX
42158         11.23 native C compiler, reported by Bob Proulx.
42159
42160 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42161
42162         * doc/maintain.texi, make-stds.texi: Sync from
42163         <http://savannah.gnu.org/projects/gnustandards>.
42164
42165 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
42166
42167         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
42168
42169 2006-07-09  Jim Meyering  <jim@meyering.net>
42170
42171         * m4/glob.m4: Remove a doubled word in a comment.
42172
42173 2006-07-09  Jim Meyering  <jim@meyering.net>
42174
42175         * lib/argp-pv.c: Remove a doubled word in a comment.
42176         * lib/check-version.c (check_version): Likewise.
42177         * lib/javacomp.c (compile_java_class): Likewise.
42178
42179 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
42180
42181         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
42182         for the benefit of people using Autoconf 2.60.  If you want to
42183         support older Autoconf versions you can copy m4/onceonly_2_57.m4
42184         (or m4/onceonly.m4, if pre-2.57) manually.
42185
42186 2006-07-08  Jim Meyering  <jim@meyering.net>
42187
42188         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
42189         comment.
42190         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
42191         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
42192         comment.
42193
42194 2006-07-08  Jim Meyering  <jim@meyering.net>
42195
42196         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
42197
42198 2006-07-07  Simon Josefsson  <jas@extundo.com>
42199
42200         * tests/test-crc.c: Change expected crc value, the test vector
42201         were probably computed using the old broken crc.c?
42202
42203 2006-07-06  Simon Josefsson  <jas@extundo.com>
42204
42205         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
42206         now the canonical place for the M4 file).
42207
42208         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
42209         from the sys_socket dependency now.
42210
42211         * modules/inet_pton (Files): Ditto.
42212
42213         * modules/inet_ntop (Files): Ditto.
42214
42215 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
42216
42217         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
42218         not gl_PREREQ_GETUSERSHELL.
42219
42220 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42221
42222         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
42223         with only one argument, for Autoconf 2.60.
42224         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
42225         expand to nothing, so add a shell command to avoid syntax error.
42226         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
42227
42228 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42229
42230         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
42231
42232 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42233
42234         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
42235         no longer needed.  Check for isblank decl.
42236         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
42237         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
42238         of existence.
42239
42240 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42241
42242         * lib/getloadavg.c: Use __VMS, not VMS.
42243         * lib/getopt.c: Likewise.
42244         * lib/getpagesize.h: Likewise.
42245         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
42246         and probably does not work.
42247
42248 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42249
42250         * lib/.cppi-disable: Add wcwidth.
42251         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
42252         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
42253         (ISGRAPH): Remove.  All uses changed to isgraph.
42254         (FOLD) [!defined _LIBC]: Remove special case.
42255         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
42256         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
42257         HAVE_ISBLANK.
42258         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
42259         case.
42260
42261 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
42262
42263         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
42264         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
42265         brackets.  Other minor changes to suppress some compiler
42266         warnings.
42267
42268 2006-07-06  Derek R. Price  <derek@ximbiot.com>
42269         and Paul Eggert  <eggert@cs.ucla.edu>
42270
42271         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
42272         of invoking obsolescent AC_HEADER_DIRENT macro.
42273         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
42274         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
42275         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42276         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
42277         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
42278         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42279         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
42280         * m4/readdir.m4: Remove; no longer needed.
42281
42282 2006-07-06  Derek R. Price  <derek@ximbiot.com>
42283         and Paul Eggert  <eggert@cs.ucla.edu>
42284
42285         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
42286         Don't worry about this obsolete case any more.
42287         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
42288         directories.
42289         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
42290         worry about this obsolete case any more.
42291         * lib/fts.c: Likewise.
42292         * lib/getcwd.c: Likewise.
42293         * lib/glob.h: Likewise.
42294         * lib/savedir.c: Likewise.
42295
42296 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
42297
42298         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
42299         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
42300         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
42301         needed.
42302         All uses removed.
42303         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42304         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42305         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
42306         needed.
42307         * m4/getdate.m4 (gl_GETDATE): Likewise.
42308         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42309         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42310         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42311         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42312         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42313         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42314         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
42315         needed.
42316
42317 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
42318
42319         * lib/memcasecmp.c: Include <limits.h>.
42320         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
42321         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
42322         Don't assume isdigit succeeds only on '0' through '9'.
42323
42324 2006-07-05  Eric Blake  <ebb9@byu.net>
42325
42326         * modules/getaddrinfo (Depends-on): Add snprintf.
42327
42328 2006-07-05  Eric Blake  <ebb9@byu.net>
42329
42330         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
42331         to avoid 'header present but could not be compiled' on cygwin.
42332
42333 2006-07-05  Eric Blake  <ebb9@byu.net>
42334
42335         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
42336         missing from netdb.h.
42337         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
42338
42339 2006-07-05  Derek R. Price  <derek@ximbiot.com>
42340
42341         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
42342         no longer needed.
42343         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
42344         * m4/getdate.m4 (gl_GETDATE): Likewise.
42345         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42346         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42347         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42348         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42349         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42350
42351 2006-07-05  Derek R. Price  <derek@ximbiot.com>
42352
42353         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
42354         All uses of is_space replaced by isspace.
42355         * lib/exit.h: Don't talk about STDC_HEADERS.
42356         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
42357         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
42358         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
42359         replaced by isprint etc.
42360         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
42361         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42362         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
42363         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
42364         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
42365         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42366
42367 2006-07-05  Bruno Haible  <bruno@clisp.org>
42368
42369         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
42370         the function exists, before testing against AIX.
42371         Reported by Martin Lambers <marlam@marlam.de>.
42372
42373 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
42374
42375         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
42376         From Mark D. Baushke.
42377
42378 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
42379
42380         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
42381         to the absolute name, not just one, to bypass Sun C 5.8's
42382         "warning: #include of /usr/include/... may be non-portable".
42383
42384 2006-07-04  Eric Blake  <ebb9@byu.net>
42385
42386         * modules/dirname-tests: New test module.
42387         * tests/test-dirname.c: New file, replacing dirname.c
42388         TEST_DIRNAME section that was recently deleted.
42389
42390 2006-07-04  Bruno Haible  <bruno@clisp.org>
42391
42392         Assume ANSI C header files and <ctype.h> functions.
42393         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
42394         (mbsnwidth): Use isprint, iscntrl instead.
42395
42396 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42397
42398         Merge from coreutils.
42399         * MODULES.html.sh: Add xstrtold.
42400         * modules/xstrtold: New file.
42401         * modules/cycle-check (Files): Add lib/same-inode.h.
42402         * modules/dirname (Files): Add m4/double-slash-root.m4.
42403         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
42404         * modules/mkdir-p (Files): Add lib/same-inode.h.
42405         * modules/same (Files): Add lib/same-inode.h.
42406
42407 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42408
42409         * m4/absolute-header.m4: Renamed from full-header-path.m4.
42410         This is to keep the terminology clean; POSIX talks about
42411         "absolute pathnames", not "full pathnames", but the GNU
42412         Coding Standards say to use "path" for something else;
42413         so use "absolute" to keep both sides happy.
42414         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
42415         Set gl_absolute_header, not gl_full_header_path.
42416         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
42417         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
42418         All uses changed.
42419
42420         Merge from coreutils.
42421
42422         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
42423
42424         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
42425         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
42426         want to require the building of c-strtod.o.
42427         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
42428         needs -lm directly.
42429         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
42430
42431         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
42432
42433         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
42434         --as-needed option if available.  Problem reported by Albert Chin in
42435         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
42436         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
42437         cc merely issues a bunch of annoying warnings for --as-needed
42438         (this problem was reported by Bob Proulx).  Also, try linking with
42439         -lm to detect a bug in binutils 2.16 (this problem was reported
42440         by Ralf Wildenhues).
42441
42442         2006-06-18  Jim Meyering  <jim@meyering.net>
42443
42444         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
42445         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
42446         macro.
42447         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
42448         also check for glibc-2.4's abort-inducing bug.
42449
42450         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
42451         Low-probability clean-up should be to use rmdir to get rid of
42452         the just-created directory, not unlink.
42453
42454         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
42455         configure fail, and request a bug report to inform us about it.
42456         Add a comment that, barring reports to the contrary, in 2007 we'll
42457         assume ftruncate is universally available.
42458
42459         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
42460
42461         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
42462
42463         2006-03-12  Jim Meyering  <jim@meyering.net>
42464
42465         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
42466         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
42467         * m4/same.m4 (gl_SAME): Likewise.
42468         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
42469
42470         2006-03-11  Eric Blake  <ebb9@byu.net>
42471
42472         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
42473         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
42474         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
42475         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
42476
42477 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42478
42479         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
42480         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
42481         reported by Mark D. Baushke, one in
42482         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
42483
42484         Merge from coreutils.
42485
42486         * lib/.cppi-disable: Add stdint_.h.
42487         * lib/.cvsignore: Add stdint.h.
42488
42489         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
42490
42491         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
42492         both double and long double versions.
42493         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
42494         * lib/xstrtold.c: New file.
42495         * lib/xstrtod.h (xstrtold): New decl.
42496
42497         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
42498
42499         * lib/filemode.c (setst): Remove.
42500         (strmode): Rewrite to avoid setst.  This makes the code shorter,
42501         (arguably) clearer, and the generated code is a bit smaller on my
42502         Debian GNU/Linux stable x86 host.
42503
42504         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
42505
42506         * lib/filemode.c: Include "filemode.h" first, to test the interface.
42507         Assume that filemode.h includes sys/types.h and sys/stat.h.
42508         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
42509         (ftypelet): Reorder to put common cases first, for efficiency.
42510         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
42511         to do 'M'.
42512         (strmode): Renamed from mode_string, and now stores 12 bytes instead
42513         of 10, for compatibility with FreeBSD.  All callers changed.
42514         (filemodestring): Now stores 12 bytes instead of 10, and sets file
42515         types that can't be deduced solely from st_mode.  First arg is now a
42516         const pointer.
42517         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
42518         (strmode): Renamed from mode_string.
42519         (filemodestring): New decl.
42520         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
42521         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
42522         needed.
42523         (S_ISPORT, S_ISWHT): New macros, if not already defined.
42524
42525         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
42526
42527         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
42528         fsusage.h now does that.  Include fsusage.h first, to test interface.
42529         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
42530         at most one method (the old code could have generated decls that
42531         didn't conform to C89, not that this was ever exercised).
42532         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
42533
42534         2006-03-19  Jim Meyering  <jim@meyering.net>
42535
42536         Work even in a chroot where d_ino values for entries in "/"
42537         don't match the stat.st_ino values for the same names.
42538         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
42539         number, iterate through all entries again, using lstat instead.
42540         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
42541         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
42542
42543         * lib/getcwd.c (__getcwd): Clarify a comment.
42544         Use memcpy in place of a call to strcpy.
42545
42546         2006-03-12  Jim Meyering  <jim@meyering.net>
42547
42548         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
42549         matches that of the current directory (which we're about to chdir ".."
42550         out of), then save the dev-ino of the parent, instead.
42551
42552         * lib/same-inode.h (SAME_INODE): New file/macro.
42553         * lib/chdir-safer.c (SAME_INODE): Remove definition.
42554         Include "same-inode.h", instead.
42555         * lib/same.c: Likewise.
42556         * lib/cycle-check.h: Include "same-inode.h".
42557         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
42558         * lib/cycle-check.c (SAME_INODE): Remove definition.
42559         * lib/root-dev-ino.h: Include "same-inode.h".
42560
42561         2006-03-11  Eric Blake  <ebb9@byu.net>
42562
42563         * lib/same.c (same_name): s/base_name/last_component/
42564         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
42565         * lib/filenamecat.c (file_name_concat): Likewise.
42566
42567         2006-03-11  Eric Blake  <ebb9@byu.net>,
42568                     Paul Eggert  <eggert@cs.ucla.edu>
42569
42570         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
42571         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
42572         drive prefix.
42573         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
42574         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
42575         (last_component): New method.
42576         * lib/dirname.c (dir_len): Determine when drive letters need a
42577         subsequent slash.  Preserve // when it is special.
42578         (dir_name): Don't append dot when drive letter is absolute.
42579         [TEST_DIRNAME]: Move into a full-blown gnulib test.
42580         * lib/basename.c (base_name): New semantics - malloc the result.
42581         Preserve // when it is special.  Preserve relative files that look
42582         like drive letters.
42583         (base_len): Preserve // when it is special.
42584         (last_component): New method, similar to old base_name semantics.
42585         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
42586         base_name.  Strip redundant slashes from ///.
42587
42588 2006-07-03  Jim Meyering  <jim@meyering.net>
42589
42590         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
42591         macro is used before the first cycle_check call.
42592
42593 2006-07-03  Eric Blake  <ebb9@byu.net>
42594
42595         * modules/dirname (Depends-on): Add xstrndup.
42596
42597 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42598
42599         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
42600         test cases, so that config.log is a bit easier to follow.
42601
42602 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
42603
42604         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
42605         both are 64 bits, since this seems to be the tradition, and this
42606         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
42607         we ever run into a host that prefers long long to long in this
42608         case, we'll need another configure-time test.  Problem reported by
42609         Jim Meyering.
42610
42611 2006-07-02  Eric Blake  <ebb9@byu.net>
42612
42613         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
42614
42615 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42616
42617         * modules/inttypes (Depends-on): No longer depends on stdint.
42618         * modules/stdint (Description): Say more about assumptions.
42619         Say that the fast types might differ.  Say macros are used.
42620         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
42621         (Makefile.am): Revise list of substituted symbols to match
42622         new stdint.m4.
42623         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
42624         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
42625         * tests/test-stdint.c (verify_same_types)
42626         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
42627         the code conforms to C99/C89.
42628         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
42629         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
42630
42631 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42632
42633         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
42634         but fix a bug, by requiring at least 64 bits.
42635         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
42636         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
42637         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
42638         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
42639
42640         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
42641         changes.  Make 2.59 a prerequisite.  Check and substitute for
42642         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
42643         inttypes.h.  Do not use special include files; just use the
42644         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
42645         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
42646         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
42647         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
42648         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
42649         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
42650         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
42651         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
42652         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
42653         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
42654         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
42655         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
42656         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
42657         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
42658         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
42659         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
42660         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
42661         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
42662         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
42663         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
42664         WINT_MAX.  Check for C99 conformance more strictly, by detecting
42665         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
42666         not check for things that C99 does not require, e.g., int8_t.  If
42667         a test isn't needed unless <stdint.h> isn't working, and is
42668         unlikely to be needed for any other reason, then don't do it
42669         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
42670         size_t, since we assume C89 freestanding at least.  Do not check
42671         for sig_atomic_t, wchar_t, or wint_t, since the code now does
42672         the right thing even if the types are not defined.  Instead use:
42673         (gl_STDINT_TYPE_PROPERTIES): New macro.
42674         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
42675         testing whether <sys/types.h> clashes, as Autoconf does this for
42676         us now.  All uses removed.
42677         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
42678         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
42679         (gl_CHECK_TYPE_SAME):
42680         Remove; no longer needed.
42681         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
42682         exists, since we'll return 0 anyway in that case.
42683         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
42684
42685 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42686
42687         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
42688         possible collision with system files.
42689         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
42690         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
42691         WCHAR_MIN and WCHAR_MAX in this case.
42692         (<stddef.h>): Do not include; no longer needed.
42693         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
42694         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
42695         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
42696         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
42697         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
42698         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
42699         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
42700         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
42701         !defined(__c99))]: Include in this case too, since it's harmless
42702         now.
42703         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
42704         dangerous to do so.
42705         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
42706         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
42707         (_STDINT_MIN, _STDINT_MAX): New macros.
42708         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
42709         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
42710         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
42711         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
42712         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
42713         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
42714         macros, not typedefs; this simplifies things quite a bit.
42715         Use long int for all types narrower than int64_t.
42716         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
42717         Define in terms of long long int or int64_t or long int,
42718         not int64_t or int32_t.  This saves some compile-time testing.
42719         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
42720         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
42721         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
42722         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
42723         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
42724         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
42725         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
42726         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
42727         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
42728         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
42729         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
42730         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
42731         undef any previous version and define our own version, for
42732         simplicity and consistency with the new macros for types.
42733         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
42734         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
42735         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
42736         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
42737         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
42738         @WINT_T_SUFFIX@ to keep things simple here.
42739         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
42740         Simplify by assuming typical 8/16/32/64 host, since we're
42741         already doing that elsewhere anyway.
42742         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
42743         and assume long long int is 64 bits if available.  This
42744         speeds up 'configure'.
42745
42746 2006-07-01  Eric Blake  <ebb9@byu.net>
42747
42748         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
42749         Reported by Andreas Buening.
42750
42751 2006-07-01  Eric Blake  <ebb9@byu.net>
42752
42753         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
42754
42755 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
42756
42757         * lib/getaddrinfo.c: fixed typo
42758
42759 2006-06-29  Jim Meyering  <jim@meyering.net>
42760
42761         * modules/strftime (Maintainer): Add my name, since with the
42762         FPRINTFTIME changes strftime.c has forked from glibc.
42763
42764 2006-06-29  Eric Blake  <ebb9@byu.net>
42765
42766         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
42767
42768 2006-06-29  Eric Blake  <ebb9@byu.net>
42769
42770         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
42771
42772 2006-06-29  Eric Blake  <ebb9@byu.net>
42773
42774         * lib/stat_.h: New file.
42775
42776 2006-06-29  Eric Blake  <ebb9@byu.net>
42777
42778         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
42779         unused static function.
42780
42781 2006-06-29  Eric Blake  <ebb9@byu.net>
42782
42783         * doc/functions.texi (Function Portability): Document missing lstat
42784         on mingw.
42785
42786 2006-06-29  Eric Blake  <ebb9@byu.net>
42787
42788         * MODULES.html.sh: Add sys_stat.
42789         * modules/sys_stat: New module.
42790         * modules/mkstemp (Depends-on): Add sys_stat.
42791
42792 2006-06-29  Derek R. Price  <derek@ximbiot.com>
42793
42794         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
42795
42796 2006-06-29  Derek R. Price  <derek@ximbiot.com>
42797
42798         * m4/c-bs-a.m4: Removed.
42799
42800 2006-06-29  Derek R. Price  <derek@ximbiot.com>
42801
42802         * lib/strftime.c: Assume strftime() exists.
42803
42804 2006-06-29  Derek Price  <derek@ximbiot.com>
42805
42806         * modules/c-bs-a: Removed - \a is C89.
42807         * MODULES.html.sh: Remove c-bs-a.
42808
42809 2006-06-29  Bruno Haible  <bruno@clisp.org>
42810
42811         * modules/wcwidth (License): Change to LGPL.
42812
42813 2006-06-28  Simon Josefsson  <jas@extundo.com>
42814
42815         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
42816         on _WIN32.
42817
42818         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
42819         getnameinfo.
42820
42821 2006-06-28  Simon Josefsson  <jas@extundo.com>
42822
42823         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
42824
42825 2006-06-28  Simon Josefsson  <jas@extundo.com>
42826
42827         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
42828         functions there.  It will succeed on Windows XP, but on Windows
42829         2000 and (presumably) earlier, it will fail, and use the internal
42830         re-implementation.
42831         (use_win32_p): New function.
42832         (getaddrinfo): Use strtoul on servname, to support numeric ports.
42833         Support AI_NUMERICSERV to disable getservbyname.
42834         (getnameinfo): New function, only supports
42835         NI_NUMERICHOST|NI_NUMERICSERV for now.
42836
42837         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
42838         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
42839         getnameinfo.
42840
42841 2006-06-28  Eric Blake  <ebb9@byu.net>
42842
42843         * modules/wcwidth: New file.
42844         * modules/mbchar (Depends-on): Add wcwidth.
42845         * modules/mbswidth (Depends-on): Add wcwidth.
42846         * MODULES.html.sh: Add wcwidth.
42847
42848 2006-06-28  Eric Blake  <ebb9@byu.net>
42849
42850         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
42851         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
42852
42853 2006-06-28  Eric Blake  <ebb9@byu.net>
42854
42855         * lib/xvasprintf.h: Fix comments.
42856
42857 2006-06-28  Eric Blake  <ebb9@byu.net>
42858
42859         * lib/mbchar.h (wcwidth): Include wcwidth.h.
42860         * lib/mbswidth.c (wcwidth): Move from here...
42861         * lib/wcwidth.h: ...to this new file.
42862
42863 2006-06-28  Derek R. Price  <derek@ximbiot.com>
42864
42865         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
42866
42867         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
42868         it's obsolete.
42869         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
42870
42871 2006-06-28  Derek R. Price  <derek@ximbiot.com>
42872
42873         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
42874         Autoconf 2.60 says this stuff was obsolete.
42875
42876 2006-06-28  Bruno Haible  <bruno@clisp.org>
42877
42878         * modules/wcwidth (Files): Add m4/wchar_t.m4.
42879
42880 2006-06-28  Bruno Haible  <bruno@clisp.org>
42881
42882         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
42883         gt_TYPE_WCHAR_T.
42884
42885 2006-06-28  Bruno Haible  <bruno@clisp.org>
42886
42887         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
42888         declaration for wcwidth.
42889         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
42890
42891 2006-06-28  Bruno Haible  <bruno@clisp.org>
42892
42893         * lib/mkdtemp.c [MINGW]: Include <io.h>.
42894         (mkdir): Define using _mkdir.
42895
42896 2006-06-28  Bruno Haible  <bruno@clisp.org>
42897
42898         * lib/getaddrinfo.h: Fix POSIX URL.
42899         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
42900         _WIN32.
42901         (use_win32_p): Make static.
42902         (getaddrinfo): Reject service name if it is empty or does not consist
42903         solely of decimal digits, or if its value is > 65535.
42904         (getnameinfo): Remove useless casts.
42905
42906 2006-06-27  Simon Josefsson  <jas@extundo.com>
42907
42908         * modules/sys_select: New file, suggested by Bruno Haible, Paul
42909         Eggert and Martin Lambers.
42910
42911 2006-06-27  Simon Josefsson  <jas@extundo.com>
42912
42913         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
42914         Eggert and Martin Lambers.
42915
42916 2006-06-27  Bruno Haible  <bruno@clisp.org>
42917
42918         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
42919         result to 0, not to empty.
42920         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
42921
42922 2006-06-27  Bruno Haible  <bruno@clisp.org>
42923
42924         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
42925
42926 2006-06-26  Simon Josefsson  <jas@extundo.com>
42927
42928         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
42929         present.
42930
42931 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
42932
42933         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
42934         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
42935         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
42936
42937 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
42938
42939         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
42940
42941 2006-06-26  Bruno Haible  <bruno@clisp.org>
42942
42943         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
42944
42945 2006-06-26  Bruno Haible  <bruno@clisp.org>
42946
42947         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
42948
42949 2006-06-26  Bruno Haible  <bruno@clisp.org>
42950
42951         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
42952         SGI C compiler in pre-C99 mode.
42953         Suggested by Mark D. Baushke and Larry Jones.
42954
42955 2006-06-26  Bruno Haible  <bruno@clisp.org>
42956
42957         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
42958         WCHAR_MAX.
42959         Reported by Mark D. Baushke and Larry Jones.
42960
42961 2006-06-26  Bruno Haible  <bruno@clisp.org>
42962
42963         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
42964         in pre-C99 mode.
42965         Suggested by Mark D. Baushke and Larry Jones.
42966
42967 2006-06-23  Simon Josefsson  <jas@extundo.com>
42968             Bruno Haible  <bruno@clisp.org>
42969
42970         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
42971         Emit mostlyclean-local rule.
42972         (func_emit_tests_Makefile_am): Likewise.
42973         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
42974
42975 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
42976
42977         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
42978
42979 2006-06-23  Bruno Haible  <bruno@clisp.org>
42980
42981         * tests/test-stdint.c: Update to match ISO C 99 Technical
42982         Corrigendum 1.
42983
42984 2006-06-23  Bruno Haible  <bruno@clisp.org>
42985
42986         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
42987
42988 2006-06-23  Bruno Haible  <bruno@clisp.org>
42989
42990         * lib/stdint_.h: Treat IRIX like OpenBSD.
42991
42992 2006-06-23  Bruno Haible  <bruno@clisp.org>
42993
42994         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
42995         ISO C 99 Technical Corrigendum 1.
42996
42997 2006-06-22  Simon Josefsson  <jas@extundo.com>
42998
42999         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
43000         MinGW.
43001
43002 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43003
43004         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
43005         needed.  Some compiler complained about some of them.  Problem reported
43006         by Larry Jones in
43007         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
43008
43009 2006-06-21  Simon Josefsson  <jas@extundo.com>
43010
43011         * tests/test-getaddrinfo.c: New file.
43012
43013         * modules/getaddrinfo-tests: New file.
43014
43015         * MODULES.html.sh: Add inet_pton.
43016
43017         * modules/inet_pton: New file.
43018
43019 2006-06-21  Simon Josefsson  <jas@extundo.com>
43020
43021         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
43022         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
43023         of using the (limited) gnulib implementation on Windows XP.
43024
43025         * m4/inet_pton.m4: New file.
43026
43027 2006-06-21  Simon Josefsson  <jas@extundo.com>
43028
43029         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
43030         variable.
43031
43032         * lib/socket_.h: Don't define WINVER.
43033
43034         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
43035         slightly modified to work in gnulib.
43036
43037 2006-06-21  Simon Josefsson  <jas@extundo.com>
43038
43039         * doc/gnulib.texi (Windows sockets): Add.
43040
43041 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
43042
43043         * lib/read-file.c (fread_file): Start with buffer allocation of
43044         0 bytes rather than 1 byte; this simplifies the code.
43045         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
43046         code to free buffer and save/restore errno.
43047         (internal_read_file): Remove unused local.
43048
43049 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
43050
43051         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
43052         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
43053         Problem reported by Denis Excoffier in
43054         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
43055
43056 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43057
43058         * modules/sys_socket, modules/socklen: Include sys/types since
43059         FreeBSD 4.x's sys/socket.h needs it.
43060
43061 2006-06-19  Simon Josefsson  <jas@extundo.com>
43062
43063         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
43064
43065 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
43066
43067         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
43068
43069 2006-06-19  Bruno Haible  <bruno@clisp.org>
43070
43071         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
43072         and FULL_PATH_INTTYPES_H in angle brackets.
43073         Reported by Mark D. Baushke <mdb@gnu.org>.
43074
43075 2006-06-17  Eric Blake  <ebb9@byu.net>
43076
43077         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
43078         errno.
43079
43080 2006-06-17  Bruno Haible  <bruno@clisp.org>
43081
43082         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
43083         <sys/inttypes.h>.
43084
43085 2006-06-17  Bruno Haible  <bruno@clisp.org>
43086
43087         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
43088         whether errno is declared. Assume <errno.h> declares errno.
43089
43090 2006-06-17  Bruno Haible  <bruno@clisp.org>
43091
43092         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
43093
43094 2006-06-17  Bruno Haible  <bruno@clisp.org>
43095
43096         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
43097         problem on Solaris 2.5.1.
43098
43099 2006-06-16  Eric Blake  <ebb9@byu.net>
43100
43101         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
43102         * lib/unicodeio.c [!defined errno]: Likewise.
43103         * lib/strtol.c [!defined errno]: Likewise.
43104         * lib/strtod.c [!defined errno]: Likewise.
43105
43106 2006-06-15  Eric Blake  <ebb9@byu.net>
43107
43108         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
43109
43110 2006-06-15  Eric Blake  <ebb9@byu.net>
43111
43112         * config/srclist.txt (ssize_t.m4): Lose sync.
43113
43114 2006-06-15  Bruno Haible  <bruno@clisp.org>
43115
43116         * modules/stdint (Files): Include m4/full-header-path.m4,
43117         m4/size_max.m4, m4/wchar_t.m4.
43118         (Makefile.am): Many more substitutions.
43119         * modules/stdint-tests: New file.
43120         * tests/test-stdint.c: New file.
43121
43122 2006-06-15  Bruno Haible  <bruno@clisp.org>
43123
43124         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
43125         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
43126         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
43127         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
43128         gl_CHECK_TYPE_SAME): New macros.
43129
43130 2006-06-15  Bruno Haible  <bruno@clisp.org>
43131
43132         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
43133
43134 2006-06-15  Bruno Haible  <bruno@clisp.org>
43135
43136         * lib/stdint_.h: Rewritten to be fully auto-configured.
43137         Fixes bug on HP-UX/IA64.
43138
43139 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
43140
43141         * lib/getdate.y (__attribute__): Don't define if already defined.
43142         Problem reported by Larry Jones.
43143         * lib/utimens.c (__attribute__): Likewise.
43144
43145 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
43146
43147         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
43148         reported by Andreas Schwab.
43149
43150 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43151             Bruno Haible  <bruno@clisp.org>
43152
43153         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
43154         check for the declaration of strnlen and a run test that exposes the
43155         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
43156         rpl_strndup.
43157
43158 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43159             Bruno Haible  <bruno@clisp.org>
43160
43161         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
43162
43163 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43164
43165         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
43166         compile test, for Tru64 4.0D.
43167
43168 2006-05-28  Karl Berry  <karl@gnu.org>
43169
43170         * config/srclist.txt (printf-args.c): lose sync.
43171
43172 2006-05-26  Martin Lambers  <marlam@marlam.de>
43173
43174         * lib/getpass.c: Updates the test for the native W32 API, and adds
43175         missing includes, thus fixing compilation warnings.
43176
43177 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43178
43179         * lib/exclude.c (exclude_fnmatch): New function.
43180         (excluded_file_name): Call exclude_fnmatch.
43181         * lib/exclude.h (excluded_file_name): New prototype
43182
43183 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
43184
43185         * lib/tempname.c (small_open, large_open): New macros.
43186         (__open, __open64) [!_LIBC]: Remove.
43187         (__gen_tempname): Use small_open and large_open instead of __open
43188         and __open64.  This fixes a portability bug on HP-UX 11.11i
43189         reported by Simon Wing-Tang in
43190         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
43191
43192 2006-05-24  Bruno Haible  <bruno@clisp.org>
43193
43194         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
43195         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
43196         Reported by Thorsten Maerz <torte@netztorte.de> via
43197         Aaron Stone <aaron@serendipity.cx>.
43198
43199 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
43200
43201         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
43202         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
43203         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
43204         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
43205         not really conditional on the cache.
43206         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
43207
43208 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
43209
43210         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
43211         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
43212         (my_usleep): Don't mishandle maximum value.
43213
43214 2006-05-19  Jim Meyering  <jim@meyering.net>
43215
43216         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
43217
43218 2006-05-17  Bruno Haible  <bruno@clisp.org>
43219
43220         Cygwin portability.
43221         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
43222
43223 2006-05-17  Bruno Haible  <bruno@clisp.org>
43224
43225         * lib/stdint_.h: Fix recognition of Cygwin.
43226
43227 2006-05-15  Bruno Haible  <bruno@clisp.org>
43228
43229         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
43230         on libtool patch by Ralf Wildenhues.
43231
43232 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
43233
43234         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
43235         test for C99 conformance; (bool) 0.5 is an integer constant
43236         expression, but (bool) -0.5 is not.  Problem reported by Fedor
43237         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
43238
43239 2006-05-11  Simon Josefsson  <jas@extundo.com>
43240
43241         * m4/xvasprintf.m4: Fix obvious typo.
43242
43243 2006-05-11  Jim Meyering  <jim@meyering.net>
43244
43245         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
43246         James Lemley.
43247
43248 2006-05-10  Simon Josefsson  <jas@extundo.com>
43249
43250         * lib/md4.c: Typo fix, update copyright years.
43251         (K1, K2): Don't use L because it turn computations into 64-bit on
43252         64-bit platforms.
43253
43254 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
43255
43256         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
43257         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
43258         unwanted sign propagation, e.g., on hosts with 64-bit int.
43259         There still are some problems with reeelly weird theoretical hosts
43260         (e.g., 33-bit int) but it's not worth worrying about now.
43261         * lib/sha1.c (rol): Likewise.
43262         (K1, K2, K3, K4): Remove unnecessary L suffix.
43263
43264 2006-05-10  Bruno Haible  <bruno@clisp.org>
43265
43266         * lib/des.c: Cast to avoid warnings.
43267
43268 2006-05-09  Bruno Haible  <bruno@clisp.org>
43269
43270         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
43271         (Depends-on): Depend also on xsize, stdarg.
43272         (configure.ac): Add gl_XVASPRINTF.
43273
43274 2006-05-09  Bruno Haible  <bruno@clisp.org>
43275
43276         * m4/xvasprintf.m4: New file.
43277
43278 2006-05-09  Bruno Haible  <bruno@clisp.org>
43279
43280         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
43281         (EOVERFLOW): Define fallback value.
43282         (xstrcat): New function.
43283         (xvasprintf): Recognize the special case of a string concatenation.
43284
43285 2006-05-08  Eric Blake  <ebb9@byu.net>
43286
43287         * gnulib-tool (func_version): Base copyright year on CVS date.
43288         (func_emit_copyright_notice): New function.
43289         (func_emit_lib_Makefile_am): Use it.
43290         (func_emit_tests_Makefile_am): Likewise.
43291         (func_import): Likewise.
43292
43293 2006-05-08  Bruno Haible  <bruno@clisp.org>
43294
43295         * modules/stdarg: New file.
43296         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
43297
43298 2006-05-08  Bruno Haible  <bruno@clisp.org>
43299
43300         * m4/stdarg.m4: New file, from GNU gettext.
43301
43302 2006-05-08  Bruno Haible  <bruno@clisp.org>
43303
43304         * config/srclist.txt (build-aux/config.rpath): different from latest
43305         release.
43306
43307 2006-05-08  Bruno Haible  <bruno@clisp.org>
43308
43309         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
43310
43311 2006-05-05  Jim Meyering  <jim@meyering.net>
43312
43313         * m4/warning.m4: New file, derived from bison's file by the same name.
43314
43315 2006-05-03  Bruno Haible  <bruno@clisp.org>
43316
43317         * lib/stdint_.h: Shorter URL.
43318         * lib/inttypes.h: Likewise.
43319
43320 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43321
43322         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
43323
43324 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43325
43326         * lib/verify.h: Document the internals better.  Most of this change
43327         was written by Bruno Haible.
43328
43329 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
43330
43331         * doc/verify.texi: New file, partly based on a proposal by
43332         Bruno Haible.
43333
43334 2006-05-02  Bruno Haible  <bruno@clisp.org>
43335
43336         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
43337         test from here...
43338         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
43339
43340 2006-04-29  Bruno Haible  <bruno@clisp.org>
43341
43342         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
43343         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
43344
43345 2006-04-29  Bruno Haible  <bruno@clisp.org>
43346
43347         * gnulib-tool: Make --update option actually work.
43348
43349 2006-04-29  Bruno Haible  <bruno@clisp.org>
43350
43351         * doc/gcd.texi: New file.
43352         * doc/gnulib.texi: Include it.
43353
43354 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
43355
43356         * lib/getdate.y (get_date): When adding relative date, start with the
43357         initial time, not with the result of the first mktime call.
43358
43359 2006-04-25  Bruno Haible  <bruno@clisp.org>
43360
43361         * gnulib-tool (func_import): Output the include directives in three
43362         blocks, sorted separately.
43363         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43364
43365 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
43366
43367         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
43368         to define main with arguments, for C++.  Reported by Eric Blake.
43369         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
43370         Prefer 'int main ()' to 'int main (void)', for C++.
43371         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43372         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
43373         for 'main', for C99 and C++.
43374
43375 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
43376
43377         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
43378         Don't assume that exit status -1 is valid.
43379         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43380         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43381         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43382         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
43383         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
43384         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
43385         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
43386         functions can be used without declaring them, or that you can
43387         exit with status -1.
43388         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43389
43390 2006-04-24  Karl Berry  <karl@gnu.org>
43391
43392         * config/srclist.txt (longdouble.m4): sync lost.
43393
43394 2006-04-24  Eric Blake  <ebb9@byu.net>
43395
43396         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
43397
43398 2006-04-24  Bruno Haible  <bruno@clisp.org>
43399
43400         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
43401         poll() implementation in AIX.
43402         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43403
43404 2006-04-24  Bruno Haible  <bruno@clisp.org>
43405
43406         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
43407         assigned exactly once.
43408
43409 2006-04-23  Claudio Fontana  <claudio@gnu.org>
43410             Bruno Haible  <bruno@clisp.org>
43411
43412         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
43413         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
43414         for AM_CPPFLAGS.
43415
43416 2006-04-23  Bruno Haible  <bruno@clisp.org>
43417
43418         * modules/copy-file: Depend on unistd.
43419         * modules/execute: Likewise.
43420         * modules/fatal-signal: Likewise.
43421         * modules/findprog: Likewise.
43422         * modules/mkdtemp : Likewise.
43423         * modules/pipe: Likewise.
43424         * modules/wait-process: Likewise.
43425
43426 2006-04-23  Bruno Haible  <bruno@clisp.org>
43427
43428         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
43429         condition was already detected.
43430         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43431
43432 2006-04-23  Bruno Haible  <bruno@clisp.org>
43433
43434         * lib/copy-file.c: Include <unistd.h> unconditionally.
43435         * lib/execute.c: Likewise.
43436         * lib/fatal-signal.c: Likewise.
43437         * lib/findprog.c: Likewise.
43438         * lib/mkdtemp.c: Likewise.
43439         * lib/pipe.h: Likewise.
43440         * lib/pipe.c: Likewise.
43441         * lib/wait-process.h: Likewise.
43442
43443 2006-04-23  Bruno Haible  <bruno@clisp.org>
43444
43445         * gnulib-tool (func_usage): Fix --import description. Document
43446         --update.
43447         (func_import): Create temporary file in a temporary directory, if
43448         --dry-run is specified. Silence errors from 'grep' when there are no
43449         m4 files in $m4dir.
43450         (func_create_testdir): Silence errors from 'grep' when there are no
43451         m4 files in $m4dir.
43452         Reported by Karl Berry <karl@freefriends.org>.
43453
43454 2006-04-20  Bruno Haible  <bruno@clisp.org>
43455
43456         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
43457         one argument, so that the code will be portable to Autoconf 2.60.
43458         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
43459         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
43460         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
43461
43462 2006-04-19  Derek Price  <derek@ximbiot.com>
43463             Eric Blake  <ebb9@byu.net>
43464
43465         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
43466         rather than "/full/path.h".  Update comment to match.  Shorten &
43467         generalize m4_translit call via AS_TR_CPP.
43468
43469 2006-04-19  Derek Price  <derek@ximbiot.com>
43470             Eric Blake  <ebb9@byu.net>
43471
43472         * lib/inttypes.h: Correct grammar in comment.
43473
43474 2006-04-18  Derek Price  <derek@ximbiot.com>
43475             Paul Eggert  <eggert@cs.ucla.edu>
43476
43477         * modules/inttypes: New file.
43478         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
43479
43480 2006-04-18  Derek Price  <derek@ximbiot.com>
43481             Paul Eggert  <eggert@cs.ucla.edu>
43482
43483         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
43484         New files.
43485
43486 2006-04-18  Derek Price  <derek@ximbiot.com>
43487             Paul Eggert  <eggert@cs.ucla.edu>
43488
43489         * lib/inttypes.h: New file.
43490         * lib/strtoimax.c: Assume <inttypes.h>.
43491
43492 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
43493
43494         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
43495         isn't mounted.  Problem reported by Kir Kolyshkin.
43496
43497 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
43498
43499         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
43500         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
43501         Derek R. Price.
43502         * lib/regex.h (RE_DUP_MAX): Update comment to match current
43503         implementation.
43504
43505 2006-04-12  Eric Blake  <ebb9@byu.net>
43506
43507         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
43508         is now done automatically by the corresponding Autoconf macro.
43509
43510 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
43511
43512         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
43513         time_r.h.
43514
43515 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43516
43517         Merge regex changes from libc, removing some of our
43518         POSIX-conformance changes that were rejected and redoing them in a
43519         less-intrusive way.
43520
43521         * lib/regcomp.c (re_compile_internal, init_dfa):
43522         Length arg is now size_t, not Idx.  All uses changed.
43523         (peek_token): Forward decl now says internal_function.
43524         (__re_error_msgid, __re_error_msgid_idx):
43525         Now static rather than extern with attribute_hidden.
43526         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
43527         For some reason libc prefers K&R style defns for external functions.
43528         (regerror) [!defined _LIBC]: Likewise.
43529         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
43530         (seek_collating_symbol_entry, lookup_collation_sequence_value):
43531         (build_range_exp, build_collating_symbol):
43532         Use K&R-style defn.
43533         (re_compile_fastmap): Use '\0' to memset, not 0.
43534         (utf8_sb_map): Make the calculations more obvious.
43535         (init_dfa, parse_bracket_exp, build_charclass_op):
43536         Call calloc and cast result, as glibc does.
43537         (init_word_char, fetch_token, peek_token, peek_token_bracket):
43538         (build_range_exp, build_collating_symbol):
43539         Now internal functions.
43540
43541         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
43542
43543         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
43544         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
43545         Don't depend on VMS; depend on __VMS instead, for POSIX
43546         namespace cleanness.
43547         (regoff_t): Define to ssize_t, not long int.
43548
43549         Remove the REG_ macros named below.  Instead, make the old names
43550         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
43551         __USE_GNU_REGEX.
43552         (REG_BACKSLASH_ESCAPE_IN_LISTS):
43553         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
43554         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
43555         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
43556         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
43557         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
43558         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
43559         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
43560         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
43561         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
43562         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
43563         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
43564         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
43565         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
43566         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
43567         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
43568         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
43569         (REG_NREGS):
43570         Remove.  All uses replaced by the old RE_* names.
43571         (RE_BACKSLASH_ESCAPE_IN_LISTS):
43572         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
43573         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
43574         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
43575         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
43576         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
43577         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
43578         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
43579         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
43580         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
43581         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
43582         Don't bother having these macros be independent of each others'
43583         values, since they no longer exist in the POSIX name space.
43584
43585         Rename the following member names back to their old names,
43586         unless !__USE_GNU_REGEX.  All uses changed back.
43587         (buffer): Renamed from re_buffer.
43588         (allocated): Renamed from re_allocated.
43589         (used): Renamed from re_used.
43590         (syntax): Renamed from re_syntax.
43591         (fastmap): Renamed from re_fastmap.
43592         (translate): Renamed from re_translate.
43593         (can_be_null): Renamed from re_can_be_null.
43594         (regs_allocated): Renamed from re_regs_allocated.
43595         (fastmap_accurate): Renamed from re_fastmap_accurate.
43596         (no_sub): Renamed from re_no_sub.
43597         (not_bol): Renamed from re_not_bol.
43598         (not_eol): Renamed from re_not_eol.
43599         (newline_anchor): Renamed from re_newline_anchor.
43600         (num_regs): Renamed from rm_num_regs.
43601         (start): Renamed from rm_start.
43602         (end): Renamed from rm_end.
43603
43604         (free_state): Move up a bit.
43605
43606         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
43607         #define to be empty.
43608         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
43609         when that is what is intended.
43610         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
43611         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
43612         (MAX): New macro.
43613         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
43614         All uses changed back to re_malloc, etc.  It's now the caller's
43615         responsibility to check for overflow; all callers changed.
43616         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
43617         (re_x2nrealloc): Remove.
43618         (free_state): Remove decl.
43619
43620         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
43621         (re_set_registers, re_exec):
43622         Use K&R-style defn.
43623
43624         2006-01-31  Roland McGrath  <roland@redhat.com>
43625
43626         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
43627         Reported by Mike Frysinger <vapier@gentoo.org>.
43628
43629         2006-01-15  Andreas Jaeger  <aj@suse.de>
43630
43631         [BZ #1950]
43632         * lib/regex_internal.c (re_string_reconstruct): Adjust for
43633         build_wcs_upper_buffer change.
43634         (build_wcs_upper_buffer): Change return type.
43635
43636         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
43637
43638         * lib/regex_internal.h: Include <stdint.h> if available.
43639
43640         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
43641
43642         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
43643
43644         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
43645
43646         * lib/regcomp.c: Adjust for changed secondary hash function.
43647
43648         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
43649
43650         * lib/regex.h: Pretty printing.
43651         Clean up namespace a bit.
43652
43653         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
43654
43655         * lib/regexec.c (update_cur_sifted_state, check_arrival,
43656         check_arrival_add_next_nodes): Avoid using uninitialized variable.
43657
43658         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
43659                     Ulrich Drepper  <drepper@redhat.com>
43660
43661         [BZ #1302]
43662         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
43663         changed.
43664         (bitset_word_t): Renamed from bitset_word.  All uses changed.
43665
43666         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
43667
43668         [BZ #281]
43669         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
43670         * lib/regcomp.c: Remove unnecessary uses of
43671         unsigned RE_TRANSLATE_TYPE.
43672         * lib/regex_internal.h: Likewise.
43673         * lib/regex_internal.c: Likewise.
43674         * lib/regexec.c: Likewise.
43675         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
43676
43677         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
43678
43679         * lib/regexec.c (find_recover_state): Remove unnecessary
43680         initialization.
43681         (transit_state_bkref): Make DFA a const pointer.
43682         (get_subexp): Likewise.
43683         (check_arrival): Likewise.
43684         (update_cur_sifted_state): Likewise.
43685         (re_search_internal): Likewise.
43686         (prune_impossible_nodes): Likewise.
43687         (acquire_init_state_context): Likewise.
43688         (proceed_next_node): Likewise.
43689         (set_regs): Likewise.
43690         (free_fail_stack_return): Likewise.
43691         (check_arrival_expand_ecl): Mark DFA parameter as const.
43692         (check_arrival_expand_ecl_sub): Likewise.
43693         (check_subexp_limits): Likewise.
43694         (sub_epsilon_src_nodes):  Likewise.
43695         (add_epsilon_src_nodes):  Likewise.
43696         (merge_state_array): Likewise.
43697         (update_regs): Likewise.
43698         (build_trtable): Likewise.
43699         (sift_states_backward): Mark MCTX parameter as const.
43700         (build_sifted_states): Likewise.
43701         (update_cur_sifted_state): Likewise.
43702         (sift_states_mkref): Likewise.
43703         (check_arrival_expand_ecl): Mark eclosure as const.
43704         (check_dst_limits_calc_pos_1): Likewise.
43705         * lib/regex_internal.h (re_match_context_t): Make dfa a const
43706         pointer.
43707
43708         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
43709
43710         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
43711         (transit_state_sb): Likewise.
43712         (transit_state_mb): Likewise.
43713         (sift_states_iter_mb): Likewise.
43714         (check_arrival_add_next_nodes): Likewise.
43715         (check_node_accept_bytes): Change first parameter to pointer-to-const.
43716         [_LIBC] (re_search_2_stub): Use mempcpy.
43717
43718         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
43719         mbrtowc for very simple UTF-8 case.
43720
43721         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
43722         a pointer-to-const.
43723         (re_acquire_state_context): Likewise.
43724         * lib/regex_internal.h: Adjust prototypes.
43725
43726         * lib/regex.c: Prevent using C++ compilers.
43727
43728         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
43729         (re_acquire_state_context): Likewise.
43730
43731 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43732
43733         * modules/regex (Depends-on): Add ssize_t.
43734
43735 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43736
43737         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
43738         translation table.
43739
43740 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
43741
43742         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
43743
43744 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
43745             Bruno Haible  <bruno@clisp.org>
43746
43747         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
43748         <sys/types.h> and <inttypes.h>.
43749
43750 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43751
43752         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
43753         `__error_t_defined', so argp.h will not typedef the former.
43754
43755 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
43756
43757         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
43758         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
43759         glibc names.  Even if glibc is changed to conform to POSIX, the
43760         traditional names will be available anyway, since regex depends on
43761         the extensions module.  Also, fix a longstanding typo in the
43762         implementation of Spencer ERE test #75 from grep 2.3.  Problems
43763         reported by Emanuele Giaquinta.  Also, change sense of cached
43764         variable, so that the message makes sense.
43765
43766 2006-03-24  Simon Josefsson  <jas@extundo.com>
43767
43768         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
43769         including some doc fixes.
43770         (base64_encode_alloc): Fix +1 bug on allocation failures.
43771
43772 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43773
43774         * lib/base64.c (base64_encode): Do not read past end of array with
43775         unsanitized input on systems with CHAR_BIT > 8.
43776
43777 2006-03-24  Eric Blake  <ebb9@byu.net>
43778
43779         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
43780
43781 2006-03-22  Karl Berry  <karl@gnu.org>
43782
43783         * config/srclist.txt (*setenv.[ch]): get from coreutils.
43784         * config/srclistvars.sh (COREUTILS): new var.
43785
43786 2006-03-17  Jim Meyering  <jim@meyering.net>
43787
43788         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
43789         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
43790
43791 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
43792
43793         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
43794         no longer needs it.  Instead, check that regoff_t is as least
43795         as wide as ptrdiff_t.
43796
43797         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
43798         so that our regex.h stays compatible with the installed regex.
43799         This is helpful for installers who configure --without-included-regex.
43800         Problem reported by Emanuele Giaquinta.
43801
43802 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
43803
43804         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
43805         Typedef to long int, not to off_, as POSIX will likely change
43806         in that direction.
43807
43808 2006-03-15  Eric Blake  <ebb9@byu.net>
43809
43810         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
43811
43812 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
43813
43814         * lib/argp-help.c (validate_uparams): Fix typo
43815         * lib/argp-parse.c (argp_default_options): Consistently begin help
43816         messages with a lowercase letter.
43817
43818 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
43819
43820         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
43821         overrun buffers and shouldn't be used (much as gets shouldn't be
43822         used).
43823         * lib/time_r.c (asctime_r, ctime_r): Likewise.
43824
43825 2006-03-08  Simon Josefsson  <jas@extundo.com>
43826
43827         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
43828         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43829
43830 2006-03-08  Simon Josefsson  <jas@extundo.com>
43831
43832         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
43833         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43834
43835 2006-03-08  Simon Josefsson  <jas@extundo.com>
43836
43837         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
43838         signal that configure disabled the device.
43839
43840 2006-03-08  Simon Josefsson  <jas@extundo.com>
43841
43842         * build-aux/maint.mk: Fix refresh-po, to handle no translated
43843         languages.
43844
43845 2006-03-07  Simon Josefsson  <jas@extundo.com>
43846
43847         * modules/getopt (Depends-on): Add unistd.
43848
43849         * modules/unistd: New file.
43850
43851 2006-03-07  Simon Josefsson  <jas@extundo.com>
43852
43853         * modules/gc-random: New file.
43854
43855 2006-03-07  Simon Josefsson  <jas@extundo.com>
43856
43857         * m4/unistd_h.m4: New file.
43858
43859 2006-03-07  Simon Josefsson  <jas@extundo.com>
43860
43861         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
43862         test to be side-effect free by storing the result in the cache
43863         variable gl_cv_lib_readline, and moving the assignment of
43864         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
43865         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43866
43867 2006-03-07  Simon Josefsson  <jas@extundo.com>
43868
43869         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
43870         error on missing devices (the functions will return an error).
43871
43872         * m4/gc.m4: Move random stuff to gc-random.m4
43873
43874 2006-03-07  Simon Josefsson  <jas@extundo.com>
43875
43876         * lib/unistd_.h: New file.
43877
43878 2006-03-07  Simon Josefsson  <jas@extundo.com>
43879
43880         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
43881
43882 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
43883
43884         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
43885         Problem reported by Juan Manuel Guerrero.
43886
43887 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
43888
43889         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
43890         the unistd module.
43891         * lib/getlogin_r.c: Likewise.
43892         * lib/getlogin_r.h: Likewise.
43893         * lib/glob.c: Likewise.
43894         * lib/pagealign_alloc.c: Likewise.
43895         * lib/unistd_.h: Remove; no longer needed.
43896
43897 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
43898
43899         * MODULES.html.sh (Support for systems lacking POSIX:2001):
43900         Add unistd.
43901         * modules/c-stack (Depends-on): Add unistd.
43902         * modules/getlogin_r: Likewise.
43903         * modules/glob: Likewise.
43904         * modules/pagealign_alloc: Likewise.
43905         * modules/unistd (Files): Remove lib/unistd_.h.
43906         (EXTRA_DIST): Remove.
43907         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
43908         need unistd_.h.
43909         (MOSTLYCLEANFILES): Remove unistd.h-t.
43910
43911 2006-03-03  Simon Josefsson  <jas@extundo.com>
43912
43913         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
43914
43915 2006-03-03  Simon Josefsson  <jas@extundo.com>
43916
43917         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
43918         libidn and bison.
43919
43920 2006-03-03  Simon Josefsson  <jas@extundo.com>
43921
43922         * build-aux/maint.mk: Add indent target.
43923
43924 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
43925
43926         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
43927         our replacement poll.h in any case, to avoid a differing
43928         declaration from a system header.  Seen on AIX.
43929
43930 2006-03-01  Simon Josefsson  <jas@extundo.com>
43931
43932         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
43933         <kasal@ucw.cz>.
43934
43935 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
43936
43937         * modules/gettime (Depends-on): Add extensions module.
43938         * modules/nanosleep (Depends-on): Likewise.
43939         * modules/settime (Depends-on): Likewise.
43940
43941 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
43942
43943         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
43944         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
43945         pedantically.
43946         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43947         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
43948
43949         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
43950         not "==".  Reported by Ralf Wildenhues.
43951
43952 2006-03-01  Karl Berry  <karl@gnu.org>
43953
43954         * doc/Copyright/request-*: new files, synced from gnuorg.
43955
43956 2006-03-01  Karl Berry  <karl@gnu.org>
43957
43958         * config/srclist.txt (Copyright/*): new entries.
43959
43960 2006-02-28  Simon Josefsson  <jas@extundo.com>
43961
43962         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
43963
43964 2006-02-27  Simon Josefsson  <jas@extundo.com>
43965
43966         * lib/base64.h: Indent #define's.  From Jim Meyering
43967         <jim@meyering.net>.
43968
43969 2006-02-27  Jim Meyering  <jim@meyering.net>
43970
43971         Revert the change of 2006-02-24, so these files can continue
43972         to be sync'd from gettext.
43973         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
43974         of `config.h'.
43975
43976 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
43977
43978         * modules/intprops: New file.
43979         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
43980         Add intprops.
43981         * modules/getloadavg (Files): Remove lib/intprops.h.
43982         (Depends-on): Add intprops.
43983         * modules/human: Likewise.
43984         * modules/inttostr: Likewise.
43985         * modules/openat: Likewise.
43986         * modules/sig2str: Likewise.
43987         * modules/userspec: Likewise.
43988         * modules/utimecmp: Likewise.
43989         * modules/xnanosleep: Likewise.
43990         * modules/xstrtol: Likewise.
43991
43992 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
43993
43994         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
43995         * modules/lock-tests (TESTS): Use $(EXEEXT).
43996         * modules/tls-tests: Likewise.
43997         * modules/argp-tests: Likewise.
43998         (check_PROGRAMS): New var, replacing...
43999         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
44000
44001 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44002
44003         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
44004         `config.h'.
44005
44006 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
44007
44008         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
44009
44010 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44011
44012         Sync from coreutils.
44013         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
44014         gl_CHDIR_SAFER.
44015
44016 2006-02-22  Jim Meyering  <jim@meyering.net>
44017
44018         Sync from coreutils.
44019         * m4/chdir-safer.m4: New file.
44020
44021 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
44022
44023         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
44024         AT_FDCWD exceeds INT_MAX.
44025         * lib/openat.h (AT_FDCWD): Likewise.
44026
44027 2006-02-17  Eric Blake  <address@hidden>
44028
44029         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
44030
44031 2006-02-16  Simon Josefsson  <jas@extundo.com>
44032
44033         * modules/getaddrinfo (Depends-on): Add sys_socket.
44034
44035 2006-02-15  Simon Josefsson  <jas@extundo.com>
44036
44037         * build-aux/maint.mk: Add dsyntax-check rule.
44038
44039 2006-02-15  Eric Blake  <ebb9@byu.net>
44040
44041         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
44042         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
44043         'present but cannot compile' warnings on cygwin.
44044         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
44045         use ws2tcpip.h if sys/socket.h works.
44046         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
44047         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
44048
44049 2006-02-14  Simon Josefsson  <jas@extundo.com>
44050
44051         * modules/maintainer-makefile (Files): Rename.
44052
44053         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
44054         and (the local) Makefile.cfg to maint-cfg.mk.
44055
44056         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
44057         to the latter.
44058
44059         * modules/maintainer-makefile: New module.
44060
44061         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
44062         severaly stripped to make it possible to build it up from scratch
44063         with reliable tests.
44064
44065         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
44066         fixes to permit overriding the default actions when configure and
44067         makefile are not available.
44068
44069 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
44070
44071         Sync from coreutils.
44072         * modules/lstat (Depends-on): Don't depend on xalloc.
44073         (License): Change from GPL to LGPL, since this is now simply a
44074         replacement for a libc function.
44075
44076 2006-02-14  Jim Meyering  <jim@meyering.net>
44077
44078         Sync from coreutils.
44079
44080         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
44081         failure on deficient systems, and simplify gnulib lgpl dependencies.
44082         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
44083         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
44084
44085         * lib/xalloc-die.c: Remove unused definition of N_.
44086
44087 2006-02-14  Jim Meyering  <jim@meyering.net>
44088
44089         Sync from coreutils.
44090         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
44091         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
44092         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
44093         double-quote uses of that variable, to accommodate the rare case in
44094         which getmntent is available in none of the libraries checked.  This
44095         happens at least on FreeBSD 5.0.
44096
44097 2006-02-13  Simon Josefsson  <jas@extundo.com>
44098
44099         * gnulib-tool (Usage): Fix --import, from
44100         karl@freefriends.org (Karl Berry).
44101
44102 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
44103
44104         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
44105
44106 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
44107
44108         * lib/argp-namefrob.h: Restore changes accidentally lost during the
44109         "autoupdate" on 2005-12-12.
44110
44111 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
44112
44113         * modules/closeout (Depends-on): Remove atexit.
44114
44115 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
44116
44117         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
44118         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
44119
44120 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
44121
44122         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
44123         __EXTENSIONS__ if this causes compilation to fail.  Problem
44124         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
44125         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
44126
44127 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
44128
44129         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
44130         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
44131         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
44132         All uses changed.
44133
44134 2006-01-26  Simon Josefsson  <jas@extundo.com>
44135
44136         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
44137         prototype is visible on mingw32.
44138
44139         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
44140         for mingw32.
44141
44142         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
44143         mingw32).
44144
44145 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
44146
44147         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
44148         attempt to open for write; this always fails, at least on POSIX
44149         hosts.  This reinstates the 2006-01-09 change, which was
44150         inadvertently removed.
44151
44152 2006-01-26  Bruno Haible  <bruno@clisp.org>
44153
44154         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
44155         Reported by Paul Eggert.
44156
44157 2006-01-26  Bruno Haible  <bruno@clisp.org>
44158             Paul Eggert  <eggert@cs.ucla.edu>
44159
44160         * lib/stdbool_.h (_Bool)
44161         [(! (defined __cplusplus || defined __BEOS__)
44162           && !defined __GNUC__
44163           && !(defined __HP_cc || defined __xlc__
44164                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
44165                || defined __sgi))]:
44166         #define to signed char in these cases too; this simplifies
44167         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
44168         etc., separately) and makes it more conservative.
44169
44170 2006-01-25  Simon Josefsson  <jas@extundo.com>
44171
44172         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
44173         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
44174         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
44175
44176 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44177
44178         * lib/argp-namefrob.h: Bugfix. Remove stray #
44179
44180 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
44181
44182         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
44183         so that we test the test.
44184         Check for yet another HP-UX cc bug involving *bool |= bool.
44185
44186 2006-01-25  Karl Berry  <karl@gnu.org>
44187
44188         * config/srclist.txt (vasnprintf.c): sync lost.
44189
44190 2006-01-25  Jim Meyering  <jim@meyering.net>
44191
44192         Sync from the stable (b5) branch of coreutils:
44193
44194         * lib/fts.c (fts_children): Don't let close() clobber errno from
44195         failed fchdir().
44196
44197         * lib/fts.c (fts_stat): When following a symlink-to-directory,
44198         don't necessarily interpret stat-fails+lstat-succeeds as indicating
44199         a dangling symlink.  That can also happen at least for ELOOP.
44200         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
44201         FYI, this bug predates the inclusion of fts.c in coreutils.
44202
44203         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
44204         in their own block, so pre-c99 compilers don't object.
44205
44206         Avoid the double-free (first in fts_read, second in fts_close) that
44207         would occur when an `active' directory is made inaccessible (e.g.,
44208         via chmod a-x) during a traversal.
44209         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
44210         before returning.  Reproduce this failure by
44211         mkdir -p a/b; cd a; chmod a-x . b
44212         Reported by Stavros Passas.
44213
44214 2006-01-25  Jim Meyering  <jim@meyering.net>
44215
44216         * lib/fileblocks.c: Remove more useless parentheses.
44217         * lib/readutmp.h: Likewise.
44218
44219 2006-01-25  Bruno Haible  <bruno@clisp.org>
44220
44221         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
44222         warnings.
44223         Reported by Paul Eggert.
44224
44225 2006-01-25  Bruno Haible  <bruno@clisp.org>
44226
44227         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
44228         rid of a trap command. For Solaris sh.
44229         Reported by Mark D. Baushke <mdb@gnu.org>.
44230
44231 2006-01-24  Simon Josefsson  <jas@extundo.com>
44232
44233         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
44234         Bruno.
44235
44236 2006-01-24  Karl Berry  <karl@gnu.org>
44237
44238         * config/srclist.txt (argp-namefrob.h): sync lost.
44239
44240 2006-01-24  Jim Meyering  <jim@meyering.net>
44241
44242         * modules/openat (Files): Add lib/intprops.h.
44243         From Mark D. Baushke.
44244
44245 2006-01-24  Jim Meyering  <jim@meyering.net>
44246
44247         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
44248         Reported by Mark D. Baushke.
44249
44250 2006-01-24  Jim Meyering  <jim@meyering.net>
44251
44252         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
44253
44254 2006-01-24  Bruno Haible  <bruno@clisp.org>
44255
44256         * modules/strnlen (Maintainer): Change from glibc to all.
44257
44258 2006-01-24  Bruno Haible  <bruno@clisp.org>
44259
44260         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
44261         Patch by Paul Eggert.
44262
44263 2006-01-24  Bruno Haible  <bruno@clisp.org>
44264
44265         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
44266         already has it.
44267         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
44268         2005-11-26.
44269
44270         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
44271         'signed char' to avoid problems with the built-in _Bool type.
44272         Reported by Paul Eggert on 2005-11-26.
44273
44274 2006-01-24  Bruno Haible  <bruno@clisp.org>
44275
44276         * gnulib-tool (func_import): Avoid constructing complicated sed
44277         expressions inside backquote.
44278         Report and solution by Mark D. Baushke <mdb@gnu.org>.
44279
44280 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
44281
44282         These changes imported from libc.
44283         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
44284         test and two separate function calls.
44285         * lib/strndup.c (__strndup): Add libc_hidden_def.
44286
44287 2006-01-23  Simon Josefsson  <jas@extundo.com>
44288
44289         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
44290         Remove the test_*_SOURCES variable: automake infers it by default.
44291         * modules/tls-tests: Likewise.
44292
44293 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44294
44295         Work around porting bugs reported by Dieter in
44296         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
44297         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
44298         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
44299         Include "getopt.h" first, to check interface.
44300         (getenv): Declare only if defined HAVE_DECL_GETENV &&
44301         !HAVE_DECL_GETENV.
44302         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
44303         (__strndup): Revert to K&R-style function dfns, the glibc style.
44304         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
44305         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
44306         Include strnlen.h first, to get prototype properly.
44307         (strnlen): Renamed from __strnlen.
44308         Remove weak alias.
44309
44310 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44311
44312         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
44313
44314 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44315
44316         * config/srclist.txt: Adjust to reflect glibc reorganization.
44317         This affects only comments.
44318
44319 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
44320
44321          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
44322          Reported by Bruce Korb <bkorb@gnu.org>.
44323
44324 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44325
44326         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
44327         to pacify gcc -Wswitch-default.
44328
44329 2006-01-22  Bruno Haible  <bruno@clisp.org>
44330
44331         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
44332         temporary buffer for sprintf, take into account the precision also
44333         for 'd', 'i', 'u', 'o', 'x', 'X'.
44334
44335 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
44336
44337         * modules/argp-tests: New module
44338         * tests/test-argp.c: New file
44339         * tests/test-argp-2.sh: New file
44340
44341 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
44342
44343         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
44344         (__argp_base_name): Removed
44345         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
44346         typo.
44347         (__argp_base_name): Provide macro definition or extern declaration
44348         depending on the configuration
44349
44350 2006-01-20  Simon Josefsson  <jas@extundo.com>
44351
44352         * modules/inet_ntop (Depends-on): Depend on sys_socket.
44353
44354 2006-01-20  Simon Josefsson  <jas@extundo.com>
44355
44356         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
44357
44358 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
44359
44360         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
44361         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
44362         Suggested by Bruno Haible.
44363
44364 2006-01-20  Karl Berry  <karl@gnu.org>
44365
44366         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
44367         until changes propagate, I guess.
44368
44369 2006-01-19  Simon Josefsson  <jas@extundo.com>
44370
44371         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
44372
44373 2006-01-19  Simon Josefsson  <jas@extundo.com>
44374
44375         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
44376
44377 2006-01-19  Simon Josefsson  <jas@extundo.com>
44378
44379         * gnulib-tool: Set check_PROGRAMS.
44380
44381         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44382         modules/des-tests, modules/gc-arcfour-tests,
44383         modules/gc-arctwo-tests, modules/gc-des-tests,
44384         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44385         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44386         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44387         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44388         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44389         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
44390         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
44391         test_*_SOURCES.
44392
44393 2006-01-18  Simon Josefsson  <jas@extundo.com>
44394
44395         * modules/socklen (Depends-on): Depend on sys_socket.
44396
44397 2006-01-18  Simon Josefsson  <jas@extundo.com>
44398
44399         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44400         modules/des-tests, modules/gc-arcfour-tests,
44401         modules/gc-arctwo-tests, modules/gc-des-tests,
44402         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44403         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44404         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44405         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44406         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44407         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
44408         $(EXEEXT) to automake TESTS variable, for mingw32.
44409
44410 2006-01-17  Simon Josefsson  <jas@extundo.com>
44411
44412         * modules/socklen (Include): Need sys/socket.h.
44413
44414 2006-01-17  Bruno Haible  <bruno@clisp.org>
44415
44416         * modules/ssize_t (Include): Add <sys/types.h>.
44417
44418 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
44419
44420         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
44421         it's not portable and it doesn't work with cross-compiles.
44422         Problem reported by Bruno Haible.  Fix missing-$ typo in
44423         'test "gl_cv_ignore_unused_libraries" ...' that prevented
44424         -zignore from being used with Sun's C compiler.
44425
44426 2006-01-12  Simon Josefsson  <jas@extundo.com>
44427
44428         * lib/base64.c: Fix warning, reported by Bruno Haible
44429         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
44430
44431 2006-01-12  Bruno Haible  <bruno@clisp.org>
44432
44433         * modules/ldd: New file.
44434         * build-aux/ldd.sh.in: New file.
44435         * MODULES.html.sh (Support for building libraries and executables): Add
44436         ldd.
44437
44438 2006-01-12  Bruno Haible  <bruno@clisp.org>
44439
44440         * m4/ldd.m4: New file.
44441
44442 2006-01-12  Bruno Haible  <bruno@clisp.org>
44443
44444         * gnulib-tool (func_import, func_create_testdir): Don't go into an
44445         endless loop while replacing $auxdir with build-aux.
44446
44447 2006-01-11  Simon Josefsson  <jas@extundo.com>
44448
44449         * lib/stdint_.h (SIZE_MAX): Add missing (.
44450
44451 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44452
44453         Sync from coreutils.
44454         * lib/md5.c: Fix commentary typos.
44455         (alignof, UNALIGNED_P): No need for a GCC-specific version.
44456         * lib/md5.h (__attribute__): Remove; unused.
44457         * lib/sha1.c: Fix commentary to match md5 better.
44458         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
44459         so that we don't need to worry about alignment.  All uses changed.
44460         This merges the 2005-10-28 md5 change into sha1.
44461
44462 2006-01-11  Jim Meyering  <jim@meyering.net>
44463
44464         Sync from coreutils.
44465         * lib/md5.c (OP): Fix spacing.
44466
44467 2006-01-11  Bruno Haible  <bruno@clisp.org>
44468
44469         Ensure automatic ordering between gl_LOCK and gl_ARGP.
44470         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
44471         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
44472
44473 2006-01-11  Bruno Haible  <bruno@clisp.org>
44474
44475         Ensure automatic ordering between gl_LOCK and gl_ARGP.
44476         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
44477         the "early" section as well.
44478
44479 2006-01-11  Bruno Haible  <bruno@clisp.org>
44480
44481         Avoid "ar: no archive members specified" error on MacOS X.
44482         * gnulib-tool (func_modules_add_dummy): New function.
44483         (func_import, func_create_testdir): Invoke it.
44484
44485 2006-01-11  Bruno Haible  <bruno@clisp.org>
44486
44487         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
44488         with $auxdir in AC_CONFIG_FILES statements.
44489
44490 2006-01-11  Bruno Haible  <bruno@clisp.org>
44491
44492         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44493         Initialize also noinst_HEADERS to empty.
44494
44495 2006-01-11  Bruno Haible  <bruno@clisp.org>
44496
44497         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
44498         variables.
44499         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
44500         autoreconf.
44501
44502 2006-01-11  Bruno Haible  <bruno@clisp.org>
44503
44504         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
44505         overridable by the user.
44506         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44507
44508 2006-01-10  Simon Josefsson  <jas@extundo.com>
44509
44510         * modules/sys_socket: New file.
44511
44512 2006-01-10  Simon Josefsson  <jas@extundo.com>
44513
44514         * m4/sys_socket_h.m4: New file.
44515
44516 2006-01-10  Simon Josefsson  <jas@extundo.com>
44517
44518         * lib/socket_.h: New file.
44519
44520 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44521
44522         * modules/readutmp (Maintainer): Add myself.
44523
44524 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44525
44526         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
44527         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
44528         People who are still concerned with buggy memcmp implementations
44529         can invoke gl_FUNC_MEMCMP themselves.
44530
44531 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
44532
44533         * lib/regex_internal.h (BITSET_WORD_BITS):
44534         Work around a bug in 64-bit PGC (before version 6.1-2), where the
44535         preprocessor mishandles large unsigned values as if they were signed.
44536         Problem reported by Claudio Fontana in
44537         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
44538
44539 2006-01-10  Jim Meyering  <jim@meyering.net>
44540
44541         Avoid the double-free (first in fts_read, second in fts_close) that
44542         would occur when an `active' directory is made inaccessible (e.g.,
44543         via chmod a-x) during a traversal.
44544         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
44545         before returning.  Reproduce this failure by
44546         mkdir -p a/b; cd a; chmod a-x . b
44547         Reported by Stavros Passas.
44548
44549         Sync from coreutils.
44550         * lib/sha1.c: Tweak grammar in a comment.
44551
44552 2006-01-10  Jim Meyering  <jim@meyering.net>
44553
44554         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
44555         Patch by Joerg Sonnenberger.
44556
44557 2006-01-10  Bruno Haible  <bruno@clisp.org>
44558
44559         * modules/readutmp: Depend on module free.
44560         * modules/strtok_r: Depend on module restrict.
44561
44562 2006-01-10  Bruno Haible  <bruno@clisp.org>
44563
44564         * modules/gettext (configure.ac): Add an invocation of
44565         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
44566
44567 2006-01-10  Bruno Haible  <bruno@clisp.org>
44568
44569         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
44570         Reported by Werner Lemberg <wl@gnu.org>.
44571
44572 2006-01-10  Bruno Haible  <bruno@clisp.org>
44573
44574         * lib/localcharset.c: Update from GNU gettext.
44575
44576 2006-01-10  Bruno Haible  <bruno@clisp.org>
44577
44578         * lib/argp.h (__const): Remove macro. Use const instead.
44579         * lib/argp-fmtstream.h (__const): Likewise.
44580         * lib/glob_.h (__const): Remove macro.
44581         * lib/glob-libc.h: Use const instead of __const.
44582
44583 2006-01-10  Bruno Haible  <bruno@clisp.org>
44584
44585         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
44586         variable.
44587         Needed to avoid an automake error regarding the 'gettext' module.
44588
44589 2006-01-09  Simon Josefsson  <jas@extundo.com>
44590
44591         * modules/inet_ntop (Depends-on): Add restrict.
44592
44593 2006-01-09  Simon Josefsson  <jas@extundo.com>
44594
44595         * modules/gc-rijndael-tests (License): Put under LGPL.
44596
44597         * modules/gc-des-tests (License): Likewise.
44598
44599         * modules/gc-arcfour-tests (License): Likewise.
44600
44601         * modules/gc-arctwo-tests (License): Likewise.
44602
44603         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
44604
44605         * modules/gc-hmac-sha1-tests (Files): Likewise.
44606
44607         * modules/gc-hmac-md5-tests (License): Likewise.
44608
44609         * modules/gc-sha1-tests (License): Likewise.
44610
44611         * modules/gc-md5-tests (License): Likewise.
44612
44613         * modules/gc-md4-tests (License): Likewise.
44614
44615         * modules/gc-md2-tests (License): Likewise.
44616
44617         * modules/gc-tests (License): Likewise.
44618
44619         * modules/des-tests (License): Likewise.
44620
44621         * modules/md4-tests (License): Likewise.
44622
44623         * modules/md2-tests (License): Likewise.
44624
44625 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44626
44627         Sync from coreutils:
44628
44629         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
44630         * modules/lib-ignore: New file.
44631         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
44632         chdir-safer.m4, lchmod.m4.
44633         * modules/openat: Add mkdirat.c, openat-priv.h.
44634
44635 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44636
44637         Sync from coreutils.
44638         * m4/lib-ignore.m4: New file.
44639         * m4/lchmod.m4: New file.
44640
44641 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44642
44643         Sync from coreutils.
44644         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
44645         for write access: POSIX says that must fail.
44646         * lib/fts.c (diropen): Likewise.
44647         * lib/save-cwd.c (save_cwd): Likewise.
44648         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
44649         well, for minor improvements on hosts that lack O_DIRECTORY.
44650         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
44651         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
44652         Fall back on chown if open failed with EACCES.
44653
44654         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
44655         Report an error at compile-time if only a 1-second nominal clock
44656         resolution is found.
44657
44658         * lib/lchmod.h: New file.
44659         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
44660         (make_dir_parents): Use lchown rather than chown, and
44661         lchmod rather than chmod.
44662
44663         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
44664         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
44665         "proc" reported by n0dalus.
44666
44667         * lib/mountlist.c: Include <limits.h>.
44668         (dev_from_mount_options)
44669         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
44670         New function.  It no longer assumes "dev=" has the System V meaning
44671         on Linux (since it doesn't).  It also parses "dev=" more carefully.
44672         (read_file_system_list)
44673         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
44674         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
44675         dev= in that case.
44676
44677         * lib/posixtm.h (PDS_PRE_2000): New macro.
44678         * lib/posixtm.c (year): Arg is now syntax_bits rather than
44679         allow_century.  All usages changed.  Reject dates outside the range
44680         1969-1999 if PDS_PRE_2000 is used.
44681
44682 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
44683
44684         Sync from coreutils.
44685         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
44686         (Time of day items): Mention the possibility of leap seconds.
44687         Problem reported by Dr. David Alan Gilbert.
44688
44689 2006-01-09  Jim Meyering  <jim@meyering.net>
44690
44691         Sync from coreutils.
44692
44693         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
44694
44695         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
44696
44697         * lib/modechange.c (mode_compile): Reject an invalid mode string
44698         that starts with an octal digit.  From Andreas Gruenbacher.
44699
44700         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
44701         and dup to open_safer and dup_safer, respectively.
44702         (openat_permissive): Fix typo in comment.
44703
44704         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
44705         "gettext.h"; either no longer needed or are guaranteed by openat.h.
44706         (_): Remove; no longer needed.
44707         (openat): Renamed from rpl_openat; no need for rpl_openat
44708         since openat.h renames openat for us.
44709         Replace most of the body with a call to openat_permissive,
44710         to avoid duplicate code.
44711         Port to (probably hypothetical) environments were mode_t is
44712         wider than int.
44713         (openat_permissive): Require mode arg, so that we can check
44714         types better.  Put it just after flags.  Change cwd failure
44715         indicator from pointer-to-bool to pointer-to-errno-value.
44716         All callers changed.
44717         Invoke openat_save_fail and/or openat_restore_fail if
44718         cwd_errno is null, so that openat can call us.
44719         (openat_permissive, fdopendir, fstatat, unlinkat):
44720         Simplify errno handling to avoid some duplicate code,
44721         as it's OK to set errno on success.
44722         * lib/openat.h: Revamp code so that function macros depend on
44723         __OPENAT_PREFIX only, not also on AT_FDCWD.
44724         (openat_ro): Remove.  Caller changed to use openat_permissive.
44725         (openat_permissive): Now a macro, if not a function.
44726         (openat_restore_fail, openat_save_fail): Now always functions,
44727         since mkdirat needs them even if __OPENAT_PREFIX is defined.
44728
44729         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
44730         and openat.c.
44731         * lib/mkdirat.c: Include openat-priv.h.
44732         Remove definitions of macros defined therein.
44733         * lib/openat.c: Likewise.
44734
44735         * lib/mkdirat.c (mkdirat): New file and function.
44736         * lib/openat.h (mkdirat): Declare.
44737
44738         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
44739
44740         * lib/openat.h (openat_permissive): Declare.
44741         (openat_ro): Define.
44742
44743         * lib/openat.c (EXPECTED_ERRNO): New macro.
44744         (openat_permissive): New function -- used in remove.c rewrite.
44745         (all functions): Set errno just before returning, only if there
44746         was an actual failure.
44747         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
44748
44749         Emulate openat-family functions using Linux's procfs, if possible.
44750         Idea and some code based on Ulrich Drepper's glibc changes.
44751
44752         * lib/openat.c: (BUILD_PROC_NAME): New macro.
44753         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
44754         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
44755         before falling back on save_cwd and restore_cwd.
44756         (fdopendir, fstatat, unlinkat): Likewise.
44757
44758         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
44759         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
44760
44761         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
44762         as second argument to va_arg.  Otherwise, some versions of gcc
44763         warn that `if this code is reached, the program will abort'.
44764
44765 2006-01-09  Jim Meyering  <jim@meyering.net>
44766
44767         Sync from coreutils.
44768         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
44769         Require openat-priv.h.
44770
44771 2006-01-09  Bruno Haible  <bruno@clisp.org>
44772
44773         * modules/strnlen (Include): Use strnlen.h.
44774
44775 2006-01-09  Bruno Haible  <bruno@clisp.org>
44776
44777         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
44778
44779 2006-01-09  Bruno Haible  <bruno@clisp.org>
44780
44781         * lib/sysexit_.h (EX_OK): New macro.
44782         Suggested by Martin Lambers <marlam@marlam.de>.
44783
44784 2006-01-09  Bruno Haible  <bruno@clisp.org>
44785
44786         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
44787         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
44788
44789 2006-01-09  Bruno Haible  <bruno@clisp.org>
44790
44791         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
44792         numbers.
44793
44794 2006-01-09  Bruno Haible  <bruno@clisp.org>
44795
44796         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
44797         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
44798         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
44799         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
44800
44801 2006-01-09  Bruno Haible  <bruno@clisp.org>
44802
44803         * build-aux/javacomp.sh.in: New file, moved from lib/.
44804         * modules/javacomp-script (Files): Update.
44805         (configure.ac): Add AC_CONFIG_FILES invocation.
44806         (EXTRA_DIST): Remove variable.
44807
44808         * build-aux/javaexec.sh.in: New file, moved from lib/.
44809         * modules/javaexec (Files): Update.
44810         (configure.ac): Add AC_CONFIG_FILES invocation.
44811         (EXTRA_DIST): Remove javaexec.sh.in.
44812
44813         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
44814         * modules/csharpcomp-script (Files): Update.
44815         (configure.ac): Add AC_CONFIG_FILES invocation.
44816         (EXTRA_DIST): Remove variable.
44817
44818         * build-aux/csharpexec.sh.in: New file, moved from lib/.
44819         * modules/csharpexec (Files): Update.
44820         (configure.ac): Add AC_CONFIG_FILES invocation.
44821         (EXTRA_DIST): Remove csharpexec.sh.in.
44822
44823 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
44824
44825         Sync from coreutils.
44826
44827         Add POSIX ACL support
44828         * lib/acl.h (copy_acl, set_acl): Add declarations.
44829         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
44830         systems other than Linux.
44831         (chmod_or_fchmod): New function: use fchmod when possible,
44832         and chmod otherwise.
44833         (file_has_acl): Add a POSIX ACL implementation, with a
44834         Linux-specific subcase.
44835         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
44836         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
44837         acls are unsupported.
44838         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
44839         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
44840         are unsupported.
44841
44842 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
44843
44844         Sync from coreutils.
44845         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
44846
44847 2006-01-07  Bruno Haible  <bruno@clisp.org>
44848
44849         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
44850         gl_EARLY.
44851
44852 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44853
44854         * lib/strftime.c (tzname): Don't declare if it is already #defined.
44855         Problem reported for Mingw by Mark Junker.
44856
44857 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44858
44859         * README: Gnulib normally doesn't generate a tarball.
44860
44861 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
44862
44863         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
44864         long int, not int, for nanosecond counts, so that people who are
44865         used to POSIX struct timespec won't be surprised.  Reported by Jim
44866         Meyering.
44867
44868 2005-12-28  Bruno Haible  <bruno@clisp.org>
44869
44870         * build-aux/config.rpath: Update from GNU gettext.
44871
44872 2005-12-16  Jim Meyering  <jim@meyering.net>
44873
44874         * modules/fprintftime: New module.
44875         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
44876
44877 2005-12-16  Jim Meyering  <jim@meyering.net>
44878
44879         * m4/fprintftime.m4: New file.
44880
44881 2005-12-16  Jim Meyering  <jim@meyering.net>
44882
44883         * lib/fprintftime.c, lib/fprintftime.h: New files.
44884
44885 2005-12-15  Simon Josefsson  <jas@extundo.com>
44886
44887         * modules/socklen (configure.ac): Fix M4 macro name, to align with
44888         new m4/socklen.m4.
44889
44890 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44891
44892         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
44893         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
44894
44895 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
44896
44897         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
44898         * lib/argp-help.c (fill_in_uparams): Check if the constructed
44899         struct uparams is valid. Fall back to the default values if it is
44900         not.
44901
44902 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44903
44904         * modules/argp (Files): Add argp-pin.c
44905         (Depends-on): dirname
44906         (lib_SOURCES): Add argp-pin.c
44907
44908 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44909
44910         * m4/argp.m4:  Check if program_invocation_name and
44911         program_invocation_short_name are declared and define appropriate
44912         macros if they are not.
44913
44914 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
44915
44916         * lib/argp-help.c (__argp_base_name): New function
44917         (__argp_short_program_name): Rewrite using __argp_base_name
44918         * lib/argp-namefrob.h: Define program_invocation_name and
44919         program_invocation_short_name if requested
44920         (__argp_base_name): Add prototype
44921         * lib/argp-parse.c (argp_def): Use gettext wrappers
44922         (argp_default_parser): Use __argp_base_name
44923         * lib/argp-pin.c: New file. Defines program_invocation_name and
44924         program_invocation_short_name on systems that lack them.
44925
44926 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
44927
44928         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
44929         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
44930         porting problem reported by Georg Schwarz in
44931         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
44932
44933 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
44934
44935         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
44936         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
44937         porting problem reported by Georg Schwarz in
44938         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
44939
44940 2005-12-05  Bruno Haible  <bruno@clisp.org>
44941
44942         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
44943         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
44944         Reported by Mark Junker <mjscod@gmx.de>.
44945
44946 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
44947
44948         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
44949         Use implementation from Albert Chin, with some
44950         comments/corrections by Stepan Kasal and myself.
44951
44952 2005-12-02  Bruno Haible  <bruno@clisp.org>
44953
44954         * gnulib-tool (func_import): Accept GPLed build tool modules when
44955         --lgpl is given.
44956         * modules/csharpcomp-script: New file.
44957         * modules/csharpcomp: Depend on it.
44958         * modules/javacomp-script: New file.
44959         * modules/javacomp: Depend on it.
44960         Suggested by Simon Josefsson.
44961
44962 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
44963
44964         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
44965         statement, to work around an HP-UX 10.20 compiler bug reported by
44966         Peter O'Gorman.
44967
44968 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
44969
44970         * modules/savedir (Depends-on): Add openat.
44971
44972 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
44973
44974         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
44975         (uintmax_t) [defined uintmax_t]: Do not declare.
44976         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
44977         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
44978         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
44979         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
44980         sake of portability to weird hosts that C allows (though we don't
44981         know of any practical examples).
44982
44983         * lib/savedir.h (fdsavedir): New decl.
44984         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
44985         contains most of the former guts of savedir.
44986         (savedir): Use savedirstream.
44987         Include "openat.h".
44988
44989 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
44990
44991         * modules/obstack (Files): Add m4/ulonglong.m4.
44992         Problem reported by Davide Angelocola.
44993
44994 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44995
44996         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
44997         coreutils no longer futzes with rounding modes.
44998
44999 2005-11-14  Jim Meyering  <jim@meyering.net>
45000
45001         * lib/mkstemp-safer.c: Include <config.h>, required for possible
45002         replacement of mkstemp.
45003
45004 2005-11-10  Simon Josefsson  <jas@extundo.com>
45005
45006         * lib/readline.c: Remove EOL.
45007
45008 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45009
45010         * modules/gethrxtime (Depends-on): Add gettime.
45011
45012 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45013
45014         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
45015         or gettimeofday; no longer needed.
45016
45017 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45018
45019         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
45020         time business.
45021         (gethrxtime) [! (HAVE_NANOUPTIME
45022         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
45023         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
45024         our own approximation.
45025
45026 2005-11-08  Eric Blake  <ebb9@byu.net>
45027
45028         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
45029
45030 2005-11-08  Eric Blake  <ebb9@byu.net>
45031
45032         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
45033
45034 2005-11-04  Bruno Haible  <bruno@clisp.org>
45035
45036         * gnulib-tool: Implement --update mode.
45037
45038 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
45039
45040         Fix porting problem reported by Theodoros V. Kalamatianos.
45041         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
45042         Don't assume that futimes failing means we must fail.
45043
45044 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
45045
45046         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
45047         variables to suggest the intended function of the PATH_MAX check.
45048
45049 2005-10-30  Kean Johnston  <jkj@sco.com>
45050
45051         Trivial changes to support SCO systems.
45052         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
45053         as PATH_MAX.
45054         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
45055         where __ptr is null when no I/O is pending.
45056
45057 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
45058
45059         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
45060         leave errno alone.  Problem reported by Dmitry V. Levin.
45061
45062 2005-10-28  Simon Josefsson  <jas@extundo.com>
45063
45064         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
45065         Test more.
45066
45067         * tests/test-gc-md2.c, tests/test-md2.c: New files.
45068
45069         * modules/md2, modules/md2-tests: New files.
45070
45071 2005-10-28  Simon Josefsson  <jas@extundo.com>
45072
45073         * m4/inet_ntop.m4: More tests.
45074
45075         * m4/gc-md2.m4, md2.m4: New file.
45076
45077 2005-10-28  Simon Josefsson  <jas@extundo.com>
45078
45079         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
45080         "restrict" keywords, as per POSIX.  Protect the function
45081         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
45082         Don't use K&R prototypes.  Check the sprintf return values.
45083         Re-define EAFNOSUPPORT if not present.  Indent.
45084
45085         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
45086         suggested by Bruno Haible <bruno@clisp.org>.
45087
45088         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
45089
45090         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
45091
45092         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
45093         libgcrypt).
45094
45095         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
45096
45097         * lib/md2.h, lib/md2.c: New files.
45098
45099 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
45100
45101         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
45102         errno alone.  Problem reported by Frederic Jolliton.
45103
45104 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
45105
45106         * modules/verify (License): Change from GPL to LGPL.  This is a
45107         tiny module and there are apparently near-equivalents that are
45108         under the BSD license.
45109
45110 2005-10-24  Simon Josefsson  <jas@extundo.com>
45111
45112         * modules/sha1: Relicense to LGPL.
45113
45114 2005-10-24  Simon Josefsson  <jas@extundo.com>
45115
45116         * lib/md4.h: Shrink buffer size, now that we changed the type.
45117
45118 2005-10-23  Simon Josefsson  <jas@extundo.com>
45119
45120         * gnulib-tool (func_import): Fix --tests-base.
45121
45122 2005-10-22  Simon Josefsson  <jas@extundo.com>
45123
45124         * modules/arcfour (Depends-on): Need stdint.
45125
45126 2005-10-22  Simon Josefsson  <jas@extundo.com>
45127
45128         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
45129         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
45130
45131 2005-10-22  Simon Josefsson  <jas@extundo.com>
45132
45133         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
45134         suggested by Bruno Haible <bruno@clisp.org>.
45135
45136 2005-10-22  Simon Josefsson  <jas@extundo.com>
45137
45138         * lib/crc.h: Include stddef.h, for size_t.
45139
45140 2005-10-22  Simon Josefsson  <jas@extundo.com>
45141
45142         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
45143         arcfour_context struct (simplify test vector testing in GNU
45144         Shishi).
45145
45146 2005-10-21  Simon Josefsson  <jas@extundo.com>
45147
45148         * modules/des, modules/des-tests: New files.
45149
45150         * modules/gc-des, modules/gc-des-tests: New files.
45151
45152         * tests/test-des.c, tests/test-gc-des.c: New file.
45153
45154 2005-10-21  Simon Josefsson  <jas@extundo.com>
45155
45156         * modules/arctwo, modules/arctwo-tests: New files.
45157
45158         * tests/test-arctwo.c: New file.
45159
45160         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
45161
45162         * tests/test-gc-arctwo.c: New file.
45163
45164 2005-10-21  Simon Josefsson  <jas@extundo.com>
45165
45166         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
45167         Bruno Haible <bruno@clisp.org>.
45168
45169         * m4/gc-des.m4: New file.
45170
45171 2005-10-21  Simon Josefsson  <jas@extundo.com>
45172
45173         * m4/arctwo.m4: New file.
45174
45175         * m4/gc-arctwo.m4: New file.
45176
45177 2005-10-21  Simon Josefsson  <jas@extundo.com>
45178
45179         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
45180         block.
45181
45182 2005-10-21  Simon Josefsson  <jas@extundo.com>
45183
45184         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
45185         <bruno@clisp.org>.
45186
45187         * lib/hmac-sha1.c (hmac_sha1): Likewise.
45188
45189         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
45190         Bruno Haible <bruno@clisp.org>.
45191
45192         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
45193         <bruno@clisp.org>.
45194
45195 2005-10-21  Simon Josefsson  <jas@extundo.com>
45196
45197         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
45198
45199 2005-10-21  Simon Josefsson  <jas@extundo.com>
45200
45201         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
45202
45203 2005-10-21  Simon Josefsson  <jas@extundo.com>
45204
45205         * lib/des.h, lib/des.c: New files.
45206
45207         * lib/gc-gnulib.c: Support DES.c
45208
45209 2005-10-21  Simon Josefsson  <jas@extundo.com>
45210
45211         * lib/arctwo.h, lib/arctwo.c: New files.
45212
45213         * lib/gc-gnulib.c: Support ARCTWO.
45214
45215 2005-10-21  Simon Josefsson  <jas@extundo.com>
45216
45217         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
45218         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45219
45220 2005-10-21  Simon Josefsson  <jas@extundo.com>
45221
45222         * gnulib-tool (func_import, func_create_testdir): Define automake
45223         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
45224         Makefile.am snippet),
45225         suggested by Bruno Haible <bruno@clisp.org>.
45226
45227         * modules/gc (Makefile.am): Use it.
45228
45229 2005-10-21  Bruno Haible  <bruno@clisp.org>
45230
45231         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
45232         patch.
45233
45234 2005-10-19  Simon Josefsson  <jas@extundo.com>
45235
45236         * tests/test-gc-rijndael.c: New file.
45237
45238         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
45239
45240 2005-10-19  Simon Josefsson  <jas@extundo.com>
45241
45242         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
45243         interface too.
45244
45245 2005-10-19  Simon Josefsson  <jas@extundo.com>
45246
45247         * tests/test-gc-arcfour.c: New file.
45248
45249         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
45250
45251 2005-10-19  Simon Josefsson  <jas@extundo.com>
45252
45253         * modules/gc-md4, modules/gc-md4-tests: New file.
45254
45255         * tests/test-gc-md4.c: New file.
45256
45257 2005-10-19  Simon Josefsson  <jas@extundo.com>
45258
45259         * m4/gc-md4.m4: New file.
45260
45261 2005-10-19  Simon Josefsson  <jas@extundo.com>
45262
45263         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
45264         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
45265         <kasal@ucw.cz>.
45266
45267 2005-10-19  Simon Josefsson  <jas@extundo.com>
45268
45269         * m4/gc-arcfour.m4: New file.
45270
45271         * m4/gc-rijndael.m4: New file.
45272
45273 2005-10-19  Simon Josefsson  <jas@extundo.com>
45274
45275         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
45276
45277 2005-10-19  Simon Josefsson  <jas@extundo.com>
45278
45279         * lib/gc-gnulib.c: Support ARCFOUR.
45280
45281 2005-10-19  Simon Josefsson  <jas@extundo.com>
45282
45283         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
45284         support.
45285
45286         * lib/gc.h: Add ECB enum type.
45287
45288         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
45289
45290 2005-10-18  Simon Josefsson  <jas@extundo.com>
45291
45292         * tests/test-md5.c: New file.
45293
45294         * modules/md5-tests: New file.
45295
45296 2005-10-18  Simon Josefsson  <jas@extundo.com>
45297
45298         * tests/test-md4.c: New file.
45299
45300         * modules/md4, modules/md4-tests: New files.
45301
45302 2005-10-18  Simon Josefsson  <jas@extundo.com>
45303
45304         * m4/md4.m4: New file.
45305
45306 2005-10-18  Simon Josefsson  <jas@extundo.com>
45307
45308         * lib/md4.h, lib/md4.c: New files, based on md5.?.
45309
45310 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
45311
45312         * gnulib-tool (func_create_testdir): Omit the second check whether
45313         BUILT_SOURCES in nonempty.
45314
45315 2005-10-17  Simon Josefsson  <jas@extundo.com>
45316
45317         * tests/test-rijndael.c: New file.
45318
45319 2005-10-17  Simon Josefsson  <jas@extundo.com>
45320
45321         * modules/sha1: Depend on stdint instead of md5.
45322
45323         * modules/md5: Depend on stdint, remove uint32_t.
45324
45325 2005-10-17  Simon Josefsson  <jas@extundo.com>
45326
45327         * modules/gc-sha1-tests: New file.
45328
45329         * tests/test-gc-sha1.c: New file.
45330
45331 2005-10-17  Simon Josefsson  <jas@extundo.com>
45332
45333         * m4/md5.m4: Remove call to uint32_t.m4.
45334
45335 2005-10-17  Simon Josefsson  <jas@extundo.com>
45336
45337         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
45338
45339         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
45340         md5.h.
45341
45342         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
45343
45344         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
45345
45346 2005-10-17  Simon Josefsson  <jas@extundo.com>
45347
45348         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
45349
45350 2005-10-17  Simon Josefsson  <jas@extundo.com>
45351
45352         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
45353
45354 2005-10-17  Simon Josefsson  <jas@extundo.com>
45355
45356         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
45357
45358         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
45359
45360 2005-10-17  Bruno Haible  <bruno@clisp.org>
45361
45362         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
45363         that it can also be used in a test.
45364
45365 2005-10-16  Bruno Haible  <bruno@clisp.org>
45366
45367         * gnulib-tool (func_emit_tests_Makefile_am): Also define
45368         TESTS_ENVIRONMENT, so that individual tests can augment it.
45369
45370         * gnulib-tool (func_create_testdir): Use an intermediate target for
45371         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
45372         macros, like $(ALLOCA_H), which cannot be passed through the command
45373         line.
45374
45375 2005-10-15  Simon Josefsson  <jas@extundo.com>
45376
45377         * modules/rijndael-tests: New file.
45378
45379         * modules/rijndael: New file.
45380
45381 2005-10-15  Simon Josefsson  <jas@extundo.com>
45382
45383         * m4/rijndael.m4: New file.
45384
45385 2005-10-15  Simon Josefsson  <jas@extundo.com>
45386
45387         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
45388
45389         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
45390
45391 2005-10-14  Simon Josefsson  <jas@extundo.com>
45392
45393         * tests/test-arcfour.c: New file.
45394
45395         * modules/arcfour, modules/arcfour-tests: New files.
45396
45397 2005-10-14  Simon Josefsson  <jas@extundo.com>
45398
45399         * m4/arcfour.m4: New file.
45400
45401 2005-10-14  Simon Josefsson  <jas@extundo.com>
45402
45403         * lib/arcfour.h, lib/arcfour.c: New files.
45404
45405 2005-10-14  Roland McGrath  <roland@redhat.com>
45406
45407         Import from libc.  [BZ #1331]
45408         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
45409         macro argument.
45410         Reported by Matej Vela <vela@debian.org>.
45411
45412 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45413
45414         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
45415         include <wchar.h>; no longer needed.
45416
45417 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
45418
45419         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
45420
45421 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
45422         and  Ulrich Drepper  <drepper@redhat.com>
45423
45424         Import from libc.
45425         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
45426         instead of inline stream orientation test and two separate
45427         function calls.  Pay no attention to USE_IN_LIBIO.
45428
45429 2005-10-13  Simon Josefsson  <jas@extundo.com>
45430
45431         * modules/gc-hmac-md5-tests: New file.
45432
45433         * tests/test-gc-hmac-sha1.c: New file.
45434
45435         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
45436
45437         * modules/gc-hmac-md5-tests: New file.
45438
45439         * tests/test-gc-md5.c: New file.
45440
45441         * modules/gc-md5-tests: New file.
45442
45443 2005-10-13  Simon Josefsson  <jas@extundo.com>
45444
45445         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
45446         Move memory allocation outside of loop.
45447
45448 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
45449
45450         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
45451         intermediate directory is in a read-only file system.  Problem
45452         reported by Eric Blake.
45453
45454 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
45455
45456         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
45457
45458 2005-10-12  Simon Josefsson  <jas@extundo.com>
45459
45460         * tests/test-hmac-sha1.c: New file.
45461
45462         * modules/hmac-sha1-tests: New file.
45463
45464         * modules/hmac-sha1: New file.
45465
45466 2005-10-12  Simon Josefsson  <jas@extundo.com>
45467
45468         * modules/gc-sha1: New file.
45469
45470 2005-10-12  Simon Josefsson  <jas@extundo.com>
45471
45472         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
45473
45474         * tests/test-gc-pbkdf2-sha1.c: New file.
45475
45476 2005-10-12  Simon Josefsson  <jas@extundo.com>
45477
45478         * modules/gc-md5, modules/gc-hmac-md5: New files.
45479
45480         * modules/gc (Files): Remove md5, memxor and hmac files.
45481
45482 2005-10-12  Simon Josefsson  <jas@extundo.com>
45483
45484         * m4/gc-pbkdf2-sha1.m4: New file.
45485
45486         * m4/gc-hmac-sha1.m4: New file.
45487
45488         * m4/gc-sha1: New file.
45489
45490         * m4/hmac-sha1.m4: New file.
45491
45492 2005-10-12  Simon Josefsson  <jas@extundo.com>
45493
45494         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
45495
45496         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
45497
45498 2005-10-12  Simon Josefsson  <jas@extundo.com>
45499
45500         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
45501         suggested by Bruno Haible <bruno@clisp.org>.
45502
45503 2005-10-12  Simon Josefsson  <jas@extundo.com>
45504
45505         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
45506
45507 2005-10-12  Simon Josefsson  <jas@extundo.com>
45508
45509         * lib/gc-pbkdf2-sha1.c: New file.
45510
45511         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
45512
45513 2005-10-12  Simon Josefsson  <jas@extundo.com>
45514
45515         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
45516
45517         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
45518
45519 2005-10-12  Simon Josefsson  <jas@extundo.com>
45520
45521         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
45522         GC_USE_HMAC_MD5, respectively.
45523
45524         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
45525         (gc_md5): Fix typo.
45526
45527         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
45528
45529         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
45530
45531         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
45532
45533 2005-10-12  Bruno Haible  <bruno@clisp.org>
45534
45535         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
45536         Reported by Stepan Kasal <kasal@ucw.cz>.
45537
45538 2005-10-11  Simon Josefsson  <jas@extundo.com>
45539
45540         * tests/test-crc.c: New file.
45541
45542         * modules/crc, modules/crc-tests: New files.
45543
45544 2005-10-11  Simon Josefsson  <jas@extundo.com>
45545
45546         * m4/crc.m4: New file.
45547
45548 2005-10-11  Simon Josefsson  <jas@extundo.com>
45549
45550         * lib/gc.h: Add gc_hash and gc_hash_buffer.
45551
45552         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
45553
45554         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
45555
45556 2005-10-11  Simon Josefsson  <jas@extundo.com>
45557
45558         * lib/crc.h, lib/crc.c: New files.
45559
45560         * lib/gc.h (gc_hash_buffer): Add doc.
45561
45562 2005-10-11  Bruno Haible  <bruno@clisp.org>
45563
45564         * modules/c-strcasestr: New file.
45565         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
45566
45567 2005-10-11  Bruno Haible  <bruno@clisp.org>
45568
45569         * modules/c-strcase: New file.
45570         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
45571
45572 2005-10-11  Bruno Haible  <bruno@clisp.org>
45573
45574         * lib/strcasecmp.c: Include limits.h.
45575         (strcasecmp): Avoid integer overflow on exotic platforms.
45576         * lib/strncasecmp.c: Include limits.h.
45577         (strncasecmp): Avoid integer overflow on exotic platforms.
45578         Reported by Paul Eggert.
45579
45580 2005-10-11  Bruno Haible  <bruno@clisp.org>
45581
45582         * lib/c-strcasestr.h: New file, from GNU gettext.
45583         * lib/c-strcasestr.c: New file, from GNU gettext.
45584
45585 2005-10-11  Bruno Haible  <bruno@clisp.org>
45586
45587         * lib/c-strcase.h: New file, from GNU gettext.
45588         * lib/c-strcasecmp.c: New file, from GNU gettext.
45589         * lib/c-strncasecmp.c: New file, from GNU gettext.
45590
45591 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45592
45593         * modules/mempcpy (License): GPL -> LGPL.
45594         * modules/strchrnul (License): Likewise.
45595         * modules/sysexits (License): Likewise.
45596
45597 2005-10-08  Simon Josefsson  <jas@extundo.com>
45598
45599         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
45600
45601 2005-10-07  Simon Josefsson  <jas@extundo.com>
45602
45603         * m4/memxor.m4: Remove gl_C_RESTRICT call.
45604
45605 2005-10-06  Simon Josefsson  <jas@extundo.com>
45606
45607         * tests/test-hmac-md5.c: New file.
45608
45609         * modules/hmac-md5-tests: New file.
45610
45611         * modules/hmac-md5: New file.
45612
45613 2005-10-06  Simon Josefsson  <jas@extundo.com>
45614
45615         * m4/hmac-md5.m4: New file.
45616
45617         * m4/memxor.m4: Require gl_C_RESTRICT.
45618
45619 2005-10-06  Simon Josefsson  <jas@extundo.com>
45620
45621         * lib/memxor.c (memxor): Avoid casts and warnings.
45622
45623 2005-10-06  Simon Josefsson  <jas@extundo.com>
45624
45625         * lib/hmac-md5.c: New file.
45626
45627         * lib/hmac.h: New file.
45628
45629 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
45630
45631         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
45632         promotes to int, not unsigned int, to catch the AIX 5.3
45633         compiler bug.
45634
45635 2005-10-05  Simon Josefsson  <jas@extundo.com>
45636
45637         * modules/memxor: New file.
45638
45639         * modules/iconv (Files): Move config.rpath to havelib, it is used
45640         there.
45641
45642         * modules/havelib (Files): Add config.rpath.
45643
45644 2005-10-05  Simon Josefsson  <jas@extundo.com>
45645
45646         * m4/memxor.m4: New file.
45647
45648 2005-10-05  Simon Josefsson  <jas@extundo.com>
45649
45650         * lib/memxor.c (memxor): Fix compiler error.
45651
45652         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
45653         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
45654
45655         * lib/memxor.h, lib/memxor.c: New files.
45656
45657         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
45658         we assume all systems have it, suggested by Jim Meyering
45659         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
45660         any systems lack sys/socket.h; mingw32 is known to lack it, but we
45661         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
45662         same reasons.
45663
45664 2005-10-05  Simon Josefsson  <jas@extundo.com>
45665
45666         * config/srclist.txt: Add glibc bug 1423 for md5.h.
45667
45668 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
45669
45670         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
45671         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
45672         needed, since the source code now assumes these .h files.
45673
45674 2005-10-05  Derek Price  <derek@ximbiot.com>
45675
45676         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
45677
45678 2005-10-05  Bruno Haible  <bruno@clisp.org>
45679
45680         * modules/stdint (License): Change to LGPL.
45681
45682 2005-10-04  Simon Josefsson  <jas@extundo.com>
45683
45684         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
45685         D. Baushke" <mdb@gnu.org>.
45686
45687 2005-10-04  Bruno Haible  <bruno@clisp.org>
45688
45689         * lib/verify.h (verify_true): Provide alternative definition for C++.
45690
45691 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
45692
45693         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
45694         (SSIZE_MAX): New macro, if not already defined.
45695         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
45696         than 2 GiB.
45697
45698 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
45699
45700         Sync from coreutils.
45701         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
45702         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
45703         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
45704         ULLONG_MAX doesn't work with 2.7.2.1.
45705
45706 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
45707
45708         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
45709         From Ben Pfaff.
45710
45711         * modules/exclude (Depends-on): Depend on verify.
45712         * modules/strtoimax (Depends-on): Likewise.
45713         * modules/utimecmp (Depends-on): Likewise.
45714
45715 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
45716
45717         * lib/exclude.c: Include verify.h.
45718         (verify): Remove.  All callers changed to use verify.h's version.
45719         * lib/strtoimax.c: Likewise.
45720         * lib/utimecmp.c: Likewis.e
45721
45722         Sync from coreutils.
45723         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
45724         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
45725         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
45726         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
45727         bother returning ENOSYS if settimeofday or stime fails; just let
45728         them return whatever errno they want to return.
45729         * lib/utimens.c: Include unistd.h, for dup2.
45730         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
45731         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
45732
45733 2005-10-02  Jim Meyering  <jim@meyering.net>
45734
45735         Sync from coreutils.
45736         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
45737         from glibc-2.2.5 that fails for read-only files.
45738
45739 2005-10-02  Jim Meyering  <jim@meyering.net>
45740
45741         Sync from coreutils.
45742         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
45743         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
45744         `#if HAVE_CONFIG_H'.
45745         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
45746         Remove AT_FDCWD test.
45747         Do not consume the fd unless successful.
45748         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
45749         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
45750         block, so that we don't even try to compile it if settimeofday is
45751         available.  This works around a compilation failure on OSF1 V5.1,
45752         due to stime requiring a `long int*' while tv_sec is `int'.
45753
45754 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
45755
45756         Sync from coreutils.
45757         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
45758         against `yes', rather than just testing for nonempty.
45759
45760 2005-10-01  Simon Josefsson  <jas@extundo.com>
45761
45762         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
45763         and Darwin.
45764
45765         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
45766         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
45767         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
45768         freeaddrinfo and gai_strerror are declared by the POSIX headers.
45769         Check if struct addrinfo is declared.
45770
45771 2005-10-01  Simon Josefsson  <jas@extundo.com>
45772
45773         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
45774         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
45775         AI_* and EAI_* definitions.  Protect function declarations.
45776
45777 2005-10-01  Jim Meyering  <jim@meyering.net>
45778
45779         Sync from coreutils.
45780
45781         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
45782         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
45783         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
45784         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
45785         in the inet and nsl libraries.  Required on Solaris 5.7.
45786
45787 2005-10-01  Jim Meyering  <jim@meyering.net>
45788
45789         Sync from coreutils.
45790         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
45791         in the inet and nsl libraries.  Required on Solaris 5.7.
45792
45793 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
45794
45795         * lib/getdelim.c (getdelim): Remove unused variables.
45796
45797 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
45798
45799         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
45800         so that the code works even with ancient cpp.  Portability problem
45801         with GCC 2.7.2.1 reported by Thomas M.Ott.
45802
45803 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
45804
45805         * modules/regex (Depends-on): Add strcase.
45806
45807         * modules/gethostname (Licence): Change from GPL to LGPL, since
45808         gethostname.c is a trivial implementation of a standard library
45809         function.
45810         * modules/poll (License): Change from GPL to LGPL, since it's
45811         derived from LGPL code.
45812
45813 2005-09-27  Jim Meyering  <jim@meyering.net>
45814
45815         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
45816         HAVE_CONFIG_H.
45817
45818         * lib/intprops.h (signed_type_or_expr__): Define.
45819         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
45820         for unsigned types.
45821
45822 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
45823
45824         * lib/verify.h (verify_expr): Remove, replacing with:
45825         (verify_true): New macro that returns true instead of void.
45826         (verify_type__): Remove.
45827         (verify): Use verify_true rather than verify_type__.
45828
45829 2005-09-26  Bruno Haible  <bruno@clisp.org>
45830
45831         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
45832         is necessary.
45833         (lib_SOURCES): Remove mbchar.c.
45834         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
45835         (Files): Add m4/mbrtowc.m4.
45836         * modules/mbiter: Likewise.
45837         * modules/mbuiter: Likewise.
45838
45839 2005-09-26  Bruno Haible  <bruno@clisp.org>
45840
45841         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
45842         compile mbchar.c if they are not both present.
45843         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
45844         * m4/mbiter.m4 (gl_MBITER): Likewise.
45845         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
45846         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
45847         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
45848
45849 2005-09-25  Jim Meyering  <jim@meyering.net>
45850
45851         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
45852         also uses socklen_t.
45853
45854 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
45855
45856         * lib/utimens.c (ENOSYS): Define if not already defined.
45857         (futimens): Support having a null PATH if the file descriptor
45858         is nonnegative.
45859
45860         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
45861         Remove.
45862         (__attribute): Define to empty unless GCC 3.1 or later.
45863         This works around a core dump on OpenBSD 3.4, which has GCC
45864         2.95.3, which dumps core when given __attribute__(()).  It also
45865         simplifies other tests, since we really don't want to bother with
45866         worrying about which ancient version of GCC supported what.
45867         Original problem reported by Yoann Vandoorselaere, with part of
45868         the fix suggested by Derek Price.
45869
45870 2005-09-24  Jim Meyering  <jim@meyering.net>
45871
45872         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
45873         so we can once again use a positive bitfield width of 1 -- now we
45874         don't have to explain why we were using a bitfield width of 2.
45875
45876 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
45877
45878         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
45879         and similarly for the other external symbols.  Problem reported
45880         by James Gallager.
45881
45882         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
45883         bug reported by Jim Meyering.
45884
45885         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
45886         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
45887         not needed, since socklen is a prerequisite module.
45888
45889 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
45890
45891         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
45892         Problem reported by Eric Blake.
45893         (getaddrinfo): Initialize se so that it's not garbage.
45894         Redo internal storage allocation so that it doesn't make unportable
45895         assumptions about alignment.
45896         Fix a memory leak.
45897
45898         * lib/utimens.c (futimens): Use futimesat if available.
45899         Prefer it to futimes since it doesn't have the futimes bug.
45900
45901         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
45902         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
45903         Instead, declare a function that returns a pointer to an array,
45904         and use verify_type__ to declare the size of the array.
45905         Problem and germ of a solution reported by Bruno Haible.
45906         (verify_type__): Use 2, not 1, for bitfield size, to avoid
45907         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
45908
45909 2005-09-23  Jim Meyering  <jim@meyering.net>
45910
45911         Sync from coreutils.
45912         Correct build failure (socklen_t not defined) on at least
45913         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
45914         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
45915
45916 2005-09-23  Jim Meyering  <jim@meyering.net>
45917
45918         * modules/getaddrinfo (Depends-on): Add socklen.
45919
45920 2005-09-23  Bruno Haible  <bruno@clisp.org>
45921
45922         * tests/test-verify.c: New file.
45923
45924 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
45925
45926         Sync from coreutils.
45927
45928         * modules/argmatch (Depends-on): Add verify.
45929         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
45930         unistd-safer.
45931         * modules/save-cwd (Depends-on): Likewise.
45932
45933         * modules/openat (Files): Add lib/openat-die.c.
45934         (Depends-on): Remove error, exitfail.
45935         Add dirname.
45936
45937         * modules/verify: New file.
45938         * MODULES.html.sh (Diagnostics <assert.h>): New section,
45939         with "verify" module.
45940
45941 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
45942
45943         Sync from coreutils.
45944
45945         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
45946         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
45947         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
45948         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
45949         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
45950         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
45951         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
45952         Don't bother checking for string.h, stdlib.h, unistd.h.
45953         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
45954         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
45955         module's job.
45956         * m4/jm-macros.m4 (gl_MACROS): Likewise.
45957         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
45958
45959         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
45960         (gl_GETDATE): Use it.
45961
45962         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
45963
45964 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
45965
45966         Sync from coreutils.
45967
45968         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
45969         stat-time.h.
45970         * lib/argmatch.h: Include verify.h
45971         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
45972         (ARGMATCH_ASSERT): Remove; unused.
45973         * lib/canonicalize.c: Assume STDC_HEADERS.
45974         * lib/exclude.c: Include "strcase.h".
45975         * lib/regex_internal.h [!defined _LIBC]: Likewise.
45976         * lib/getusershell.c: Include stdio--.h rather than stdio.h
45977         and stdio-safer.h.
45978         (getusershell): Call fopen, not fopen_safer.
45979         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
45980         Do not include unistd-safer.h.
45981         (save_cwd): Don't call fd_safer; no longer needed
45982         now that we include fcntl--.h.
45983
45984         * lib/getdate.y (relative_time): New type.
45985         (RELATIVE_TIME_0): New constant.
45986         (parser_control): Use relative_time instead of doing it ourselves.
45987         (%union): Add new relative_time rel member.
45988         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
45989         Now typeless.
45990         (relunit, relunit_snumber): Now of type rel.
45991         (zone, rel, relunit, get_date): Adjust to above changes.
45992
45993         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
45994         Do not include unistd-safer.h.
45995         (getloadavg): Don't call fd_safer; no longer needed
45996         now that we include fcntl--.h.
45997
45998         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
45999         (make_dir_parents): Treat ENOSYS like EEXIST.
46000
46001         Improve quality of diagnostics on restore_cwd failure.
46002         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
46003         (make_dir_parents): Last arg is now int * (for errno), not bool *.
46004         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
46005         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
46006         each time through the loop.  Do not diagnose restore_cwd failure;
46007         that is the caller's job (and perhaps the caller does not care).
46008
46009         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
46010         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
46011         If the file already exists but is not a directory, don't bother
46012         to try to make its parents.
46013         Close potential file descriptor leak if we can't chdir("/") (!).
46014         Don't always return true if chdir($PWD) fails; return true only
46015         if the requested action was done successfully (except for the
46016         chdir($PWD)).
46017         Don't log final directory unless we actually made it.
46018         Refactor to avoid duplicate code to fix up permissions.
46019         Don't attempt to fix up parent permissions if chdir($PWD) fails.
46020
46021         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
46022         to make it a bit faster and (I hope) clearer.
46023         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
46024         Fix bug in formats like %2N.
46025
46026         * lib/verify.h: New file.
46027
46028 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
46029
46030         Sync from coreutils.
46031         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
46032
46033 2005-09-22  Jim Meyering  <jim@meyering.net>
46034
46035         Sync from coreutils.
46036
46037         * m4/lstat.m4 (gl_FUNC_LSTAT):
46038         Use AC_LIBSOURCES to require lstat.c and lstat.h.
46039         Remove obsolete comment.
46040         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
46041         * m4/xstrtod.m4: Likewise.
46042
46043         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
46044
46045 2005-09-22  Jim Meyering  <jim@meyering.net>
46046
46047         Sync from coreutils.
46048
46049         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
46050
46051         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
46052         the .tm_year member, since otherwise gcc-4.0 would now warn about
46053         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
46054
46055         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
46056         order to avoid an unsuppressible warning from gcc on 64-bit systems.
46057
46058         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
46059         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
46060         when run in a time zone for which daylight savings time is in effect
46061         for the starting date.
46062
46063         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
46064         stop us from restricting permissions of just-created absolute-named
46065         directories.
46066         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
46067         to restore initial working directory.
46068         * lib/mkdir-p.c (make_dir_parents): New parameter:
46069         different_working_dir, to tell caller if/when we change the working
46070         directory and are unable to return to the initial one.
46071         * lib/mkdir-p.h (make_dir_parents): Update prototype.
46072         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
46073         `return false'.  This fixes a bug introduced on 2004-07-30.
46074
46075         * lib/openat.c (fdopendir): Be sure to close the supplied
46076         file descriptor before returning.  This makes our replacement
46077         implementation a little closer to Solaris's, where fdopendir
46078         ties the file descriptor to the returned DIR* pointer.
46079         * lib/openat.c (unlinkat): New function.
46080         * lib/openat.h (unlinkat): Add prototype.
46081         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
46082         (openat_restore_fail): Rename from openat_restore_die.
46083         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
46084
46085         Provide an alternative to exiting immediately upon save_cwd or
46086         restore_cwd failure.  Now, an application can arrange e.g.,
46087         to perform a longjump in that case.
46088         * lib/openat.c: Include dirname.h.
46089         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
46090         (rpl_openat, fdopendir, fstatat): Call openat_save_die
46091         and openat_restore_die rather than calling error directly.
46092         Don't include "error.h" or "exitfail.h"; they're no longer needed.
46093
46094         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
46095         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
46096         define.
46097
46098         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
46099         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
46100                             int utc, int nanoseconds);
46101         Background:
46102         date should not have to allocate a megabyte of virtual memory to
46103         handle a format argument like +%1048575T.  When implemented with
46104         strftime, it must allocate such a buffer, use strftime to fill it
46105         in, print it, then free it.
46106         With fprintftime, it simply prints everything and exits.
46107         With no need for memory allocation, that's one fewer way to fail.
46108         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
46109         optional field width, not before, so we accept %9:z, not %:9z.
46110         (my_strftime): Be sure to use L_('x') for literals.
46111
46112         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
46113         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
46114         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
46115         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
46116         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
46117         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
46118         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
46119         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
46120         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
46121         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
46122         * lib/xgethostname.c, lib/xreadlink.c:
46123         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
46124
46125         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
46126         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
46127         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
46128         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
46129         and don't include <sys/file.h>).
46130
46131 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
46132
46133         Sync from coreutils.
46134
46135         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
46136         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
46137         [!LDAV_DONE]: Avoid unused variable warning.
46138
46139 2005-09-21  Bruno Haible  <bruno@clisp.org>
46140
46141         * lib/unicodeio.h (unicode_to_mb): New declaration.
46142
46143 2005-09-20  Derek Price  <derek@ximbiot.com>
46144
46145         * lib/getaddrinfo.c: Don't include <netdb.h> included from
46146         getaddrinfo.h.
46147
46148 2005-09-20  Bruno Haible  <bruno@clisp.org>
46149
46150         * gnulib-tool: Remove trailing slashes from the values specified for
46151         --source-base, --m4-base, --tests-base, --aux-dir.
46152         Suggested by Simon Josefsson <jas@extundo.com>.
46153
46154 2005-09-20  Bruno Haible  <bruno@clisp.org>
46155
46156         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
46157         func_modules_to_filelist, func_import, func_create_testdir): Make all
46158         sorting results locale-independent, so that gnulib-cache.m4 doesn't
46159         change when gnulib-tool is invoked in a different locale.
46160
46161 2005-09-19  Simon Josefsson  <jas@extundo.com>
46162
46163         * m4/socklen.m4: Fix typo.
46164
46165 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46166
46167         Use a consistent style for including <config.h>.
46168         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
46169         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
46170         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
46171         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
46172         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
46173         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
46174         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
46175         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
46176         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
46177         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
46178         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
46179         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
46180         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
46181         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
46182         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
46183         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
46184         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
46185         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
46186         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
46187         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
46188         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
46189         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
46190         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
46191         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
46192         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
46193         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
46194         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
46195         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
46196         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
46197         lib/xstrtoumax.c, lib/yesno.c:
46198         Standardize inclusion of config.h.
46199         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
46200         lib/inttostr.h:  Removed inclusion of config.h from header files.
46201         * lib/inttostr.c:  Adjusted in-tree users.
46202         * lib/timespec.h: Remove superfluous warning to include config.h.
46203         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
46204         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
46205         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
46206         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
46207         config.h with HAVE_CONFIG_H.
46208
46209 2005-09-19  Jim Meyering  <jim@meyering.net>
46210
46211         * modules/pathmax (License): Change to LGPL.
46212
46213 2005-09-19  Derek Price  <derek@ximbiot.com>
46214
46215         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
46216
46217 2005-09-19  Bruno Haible  <bruno@clisp.org>
46218
46219         * gnulib-tool (import): Provide default for --tests-base.
46220
46221 2005-09-19  Bruno Haible  <bruno@clisp.org>
46222
46223         * doc/quote.texi: New file, extracted from gnulib.texi.
46224         * doc/ctime.texi: New file, extracted from gnulib.texi.
46225         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
46226         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
46227         * doc/gnulib.texi: Include them.
46228
46229 2005-09-18  Bruno Haible  <bruno@clisp.org>
46230
46231         Portability fix.
46232         * gnulib-tool (func_readlink): New function.
46233         (func_ln_if_changed): Use it.
46234
46235 2005-09-18  Bruno Haible  <bruno@clisp.org>
46236
46237         * gnulib-tool: Support --with-tests also with --import.
46238         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
46239         (func_import): Use variables $testsbase and $inctests. Emit a
46240         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
46241         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
46242         SUBDIRS += $testsdir.
46243         (func_create_testdir): Update.
46244
46245 2005-09-18  Bruno Haible  <bruno@clisp.org>
46246
46247         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
46248         instead of $dry_run.
46249         (func_cp_if_changed, func_mv_if_changed): Remove functions.
46250         (func_ln_if_changed): Don't handle dry-run here.
46251         (func_import): In dry-run mode, detect more precisely which actions
46252         would be performed, and don't use "...ing" verbs.
46253
46254 2005-09-18  Bruno Haible  <bruno@clisp.org>
46255
46256         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
46257         (func_import): Use join on two temporary files instead of three nested
46258         loops, in order to determine which files are new or old.
46259
46260 2005-09-18  Bruno Haible  <bruno@clisp.org>
46261
46262         * gnulib-tool (func_import): Comment out code that spits out the
46263         new files with --dry-run.
46264
46265 2005-09-18  Bruno Haible  <bruno@clisp.org>
46266
46267         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
46268
46269 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46270
46271         * lib/stat-time.h: New file.
46272         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
46273         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
46274         in a different way.
46275         (timespec_cmp): New function.
46276         * lib/utimecmp.c: Include stat-time.h.
46277         (SYSCALL_RESOLUTION): Depend on whether various struct stat
46278         members exist, not on the obsolescent ST_MTIM_NSEC.
46279         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
46280
46281 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46282
46283         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
46284
46285 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
46286
46287         * MODULES.html.sh (File system functions): Add stat-time.
46288         * modules/stat-time: New file.
46289         * modules/timespec (Files): Remove m4/st_mtim.m4; this
46290         is now done in a different way, by the stat-time module.
46291         * modules/utimecmp (Depends-on): Add stat-time.
46292
46293 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
46294
46295         * m4/st_mtim.m4: Remove.  Superseded by...
46296         * m4/stat-time.m4: New file.
46297         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
46298         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
46299
46300 2005-09-15  Derek Price  <derek@ximbiot.com>
46301
46302         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
46303
46304 2005-09-15  Derek Price  <derek@ximbiot.com>
46305
46306         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
46307         * lib/regex_internal.c: Ditto, using this...
46308         (__GNUC_PREREQ): ...new macro.
46309         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
46310         using...
46311         (__GNUC_PREREQ): ...this new macro.
46312
46313         * lib/strstr.h: Include string.h. Define strstr as a macro here.
46314
46315 2005-09-15  Derek Price  <derek@ximbiot.com>
46316             Paul Eggert  <eggert@cs.ucla.edu>
46317
46318         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
46319         changes, consolidating in...
46320         * lib/regex_internal.h: ...this file.
46321
46322 2005-09-13  Jim Meyering  <jim@meyering.net>
46323
46324         * lib/canon-host.c: Filter through gnu indent and reword comments
46325         slightly.
46326         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
46327
46328 2005-09-13  Derek Price  <derek@ximbiot.com>
46329
46330         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
46331         failure.
46332         Reported by Jim Meyering  <jim@meyering.net>.
46333
46334 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
46335
46336         * lib/base64.c: Typo.
46337         (base64_encode): Put b64str in initialized data section.
46338
46339 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
46340
46341         Merge glibc and coreutils changes into gnulib, plus a few
46342         extra fixes.
46343         * lib/md5.c: Use #error rather than a string.
46344         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
46345         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
46346         (__attribute__): Define to empty for non recent-GCC.
46347         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
46348         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
46349         Renamed from their non-__ counterparts, with new macros replacing
46350         them if not _LIBC.  Add __THROW attribute.
46351         (rol): Remove.
46352         (struct md5_ctx): Align buffer if using GCC.
46353         * lib/sha1.h (struct sha1_ctx): Likewise.
46354         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
46355         The old name was backwards.
46356         (NOTSWAP): Remove; not used.
46357         (rol): New macro, moved here from md5.h.
46358         (sha1_process_block): Remove a FIXME that doesn't make sense.
46359
46360 2005-09-12  Derek Price  <derek@ximbiot.com>
46361
46362         Return usable errors from canon-host.
46363         * lib/canon-host.h: New file.
46364         * lib/canon-host.c (canon_host): Wrap...
46365         (canon_host_r): ...this new function, which now relies exclusively on
46366         getaddrinfo.
46367         (ch_strerror): New function.
46368         (last_cherror): New global.
46369         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
46370         interface.
46371         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
46372         void *.
46373         (freeaddrinfo): Free ai->ai_canonname when set.
46374
46375 2005-09-12  Derek Price  <derek@ximbiot.com>
46376
46377         Make canon-host require getaddrinfo.
46378         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
46379         AC_LIBSOURCE canon-host.h.  Call...
46380         (gl_PREREQ_CANON_HOST): ...this new function, which requires
46381         gl_GETADDRINFO.
46382         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
46383
46384 2005-09-12  Derek Price  <derek@ximbiot.com>
46385
46386         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
46387         LGPL.
46388         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
46389
46390 2005-09-12  Derek Price  <derek@ximbiot.com>
46391
46392         * lib/gai_strerror.c: Include config.h when available.  Include
46393         getaddrinfo.h before other headers to test interface.
46394         Reported by Larry Jones <lawrence.jones@ugs.com>.
46395
46396 2005-09-12  Derek Price  <derek@ximbiot.com>
46397             Paul Eggert  <eggert@cs.ucla.edu>
46398
46399         * modules/glob (Files): Add glob-libc.h.
46400
46401 2005-09-12  Derek Price  <derek@ximbiot.com>
46402             Paul Eggert  <eggert@cs.ucla.edu>
46403
46404         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
46405         glob_.h, glob-libc.h.
46406         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
46407
46408 2005-09-12  Derek Price  <derek@ximbiot.com>
46409             Paul Eggert  <eggert@cs.ucla.edu>
46410
46411         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
46412         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
46413         protecting things that should be done only in gnulib contexts.
46414         * lib/glob_.h: New file, containing only the glob things needed for
46415         gnulib.
46416         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
46417         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
46418         (glob, globfree, glob_pattern_p): Now defined simply in terms of
46419         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
46420         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
46421         and to respect the namespace rules better.
46422
46423 2005-09-08  Simon Josefsson  <jas@extundo.com>
46424
46425         * modules/socklen: New file.
46426
46427 2005-09-08  Simon Josefsson  <jas@extundo.com>
46428
46429         * m4/socklen.m4: New file.
46430
46431 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46432
46433         * modules/utimens (Files): Add m4/utimbuf.m4, since
46434         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
46435         Reported by Sergey Poznyakoff.
46436
46437 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46438
46439         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
46440         definitions, since that's the preferred style in glibc.
46441         Fix a minor spacing issue, and update copyright notice to match
46442         glibc's.
46443
46444 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
46445
46446         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
46447
46448 2005-09-06  Simon Josefsson  <jas@extundo.com>
46449
46450         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
46451         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
46452
46453 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46454
46455         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
46456         warning.
46457
46458 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
46459
46460         * config/srclist.txt: Add glibc bug 1302.
46461
46462 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
46463
46464         Change bitset word type from unsigned int to unsigned long int,
46465         as this has better performance on typical 64-bit hosts.
46466         Port bitset code to hosts with unusual word sizes.
46467         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
46468         (build_collating_symbol):
46469         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
46470         argument is a bitset.  This is merely a style issue, but it makes
46471         it clearer that an entire array is expected.
46472         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
46473         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
46474         Port to the case where bitset_word is not the same as unsigned int.
46475         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
46476         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
46477         Likewise.
46478         * lib/regexec.c (check_dst_limits_calc_pos_1,
46479         check_subexp_matching_top):
46480         (build_trtable, group_nodes_into_DFAstates):
46481         Likewise.
46482         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
46483         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
46484         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
46485         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
46486         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
46487         * lib/regcomp.c (optimize_subexps, lower_subexp):
46488         Work even if bitset_word has holes in its bitwise representation.
46489         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
46490         * lib/regexec.c (check_dst_limits_calc_pos_1,
46491         check_subexp_matching_top):
46492         Likewise.
46493         * lib/regex_internal.c (re_string_reconstruct):
46494         Don't assume UCHAR_MAX == 255.
46495         * lib/regex_internal.h (bitset_set_all): Likewise.
46496         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
46497         All uses changed.
46498         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
46499         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
46500         All uses changed.
46501         (BITSET_WORD_MAX): New macro.
46502         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
46503         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
46504         (bitset_empty, bitset_copy):
46505         Prefer sizeof (bitset) to multiplying it out ourselves.
46506         (bitset_not_merge): Remove; unused.
46507         (bitset_contain): Return bool, not unsigned int with one bit on.
46508         All callers changed.
46509         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
46510         alignment than re_node_set; do this by defining a new internal
46511         type struct dests_alloc and using it to allocate memory.
46512
46513 2005-09-05  Bruno Haible  <bruno@clisp.org>
46514
46515         * gnulib-tool (func_import): Fix comparison in handling of symbolic
46516         links.
46517
46518 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
46519
46520         * modules/size_max (Makefile.am): Add size_max.h
46521
46522 2005-09-04  Derek Price  <derek@ximbiot.com>
46523
46524         * gnulib-tool (func_import): Fix reversed $symbolic logic.
46525
46526 2005-09-03  Simon Josefsson  <jas@extundo.com>
46527
46528         * gnulib-tool: Fix typo.
46529
46530 2005-09-03  Simon Josefsson  <jas@extundo.com>
46531
46532         * config/srclist.txt: Add glibc bug 1293.
46533
46534 2005-09-03  Derek Price  <derek@ximbiot.com>
46535
46536         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
46537         From Larry Jones <lawrence.jones@ugs.com>.
46538
46539 2005-09-02  Simon Josefsson  <jas@extundo.com>
46540
46541         * modules/socklen: New file.
46542
46543 2005-09-02  Simon Josefsson  <jas@extundo.com>
46544
46545         * modules/havelib: New module.
46546
46547         * modules/gettext, modules/iconv, modules/lock, modules/readline:
46548         Use havelib.
46549
46550 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
46551
46552         Check for arithmetic overflow when calculating sizes, to prevent
46553         some buffer-overflow issues.  These patches are conservative, in the
46554         sense that when I couldn't determine whether an overflow was possible,
46555         I inserted a run-time check.
46556         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
46557         macros.
46558         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
46559         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
46560         (re_xnrealloc, re_x2nrealloc): New inline functions.
46561         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
46562         parse_bracket_exp):
46563         (build_equiv_class, build_charclass): Check for arithmetic overflow
46564         in size expression calculations.
46565         * lib/regex_internal.c (re_string_realloc_buffers):
46566         (build_wcs_upper_buffer, re_node_set_add_intersect):
46567         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
46568         (re_dfa_add_node, register_state): Likewise.
46569         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
46570         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
46571         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
46572         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
46573
46574 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
46575
46576         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
46577         m4/ulonglong.m4.  Problem reported by Martin Lambers.
46578
46579 2005-09-02  Bruno Haible  <bruno@clisp.org>
46580
46581         Support for lib vs. lib64 distinction on biarch platforms.
46582         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
46583         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
46584         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
46585
46586 2005-09-02  Bruno Haible  <bruno@clisp.org>
46587
46588         * gnulib-tool (import): In the other first-use case, provide defaults
46589         as well.
46590
46591 2005-09-02  Bruno Haible  <bruno@clisp.org>
46592
46593         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
46594         patches not yet found in the latest gettext release.
46595
46596 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46597
46598         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
46599         to avoid a collision with bits/local_lim.h in glibc.
46600         All uses changed.  Problem reported by Dmitry V. Levin in
46601         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
46602
46603         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
46604         bugs in int versus size_t comparisons.
46605         (re_string_context_at): Fix bug where the code assumed that
46606         Idx is signed.
46607
46608         Use bool where appropriate.
46609         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
46610         All callers changed.
46611         (calc_eclosure_iter): Likewise, for ROOT arg.
46612         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
46613         (build_charclass_op): Likewise, for NON_MATCH arg.
46614         * lib/regex_internal.c (re_string_allocate, re_string_construct):
46615         (re_string_construct_common): Likewise, for ICASE arg.
46616         * lib/regexec.c (re_search_2_stub, re_search_stub):
46617         Likewise, for RET_LEN arg.
46618         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
46619         (set_regs): Likewise, for FL_BACKTRACK arg.
46620         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
46621         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
46622         (calc_eclosure_iter, parse_bracket_exp):
46623         Use bool for internal variables that are booleans.
46624         * lib/regexec.c (re_search_internal, check_matching,
46625         proceed_next_node):
46626         (set_regs, build_sifted_states, sift_states_bkref):
46627         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
46628         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
46629         (find_collation_sequence_value):
46630         Likewise.
46631         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
46632         (re_node_set_compare):
46633         Return bool, not int. All callers changed.
46634         * lib/regexec.c (check_halt_node_context, check_dst_limits):
46635         (build_trtable, check_node_accept): Likewise.
46636         * lib/regex_internal.h: Include stdbool.h.
46637
46638         Fix bugs uncovered when converting to bool.
46639         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
46640         failure instead of charging ahead blindly.
46641         * lib/regex_internal.c (register_state): Likewise.
46642         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
46643         for freeing internal storage.
46644         (group_nodes_into_DFA_states): Use unsigned int, not int, for
46645         bitset pieces used as boolean, to avoid undefined behavior
46646         on hosts that do int overflow checking.
46647
46648 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
46649
46650         * config/srclist.txt: Add glibc bugs 1285-1287.
46651
46652 2005-09-01  Jim Meyering  <jim@meyering.net>
46653
46654         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
46655         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
46656         Require gl_STAT_MACROS, too.
46657
46658 2005-09-01  Bruno Haible  <bruno@clisp.org>
46659
46660         * gnulib-tool (import): In the first-use case, provide defaults.
46661
46662 2005-09-01  Bruno Haible  <bruno@clisp.org>
46663
46664         * gnulib-tool (func_import): Remove the .tmp files.
46665
46666 2005-09-01  Bruno Haible  <bruno@clisp.org>
46667
46668         * gnulib-tool (func_import): Fix handling of symbolic links.
46669
46670 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46671
46672         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
46673         old glibc regex code mishandles strings longer than 2**31 bytes.
46674         This patch fixes this when the regex code is used in gnulib
46675         (i.e., outside glibc).
46676
46677         This patch should not affect the use of the regex code inside
46678         glibc.  No doubt this problem also needs to be handled for glibc
46679         as well, but the result will be an incompatible change to the
46680         glibc ABI, and the old ABI will have to be supported too.  That
46681         can be the the subject for another patch.
46682
46683         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
46684         governing whether the rest of this patch is active.  By default,
46685         the macro is disabled and the patch has no effect.
46686         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
46687         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
46688         (struct re_pattern_buffer, re_search, re_search_2, re_match):
46689         (re_match_2, re_set_registers): Use the new types.
46690         * lib/regex_internal.h (Idx, re_hashval_t): New types.
46691         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
46692         New macros.
46693         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
46694         (re_string_context_at, bin_tree_t, re_dfastate_t):
46695         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
46696         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
46697         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
46698         (re_string_char_size_at, re_string_wchar_at):
46699         (re_string_elem_size_at):
46700         Use the new types and macros to port to 64-bit hosts.
46701         Use unsigned types for internal values, so that the code
46702         mostly works even for arrays larger than SSIZE_MAX.
46703         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
46704         (search_duplicated_node, calc_eclosure_iter, fetch_number):
46705         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
46706         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
46707         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
46708         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
46709         (calc_inveclosure, parse_dup_op, build_range_exp):
46710         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
46711         (fetch_number, create_token_tree, mark_opt_subexp):
46712         Likewise.
46713         * lib/regex_internal.c (re_string_construct_common,
46714         create_ci_newstate):
46715         (create_cd_newstate, re_string_allocate, re_string_construct):
46716         (re_string_realloc_buffers, build_wcs_upper_buffer):
46717         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
46718         (re_string_reconstruct, re_string_peek_byte_case):
46719         (re_string_fetch_byte_case, re_string_context_at):
46720         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
46721         (re_node_set_init_copy, re_node_set_add_intersect):
46722         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
46723         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
46724         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
46725         (re_acquire_state, re_acquire_state_context, register_state):
46726         Likewise.
46727         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
46728         search_cur_bkref_entry):
46729         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
46730         (re_search_internal, re_search_2_stub, re_search_stub)
46731         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
46732         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
46733         (update_cur_sifted_state, check_dst_limits):
46734         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
46735         (check_subexp_limits, sift_states_bkref, merge_state_array):
46736         (check_subexp_matching_top, get_subexp, get_subexp_sub):
46737         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
46738         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
46739         (expand_bkref_cache, check_node_accept_bytes):
46740         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
46741         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
46742         (acquire_init_state_context, check_halt_node_context):
46743         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
46744         (sift_states_backward, clean_state_log_if_needed):
46745         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
46746         (find_recover_state, transit_state_sb, transit_state_mb):
46747         (transit_state_bkref, build_trtable, match_ctx_clean):
46748         Likewise.
46749         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
46750         to work around an assumption that REG_MISSING is negative.
46751
46752         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
46753         (seek_collating_symbol_entry) [defined _LIBC]:
46754         (lookup_collation_sequence_value) [defined _LIBC]:
46755         (build_range_exp, build_collating_symbol) [defined _LIBC]:
46756         Use prototypes rather than old-style function definitions.
46757         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
46758         (transit_state_sb) [0]:
46759         (find_collation_sequence_value) [defined _LIBC]: Likewise.
46760
46761         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
46762         rm_eo.
46763
46764         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
46765         (optimize_subexps, lower_subexp):
46766         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
46767         since the signed shift might overflow.  Use 1u<<31 instead.
46768         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
46769         Likewise.
46770         * lib/regexec.c (check_dst_limits_calc_pos_1,
46771         check_subexp_matching_top): Likewise.
46772
46773         * lib/regcomp.c (optimize_subexps, lower_subexp):
46774         Use CHAR_BIT rather than 8, for clarity.
46775         * lib/regexec.c (check_dst_limits_calc_pos_1):
46776         (check_subexp_matching_top): Likewise.
46777         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
46778         have to worry about portability issues when shifting it left.
46779         Remove no-longer-needed test for table_size > 0.
46780         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
46781         in a word, as the resulting behavior is undefined.
46782         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
46783         in one case, a <= should have been an <, and in another case the
46784         whole test was missing.
46785         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
46786         the standard name CHAR_BIT.
46787         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
46788         this is not true on one's complement and signed-magnitude hosts.
46789
46790         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
46791         next_last_offset.
46792         (struct re_dfa_t): Remove unused member states_alloc.
46793         * lib/regcomp.c (init_dfa): Don't initialize unused members.
46794
46795 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46796
46797         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
46798         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
46799         and large-file glibc and in 32-bit large-file Solaris.
46800
46801 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46802
46803         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
46804         lengths fit in regoff_t; this isn't true if regoff_t is the same
46805         width as size_t.
46806         * lib/regex.c (re_search_internal): 5th arg is LAST_START
46807         (= START + RANGE) instead of RANGE.  This avoids overflow
46808         problems when regoff_t is the same width as size_t.
46809         All callers changed.
46810         (re_search_2_stub): Check for overflow when adding the
46811         sizes of the two strings.
46812         (re_search_stub): Check for overflow when adding START
46813         to RANGE; if it occurs, substitute the extreme value.
46814
46815 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
46816
46817         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
46818
46819 2005-08-31  Jim Meyering  <jim@meyering.net>
46820
46821         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
46822         a pointer-to-const.
46823         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
46824         (register_state): Likewise.
46825         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
46826         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
46827         (group_nodes_into_DFAstates): Likewise.
46828
46829 2005-08-31  Jim Meyering  <jim@meyering.net>
46830
46831         * check-module: Add a FIXME comment.
46832
46833 2005-08-31  Eric Blake  <ebb9@byu.net>
46834
46835         * modules/unistd-safer (Files): Add unistd--.h.
46836         * modules/stdio-safer (Files): Add stdio--.h.
46837
46838 2005-08-31  Derek Price  <derek@ximbiot.com>
46839
46840         * lib/getdelim.c (getdelim): Return EOF on EOF.
46841         Reported by Larry Jones <lawrence.jones@ugs.com>.
46842
46843 2005-08-31  Bruno Haible  <bruno@clisp.org>
46844
46845         Avoid unnecessary diffs in the generated lib/Makefile.am.
46846         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
46847         the generated files.
46848         (func_import): Don't set cmd.
46849
46850 2005-08-31  Bruno Haible  <bruno@clisp.org>
46851
46852         * lib/strstr.c: Include <stddef.h>, for NULL.
46853         * lib/strcasestr.c: Likewise.
46854         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46855
46856 2005-08-31  Bruno Haible  <bruno@clisp.org>
46857
46858         * gnulib-tool: New option --macro-prefix.
46859         (func_import): Use macro_prefix.
46860         (import): Handle option --macro-prefix.
46861
46862 2005-08-31  Bruno Haible  <bruno@clisp.org>
46863
46864         * gnulib-tool (import): Rename most ac_* variables to cached_*.
46865         Also use new variables cached_lgpl, cached_libtool.
46866
46867 2005-08-31  Bruno Haible  <bruno@clisp.org>
46868
46869         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
46870         always instantiating them.
46871
46872 2005-08-31  Bruno Haible  <bruno@clisp.org>
46873
46874         * gnulib-tool (func_import): Read the previous cached settings
46875         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
46876         earlier added by gnulib but are now dropped. Warn when a gnulib file
46877         overwrites a non-gnulib file.
46878
46879 2005-08-31  Bruno Haible  <bruno@clisp.org>
46880
46881         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
46882         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
46883         projects that don't keep autogenerated files in CVS. Put into
46884         actioncmd only the specified modules, not the transitive closure.
46885
46886 2005-08-31  Bruno Haible  <bruno@clisp.org>
46887
46888         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
46889         Create directories that shall be filled.
46890         (import): Don't look for gl_* macros in configure.ac. Recurse across
46891         all directories containing a gnulib-cache.m4 files, if meaningful.
46892
46893 2005-08-31  Bruno Haible  <bruno@clisp.org>
46894
46895         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
46896         (import): Set seen_libtool when we see gl_LIBTOOL.
46897
46898 2005-08-31  Bruno Haible  <bruno@clisp.org>
46899
46900         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
46901         declaration macro definitions from generated gnulib.m4.
46902
46903 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
46904
46905         * lib/iconvme.h: Add prototype for iconv_alloc.
46906
46907 2005-08-29  Simon Josefsson  <jas@extundo.com>
46908
46909         * lib/iconvme.c: Fix errno.
46910
46911 2005-08-29  Bruno Haible  <bruno@clisp.org>
46912
46913         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
46914         that it works when the directory contains spaces.
46915
46916 2005-08-29  Bruno Haible  <bruno@clisp.org>
46917
46918         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
46919
46920 2005-08-29  Bruno Haible  <bruno@clisp.org>
46921
46922         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
46923         Emit more advice.
46924
46925 2005-08-29  Bruno Haible  <bruno@clisp.org>
46926         and Stepan Kasal  <kasal@ucw.cz>
46927
46928         * check-module: If more parameters are given, check each of them
46929         separately; add more exceptions, as noted by Jim Meyering.
46930         (check_module): New procedure.
46931         (%exempt_header): Now contains all exceptions.
46932
46933 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
46934
46935         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
46936
46937 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
46938
46939         * lib/iconvme.c: Split iconv_string into iconv_alloc.
46940
46941 2005-08-28  Bruno Haible  <bruno@clisp.org>
46942
46943         * m4/gnulib-tool.m4: New file.
46944
46945 2005-08-27  Jim Meyering  <jim@meyering.net>
46946
46947         * modules/unistd-safer (Files): Add pipe-safer.c.
46948         * modules/fcntl-safer (Files): Add creat-safer.c.
46949
46950 2005-08-27  Jim Meyering  <jim@meyering.net>
46951
46952         * m4/stdlib-safer.m4: New file.  From coreutils.
46953         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
46954         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
46955         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
46956         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
46957         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
46958
46959 2005-08-27  Jim Meyering  <jim@meyering.net>
46960
46961         * lib/fopen-safer.c: Merge minor changes from coreutils.
46962         * lib/dup-safer.c: Likewise.
46963         * lib/fd-safer.c: Likewise.
46964
46965         Merge from coreutils.
46966         * lib/stdio--.h: New file.
46967         * lib/stdlib--.h: New file.
46968         * lib/mkstemp-safer.c: New file.
46969
46970         GNU tar needs these.
46971         * lib/pipe-safer.c: New file.
46972         * lib/creat-safer.c: New file.
46973         * lib/fcntl--.h (creat): Define to creat_safer.
46974         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
46975         * lib/unistd--.h (pipe): Define to pipe_safer.
46976         * lib/unistd-safer.h: Declare pipe_safer.
46977
46978 2005-08-26  Simon Josefsson  <jas@extundo.com>
46979
46980         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
46981         Haible <bruno@clisp.org>.
46982
46983 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
46984
46985         * lib/regex_internal.h: Remove all references to
46986         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
46987         or better.
46988         (bitset_not, bitset_merge, bitset_not_merge):
46989         (bitset_mask, re_string_allocate, re_string_construct):
46990         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
46991         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
46992         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
46993         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
46994         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
46995         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
46996         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
46997         (re_acquire_state_context):
46998         Remove unnecessary forward decls.
46999         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
47000         Put __attribute at function definition,
47001         now that the function decl has been removed.
47002         * lib/regex_internal.c (re_string_peek_byte_case):
47003         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
47004         Likewise.
47005
47006 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
47007
47008         * m4/regex.m4: Add AC_PREREQ(2.50).
47009         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
47010
47011 2005-08-25  Simon Josefsson  <jas@extundo.com>
47012
47013         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
47014         __fsetlocking.
47015
47016 2005-08-25  Simon Josefsson  <jas@extundo.com>
47017
47018         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
47019         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
47020         GLIBC specific code.
47021
47022 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47023
47024         Make regex safe for g++.  This fixes one real bug (an "err"
47025         that should have been "*err").  g++ problem reported by
47026         Sam Steingold.
47027         * lib/regex_internal.h (re_calloc): New macro, consistent with
47028         re_malloc etc.  All callers of calloc changed to use re_calloc.
47029         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
47030         not int.  All callers changed.
47031         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
47032         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
47033         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
47034         (find_recover_state): Change "err" to "*err"; this fixes what
47035         appears to be a real bug.
47036         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
47037         versus int.
47038
47039 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47040
47041         * modules/regex (Depends-on): Add malloc, since the code
47042         assumes that !malloc(0) means failure.
47043
47044 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47045
47046         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
47047
47048         alloca modernization/simplification for regex.
47049         * lib/regex.c: Remove portability cruft for alloca.  This no longer
47050         needs to be at the start of the file, and can be moved into
47051         regex_internal.h and simplified.
47052         * lib/regex_internal.h: Include <alloca.h>.
47053         (__libc_use_alloca) [!defined _LIBC]: New macro.
47054         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
47055         now works outside glibc.
47056
47057 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
47058
47059         * config/srclist.txt: Add glibc bugs 1241, 1245.
47060
47061 2005-08-25  Jim Meyering  <jim@meyering.net>
47062
47063         * lib/open-safer.c: Include <config.h>.
47064         Otherwise, we'd lose LARGEFILE support in any file using
47065         e.g. "fcntl--.h"
47066
47067 2005-08-25  Bruno Haible  <bruno@clisp.org>
47068
47069         * m4/minmax.m4: Require autoconf 2.52.
47070         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
47071         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
47072         alternatives of translit over the alphabet.
47073         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
47074
47075 2005-08-24  Simon Josefsson  <jas@extundo.com>
47076
47077         * tests/test-getpass.c: New file.
47078
47079 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47080
47081         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
47082         for GNU regex features.
47083
47084 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47085
47086         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
47087         * lib/regex.h (regerror): Likewise.
47088
47089         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
47090         requires this.  (The code never needed it.)
47091
47092         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
47093         All uses of recently-renamed identifiers changed to use the new,
47094         POSIX-compliant names.  The code will build and run just fine
47095         without these changes, but it's better to eat our own dog food
47096         and use the standard-conforming names.
47097
47098         * lib/regex.h: Fix a multitude of POSIX name space violations.
47099         These changes have an effect only for programs that define
47100         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
47101         do not change anything for programs compiled in the normal way.
47102         Also, there is no effect on the ABI.
47103
47104         (_REGEX_SOURCE): New macro.
47105         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
47106         defined and _GNU_SOURCE is not; this fixes a name space violation.
47107
47108         Rename the following macros to obey POSIX requirements.
47109         The old names are still visible as macros if _REGEX_SOURCE is defined.
47110         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
47111         RE_BACKSLASH_ESCAPE_IN_LISTS.
47112         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
47113         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
47114         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
47115         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
47116         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
47117         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
47118         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
47119         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
47120         (REG_INTERVALS): renamed from RE_INTERVALS.
47121         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
47122         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
47123         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
47124         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
47125         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
47126         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
47127         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
47128         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
47129         RE_UNMATCHED_RIGHT_PAREN_ORD.
47130         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
47131         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
47132         (REG_DEBUG): renamed from RE_DEBUG.
47133         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
47134         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
47135         unusual, since we can't clash with the POSIX REG_ICASE.
47136         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
47137         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
47138         (REG_NO_SUB): renamed from RE_NO_SUB.
47139         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
47140         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
47141         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
47142         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
47143         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
47144         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
47145         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
47146         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
47147         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
47148         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
47149         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
47150         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
47151         RE_SYNTAX_POSIX_MINIMAL_BASIC.
47152         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
47153         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
47154         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
47155         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
47156         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
47157         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
47158         (REG_FIXED): Renamed from REGS_FIXED.
47159         (REG_NREGS): Renamed from RE_NREGS.
47160
47161         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
47162         of other REG_* macros, since POSIX says the user is allowed to
47163         #undef these macros selectively.
47164
47165         (reg_errcode_t): Update comment stating what other tables need
47166         to be consistent.
47167
47168         Rename the following enum values to obey POSIX requirements.
47169         The old names are still visible as macros.
47170         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
47171         is not defined, since GNU is supposed to be a superset of POSIX as
47172         much as possible, and since we want reg_errcode_t to be a signed
47173         type for implementation consistency.
47174         (_REG_NOERROR): Renamed from REG_NOERROR.
47175         (_REG_NOMATCH): Renamed from REG_NOMATCH.
47176         (_REG_BADPAT): Renamed from REG_BADPAT.
47177         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
47178         (_REG_ECTYPE): Renamed from REG_ECTYPE.
47179         (_REG_EESCAPE): Renamed from REG_EESCAPE.
47180         (_REG_ESUBREG): Renamed from REG_ESUBREG.
47181         (_REG_EBRACK): Renamed from REG_EBRACK.
47182         (_REG_EPAREN): Renamed from REG_EPAREN.
47183         (_REG_EBRACE): Renamed from REG_EBRACE.
47184         (_REG_BADBR): Renamed from REG_BADBR.
47185         (_REG_ERANGE): Renamed from REG_ERANGE.
47186         (_REG_ESPACE): Renamed from REG_ESPACE.
47187         (_REG_BADRPT): Renamed from REG_BADRPT.
47188         (_REG_EEND): Renamed from REG_EEND.
47189         (_REG_ESIZE): Renamed from REG_ESIZE.
47190         (_REG_ERPAREN): Renamed from REG_ERPAREN.
47191         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
47192         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
47193         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
47194         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
47195
47196         (_REG_RE_NAME, _REG_RM_NAME): New macros.
47197         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
47198         changed.  But support the old name if the new one is not defined
47199         and if _REGEX_SOURCE.
47200
47201         Change the following member names in struct re_pattern_buffer.
47202         The old names are still supported if !_REGEX_SOURCE.
47203         The new names are always supported, regardless of _REGEX_SOURCE.
47204         (re_buffer): Renamed from buffer.
47205         (re_allocated): Renamed from allocated.
47206         (re_used): Renamed from used.
47207         (re_syntax): Renamed from syntax.
47208         (re_fastmap): Renamed from fastmap.
47209         (re_translate): Renamed from translate.
47210         (re_can_be_null): Renamed from can_be_null.
47211         (re_regs_allocated): Renamed from regs_allocated.
47212         (re_fastmap_accurate): Renamed from fastmap_accurate.
47213         (re_no_sub): Renamed from no_sub.
47214         (re_not_bol): Renamed from not_bol.
47215         (re_not_eol): Renamed from not_eol.
47216         (re_newline_anchor): Renamed from newline_anchor.
47217
47218         Change the following member names in struct re_registers.
47219         The old names are still supported if !_REGEX_SOURCE.
47220         The new names are always supported, regardless of _REGEX_SOURCE.
47221         (rm_num_regs): Renamed from num_regs.
47222         (rm_start): Renamed from start.
47223         (rm_end): Renamed from end.
47224
47225         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
47226         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
47227         Prepend __ to parameter names.
47228
47229         Undo yesterday's changes.
47230
47231 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
47232
47233         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
47234         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
47235         lib/regex.c.
47236
47237 2005-08-24  Jim Meyering  <jim@meyering.net>
47238
47239         Sync from coreutils.
47240         * m4/fcntl-safer.m4: New file.
47241
47242         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
47243         and object files for this module.
47244
47245 2005-08-24  Jim Meyering  <jim@meyering.net>
47246
47247         Sync from coreutils.
47248         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
47249
47250 2005-08-24  Jim Meyering  <jim@meyering.net>
47251
47252         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
47253         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
47254
47255 2005-08-24  Jim Meyering  <jim@meyering.net>
47256
47257         * modules/fcntl-safer: New module.
47258         * modules/fts (Depends-on): Add fcntl-safer.
47259         * MODULES.html.sh (File descriptor based Input/Output):
47260         Add fcntl-safer.
47261
47262 2005-08-24  Bruno Haible  <bruno@clisp.org>
47263
47264         Support for unit test modules.
47265         * modules/README: Mention tests modules.
47266         * modules/TEMPLATE-TESTS: New file.
47267         * gnulib-tool: New options --extract-tests-module, --with-tests and
47268         --tests-base (unused for the moment).
47269         (testsbase, inctests): New variables.
47270         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
47271         (func_verify_module): Exclude TEMPLATE-TESTS.
47272         (func_verify_nontests_module, func_verify_tests_module): New functions.
47273         (func_get_dependencies): Add implicit dependency for tests modules.
47274         (func_get_tests_module): New function.
47275         (func_modules_transitive_closure): When --with-tests was specified,
47276         include the unit tests as well, unless explicitly avoided.
47277         (func_emit_lib_Makefile_am): Ignore the tests modules here.
47278         (func_emit_tests_Makefile_am): New function.
47279         (func_create_testdir): When --with-tests was specified, emit a
47280         tests/ directory.
47281         * MODULES.html.sh (Future developments): Update.
47282
47283 2005-08-24  Bruno Haible  <bruno@clisp.org>
47284
47285         * modules/tls-tests: New file.
47286         * tests/test-tls.c: New file, from GNU gettext.
47287
47288 2005-08-24  Bruno Haible  <bruno@clisp.org>
47289
47290         * modules/lock-tests: New file.
47291         * tests/test-lock.c: New file, from GNU gettext.
47292
47293 2005-08-24  Bruno Haible  <bruno@clisp.org>
47294
47295         * lib/lock.h: Add multiple inclusion guard.
47296         * lib/tls.h: Add multiple inclusion guard.
47297
47298 2005-08-24  Bruno Haible  <bruno@clisp.org>
47299
47300         * gnulib-tool: Add support for the --aux-dir option to
47301         --create-testdir, --create-megatestdir, --test, --megatest.
47302         (func_create_testdir, func_create_megatestdir): Optionally emit a
47303         AC_CONFIG_AUX_DIR directive.
47304         (create-testdir, create-megatestdir, test, megatest): Provide a
47305         default value for $auxdir.
47306
47307 2005-08-24  Bruno Haible  <bruno@clisp.org>
47308
47309         * gnulib-tool (import): Use compound statement instead of subshell
47310         where possible.
47311
47312 2005-08-24  Bruno Haible  <bruno@clisp.org>
47313
47314         * gnulib-tool (import): Change --aux-dir default to "build-aux".
47315
47316 2005-08-24  Bruno Haible  <bruno@clisp.org>
47317
47318         * gnulib-tool (func_version): Update.
47319
47320 2005-08-24  Bruno Haible  <bruno@clisp.org>
47321
47322         * gnulib-tool (func_import, func_create_testdir,
47323         func_create_megatestdir): Quote all autoconf macro arguments.
47324
47325 2005-08-24  Bruno Haible  <bruno@clisp.org>
47326
47327         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
47328         option --force, because --force causes the aclocal.m4 of each
47329         subdirectory to be newer than the corresponding config.h.in.
47330
47331 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47332
47333         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
47334         All contents moved to gl_REGEX.
47335         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
47336         assume that it does.
47337
47338 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47339
47340         * lib/regex.h (REG_NOSYS)
47341         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
47342         Define, since POSIX requires it as of 2001.
47343         (_REG_ENOSYS)
47344         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
47345         New private symbol, used to keep the enum signed in all cases.
47346         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
47347         Youngman in
47348         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
47349
47350         * lib/regex_internal.c (re_string_skip_chars, register_state):
47351         (calc_state_hash):
47352         Remove forward decls; no longer needed now that we use prototypes.
47353         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
47354         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
47355         (clean_state_log_if_needed): Likewise.
47356
47357 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
47358
47359         * config/srclist.txt: Add glibc bugs 1231-1233.
47360
47361 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47362
47363         Fix problems reported by Sam Steingold in
47364         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
47365         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
47366         assumed that reg_errcode_t is a signed type, which is not
47367         necessarily true if _XOPEN_SOURCE is not defined.
47368         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
47369         since some compilers warn about it otherwise.
47370
47371 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47372
47373         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
47374         (init_word_char, create_initial_state, duplicate_node_closure):
47375         (fetch_token, peek_token_bracket, build_range_exp):
47376         (build_collating_symbol): Remove forward decls; no longer needed
47377         now that we use prototypes.
47378
47379         * lib/regcomp.c:
47380         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
47381         (re_compile_fastmap_iter, regcomp, regerror, regfree):
47382         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
47383         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
47384         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
47385         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
47386         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
47387         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
47388         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
47389         (build_range_exp, build_collating_symbol, parse_bracket_exp):
47390         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
47391         (build_charclass, build_charclass_op, fetch_number, create_tree):
47392         (create_token_tree, mark_opt_subexp, duplicate_tree):
47393         Use prototypes rather than old-style definitions.
47394
47395         * lib/regex_internal.c:
47396         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
47397         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
47398         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
47399         (re_string_reconstruct, re_string_peek_byte_case):
47400         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
47401         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
47402         (re_node_set_init_copy, re_node_set_add_intersect):
47403         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47404         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47405         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
47406         (re_acquire_state, re_acquire_state_context, register_state):
47407         (create_ci_newstate, create_cd_newstate, free_state):
47408         Likewise.
47409         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
47410         re_search_2):
47411         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
47412         (re_search_internal, prune_impossible_nodes):
47413         (acquire_init_state_context, check_matching, static):
47414         (check_halt_node_context, check_halt_state_context, proceed_next_node):
47415         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
47416         (update_regs, sift_states_backward, build_sifted_states):
47417         (clean_state_log_if_needed, merge_state_array):
47418         (update_cur_sifted_state, add_epsilon_src_nodes):
47419         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
47420         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
47421         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
47422         (find_recover_state, check_subexp_matching_top, transit_state_mb):
47423         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
47424         (check_arrival, check_arrival_add_next_nodes):
47425         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
47426         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
47427         (check_node_accept_bytes, check_node_accept, extend_buffers):
47428         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
47429         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
47430         (sift_ctx_init):
47431         Likewise.
47432
47433         * lib/regex_internal.h:
47434         (re_string_allocate, re_string_construct, re_string_reconstruct):
47435         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
47436         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
47437         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
47438         (re_string_context_at, re_string_peek_byte_case):
47439         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
47440         is defined, since we now use prototypes always.
47441
47442         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
47443         C89 or better.  All uses removed.
47444
47445 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
47446
47447         * config/srclist.txt: Add glibc bugs 1220-1227.
47448
47449 2005-08-20  Jim Meyering  <jim@meyering.net>
47450
47451         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
47452         of unused local, dfa.
47453
47454 2005-08-20  Bruno Haible  <bruno@clisp.org>
47455
47456         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
47457
47458 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47459
47460         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
47461         (re_node_set_insert_last, re_dfa_add_node):
47462         Rename local variables to avoid GCC shadowing warnings.
47463
47464 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47465
47466         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
47467         [defined lint]: Suppress bogus uninitialized-variable warnings.
47468
47469         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
47470         and let the caller return REG_ESPACE if out of space.  This
47471         removes an uninitialied-variable warning with GCC 4.0.1, and also
47472         avoids taking the address of a local variable.  All callers
47473         changed.
47474
47475 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
47476
47477         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
47478         $LIBCSRC/posix/regexec.c.
47479         Add glibc bug 1217 for regcomp.c.
47480
47481 2005-08-19  Jim Meyering  <jim@meyering.net>
47482
47483         * lib/regexec.c (proceed_next_node): Redo local variables to
47484         avoid GCC shadowing warnings.
47485
47486 2005-08-18  Bruno Haible  <bruno@clisp.org>
47487
47488         * lib/strstr.c (strstr): Fix return value in multibyte case.
47489         * lib/strcasestr.c (strcasestr): Likewise.
47490
47491 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
47492
47493         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
47494
47495 2005-08-17  Jim Meyering  <jim@meyering.net>
47496
47497         Make the %s format (seconds since the epoch) work for a negative
47498         number and when used with a zero-padded field width, e.g. %015s.
47499
47500         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
47501         label so that it precedes the code to set `digits'.  Otherwise,
47502         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
47503         print `00-22'.  Now, it prints `-0022', as it should.
47504
47505 2005-08-17  Bruno Haible  <bruno@clisp.org>
47506
47507         * modules/strstr (Files): Add m4/mbrtowc.m4.
47508         (Depends-on): Add mbuiter.
47509
47510 2005-08-17  Bruno Haible  <bruno@clisp.org>
47511
47512         * modules/strcasestr: New file.
47513         * MODULES.html.sh (String handling, based on ANSI C 89): Add
47514         strcasestr.
47515
47516 2005-08-17  Bruno Haible  <bruno@clisp.org>
47517
47518         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
47519
47520 2005-08-17  Bruno Haible  <bruno@clisp.org>
47521
47522         * modules/mbuiter: New file.
47523         * MODULES.html.sh (Extended multibyte and wide character utilities):
47524         Add mbuiter.
47525
47526 2005-08-17  Bruno Haible  <bruno@clisp.org>
47527
47528         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
47529         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
47530
47531 2005-08-17  Bruno Haible  <bruno@clisp.org>
47532
47533         * m4/strcasestr.m4: New file.
47534
47535 2005-08-17  Bruno Haible  <bruno@clisp.org>
47536
47537         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
47538         * lib/strstr.c: Completely rewritten, with multibyte locale support.
47539
47540 2005-08-17  Bruno Haible  <bruno@clisp.org>
47541
47542         * lib/strcasestr.h: New file.
47543         * lib/strcasestr.c: New file.
47544
47545 2005-08-17  Bruno Haible  <bruno@clisp.org>
47546
47547         * lib/strcasecmp.c: Use mbuiter.h.
47548
47549 2005-08-17  Bruno Haible  <bruno@clisp.org>
47550
47551         * lib/mbuiter.h: New file.
47552
47553 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
47554
47555         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
47556         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
47557         and gl_GETOPT are both invoked via different paths (as happens
47558         with GNU tar CVS because it uses both argp and getopt), the former
47559         wins.
47560
47561 2005-08-16  Bruno Haible  <bruno@clisp.org>
47562
47563         * modules/tls: New file.
47564         * MODULES.html.sh (Multithreading): Add tls.
47565
47566 2005-08-16  Bruno Haible  <bruno@clisp.org>
47567
47568         * modules/strnlen1: New file.
47569         * MODULES.html.sh (String handling): Add strnlen1.
47570
47571 2005-08-16  Bruno Haible  <bruno@clisp.org>
47572
47573         * modules/strcase (Files): Add m4/mbrtowc.m4.
47574         (Depends-on): Add strnlen1, mbchar.
47575
47576 2005-08-16  Bruno Haible  <bruno@clisp.org>
47577
47578         * modules/mbiter: New file.
47579         * MODULES.html.sh (Extended multibyte and wide character utilities):
47580         Add mbiter.
47581
47582 2005-08-16  Bruno Haible  <bruno@clisp.org>
47583
47584         * modules/mbfile: New file.
47585         * MODULES.html.sh (Extended multibyte and wide character utilities):
47586         Add mbfile.
47587
47588 2005-08-16  Bruno Haible  <bruno@clisp.org>
47589
47590         * modules/mbchar: New file.
47591         * MODULES.html.sh (Extended multibyte and wide character utilities):
47592         New section.
47593
47594 2005-08-16  Bruno Haible  <bruno@clisp.org>
47595
47596         * m4/tls.m4: New file, from GNU gettext.
47597
47598 2005-08-16  Bruno Haible  <bruno@clisp.org>
47599
47600         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
47601         always.
47602         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
47603
47604 2005-08-16  Bruno Haible  <bruno@clisp.org>
47605
47606         * m4/mbiter.m4: New file.
47607
47608 2005-08-16  Bruno Haible  <bruno@clisp.org>
47609
47610         * m4/mbfile.m4: New file.
47611
47612 2005-08-16  Bruno Haible  <bruno@clisp.org>
47613
47614         * m4/mbchar.m4: New file.
47615
47616 2005-08-16  Bruno Haible  <bruno@clisp.org>
47617
47618         * lib/tls.h: New file, from GNU gettext.
47619         * lib/tls.c: New file, from GNU gettext.
47620
47621 2005-08-16  Bruno Haible  <bruno@clisp.org>
47622
47623         * lib/strnlen1.h: New file.
47624         * lib/strnlen1.c: New file.
47625
47626 2005-08-16  Bruno Haible  <bruno@clisp.org>
47627
47628         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
47629         (mbi_init): Update.
47630         (mbi_avail, mbi_advance): Let the iteration end before the terminating
47631         NUL byte, not after it.
47632
47633 2005-08-16  Bruno Haible  <bruno@clisp.org>
47634
47635         * lib/strcase.h (strcasecmp): Add note in comments.
47636         * lib/strncasecmp.c: Use code from strcasecmp.c.
47637         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
47638         (strcasecmp): Work correctly in multibyte locales.
47639
47640 2005-08-16  Bruno Haible  <bruno@clisp.org>
47641
47642         * lib/mbiter.h: New file.
47643
47644 2005-08-16  Bruno Haible  <bruno@clisp.org>
47645
47646         * lib/mbfile.h: New file.
47647
47648 2005-08-16  Bruno Haible  <bruno@clisp.org>
47649
47650         * lib/mbchar.h: New file.
47651         * lib/mbchar.c: New file.
47652
47653 2005-08-16  Bruno Haible  <bruno@clisp.org>
47654
47655         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
47656         the valid ones. Makes the comparison operations transitive:
47657         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
47658         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
47659
47660 2005-08-15  Simon Josefsson  <jas@extundo.com>
47661
47662         * modules/ssize_t (License): Change to 'unlimited'.
47663
47664         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
47665
47666 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
47667
47668         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
47669         Add comments for each pending glibc patch.
47670
47671 2005-08-15  Bruno Haible  <bruno@clisp.org>
47672
47673         * lib/regex.h (__restrict_arr): Don't define to __restrict if
47674         __cplusplus is defined.
47675
47676 2005-08-14  Jim Meyering  <jim@meyering.net>
47677
47678         Sync from coreutils.
47679
47680         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
47681         Use the hash-table-based cycle-detection code not just when
47682         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
47683         Reported by James Youngman in
47684         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
47685         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
47686         FTS_TIGHT_CYCLE_CHECK.
47687         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
47688         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
47689         once again.
47690         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
47691         * lib/fts.c (fd_safer): Remove decl.
47692         Include fcntl--.h rather than unistd-safer.h
47693         (fts_safe_changedir): Don't call fd_safer; no longer needed
47694         now that we include fcntl--.h.
47695
47696 2005-08-12  Simon Josefsson  <jas@extundo.com>
47697
47698         * modules/getndelim2: Use ssize_t module.
47699         * modules/getnline: Likewise.
47700         * modules/safe-read: Likewise.
47701         * modules/xreadlink: Likewise.
47702
47703         * modules/ssize_t: New file.
47704
47705 2005-08-12  Simon Josefsson  <jas@extundo.com>
47706
47707         * m4/readline.m4: Look for termcap, curses or ncurses if required.
47708
47709 2005-08-12  Simon Josefsson  <jas@extundo.com>
47710
47711         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47712         ssize_t.
47713
47714 2005-08-12  Simon Josefsson  <jas@extundo.com>
47715
47716         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
47717         readline, getdelim and check_version.
47718         (Support for systems lacking ISO C 99: Sizes of integer types):
47719         Add size_max.
47720
47721 2005-08-12  Bruno Haible  <bruno@clisp.org>
47722
47723         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
47724
47725 2005-08-11  Simon Josefsson  <jas@extundo.com>
47726
47727         * modules/readline: New file.
47728
47729         * modules/strnlen (Files): Add strnlen.h.
47730
47731 2005-08-11  Simon Josefsson  <jas@extundo.com>
47732
47733         * m4/readline.m4: New file.
47734
47735 2005-08-11  Simon Josefsson  <jas@extundo.com>
47736
47737         * lib/readline.h, readline.c: New file.
47738
47739 2005-08-11  Simon Josefsson  <jas@extundo.com>
47740
47741         * doc/gnulib.texi (Initial import, Finishing touches): Mention
47742         gl_AVOID.
47743
47744 2005-08-11  Bruno Haible  <bruno@clisp.org>
47745
47746         * lib/strnlen.h (strnlen): Change parameter name to match comment.
47747
47748 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
47749
47750         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
47751
47752 2005-08-10  Simon Josefsson  <jas@extundo.com>
47753
47754         * tests/test-iconvme.c: New file.
47755
47756 2005-08-10  Simon Josefsson  <jas@extundo.com>
47757
47758         * m4/strnlen.m4: New file.
47759
47760         * m4/strndup.m4: Don't check for strnlen declaration, done in
47761         strnlen.m4.
47762
47763 2005-08-10  Simon Josefsson  <jas@extundo.com>
47764
47765         * lib/strndup.c: Use strnlen.h.
47766
47767         * lib/strnlen.h: New file.
47768
47769 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
47770
47771         * README: Typos.
47772
47773 2005-08-02  Simon Josefsson  <jas@extundo.com>
47774
47775         * modules/readline: New file.
47776
47777 2005-08-02  Simon Josefsson  <jas@extundo.com>
47778
47779         * modules/getdelim: New file.
47780
47781         * modules/getline: Rewrite, don't use getndelim2.
47782
47783 2005-08-02  Simon Josefsson  <jas@extundo.com>
47784
47785         * m4/getline.m4: Separate out getdelim stuff into separate module.
47786
47787         * m4/getdelim.m4: New file.
47788
47789 2005-08-02  Simon Josefsson  <jas@extundo.com>
47790
47791         * lib/getline.h, getline.c: Rewrite.
47792
47793         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
47794
47795 2005-07-31  Bruno Haible  <bruno@clisp.org>
47796
47797         * lib/lock.h (gl_lock_initializer): New macro.
47798         (gl_lock_define_initialized): Use it.
47799         (gl_rwlock_initializer): New macro.
47800         (gl_rwlock_define_initialized): Use it.
47801         (gl_recursive_lock_initializer): New macro.
47802         (gl_recursive_lock_define_initialized): Use it.
47803
47804 2005-07-30  Karl Berry  <karl@gnu.org>
47805
47806         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
47807         Report from Ben Pfaff, regarding getopt.
47808
47809 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
47810
47811         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
47812         normal way.
47813         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
47814         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
47815         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
47816         (gl_GETOPT): Use the new macros.  Most of the implementation
47817         is moved to the new macros.  This is for programs like Emacs
47818         that don't want all the functionality of gl_GETOPT.
47819
47820 2005-07-26  Bruno Haible  <bruno@clisp.org>
47821
47822         * m4/lock.m4: Update from GNU gettext.
47823
47824 2005-07-26  Bruno Haible  <bruno@clisp.org>
47825
47826         * lib/lock.h: Update from GNU gettext.
47827         * lib/lock.c: Update from GNU gettext.
47828
47829 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
47830
47831         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
47832         obsolescent AC_TRY_RUN.  Include the default includes files, for
47833         'exit'.
47834
47835 2005-07-24  Bruno Haible  <bruno@clisp.org>
47836
47837         * modules/visibility: New file.
47838         * MODULES.html.sh (Misc): Add visibility.
47839
47840 2005-07-24  Bruno Haible  <bruno@clisp.org>
47841
47842         * m4/visibility.m4: New file.
47843
47844 2005-07-24  Bruno Haible  <bruno@clisp.org>
47845
47846         * doc/visibility.texi: New file.
47847
47848 2005-07-22  Bruno Haible  <bruno@clisp.org>
47849
47850         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
47851         $(ALLOCA_H), redundant through BUILT_SOURCES.
47852         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
47853         redundant through BUILT_SOURCES.
47854         * modules/byteswap (Makefile.am): Remove explicit dependency on
47855         $(BYTESWAP_H), redundant through BUILT_SOURCES.
47856         * modules/fnmatch (Makefile.am): Remove explicit dependency on
47857         $(FNMATCH_H), redundant through BUILT_SOURCES.
47858         * modules/getopt (Makefile.am): Remove explicit dependency on
47859         $(GETOPT_H), redundant through BUILT_SOURCES.
47860         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
47861         redundant through BUILT_SOURCES.
47862         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
47863         redundant through BUILT_SOURCES.
47864         * modules/stdbool (Makefile.am): Remove explicit dependency on
47865         $(STDBOOL_H), redundant through BUILT_SOURCES.
47866         * modules/stdint (Makefile.am): Remove explicit dependency on
47867         $(STDINT_H), redundant through BUILT_SOURCES.
47868         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
47869         Remove explicit dependency on $(SYSEXITS_H).
47870         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
47871
47872 2005-07-18  Simon Josefsson  <jas@extundo.com>
47873
47874         * lib/check-version.c (check_version): Accept identical versions too.
47875
47876 2005-07-18  Bruno Haible  <bruno@clisp.org>
47877
47878         * modules/lock: New file.
47879         * MODULES.html.sh (Multithreading): New section.
47880
47881 2005-07-18  Bruno Haible  <bruno@clisp.org>
47882
47883         * m4/lock.m4: New file, from GNU gettext.
47884
47885 2005-07-18  Bruno Haible  <bruno@clisp.org>
47886
47887         * lib/lock.h: New file, from GNU gettext.
47888         * lib/lock.c: New file, from GNU gettext.
47889
47890 2005-07-18  Bruno Haible  <bruno@clisp.org>
47891
47892         * lib/lock.h (gl_once_t): New type.
47893         (gl_once_define, gl_once): New macros.
47894         * lib/lock.c (fresh_once): New variable.
47895         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
47896         functions.
47897
47898 2005-07-16  Simon Josefsson  <jas@extundo.com>
47899
47900         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
47901         workaround, suggested by Bruno.
47902
47903 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
47904
47905         * modules/xalloc (Depends-on): Add xalloc-die.
47906         * modules/xvasprintf (Depends-on): Add xalloc-die.
47907
47908 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
47909
47910         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
47911         with a minor change.
47912
47913 2005-07-15  Bruno Haible  <bruno@clisp.org>
47914
47915         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
47916         When using lib/poll.c, define poll as rpl_poll.
47917
47918 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
47919
47920         * modules/argp (Depends-on): Remove unlocked-io.
47921
47922 2005-07-14  Derek Price  <derek@ximbiot.com>
47923
47924         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
47925         for glob symlink bug.
47926
47927 2005-07-14  Bruno Haible  <bruno@clisp.org>
47928
47929         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
47930         Instead, test for *_unlocked function declarations directly.
47931
47932 2005-07-11  Simon Josefsson  <jas@extundo.com>
47933
47934         * modules/size_max: New file.
47935
47936         * modules/xsize: Depend on size_max module for size_max.m4.
47937
47938 2005-07-11  Simon Josefsson  <jas@extundo.com>
47939
47940         * lib/size_max.h: New file.
47941
47942 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
47943
47944         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
47945         copyright symbol and the year.
47946         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
47947         (version_etc_va): Use parameterized copyright notice.
47948         Reword to conform to the current GNU coding standards.
47949
47950 2005-07-11  Karl Berry  <karl@gnu.org>
47951
47952         * doc/gnulib.texi (Quoting): new node.
47953         (Initial import): more info, from Patrice.
47954
47955 2005-07-11  Bruno Haible  <bruno@clisp.org>
47956
47957         * gnulib-tool (func_usage): Document option --avoid.
47958         (Command line options): Handle --avoid.
47959         (func_acceptable): New function.
47960         (func_modules_transitive_closure): Use it.
47961
47962 2005-07-11  Bruno Haible  <bruno@clisp.org>
47963
47964         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
47965         Reported by Jim Meyering.
47966
47967 2005-07-10  Bruno Haible  <bruno@clisp.org>
47968
47969         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
47970         Needed when size_t is smaller than 'unsigned int'.
47971         Reported by Paul Eggert.
47972
47973 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47974
47975         * modules/argp (Depends-on): Add unlocked-io
47976
47977 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
47978
47979         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
47980         block of defines.
47981
47982 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
47983
47984         * config/srclist.txt: Comment out regcomp.c, since we have a porting
47985         fix now.
47986
47987 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
47988         and Paul Eggert  <eggert@cs.ucla.edu>
47989
47990         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
47991         in wint_t, not wchar_t.  Remove now-unnecessary cast.
47992
47993 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
47994
47995         * modules/regex (Files): Add lib/regex_internal.c,
47996         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
47997         (Depends-on): Add extensions.
47998         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
47999
48000 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48001
48002         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
48003         pathconf.
48004         * m4/same.m4 (gl_SAME): Likewise.
48005         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
48006
48007         * m4/regex.m4: Adjust to new libc regex implementation.
48008         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
48009         all the .c and .h parts of (the new) regex.
48010         Quote the m4 stuff better.
48011         Check for RE_ICASE bug of old gnulib.
48012         Check for REG_STARTEND of recent libc.
48013         Rename local variables from jm_* to gl_*.
48014         Quote operand of "test -f".
48015         Say "recent enough" version of libc, not "version 2".
48016         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
48017         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
48018         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
48019         Remove check for btowc, isascii.
48020         Require AM_LANGINFO_CODESET.
48021
48022 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48023
48024         * lib/regex.c, regex.h: Sync from libc.
48025         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
48026         * lib/regexec.c:
48027         New files, synced from libc, except that regex_internal.h
48028         currently has a small porting fix.
48029
48030 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
48031
48032         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
48033         regex_internal.c, regexec.c.
48034         Add regex_internal.h too, but as a comment, since the libc version
48035         is currently broken in gnulib mode.
48036
48037 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
48038
48039         Support programs like Emacs that use gnulib but not gettext.
48040         * MODULES.html.sh (Internationalization functions): Add gettext-h.
48041         * modules/gettext-h: New file.
48042         * modules/gettext (Files): Remove lib/gettext.h.
48043         (Depends-on): Add gettext-h.
48044         (Makefile.am): Remove lib_SOURCES.
48045         * modules/argmatch, modules/c-stack, modules/closeout:
48046         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
48047         * modules/execute, modules/file-type, modules/getaddrinfo:
48048         * modules/getopt, modules/human, modules/javacomp:
48049         * modules/javaexec, modules/mkdir-p, modules/obstack:
48050         * modules/openat, modules/pagealign_alloc, modules/pipe:
48051         * modules/quotearg, modules/regex, modules/rpmatch:
48052         * modules/unicodeio, modules/userspec, modules/version-etc:
48053         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
48054         * modules/xsetenv:
48055         Depend on gettext-h, not gettext.
48056
48057 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
48058
48059         * gnulib-tool (func_import): Add support for 'public domain' license.
48060         * modules/alloca, modules/atexit, modules/memmove:
48061         Now public domain, not GPL.
48062         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
48063         * modules/realloc, modules/strerror, modules/strtod:
48064         Now LGPL, not GPL.
48065
48066 2005-07-05  Bruno Haible  <bruno@clisp.org>
48067
48068         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
48069         autoconf CVS. Needed for mingw.
48070
48071 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48072
48073         Remove the dependency of the strftime module on the tzset module.
48074         * modules/strftime (Depends-on): Remove dependency on tzset.
48075
48076 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48077
48078         Remove the dependency of the strftime module on the tzset module.
48079         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
48080         gl_FUNC_TZSET_CLOBBER.
48081
48082 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
48083
48084         Remove the dependency of the strftime module on the tzset module.
48085         * lib/strftime.c (my_strftime)
48086         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
48087         Copy the input structure, to work around some of the bug with
48088         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
48089         Solaris releases, you should also use the tzset module, but we won't
48090         require it as a dependency any more since we don't want LGPLed code
48091         to depend on GPLed code.
48092
48093 2005-07-02  Jim Meyering  <jim@meyering.net>
48094
48095         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
48096         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
48097         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
48098         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
48099
48100 2005-07-02  Jim Meyering  <jim@meyering.net>
48101
48102         * lib/backupfile.c (backup_args): Change a `0' to NULL.
48103
48104 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
48105
48106         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
48107         declares only 'struct timespec;' (!).
48108
48109 2005-07-01  Jim Meyering  <jim@meyering.net>
48110
48111         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
48112         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
48113         * lib/save-cwd.c, tempname.c:
48114         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48115         and don't include <sys/file.h>).
48116
48117 2005-06-29  Jim Meyering  <jim@meyering.net>
48118
48119         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
48120         type name.  Use the variable name instead.
48121         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
48122         Likewise.
48123
48124 2005-06-28  Simon Josefsson  <jas@extundo.com>
48125
48126         * modules/check-version (Files): Add check-version.m4.
48127
48128 2005-06-28  Simon Josefsson  <jas@extundo.com>
48129
48130         * m4/check-version.m4: New file, suggested by Jim Meyering
48131         <jim@meyering.net>.
48132
48133 2005-06-28  Simon Josefsson  <jas@extundo.com>
48134
48135         * lib/check-version.h, lib/check-version.c: New files.
48136
48137 2005-06-28  Simon Josefsson  <jas@extundo.com>
48138
48139         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
48140         collision with global variable.  Better indentation.  Don't
48141         increment buffer pointer beyond buffer end.  Based on comments
48142         from Paul Eggert <eggert@cs.ucla.edu>.
48143
48144         * lib/base64.h: Indent.
48145
48146 2005-06-28  Simon Josefsson  <jas@extundo.com>
48147
48148         * doc/gnulib.texi (Library version handling): New section.
48149
48150 2005-06-28  Jim Meyering  <jim@meyering.net>
48151
48152         * check-module (find_included_lib_files): Hard-code another
48153         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
48154         but modules/fts-lgpl (correctly) does not list those files.
48155
48156         * modules/canonicalize (Files): Add lib/pathmax.h.
48157
48158 2005-06-25  Simon Josefsson  <jas@extundo.com>
48159
48160         * modules/check-version: New file.
48161
48162 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
48163
48164         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
48165         initializer of struct addrinfo, as an indication that we don't
48166         care how many members the structure has.
48167
48168 2005-06-24  Derek Price  <derek@ximbiot.com>
48169         and Bruno Haible  <bruno@clisp.org>
48170
48171         Remove stat module & update lstat.
48172         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
48173         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48174         * m4/stat.m4: Remove this file.
48175
48176 2005-06-24  Derek Price  <derek@ximbiot.com>
48177         and Bruno Haible  <bruno@clisp.org>
48178
48179         Remove stat module & update lstat.
48180         * lib/stat.c: Remove this file...
48181         (slash_aware_lstat): ...moving this content and its support...
48182         * lib/lstat.c (rpl_lstat): ...into here.
48183         * lib/lstat.h: New file.
48184
48185 2005-06-24  Derek Price  <derek@ximbiot.com>
48186         and Bruno Haible  <bruno@clisp.org>
48187
48188         Remove stat module & update lstat.
48189         * config/srclist.txt (libc sources): Remove stat.
48190
48191 2005-06-24  Derek Price  <derek@ximbiot.com>
48192         and Bruno Haible  <bruno@clisp.org>
48193
48194         Remove stat module & update lstat.
48195         * MODULES.html.sh (stat): Remove.
48196         * MODULES.html: Regenerated.
48197         * modules/lstat (Description): Correct function name.
48198         (Files): Add "lstat.h".
48199         (Depends-on): Remove stat, add xalloc, stat-macros.
48200         * modules/stat: Remove this file.
48201         (Include): Add "lstat.h", remove <sys/stat.h>.
48202
48203 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
48204
48205         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
48206         (ranged_convert): Don't save conversion in a temporary struct.
48207         This causes a warning with GCC 4.0.0, and anyway in the typical
48208         case it's not worth the extra 100 bytes or so of code.
48209         (ranged_convert, __mktime_internal): When calling a function via a
48210         pointer P, use P () rather than (*P) (), as we now assume C89 or
48211         better.
48212
48213 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
48214
48215         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
48216         "who -r" failed to give output.  Problem reported by Tim Waugh.
48217
48218         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
48219         (xcalloc): Use it to avoid needless tests.
48220         Problem reported by Jim Meyering.
48221
48222 2005-06-20  Derek Price  <derek@ximbiot.com>
48223
48224         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
48225         unnecessary for Autoconfs > 2.59c.
48226
48227 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
48228
48229         * lib/argp.h (__option_is_short): Check upper limit of
48230         __key. Isprint() requires its argument to have the value
48231         of an unsigned char or EOF.
48232
48233 2005-06-16  Jim Meyering  <jim@meyering.net>
48234
48235         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
48236         when either N or S is zero.
48237
48238 2005-06-16  Derek Price  <derek@ximbiot.com>
48239
48240         * m4/bison.m4: Declare YACC & YFLAGS precious.
48241
48242 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
48243
48244         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
48245         multibyte string or pattern, fall back on unibyte matching.
48246         Problem reported by James Youngman.
48247
48248 2005-06-08  Bruno Haible  <bruno@clisp.org>
48249
48250         * modules/csharpcomp: New file.
48251         * MODULES.html.sh (C#): Add csharpcomp.
48252
48253 2005-06-08  Bruno Haible  <bruno@clisp.org>
48254
48255         * m4/csharpcomp.m4: New file, from GNU gettext.
48256
48257 2005-06-08  Bruno Haible  <bruno@clisp.org>
48258
48259         * lib/csharpcomp.h: New file, from GNU gettext.
48260         * lib/csharpcomp.c: New file, from GNU gettext.
48261         * lib/csharpcomp.sh.in: New file, from GNU gettext.
48262
48263 2005-06-08  Bruno Haible  <bruno@clisp.org>
48264
48265         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
48266         warning on mingw.
48267
48268 2005-06-07  Derek Price  <derek@ximbiot.com>
48269
48270         Sync from CVS.
48271         * lib/glob_.h: Indent nested #ifdef.
48272
48273 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48274
48275         Sync from coreutils.
48276         Use "file name" when talking about file names, instead of "filename"
48277         or "path", as per the GNU coding standards.
48278         * lib/mkdir-p.c: Renamed from makepath.c.
48279         (make_dir_parents): Renamed from make_path.  All callers changed.
48280         * lib/mkdir-p.h: Likewise.  All includers changed.
48281         * lib/filenamecat.c: Renamed from path-concat.c.
48282         (file_name_concat): Renamed from path_concat.  All callers changed.
48283         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
48284         * lib/filenamecat.h: Likewise.  All includers changed.
48285         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
48286         in comments or local variable names.
48287         * lib/basename.c: Likewise.
48288         * lib/canonicalize.c, canonicalize.h: Likewise.
48289         * lib/dirname.c, dirname.h: Likewise.
48290         * lib/euidaccess.c: Likewise.
48291         * lib/exclude.c: Likewise
48292         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
48293         * lib/fsusage.c, fsuage.h: Likewise.
48294         * lib/fts.c, fts_.h: Likewise.
48295         * lib/getcwd.c: Likewise.
48296         * lib/getloadavg.c: Likewise.
48297         * lib/mkstemp.c: Likewise.
48298         * lib/mountlist.c, mountlist.h: Likewise.
48299         * lib/openat.c, openat.h: Likewise.
48300         * lib/readlink-stub.c: Likewise.
48301         * lib/readutmp.c, readutmp.h: Likewise.
48302         * lib/rename.c: Likewise.
48303         * lib/rmdir.c: Likewise.
48304         * lib/same.c: Likewise.
48305         * lib/savedir.c: Likewise.
48306         * lib/stripslash.c: Likewise.
48307         * lib/tempname.c: Likewise.
48308         * lib/xreadlink.c: Likewise.
48309         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
48310         All uses changed.
48311         * lib/exclude.h: Likewise.
48312
48313         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
48314         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48315         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
48316         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48317         * lib/pathmax.h: Include <limits.h> unconditionally, since other
48318         files have been getting away with it for years (MORE/BSD 4.3
48319         is extinct now).
48320         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
48321         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48322
48323         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
48324         Define to 256, not 255, as per modern POSIX.
48325
48326 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48327
48328         Sync from coreutils.
48329         Use "file name" when talking about file names, instead of "filename"
48330         or "path", as per the GNU coding standards.
48331         * MODULES.html.sh: mkdir-p renamed from makepath.
48332         filenamecat renamed from path-concat.
48333         * modules/filenamecat: Renamed from modules/path-concat.
48334         (Files): filenamecat.h and filenamecat.c renamed from
48335         path-concat.h and path-concat.c.
48336         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
48337         (Include): filenamecat.h, not path-concat.h.
48338         * modules/mkdir-p: Renamed from modules/makepath.
48339         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
48340         makepath.c.
48341         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
48342         (Include): mkdir-p.h, not makepath.h.
48343
48344 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
48345
48346         Sync from coreutils.
48347         * m4/mkdir-p.m4: Renamed from makepath.m4.
48348         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
48349         Rename files from makepath.c to mkdir-p.c, and from
48350         makepath.h to mkdir-p.h.
48351         * m4/filenamecat.m4: Renamed from path-concat.m4.
48352         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
48353         Rename files from path-concat.c to filenamecat.c,
48354         and from path-concat.h to filenamecat.h.
48355         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
48356         "file name" in local variables or comments.
48357         * m4/rename.m4: Likewise.
48358
48359 2005-06-01  Bruno Haible  <bruno@clisp.org>
48360
48361         * modules/csharpexec: New file.
48362         * MODULES.html.sh (C#): New section.
48363
48364 2005-06-01  Bruno Haible  <bruno@clisp.org>
48365
48366         * m4/csharp.m4: New file, from GNU gettext.
48367         * m4/csharpexec.m4: New file, from GNU gettext.
48368
48369 2005-06-01  Bruno Haible  <bruno@clisp.org>
48370
48371         * lib/csharpexec.h: New file, from GNU gettext.
48372         * lib/csharpexec.c: New file, from GNU gettext.
48373         * lib/csharpexec.sh.in: New file, from GNU gettext.
48374
48375 2005-05-31  Derek Price  <derek@ximbiot.com>
48376             Paul Eggert  <eggert@cs.ucla.edu>
48377
48378         Sync from cvs.
48379         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48380
48381 2005-05-31  Derek Price  <derek@ximbiot.com>
48382             Paul Eggert  <eggert@cs.ucla.edu>
48383
48384         Sync from cvs.
48385         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48386
48387 2005-05-29  Derek Price  <derek@ximbiot.com>
48388
48389         * config/srclist.txt (glob_.h, glob.c): Add these files.
48390
48391 2005-05-29  Derek Price  <derek@ximbiot.com>
48392
48393         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
48394         * modules/glob: New file.
48395         * modules/getlogin_r: Add link to POSIX spec in description.
48396
48397 2005-05-29  Derek Price  <derek@ximbiot.com>
48398             Paul Eggert  <eggert@cs.ucla.edu>
48399
48400         * m4/glob.m4: New file.
48401
48402 2005-05-29  Derek Price  <derek@ximbiot.com>
48403             Paul Eggert  <eggert@cs.ucla.edu>
48404
48405         * lib/glob_.h, lib/glob.c: New files.
48406
48407 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48408
48409         * modules/fts (Files): Remove m4/inttypes-pri.m4.
48410         * modules/fts-lgpl (Depends-on): Remove gettext.
48411
48412 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48413
48414         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
48415         and don't require gt_INTTYPES_PRI.
48416
48417 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
48418
48419         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
48420
48421         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
48422         the configuration hassle isn't worth it.
48423         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
48424         (LONGEST_MODIFIER, PRIuMAX): Remove.
48425
48426 2005-05-27  Bruno Haible  <bruno@clisp.org>
48427
48428         * lib/getlogin_r.h: Remove second include of <stddef.h>.
48429
48430 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
48431
48432         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
48433         _POSIX_PTHREAD_SEMANTICS for Solaris.
48434
48435 2005-05-25  Derek Price  <derek@ximbiot.com>
48436
48437         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
48438
48439 2005-05-25  Derek Price  <derek@ximbiot.com>
48440             Paul Eggert  <eggert@cs.ucla.edu>
48441
48442         * modules/getlogin_r, m4/getlogin_r.m4: New files.
48443         * lib/getlogin_r.c, getlogin_r.h: New files.
48444
48445 2005-05-25  Bruno Haible  <bruno@clisp.org>
48446             Derek Price  <derek@ximbiot.com>
48447
48448         * lib/getlogin_r.h: Simplify API documentation.
48449
48450 2005-05-23  Derek Price  <derek@ximbiot.com>
48451
48452         * modules/minmax (Files): Add m4/minmax.m4.
48453         (configure.ac): Add gl_MINMAX.
48454
48455 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
48456
48457         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
48458         so that unistd-safer.h (GPL'ed code) need not be included.
48459
48460 2005-05-22  Bruno Haible  <bruno@clisp.org>
48461
48462         * m4/minmax.m4: New file.
48463         Based on a patch by Derek Price <derek@ximbiot.com>.
48464
48465 2005-05-22  Bruno Haible  <bruno@clisp.org>
48466
48467         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
48468         (INT64_MIN): Fix definition.
48469         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
48470
48471         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
48472         NEED_SIGNED_INT_TYPES.
48473
48474         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
48475         HAVE_SYSTEM_INTTYPES.
48476
48477 2005-05-22  Bruno Haible  <bruno@clisp.org>
48478
48479         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
48480         Also include <sys/param.h> if it defines MIN, MAX.
48481         Based on a patch by Derek Price <derek@ximbiot.com>.
48482
48483 2005-05-21  Jim Meyering  <jim@meyering.net>
48484
48485         * modules/fts (Files): Add m4/inttypes-pri.m4.
48486         (Depends-on): Add lstat and remove gettext.  Alphabetize.
48487
48488 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48489
48490         New fts module.
48491         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
48492         (setup_dir, free_dir): New functions.
48493         (enter_dir, leave_dir): Define trivial
48494         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
48495         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
48496         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
48497         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
48498         Move to fts-cycle.c.
48499         (fts_open): Use setup_dir.
48500         (fts_close): Use free_dir.
48501         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
48502         This adds a label and some gotos, but the alternatives were messier.
48503         Check for memory allocation failure when entering a dir.
48504         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
48505         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
48506         (FTS): New member fts_cycle, that is a union that contains the
48507         old active_dir_ht and cycle_state.  All uses changed to mention
48508         fts_cycle.ht and fts_cycle.state.
48509         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
48510         fts.c, with the following changes:
48511         (setup_dir, free_dir): New functions.
48512         (enter_dir): Now returns bool.  Return true if successful, false
48513         if memory exhausted.  All callers changed.
48514         Do not bother partly cleaning up on
48515         memory allocation failure; that is free_dir's job.
48516         However, free ad if hash_insert fails, to avoid memory leak.
48517         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
48518         fts->fts_options to see which union member to use.
48519
48520 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48521
48522         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
48523         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
48524
48525 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
48526
48527         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
48528
48529 2005-05-20  Jim Meyering  <jim@meyering.net>
48530
48531         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
48532         Now a macro, to pacify GCC.
48533
48534 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
48535
48536         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
48537         of -1.
48538
48539 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
48540
48541         * lib/chown.c (rpl_chown): Return -1 on failure.
48542
48543 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
48544
48545         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
48546         Don't check for stddef.h.
48547         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
48548         don't use its results.
48549         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
48550         since we include them unconditionally.  Don't require
48551         AM_STDBOOL_H, since stdbool is a prerequisite.
48552         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
48553         since we assume C89 or better.
48554         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
48555         as we don't use their results.
48556         Don't check for fchdir, memmove, memset, strrchr, as we use
48557         them unconditionally.
48558         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
48559         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
48560
48561 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
48562
48563         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
48564         Include <stddef.h> unconditionally, since we assume C89 now.
48565         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
48566         * lib/fts.c: Include fts_.h first, to check interface.
48567         Do not include intprops.h; no longer needed.
48568         Include cycle-check.h and hash.h, since fts_.h no longer does.
48569         Remove unnecessary casts of closedir to void.
48570         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
48571         decide whether to decrement nlinks.
48572         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
48573         (FTS): Use struct hash_table * instead of Hash_table, so that
48574         we no longer need to include hash.h here.
48575
48576 2005-05-18  Jim Meyering  <jim@meyering.net>
48577
48578         * modules/dirfd (License): Change to LGPL.  Most of the code
48579         is already in the public domain.
48580
48581 2005-05-18  Jim Meyering  <jim@meyering.net>
48582
48583         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
48584         Reported by Yoann Vandoorselaere.
48585
48586 2005-05-17  Jim Meyering  <jim@meyering.net>
48587
48588         * m4/fts.m4: New file, from coreutils.
48589
48590 2005-05-17  Jim Meyering  <jim@meyering.net>
48591
48592         * lib/fts.c, lib/fts_.h: New files, from coreutils.
48593
48594 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48595
48596         Sync from coreutils.
48597         * m4/unlinkdir.m4: New file.
48598
48599 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48600
48601         Sync from coreutils.
48602         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
48603         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
48604         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
48605         White space changes only.
48606         * lib/makepath.c (make_path): Port to hosts where leading "//" is
48607         special.
48608         * lib/yesno.c: Include getline.h, not ctype.h.
48609         (yesno): Don't remove leading white space; POSIX doesn't allow it.
48610         Use getline to remove arbitrary restriction on response length.
48611
48612 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
48613
48614         * config/srclist-update: Spell out "Street" in FSF postal
48615         mail address; this is the style the FSF seems to prefer.
48616
48617         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
48618         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
48619         this updates FSF postal mail address.
48620
48621         Sync from coreutils.
48622         * modules/unlinkdir: New file.
48623         * modules/yesno (Depends-on): Add getline.
48624         * MODULES.html.sh (File system functions): Add unlinkdir.
48625
48626 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
48627
48628         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
48629         lib/strsep.h:
48630         Change the initial comment to refer to GPL, not LGPL.
48631         gnulib-tool will change it to LGPL as needed.
48632
48633         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
48634         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
48635         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
48636         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
48637         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
48638         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
48639         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
48640         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
48641         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
48642         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
48643         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
48644         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
48645         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
48646         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
48647         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
48648         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
48649         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
48650         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
48651         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
48652         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
48653         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
48654         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
48655         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
48656         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
48657         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
48658         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
48659         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
48660         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
48661         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
48662         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
48663         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
48664         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
48665         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
48666         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
48667         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
48668         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
48669         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
48670         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
48671         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
48672         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
48673         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
48674         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
48675         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
48676         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
48677         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
48678         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
48679         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
48680         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
48681         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
48682         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
48683         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
48684         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
48685         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
48686         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
48687         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
48688         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
48689         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
48690         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
48691         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
48692         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
48693         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
48694         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
48695         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
48696         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
48697         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
48698         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
48699         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
48700         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
48701         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
48702         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
48703         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
48704         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
48705         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
48706         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
48707         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
48708         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
48709         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
48710         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
48711         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
48712         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
48713         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
48714         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
48715         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
48716         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
48717         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
48718         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
48719         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
48720         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
48721         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
48722         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
48723         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
48724         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
48725         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
48726         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
48727         lib/yesno.c, lib/yesno.h:
48728         Update FSF postal mail address.
48729
48730 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
48731
48732         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
48733         tests/test-memmem.c, tests/test-stpncpy.c:
48734         Update FSF postal mail address.
48735
48736 2005-05-13  Bruno Haible  <bruno@clisp.org>
48737
48738         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
48739         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
48740         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
48741         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
48742         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
48743         Add support for 64-bit integers in the MSVC compiler.
48744
48745 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
48746
48747         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
48748
48749 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
48750
48751         * gnulib-tool (func_import): Sort and uniquify recommended includes.
48752
48753 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
48754
48755         * doc/getdate.texi (General date syntax): Don't say that date
48756         date --iso-8601=ns generates acceptable dates; it doesn't yet.
48757         Problem reported by Nic Ferrier.
48758
48759 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48760
48761         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
48762         specified in ai_socktype. Fix invalid ai_protocol
48763         check. ai_protocol is usually set to 0 or depending on
48764         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
48765         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
48766         ai_socktype / ai_protocol in the returned addrinfo structure.
48767
48768 2005-05-10  Simon Josefsson  <jas@extundo.com>
48769
48770         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
48771         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48772
48773 2005-05-10  Karl Berry  <karl@gnu.org>
48774
48775         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
48776         (from http://www.gnu.org/licenses).
48777         * doc/COPYING.LIB: also rename to COPYING.LESSER.
48778         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
48779         fdl.texi suffices.
48780
48781 2005-05-10  Karl Berry  <karl@gnu.org>
48782
48783         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
48784         (COPYING.DOC): remove.
48785
48786         * config/srclist-update: new FSF address.
48787
48788 2005-05-10  Derek Price  <derek@ximbiot.com>
48789
48790         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
48791         possible.
48792
48793 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48794             Bruno Haible  <bruno@clisp.org>
48795
48796         * modules/inet_ntop: New file.
48797         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48798         inet_ntop.
48799
48800 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48801             Bruno Haible  <bruno@clisp.org>
48802
48803         * m4/inet_ntop.m4: New file.
48804
48805 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48806             Bruno Haible  <bruno@clisp.org>
48807
48808         * lib/inet_ntop.h: New file.
48809         * lib/inet_ntop.c: New file, from glibc with modifications.
48810
48811 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
48812
48813         * modules/time_r (License): Change to LGPL.
48814         * modules/extensions (License): Change to LGPL.  Actually,
48815         the license is more permissive than that, but currently gnulib-tool
48816         doesn't know how to handle more-permissive licenses.
48817
48818         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
48819         Problem reported by Dave Love.
48820
48821 2005-05-08  Jim Meyering  <jim@meyering.net>
48822
48823         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
48824         blank.
48825
48826 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
48827
48828         * modules/argmatch (Depends-on): Add stdbool.
48829         * modules/backupfile (Depends-on): Likewise.
48830         * modules/chdir-long (Depends-on): Likewise.
48831         * modules/closeout (Depends-on): Likewise.
48832         * modules/cycle-check (Depends-on): Likewise.
48833         * modules/dirname (Depends-on): Likewise.
48834         * modules/fnmatch (Depends-on): Likewise.
48835         * modules/fsusage (Depends-on): Likewise.
48836         * modules/fwriteerror (Depends-on): Likewise.
48837         * modules/getcwd (Depends-on): Likewise.
48838         * modules/getloadavg (Depends-on): Likewise.
48839         * modules/hard-locale (Depends-on): Likewise.
48840         * modules/makepath (Depends-on): Likewise.
48841         * modules/mountlist (Depends-on): Likewise.
48842         * modules/nanosleep (Depends-on): Likewise.
48843         * modules/posixtm (Depends-on): Likewise.
48844         * modules/quotearg (Depends-on): Likewise.
48845         * modules/readtokens (Depends-on): Likewise.
48846         * modules/readtokens0 (Depends-on): Likewise.
48847         * modules/readutmp (Depends-on): Likewise.
48848         * modules/save-cwd (Depends-on): Likewise.
48849         * modules/strftime (Depends-on): Likewise.
48850         * modules/userspec (Depends-on): Likewise.
48851         * modules/utimecmp (Depends-on): Likewise.
48852         * modules/xgetcwd (Depends-on): Likewise.
48853         * modules/xnanosleep (Depends-on): Likewise.
48854         * modules/xstrtod (Depends-on): Likewise.
48855         * modules/yesno (Depends-on): Likewise.
48856
48857 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
48858
48859         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
48860         needless checks.
48861
48862 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
48863
48864         Merge from coreutils.  Among other things,
48865         add bulletproofing for cases where stdin, stdout, or stderr are closed.
48866         * lib/fd-safer.c: New file.
48867         * lib/fcntl-safer.h, open-safer.c: Remove.
48868         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
48869         * lib/dup-safer.c: Include unistd-safer.h first.
48870         Don't include errno.h.
48871         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
48872         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
48873         * lib/file-type.c: Rely on file-type.h change.
48874         * lib/getloadavg.c: Include unistd-safer.h.
48875         (getloadavg): Use safer open.
48876         * lib/getusershell.c: Include "stdio-safer.h".
48877         (getusershell): Use safer fopen.
48878         * lib/long-options.c (long_options): Use NULL rather than 0.
48879         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
48880         'free'.
48881         * lib/modechange.c: Likewise.
48882         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
48883         (MODE_DONE): New constant.
48884         (struct mode_change): Remove 'next' member.
48885         (make_node_op_equals): New function; like the old one of the
48886         same name, except it allocates an array.
48887         (mode_compile, mode_create_from_ref): Use it.
48888         (mode_compile): Allocate result as an array, not a linked list.
48889         Parse octal string ourself, so that we catch mistakes like "+0".
48890         (mode_adjust): Arg is an array, not a linked list.
48891         * lib/modechange.c: Include stat-macros.h, xalloc.h.
48892         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
48893         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
48894         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
48895         Remove.  This is now stat-macros.h's job.
48896         (talloc): Remove.  All callers replaced by xalloc, so that
48897         our invokers don't have to worry about reporting memory failures.
48898         (make_node_op_equals): Remove.
48899         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
48900         New constants.
48901         (struct mode_change): Moved here from modechange.h.
48902         (mode_append_entry): Remove.
48903         (mode_compile): Remove MASKED_OPS arg, since it encouraged
48904         apps to have incorrect behavior.  Use simpler algorithm for head
48905         and tail.  Don't futz with umask; that's now the job of mode_adjust.
48906         Detect more invalid usages rather than having somewhat-random behavior.
48907         Don't insert an "a=" action, as that leads to incorrect behavior.
48908         (mode_compile, mode_create_from_ref): Return NULL on error instead
48909         of an enum, since now there's only one way to have an error.  All
48910         callers changed.
48911         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
48912         at the correct time.  Simplify calculation of "+u" and its ilk.
48913         Don't mishandle "+X".
48914         (mode_free): Remove "register" and localize decls.
48915         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
48916         (struct mode_change): Move to modechange.c; callers don't
48917         need to see this stuff.
48918         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
48919         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
48920         (mode_change, mode_adjust): Reflect the new signatures noted above.
48921         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
48922         that might redefine system include files.
48923         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
48924         (my_usleep): Use NULL rather than (void *) 0.
48925         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
48926         Use siginterrupt to specify that system calls should be interrupted.
48927         (rpl_nanosleep): Move initialization of suspended closer to call of
48928         my_usleep.
48929         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
48930         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
48931         (desirable_utmp_entry): New function.
48932         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
48933         using x2nrealloc, to simplify logic.
48934         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
48935         size calculation.  Do not assume utmp file is a regular file.
48936         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
48937         (READ_UTMP_CHECK_PIDS): New constant.
48938         * lib/save-cwd.c: Include unistd-safer.h.
48939         (save_cwd): Use fd_safer.
48940         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
48941         [!_LIBC] Include "stat-macros.h" instead.
48942         * lib/unistd-safer.h (fd_safer): New decl.
48943
48944 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
48945
48946         * modules/getloadavg (Depends-on): Add unistd-safer.
48947         * modules/getusershell (Depends-on): Add stdio-safer.
48948         * modules/lstat (Depends-on): Remove xalloc.
48949         * modules/mkstemp (Depends-on): Add stat-macros.
48950         * modules/modechange (Depends-on): Remove xstrtol.
48951         Add stat-macros, xalloc.
48952         * modules/save-cwd (Depends-on): Add unistd-safer.
48953         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
48954         * modules/unistd-safer (Files): Add lib/fd-safer.c
48955         (Makefile.am): Remove lib_SOURCES.
48956
48957         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
48958         Remove fcntl-safer; unistd-safer supersedes it.
48959
48960 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
48961
48962         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
48963         AC_HEADER_STAT.
48964         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
48965         (gl_PREREQ_CHOWN): Remove.
48966         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
48967         it.  Don't require AC_HEADER_STAT.
48968         (gl_PREREQ_LSTAT): Remove.
48969         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
48970         Don't require AC_HEADER_STAT.
48971         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
48972         (gl_PREREQ_RMDIR): Remove.
48973         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
48974         mention stat-macros.h or AC_HEADER_STAT, since we'll make
48975         the stat-macros module a prerequisite.
48976         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
48977         * m4/filemode.m4 (gl_FILEMODE): Likewise.
48978         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
48979         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
48980         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
48981         variable names.
48982         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
48983         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
48984         variable prefixes.
48985         * m4/fcntl-safer.m4: Remove.
48986         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
48987         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
48988         Invoke gl_PREREQ_FD_SAFER.
48989         (gl_PREREQ_FD_SAFER): New macro.
48990         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
48991         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
48992         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
48993         Remove duplicate call to AC_LIBOBJ(readutmp).
48994         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
48995
48996         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
48997         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
48998
48999 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
49000
49001         * MODULES.html.sh (Misc): Add byteswap.
49002
49003 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49004
49005         * modules/getcwd (Depends-on): Add extensions.
49006         * modules/openat (Depends-on): Likewise.
49007
49008 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49009
49010         * modules/byteswap: New file.
49011
49012 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49013
49014         * m4/byteswap.m4: New file.
49015
49016 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
49017
49018         * lib/byteswap_.h: New file.
49019
49020 2005-04-25  Karl Berry  <karl@gnu.org>
49021
49022         * m4/gettext.m4: Update from GNU gettext 0.14.4.
49023
49024 2005-04-25  Albert Chin  <china@thewrittenword.com>
49025
49026         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
49027         Toolkit C bug.
49028
49029 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
49030
49031         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
49032         (func_ln_if_changed) Remove forcibly for no error message
49033         in case file does not exist.
49034
49035 2005-04-19  Simon Josefsson  <jas@extundo.com>
49036
49037         * gnulib-tool (Options): Make --symlink mean --symbolic.
49038
49039 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
49040
49041         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
49042
49043 2005-04-16  Simon Josefsson  <jas@extundo.com>
49044
49045         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
49046
49047 2005-04-15  Simon Josefsson  <jas@extundo.com>
49048
49049         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
49050
49051 2005-04-15  Simon Josefsson  <jas@extundo.com>
49052
49053         * gnulib-tool: Rename --symlink to --symbolic.
49054
49055 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
49056
49057         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
49058         symbolic links to files instead of copying/moving.  Add --aux-dir,
49059         specifying directory relative --dir where auxiliary build tools
49060         are placed.
49061
49062 2005-04-14  Bruno Haible  <bruno@clisp.org>
49063
49064         * modules/allocsa (License): Change to LGPL.
49065         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49066
49067 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
49068
49069         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
49070         that "UTC +1 second" continues to work.  Problem reported
49071         by Dmitry V. Levin.
49072         (relunit_snumber): New rule.
49073         (relunit): Use it.
49074
49075 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
49076
49077         * lib/getdate.y (universal_time_zone_table): New constant.
49078         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
49079         universal_time_zone_table.
49080         (lookup_zone): Prefer universal_time_zone_table to
49081         local_time_zone_table, so that "GMT" time stamps are allowed in
49082         London during the summer.  Problem reported by Ian Abbott.
49083
49084 2005-04-12  Jim Meyering  <jim@meyering.net>
49085
49086         * lib/human.c (humblock): Set *options even when returning due to
49087         xstrtoumax conversion failure.  Thanks to a used-uninitialized
49088         warning from gcc-4.
49089
49090 2005-04-09  Jim Meyering  <jim@meyering.net>
49091
49092         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
49093         -Wuninitialized: initialize tm0.tm_year.
49094
49095 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
49096
49097         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
49098         count, since there's no maximum.  All uses changed.
49099         Add member dsts_seen.
49100         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
49101         not being INT_MAX.
49102         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
49103         Use pc_rels_seen to decide whther a date is absolute.
49104
49105         * lib/getdate.y (number): Don't overwrite year.
49106         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
49107         check.
49108
49109 2005-04-02  Simon Josefsson  <jas@extundo.com>
49110
49111         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
49112         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
49113
49114 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
49115
49116         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
49117         where no absolute path name can be longer than PATH_MAX.
49118
49119 2005-03-27  Jim Meyering  <jim@meyering.net>
49120
49121         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
49122
49123 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
49124
49125         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
49126         "one's complement" -> "ones' complement" in comment, as per Knuth.
49127         "value of type" -> "type or expression" in comment.
49128         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
49129
49130 2005-03-26  Jim Meyering  <jim@meyering.net>
49131
49132         Comment nits.
49133         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
49134         Correct typos: s/or/of/.
49135
49136 2005-03-26  Jim Meyering  <jim@meyering.net>
49137
49138         * modules/check-include-files: Move to ../ and rename to...
49139         * check-module: ...this.
49140
49141 2005-03-25  Jim Meyering  <jim@meyering.net>
49142
49143         * modules/xvasprintf (Files): Add xalloc.h.
49144
49145 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
49146
49147         * modules/gettext (Files): config/config.rpath ->
49148         build-aux/config.rpath
49149         * modules/iconv (Files): Likewise.
49150         Problem reported by Oskar Liljeblad.
49151
49152 2005-03-23  Jim Meyering  <jim@meyering.net>
49153
49154         * modules/check-include-files: New script to check for
49155         missing dependencies, multiple includes, etc.
49156
49157         * modules/c-strtold (Depends-on): Add xalloc.
49158         * modules/c-strtod (Depends-on): Add xalloc.
49159         * modules/hash (Depends-on): Add xalloc.
49160         (Files): Remove lib/xalloc.h.
49161
49162         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
49163         * modules/userspec (Files): Add lib/inttostr.h.
49164
49165 2005-03-23  Jim Meyering  <jim@meyering.net>
49166
49167         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
49168
49169 2005-03-22  Jim Meyering  <jim@meyering.net>
49170
49171         * modules/stat-macros: New module.
49172         * modules/canonicalize, modules/euidaccess, modules/file-type,
49173         * modules/filemode, modules/lchown, modules/makepath,
49174         * modules/rmdir, modules/stat: Depend on new stat-macros module
49175         rather than listing lib/stat-macros.h manually.
49176         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
49177
49178 2005-03-22  Jim Meyering  <jim@meyering.net>
49179
49180         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
49181
49182 2005-03-22  Bruno Haible  <bruno@clisp.org>
49183
49184         * config/srclist.txt: Replace target directory 'config' with
49185         'build-aux'.
49186         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
49187         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
49188         ../build-aux/.
49189
49190 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
49191
49192         * modules/chdir-long (Depends-on): Add mempcpy.
49193
49194         * modules/acl, modules/backupfile, modules/c-strtod,
49195         modules/c-strtold, modules/canon-host, modules/canonicalize,
49196         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
49197         modules/exclude, modules/exitfail, modules/file-type,
49198         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
49199         modules/getdate, modules/getline, modules/getpagesize,
49200         modules/getpass, modules/getugroups, modules/group-member,
49201         modules/hard-locale, modules/hash, modules/human, modules/idcache,
49202         modules/inttostr, modules/long-options, modules/makepath,
49203         modules/md5, modules/memcasecmp, modules/memcoll,
49204         modules/modechange, modules/mountlist, modules/path-concat,
49205         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
49206         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
49207         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
49208         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
49209         modules/strftime, modules/strndup, modules/strverscmp,
49210         modules/timespec, modules/unlocked-io, modules/userspec,
49211         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
49212         modules/yesno:
49213         Remove lib_SOURCES line from Makefile.am section, as this is now
49214         done automatically by the corresponding Autoconf macro.
49215
49216 2005-03-21  Jim Meyering  <jim@meyering.net>
49217
49218         Changes imported from coreutils.
49219
49220         * lib/cycle-check.c: Don't include xalloc.h.
49221
49222         * lib/path-concat.c: Don't include assert.h.
49223         (path_concat): Remove assertion that would have triggered
49224         for ABASE starting with more than one slash.
49225         Reported by Andreas Schwab.
49226
49227         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
49228         properly when ABASE is an absolute file name.
49229         Correct the description of this function.
49230         Include <assert.h>.
49231         Add an assertion and a test driver.
49232         This fixes a bug introduced on 2004-07-02.
49233         Andreas Schwab reported the resulting failure of cp --parents:
49234         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
49235
49236 2005-03-21  Jim Meyering  <jim@meyering.net>
49237
49238         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
49239         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
49240
49241 2005-03-21  Jim Meyering  <jim@meyering.net>
49242         and  Paul Eggert  <eggert@cs.ucla.edu>
49243
49244         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
49245         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
49246         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
49247         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
49248         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
49249         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
49250         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
49251         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
49252         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
49253         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
49254         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
49255         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
49256         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
49257         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
49258         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
49259         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
49260         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
49261         for these modules.
49262
49263 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
49264
49265         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
49266         (which shouldn't happen), generate nothing instead of returning 0
49267         immediately, so that nstrftime (NULL, ...) doesn't return 0.
49268
49269 2005-03-16  Bruno Haible  <bruno@clisp.org>
49270
49271         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
49272         HAVE_LONGLONG_64BIT.
49273
49274 2005-03-16  Bruno Haible  <bruno@clisp.org>
49275
49276         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
49277         HAVE_LONGLONG_64BIT.
49278
49279 2005-03-16  Bruno Haible  <bruno@clisp.org>
49280
49281         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
49282         HAVE_LONGLONG_64BIT.
49283
49284 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
49285
49286         * lib/strftime.c (my_strftime): Prepend space to format so that we can
49287         reliably distinguish strftime failure from empty output on POSIX
49288         hosts.
49289
49290 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
49291
49292         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
49293         (iconv_string): Don't guess a size-zero buffer, as that might cause
49294         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
49295         result would be 'too large', where 'too large' is (heuristically)
49296         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
49297         overflow concerns.  This will prevent some unwanted malloc failures
49298         when the inputs are very large.
49299
49300 2005-03-15  Karl Berry  <karl@gnu.org>
49301
49302         * config/srclist.txt (config.rpath): from gettext.
49303         * config/config.rpath: update.
49304
49305 2005-03-15  Bruno Haible  <bruno@clisp.org>
49306
49307         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
49308         to 'negate'.
49309
49310         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
49311         variable.
49312
49313         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
49314         results.
49315
49316 2005-03-14  Simon Josefsson  <jas@extundo.com>
49317
49318         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
49319         <fx@gnu.org>.
49320
49321 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
49322
49323         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
49324         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
49325         intprops.h.
49326         * lib/strtol.c: Likewise.
49327
49328 2005-03-14  Jim Meyering  <jim@meyering.net>
49329
49330         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
49331         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
49332         to be nonzero so that we (and caller) can detect the difference
49333         between a valid zero-length expansion and an error return, even
49334         when the underlying strftime fails before writing anything into
49335         that location.
49336
49337 2005-03-14  Bruno Haible  <bruno@clisp.org>
49338
49339         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
49340         Update from GNU gettext 0.14.3.
49341
49342 2005-03-10  Jim Meyering  <jim@meyering.net>
49343
49344         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
49345
49346 2005-03-10  Jim Meyering  <jim@meyering.net>
49347
49348         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
49349         so that this module works on systems without fchdir.
49350
49351 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
49352
49353         Factor int-properties macros into a single file, except for
49354         glibc-related files.
49355         * lib/intprops.h: New file.
49356         * lib/getloadavg.c: Include it instead of limits.h.
49357         (INT_STRLEN_BOUND): Remove.
49358         * lib/human.c: Include intprops.h.
49359         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
49360         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
49361         302/1000.
49362         * lib/inttostr.h: Include intprops.h instead of limits.h.
49363         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
49364         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
49365         for consistency with intprops.h.
49366         (time_t_is_integer, twos_complement_arithmetic): Use them.
49367         * lib/sig2str.h: Include <signal.h>, intprops.h.
49368         (INT_STRLEN_BOUND): Remove.
49369         * lib/strftime.c (TYPE_SIGNED): Remove.
49370         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
49371         * lib/strtol.c: Adjust comments to match intprops.h.
49372         * lib/userspec.c: Include intprops.h.
49373         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
49374         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
49375         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
49376         instead of rolling our own expressions.
49377         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
49378
49379         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
49380         instead of int.
49381         (my_strftime): Do not mishandle years close to INT_MAX, by doing
49382         the right thing even if adding 1900 would overflow.  Similarly
49383         for tm_mon + 1 and tm_yday + 1.
49384         Make %Y always equivalent to %C%y, and similarly for %G and %g.
49385         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
49386         (DO_SIGNED_NUMBER): New macro.
49387         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
49388
49389 2005-03-07  Bruno Haible  <bruno@clisp.org>
49390
49391         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
49392
49393 2005-03-07  Bruno Haible  <bruno@clisp.org>
49394
49395         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
49396
49397 2005-03-04  Derek R. Price  <derek@ximbiot.com>
49398
49399         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
49400         (func_import): Only replace files via --import when they have actually
49401         changed.
49402
49403 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49404
49405         * m4/mmap-anon.m4: New file.
49406         * m4/pagealign_alloc.m4: New file.
49407
49408 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49409             Bruno Haible  <bruno@clisp.org>
49410
49411         * modules/pagealign_alloc: New file.
49412         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
49413
49414 2005-03-03  Derek R. Price  <derek@ximbiot.com>
49415             Bruno Haible  <bruno@clisp.org>
49416
49417         * lib/pagealign_alloc.h: New file.
49418         * lib/pagealign_alloc.c: New file.
49419
49420 2005-03-03  Bruno Haible  <bruno@clisp.org>
49421
49422         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
49423         Use an all-permissive copyright notice, recommended by RMS.
49424
49425 2005-03-02  Bruno Haible  <bruno@clisp.org>
49426
49427         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
49428         of AIX, the replacement has to be done only after <string.h> is
49429         included, therefore not in config.h. stpncpy.h does the replacement,
49430         and stpncpy.c uses it.
49431
49432 2005-03-02  Bruno Haible  <bruno@clisp.org>
49433
49434         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
49435         stpncpy.c uses it.
49436
49437 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49438
49439         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
49440         The workaround isn't strictly needed for POSIX conformance, and
49441         it's too much of a pain to configure and maintain.  We'll ask
49442         people to fix their kernels instead.
49443         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
49444         (NANOSLEEP_BUG_WORKAROUND): Remove.
49445         (xnanosleep): Remove the workaround.
49446
49447 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49448
49449         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
49450         Reported by Derek Price.
49451         (Include): Add "timespec.h".
49452
49453         * modules/xnanosleep (Depends-on): Remove gethrxtime.
49454
49455 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
49456
49457         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
49458         to detect nanosleep bug.
49459
49460 2005-03-01  Bruno Haible  <bruno@clisp.org>
49461
49462         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
49463
49464 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
49465
49466         * modules/gethrxtime: New file.
49467         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
49468         (Depends-on): Add gethrxtime.
49469         (configure.ac): Add gl_XNANOSLEEP.
49470         (Makefile.am): Remove lib_SOURCES line.
49471
49472 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49473
49474         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
49475         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
49476
49477 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
49478
49479         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
49480         * lib/timespec.h (gettime): Return void, since it always
49481         succeeds now.  All uses changed.
49482         * lib/gettime.c (gettime) Likewise.
49483         [HAVE_NANOTIME]: Prefer nanotime.
49484         Assume gettimeofday succeeds, as POSIX requires.
49485         Assime time () succeeds, since other code already does.
49486         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
49487         (timespec_subtract): Remove.
49488         (NANOSLEEP_BUG_WORKAROUND): New constant.
49489         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
49490         things considerably.  Use it only on GNU/Linux hosts, since the
49491         workaround shouldn't be needed elsewhere.
49492
49493 2005-02-24  Bruno Haible  <bruno@clisp.org>
49494
49495         * modules/gettext (Files): Add m4/glibc2.m4.
49496
49497 2005-02-24  Bruno Haible  <bruno@clisp.org>
49498
49499         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
49500         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
49501         * m4/progtest.m4:
49502         Update from GNU gettext 0.14.2.
49503         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
49504
49505 2005-02-24  Bruno Haible  <bruno@clisp.org>
49506
49507         * lib/localcharset.c: Update from GNU gettext 0.14.2.
49508         * lib/config.charset: Update from GNU gettext 0.14.2.
49509
49510 2005-02-24  Bruno Haible  <bruno@clisp.org>
49511
49512         * lib/gettext.h: Update from GNU gettext 0.14.2.
49513
49514 2005-02-23  Simon Josefsson  <jas@extundo.com>
49515
49516         * m4/iconvme.m4: New file.
49517
49518 2005-02-23  Jim Meyering  <jim@meyering.net>
49519
49520         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
49521         change.
49522         Thanks to Bruno Haible for catching it.
49523
49524 2005-02-22  Simon Josefsson  <jas@extundo.com>
49525
49526         * modules/iconvme: New file.
49527
49528         * MODULES.html.sh: Add iconvme.
49529
49530 2005-02-22  Simon Josefsson  <jas@extundo.com>
49531
49532         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
49533
49534 2005-02-22  Simon Josefsson  <jas@extundo.com>
49535
49536         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
49537
49538 2005-02-22  Jim Meyering  <jim@meyering.net>
49539
49540         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
49541         s/ifndef/ifdef/.
49542
49543 2005-02-20  Neil Conway  <neilc@samurai.com>
49544
49545         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
49546         returned by OSX/Darwin if the specified buffer is not large
49547         enough for the hostname.
49548
49549 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49550
49551         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
49552         pass it to _help, otherwise the latter coredumps trying to
49553         dereference state.root_argp.
49554
49555 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49556
49557         * modules/chdir-long (Depends-on): Add memrchr.
49558         * modules/memrchr (Files): Add lib/memrchr.h.
49559         (Include): "memrchr.h".
49560
49561 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49562
49563         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
49564
49565 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
49566
49567         * lib/memrchr.h: New file.
49568         * lib/chdir-long.c: Include it.
49569         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
49570         Don't bother including stddef.h.
49571
49572 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
49573
49574         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
49575         inclusion.
49576         Include <sys/types.h>, for dev_t.
49577         (ME_DUMMY, ME_REMOTE): Move from here....
49578         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
49579         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
49580         Dmitry V. Levin.
49581         Include mountlist.h first, to test the interface.
49582
49583 2005-01-29  Bruno Haible  <bruno@clisp.org>
49584
49585         * lib/progname.c (program_name): Initialize.
49586         Needed when linking statically on MacOS X.
49587
49588 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49589
49590         Sync from coreutils.
49591         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
49592         (Depends-on): Add c-strtod.
49593         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
49594
49595 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
49596
49597         Sync from coreutils.
49598         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
49599
49600         Remove files that are specific to coreutils.
49601         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
49602
49603 2005-01-28  Bruno Haible  <bruno@clisp.org>
49604
49605         * modules/javacomp: New file.
49606         * MODULES.html.sh (Java): Add javacomp.
49607
49608 2005-01-28  Bruno Haible  <bruno@clisp.org>
49609
49610         * m4/javacomp.m4: New file, from GNU gettext.
49611
49612 2005-01-28  Bruno Haible  <bruno@clisp.org>
49613
49614         * lib/javacomp.sh.in: New file, from GNU gettext.
49615         * lib/javacomp.h: New file, from GNU gettext.
49616         * lib/javacomp.c: New file, from GNU gettext.
49617
49618 2005-01-26  Simon Josefsson  <jas@extundo.com>
49619
49620         * lib/gai_strerror.c: Use GPL in header.
49621
49622 2005-01-26  Bruno Haible  <bruno@clisp.org>
49623
49624         * modules/javaexec: New file.
49625         * MODULES.html.sh (Java): Add javaexec.
49626
49627 2005-01-26  Bruno Haible  <bruno@clisp.org>
49628
49629         * m4/javaexec.m4: New file, from GNU gettext.
49630
49631 2005-01-26  Bruno Haible  <bruno@clisp.org>
49632
49633         * lib/javaexec.sh.in: New file, from GNU gettext.
49634         * lib/javaexec.h: New file, from GNU gettext.
49635         * lib/javaexec.c: New file, from GNU gettext.
49636
49637 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49638
49639         * modules/lchown (Depends-on): Remove lchown.h
49640
49641 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49642
49643         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
49644         must be defined if the header file was not found, in order
49645         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
49646
49647 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49648
49649         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
49650         initializers for struct pentry_state.
49651         (__argp_error): Check return value of __asprintf
49652         (__argp_failure): Translate error message
49653
49654         * lib/argp-parse.c: Removed braces around the expansion of N_()
49655
49656 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
49657
49658         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
49659         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
49660         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
49661         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
49662         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
49663         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
49664         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
49665         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
49666         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
49667         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
49668         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
49669         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
49670         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
49671         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
49672         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
49673         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
49674         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
49675         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
49676         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
49677         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
49678         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
49679         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
49680         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
49681         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
49682         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
49683         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
49684         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
49685         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
49686         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
49687         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
49688         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
49689         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
49690         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
49691         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
49692         xstrtol.m4, xstrtoumax.m4, yesno.m4:
49693         Use an all-permissive copyright notice, recommended by RMS.
49694
49695 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
49696
49697         * modules/chdir-long (Depends-on): Remove mempcpy.
49698
49699 2005-01-21  Jim Meyering  <jim@meyering.net>
49700
49701         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
49702         same value as for Solaris 9.
49703
49704         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
49705         component length.  This included changing the parameter to be
49706         of type `char *' rather than `char const *'.
49707         * lib/chdir-long.h (chdir_long): Update prototype.
49708
49709         * lib/openat.c (fdopendir, fstatat): New functions.
49710         * lib/openat.h: Include headers required for use of DIR and struct
49711         stat.
49712         [AT_SYMLINK_NOFOLLOW]: Define.
49713         (fdopendir, fstatat): Add prototypes.
49714
49715 2005-01-21  Bruno Haible  <bruno@clisp.org>
49716
49717         * modules/classpath: New file.
49718         * MODULES.html.sh (Java): Add classpath.
49719
49720 2005-01-21  Bruno Haible  <bruno@clisp.org>
49721
49722         * lib/classpath.h: New file, from GNU gettext.
49723         * lib/classpath.c: New file, from GNU gettext.
49724
49725 2005-01-20  Simon Josefsson  <jas@extundo.com>
49726
49727         * modules/version-etc-fsf: New file.
49728
49729 2005-01-20  Simon Josefsson  <jas@extundo.com>
49730
49731         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
49732         * lib/version-etc.c: Remove version_etc_copyright.
49733         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
49734         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
49735
49736 2005-01-20  Simon Josefsson  <jas@extundo.com>
49737
49738         * lib/base64.h (isbase64): Add.
49739
49740         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
49741         using a unsigned prototype, don't inline.
49742         (base64_decode): Use it.
49743
49744 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
49745
49746         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
49747         it.
49748
49749 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
49750
49751         * lib/save-cwd.c (save_cwd): Remove code to support the case
49752         where fchdir is missing or flaky.
49753
49754 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
49755
49756         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
49757
49758 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
49759
49760         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
49761         AC_LIBSOURCES now does this.
49762         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
49763         with new ullong_max module.
49764
49765 2005-01-19  Bruno Haible  <bruno@clisp.org>
49766
49767         * modules/sh-quote: New file.
49768         * MODULES.html.sh (Executing programs): Add sh-quote.
49769
49770 2005-01-19  Bruno Haible  <bruno@clisp.org>
49771
49772         * lib/sh-quote.h: New file, from GNU gettext.
49773         * lib/sh-quote.c: New file, from GNU gettext.
49774
49775 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49776
49777         Merge from coreutils.
49778         * m4/ullong_max.m4: New file.
49779         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
49780         (gl_MACROS): Assume localeconv exists.
49781
49782 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49783
49784         Merge changes from coreutils, as described below in several
49785         changelogs dated today.
49786
49787         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
49788         (O_DIRECTORY): Remove; not needed here, since "." must be
49789         a directory.  All uses removed.
49790         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
49791         universal on Suns, and we also need to test for IRIX.
49792         Revamp code to use 'if' rather than '#if'.
49793         Avoid unnecessary comparison of cwd->desc to 0.
49794
49795         * lib/utimens.c (futimens): Robustify the previous patch, by checking
49796         for known valid error numbers rather than observed invalid ones.
49797
49798 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
49799
49800         * modules/ullong_max: New file.
49801
49802         * modules/chdir-long, modules/openat: New files.
49803         * modules/save-cwd (Depends-on): Depend on chdir-long.
49804         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
49805
49806 2005-01-18  Jim Meyering  <jim@meyering.net>
49807
49808         Merge from coreutils.
49809         * m4/chdir-long.m4, m4/openat.m4: New files.
49810         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
49811         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
49812         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
49813         is sane and DOES follow symlinks.  Besides, testing 20 different
49814         systems found no broken chown implementations.
49815         Prompted by a change in rsync's copy of this macro.
49816         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
49817
49818         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
49819
49820         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
49821         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
49822         NULL-means-set-to-current-time semantics.
49823         Remove temporary file immediately, rather than waiting
49824         for configure's at-exit trap code to do it.
49825
49826 2005-01-18  Jim Meyering  <jim@meyering.net>
49827
49828         * lib/version-etc.c (version_etc_copyright): Update copyright date.
49829
49830         * lib/utimens.c (futimens): Account for the fact that futimes
49831         can also fail with errno == ENOSYS or errno == ENOENT.
49832         Patch from Dmitry V. Levin.
49833
49834         Change the name of the robust chdir function from chdir to chdir_long.
49835         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
49836         (restore_cwd): Use chdir_long, not chdir.
49837         * lib/chdir-long.c: Renamed from chdir.c.
49838         * lib/chdir-long.h: Renamed from chdir.h.
49839         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
49840         Hurd.
49841
49842 2005-01-18  Bruno Haible  <bruno@clisp.org>
49843
49844         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
49845         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
49846         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
49847         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
49848         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
49849         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
49850         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
49851         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
49852         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
49853         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
49854         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
49855         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
49856         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
49857         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
49858         Use an all-permissive copyright notice, recommended by RMS.
49859
49860 2005-01-18  Bob Proulx  <bob@proulx.com>
49861
49862         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
49863         simplify offsetof() macro construct to avoid compile failure with
49864         native HP-UX 11.0 ANSI C compiler.
49865
49866 2005-01-17  Bruno Haible  <bruno@clisp.org>
49867
49868         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
49869         redundant because stpncpy.m4 takes care of it.
49870
49871 2005-01-17  Bruno Haible  <bruno@clisp.org>
49872
49873         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
49874
49875 2005-01-17  Bruno Haible  <bruno@clisp.org>
49876
49877         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
49878         used.
49879
49880 2005-01-17  Bruno Haible  <bruno@clisp.org>
49881
49882         * lib/fwriteerror.h (fwriteerror): Change specification to include
49883         fclose.
49884         * lib/fwriteerror.c: Include <stdbool.h>.
49885         (fwriteerror): At the end, close the file stream. Record whether
49886         stdout was already closed.
49887
49888 2005-01-17  Bruno Haible  <bruno@clisp.org>
49889
49890         * lib/execute.c (environ): Declare if needed.
49891         * lib/pipe.c (environ): Likewise.
49892         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
49893
49894 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49895
49896         * modules/argp: Depend on vsnprintf
49897
49898 2005-01-10  Jim Meyering  <jim@meyering.net>
49899
49900         * modules/closeout (Depends-on): Add atexit.
49901
49902 2005-01-06  Bruno Haible  <bruno@clisp.org>
49903
49904         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
49905
49906 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
49907
49908         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
49909         definitions to be after all include files, to avoid collisions.
49910         Problem reported by Bob Proulx.
49911
49912 2005-01-04  Jim Meyering  <jim@meyering.net>
49913
49914         Changes imported from coreutils.
49915         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
49916         as the mkstemp template, use a temporary directory and an
49917         8.3-friendly template to avoid trouble on systems like DJGPP.
49918         Reported by Juan M. Guerrero via Stepan Kasal.
49919         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
49920         close. Remove the temporary directory right away, rather than waiting
49921         for configure's at-exit trap code to do it.
49922         Suggestion from Stepan Kasal.
49923
49924 2005-01-01  Simon Josefsson  <jas@extundo.com>
49925
49926         * gnulib-tool: Print #include directives when --import'ing.
49927
49928 2004-12-28  Simon Josefsson  <jas@extundo.com>
49929
49930         * tests/test-base64.c: Include required header files.  Remove
49931         unused variables.
49932
49933 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
49934
49935         * modules/error (Depends-on): Remove gettext.
49936
49937 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
49938
49939         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
49940         not needed.  This removes a dependency on the gettext module.
49941         [defined _LIBC]: Do not include <libintl.h>; not needed.
49942
49943 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
49944
49945         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
49946         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
49947
49948 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
49949
49950         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
49951         HAVE_DECL_STRTOLD.
49952
49953 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
49954
49955         * modules/getdate (Depends-on): Remove alloca-opt.
49956
49957 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
49958
49959         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
49960
49961 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
49962
49963         * lib/argp-parse.c: Include <stddef.h>.
49964         (alignof, alignto): New macros.
49965         (parser_init): Don't assume that void * is aligned sufficiently
49966         for struct option.
49967
49968         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
49969         need to extend the stack.
49970         (YYINITDEPTH): New macro, so that the initial stack isn't overly
49971         large.
49972
49973 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
49974
49975         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
49976
49977 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
49978
49979         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
49980         (2004-10-24) change.  Apparently this was a false alarm.
49981
49982         * modules/getdate: Depend on alloca-opt, not alloca.
49983
49984 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
49985
49986         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
49987         Remove now-obsolete comment about AIX.
49988         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
49989         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
49990         (YYMAXDEPTH): New macro.
49991
49992 2004-12-18  Simon Josefsson  <jas@extundo.com>
49993
49994         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
49995
49996 2004-12-18  Bruno Haible  <bruno@clisp.org>
49997
49998         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
49999
50000 2004-12-18  Bruno Haible  <bruno@clisp.org>
50001
50002         * lib/fatal-signal.c (fatal_signals): Make non-const.
50003         (init_fatal_signals): New function.
50004         (uninstall_handlers, install_handlers): Ignore signals that were set to
50005         SIG_IGN.
50006         (at_fatal_signal): Call init_fatal_signals.
50007         (init_fatal_signal_set): Likewise. Ignore signals that were set to
50008         SIG_IGN.
50009         Reported by Paul Eggert.
50010
50011 2004-12-18  Bruno Haible  <bruno@clisp.org>
50012
50013         * doc/alloca.texi: New file.
50014         * doc/alloca-opt.texi: New file.
50015
50016 2004-12-17  Jim Meyering  <jim@meyering.net>
50017
50018         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
50019         Otherwise, install-sh could exit with improper exit status when
50020         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
50021
50022 2004-12-16  Simon Josefsson  <jas@extundo.com>
50023
50024         * tests/test-base64.c: Add license.
50025
50026 2004-12-15  Stepan Kasal  <address@hidden>
50027
50028         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
50029
50030 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
50031
50032         * modules/getcwd (Files): Add m4/d-ino.m4.
50033         Suggested by Mark D. Baushke.
50034
50035 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
50036
50037         * lib/getdate.y (textint): New member "negative".
50038         (time_zone_hhmm): New function.
50039         Expect 14 shift-reduce conflicts, not 13.
50040         (o_colon_minutes): New rule.
50041         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
50042         (yylex): Set the "negative" member of signed numbers.
50043
50044 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
50045
50046         * doc/getdate.texi (Time of day items, Time zone items):
50047         Describe new formats +00:00, UTC+00:00.
50048
50049 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
50050
50051         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
50052         spurious "-l"s.  Problem reported by Stepan Kasal.
50053
50054 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
50055
50056         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
50057         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
50058
50059 2004-12-04  Simon Josefsson  <jas@extundo.com>
50060
50061         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
50062         Vandoorselaere <yoann@prelude-ids.org>.
50063
50064 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
50065
50066         Changes imported from coreutils.
50067         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
50068         exist.
50069         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
50070
50071 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
50072
50073         Changes imported from coreutils.
50074         * lib/hard-locale.c: Assume <locale.h> exists.
50075         Include "strdup.h".
50076         (GLIBC_VERSION): New macro.
50077         (hard_locale): Assume setlocale exists.
50078         Rewrite to avoid #ifdef.
50079         Use strdup rather than malloc + strcpy.
50080         * lib/human.c: Assume <locale.h> exists.
50081         (human_readable): Assume localeconv exists.
50082
50083 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
50084
50085         * modules/hard-locale (Depends-on): Add strdup.
50086
50087 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
50088
50089         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
50090         convert T2, not T.  (Imported from libc.)
50091
50092 2004-11-30  Simon Josefsson  <jas@extundo.com>
50093
50094         * modules/restrict (License): Change to LGPL.
50095
50096 2004-11-30  Simon Josefsson  <jas@extundo.com>
50097
50098         * m4/restrict.m4: Add copyright and copying conditions.
50099
50100 2004-11-30  Simon Josefsson  <jas@extundo.com>
50101
50102         * m4/base64.m4: New file.
50103
50104 2004-11-30  Simon Josefsson  <jas@extundo.com>
50105
50106         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
50107         base64.
50108
50109         * tests/test-base64.c: New file.
50110
50111         * modules/base64: New file.
50112
50113 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
50114
50115         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
50116         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
50117
50118         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
50119
50120 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
50121
50122         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
50123         (__getcwd.c): Don't restore errno; glibc doesn't.
50124         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
50125         first, falling back to our code only if its results look suspicious.
50126         Ensure that the resulting buffer is only as large as necessary.
50127
50128         * lib/readutmp.c: Include readutmp.h first.
50129         Include <errno.h>, since readutmp.h no longer does that.
50130         * lib/readutmp.h: Don't include <errno.h>,
50131         <sys/param.h>, <time.h>; not needed to establish interface.
50132         (errno): Remove decl.
50133         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
50134         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
50135         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
50136
50137 2004-11-28  Simon Josefsson  <jas@extundo.com>
50138
50139         * lib/base64.h, base64.c: New file.
50140
50141 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
50142
50143         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
50144
50145 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
50146
50147         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
50148         (Depends-on): Remove pathmax, same.  Add mempcpy.
50149         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
50150         (Makefile.am): Append getcwd.h to lib_SOURCES.
50151         (Include): Add getcwd.h.
50152         (Maintainer): Change from Jim Meyering to "all, glibc",
50153         since getdate now uses intended-for-glibc code.
50154         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
50155         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
50156
50157 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
50158
50159         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
50160         HP's ANSI C compiler.
50161         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
50162         Declaring int functions causes warnings on some modern systems and
50163         shouldn't be needed to compile on ancient ones.
50164         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
50165         defined.
50166
50167         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
50168         with the following changes.
50169         (__set_errno): Parenthesize properly.
50170         Include <stdbool.h>.
50171         (MIN, MAX, MATCHING_INO): New macros.
50172         (__getcwd): Define with prototype, not K&R form.
50173         Use heuristics to allocate default buffer on stack if possible.
50174         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
50175         behavior, and to avoid the PATH_MAX limit when computing
50176         ../../../../...
50177         Use MATCHING_INO to compare inode number to file.
50178         Check for arithmetic overflow in size calculations.
50179         Fix bug in reallocation of dot array that caused getcwd to fail
50180         on directories nested deeper than 75.
50181         Be more careful about saving errno on error.
50182         Do not use realloc; use only free+malloc, as this is a bit
50183         more flexible and avoids a needless copy operation.
50184         Do not inspect st_dev and st_ino for symbolic links; POSIX
50185         doesn't specify the latter.
50186         Check for closedir errors.
50187         Avoid needless casts.
50188         Use "#ifdef weak_alias" around weak_alias, to be like other
50189         glibc code.
50190         The following changes to getcwd.c have effect only when used in
50191         gnulib; they have no effect inside glibc proper.
50192         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
50193         as alloca isn't used.
50194         (alloca, __alloca): Likewise.
50195         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
50196         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
50197         unconditionally, as gnulib assumes C89 or better.
50198         Do not include <sys/param.h>.
50199         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
50200         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
50201         better.
50202         (NULL) [!defined NULL]: Remove; we assume C89 or better.
50203         Include <dirent.h> in a way that is compatible with modern Autoconf.
50204         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
50205         New macros, if not already defined.
50206         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
50207         Use "_LIBC", not "defined _LIBC", for consistency.
50208         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
50209         a mempcpy module.
50210         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
50211         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
50212         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
50213         credit only to Jim Meyering and adjust the copyright dates.
50214         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
50215         <stdlib.h>, <unistd.h>, "pathmax.h".
50216         Instead, include "xgetcwd.h" (first) and "getcwd.h".
50217         (INITIAL_BUFFER_SIZE): Remove.
50218         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
50219
50220 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
50221
50222         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
50223         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
50224         Use the _ONCE methods, for efficiency.
50225         Check for fcntl.h.  In test program, include <errno.h>
50226         and <fcntl.h> if available.  Remove old K&R cruft from
50227         test program.  Check for common errors in GNU/Linux,
50228         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
50229         don't do AC_LIBOBJ, as that's getcwd.m4's job.
50230         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
50231         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
50232         name accordingly.
50233         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
50234         accommodate new getcwd.c.
50235         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
50236         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
50237         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
50238         that's all we need now.
50239
50240 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50241
50242         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
50243         argp-parse.c depends on getopt internals, that means we should
50244         always use our getopt, to be on the safe side.
50245         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
50246         order not to spoil the result of an eventual previous invocation
50247         of gl_GETOPT_SUBSTITUTE.
50248
50249 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50250
50251         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
50252         redefinition warnings. To avoid them, include the defines
50253         in `#if !defined __need_getopt ... #endif'. The only place
50254         where __getopt_argv_const is used is in definitions
50255         of getopt_long and getopt_long_only below, which are as well
50256         protected by `#ifndef __need_getopt'.
50257         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
50258         __need_getopt after including <stdio.h> and <unistd.h> These
50259         headers might have defined it.
50260
50261 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
50262
50263         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
50264
50265 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
50266
50267         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
50268         (futimens): New function, which uses futimes if available.
50269         (futimens, utimens): Support timespec==NULL, with same semantics
50270         as utime and utimens.
50271         * lib/utimens.h (futimens): New decl.
50272
50273 2004-11-23  Jim Meyering  <jim@meyering.net>
50274
50275         * lib/getopt_.h: Remove trailing blanks.
50276
50277 2004-11-23  Jim Meyering  <jim@meyering.net>
50278
50279         * lib/__fpending.c: Add comment.
50280
50281 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
50282
50283         * modules/canonicalize (Depends-on): Add xreadlink.
50284         Problem reported by James Youngman.
50285
50286 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
50287
50288         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
50289         New macros.
50290         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
50291         optopt): Use them instead of invoking ## directly; otherwise, the
50292         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
50293
50294 2004-11-19  Bruno Haible  <bruno@clisp.org>
50295
50296         * lib/strtok_r.c: Move comments from here...
50297         * lib/strtok_r.h: ... to here.
50298
50299 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50300
50301         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
50302         implementations that mishandle size_t overflow.
50303
50304 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
50305
50306         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
50307         might fail.  Problem reported by Yoann Vandoorselaere.
50308         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
50309         implementations that mishandle size_t overflow.
50310
50311 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50312
50313         * modules/canon-host (Depends-on): Add strdup.
50314
50315 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50316
50317         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
50318
50319 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50320
50321         * lib/canon-host.c: Include "strdup.h".
50322         (canon_host): Use getaddrinfo if available, so that IPv6 works.
50323         Use strdup instead of malloc/strcpy to duplicate strings.
50324
50325         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
50326         (human_space_before_unit): New constant.
50327         * lib/human.c (human_readable): Support it.
50328
50329         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
50330         (xgetcwd): Set errno correctly when failing.
50331         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
50332         the failure is actually due to a PATH_MAX problem.
50333
50334         Further getopt changes to make it more likely that glibc will
50335         buy the changes back.
50336         * lib/getopt.c (POSIXLY_CORRECT): New constant.
50337         (getopt): Use it, so to preserve glibc semantic
50338         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
50339         when compiling for libc.
50340         * lib/getopt_.h (__getopt_argv_const): Bring it back.
50341         (getopt_long, getopt_long_only): Use it.
50342
50343         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50344         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
50345         (getopt): Argv is now char * const *, as per standard.
50346         (_getopt_internal_r, _getopt_internal): Argv is now char **,
50347         not char *__getopt_argv_const *.
50348         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50349         _getopt_long_only_r): Likewise.
50350         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
50351         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50352         _getopt_long_r, _getopt_long_only_r): Likewise.
50353         * lib/getopt_.h (__getopt_argv_const): Remove.
50354         (getopt): Argv is now char * const *, as per standard.
50355
50356         * lib/getdate.y (tORDINAL): New token.
50357         (day, relunit): Allow it for relative times.
50358         (relative_time_table): Use tORDINAL for ordinals.
50359
50360 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
50361
50362         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
50363         Document that "second" isn't allowed as an ordinal number.
50364
50365 2004-11-16  Jim Meyering  <jim@meyering.net>
50366
50367         * modules/closeout (Depends-on): Add fpending.
50368
50369 2004-11-15  Jim Meyering  <jim@meyering.net>
50370
50371         * lib/closeout.c: Include "__fpending.h" once again.
50372         Include <stdbool.h>.
50373         (close_stdout): Don't fail just because stdout was closed initially,
50374         since some programs don't write to stdout in the normal course of
50375         operation (other than --version and --help), and we don't want this
50376         function to make e.g. `touch file >&-' fail.
50377         But do fail if it was closed and someone has tried to write to it.
50378         E.g., `printf foo >&-' must fail.
50379
50380 2004-11-13  Jim Meyering  <jim@meyering.net>
50381
50382         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
50383
50384 2004-11-12  Simon Josefsson  <jas@extundo.com>
50385
50386         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
50387         small doc fix is still pending.
50388
50389 2004-11-11  Simon Josefsson  <jas@extundo.com>
50390
50391         * modules/strtok_r: New file.
50392
50393         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50394         strtok_r.
50395
50396 2004-11-11  Simon Josefsson  <jas@extundo.com>
50397
50398         * m4/strtok_r.m4: New file.
50399
50400         * m4/getopt.m4: Replace opterr.
50401
50402 2004-11-11  Simon Josefsson  <jas@extundo.com>
50403
50404         * lib/strtok_r.h, strtok_r.c: New file.
50405
50406 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
50407
50408         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
50409         of replacing opterr, getopt, etc.  This should handle the
50410         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
50411
50412 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
50413
50414         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
50415         we can stop lying to compilers about the constness of argv when we
50416         are compiled outside glibc.
50417         (getopt, getopt_long, getopt_long_only): Use it.
50418         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50419         _getopt_internal, getopt): Likewise.
50420         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50421         _getopt_long_only_r): Likewise.
50422         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50423         _getopt_long_r, _getopt_long_only_r): Likewise.
50424
50425         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
50426         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
50427         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
50428         the other external symbols.
50429         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
50430         declaration, since the above renaming now works around collisions.
50431
50432 2004-11-11  Jim Meyering  <jim@meyering.net>
50433
50434         * lib/linebreak.c: Remove trailing blanks.
50435         * lib/alloca_.h: Likewise.
50436         * lib/acosl.c: Likewise.
50437         * lib/euidaccess.c: Likewise.
50438         * lib/allocsa.h: Likewise.
50439
50440 2004-11-10  Simon Josefsson  <jas@extundo.com>
50441
50442         * m4/getaddrinfo.m4: New file.
50443
50444 2004-11-10  Simon Josefsson  <jas@extundo.com>
50445
50446         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
50447
50448 2004-11-10  Simon Josefsson  <jas@extundo.com>
50449
50450         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50451         getaddrinfo.
50452
50453         * modules/getaddrinfo: New file.
50454
50455 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
50456
50457         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
50458
50459 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
50460
50461         * lib/mktime.c (SHR): New macro, which is a portable
50462         substitute for >> that should work even on Crays.
50463         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
50464         Problem reported by Mark D. Baushke in
50465         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
50466         * lib/getdate.y (SHR): Likewise.
50467         (tm_diff): Use it.
50468         * lib/strftime.c (SHR): Likewise.
50469         (tm_diff): Use it.
50470         * lib/quotearg.c (struct quoting_options): Use unsigned int for
50471         quote_these_too, so that right shifts are well defined.  All uses
50472         changed.
50473
50474 2004-11-10  Jim Meyering  <jim@meyering.net>
50475
50476         Ensure that no close failure goes unreported.
50477         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
50478         return early when it seems there's nothing to flush.
50479         Don't include __fpending.h.
50480
50481 2004-11-10  Jim Meyering  <jim@meyering.net>
50482
50483         * modules/closeout (Depends-on): Remove fpending.
50484
50485 2004-11-10  Jim Meyering  <jim@meyering.net>
50486
50487         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
50488
50489 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50490
50491         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
50492         gl_FUNC_STRFTIME.
50493         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
50494         and AC_REQUIRE when possible, to avoid duplicate checks.
50495         Check for <wchar.h>.
50496
50497 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
50498
50499         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
50500
50501 2004-11-09  Bruno Haible  <bruno@clisp.org>
50502
50503         * m4/sockpfaf.m4: New file.
50504
50505 2004-11-05  Bruno Haible  <bruno@clisp.org>
50506
50507         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
50508         Reported by Mark D. Baushke <mdb@cvshome.org>.
50509
50510 2004-11-04  Bruno Haible  <bruno@clisp.org>
50511
50512         2004-09-11  Bruno Haible  <bruno@clisp.org>
50513                 * allocsa.valgrind: New file.
50514         2004-02-06  Bruno Haible  <bruno@clisp.org>
50515                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
50516                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
50517                 Reported by Christopher Seip <chris.seip@hp.com>.
50518
50519 2004-11-04  Bruno Haible  <bruno@clisp.org>
50520
50521         * modules/allocsa (Files): Add lib/allocsa.valgrind.
50522         (Makefile.am): Distribute it.
50523
50524 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
50525
50526         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
50527         with errno == ERANGE if the buffer is too small.
50528         Problem reported by Mark D. Baushke.
50529
50530 2004-11-03  Albert Chin  <china@thewrittenword.com>
50531             Paul Eggert  <eggert@cs.ucla.edu>
50532
50533         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
50534         equivalent, substitute $ac_type for equivalent type rather than
50535         blindly using uint32_t *always* which won't work if uint32_t is not
50536         available.  Define _UINT32_T to work around typedef of uint32_t if
50537         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
50538         2.5.1.
50539
50540 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50541
50542         * m4/jm-macros.m4: Sync from coreutils.
50543         (gl_MACROS): Check for mbrlen, for pathchk.
50544         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
50545
50546 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50547
50548         * lib/xreadlink.c (MAXSIZE): New macro.
50549         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
50550         size does not exceed MAXSIZE.  Avoid cast.
50551         As suggested by Mark D. Baushke in
50552         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
50553         if readlink fails with buffer size just under MAXSIZE, try again
50554         with MAXSIZE.
50555
50556 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
50557
50558         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
50559
50560 2004-11-02  Derek R. Price  <derek@ximbiot.com>
50561         and  Paul Eggert  <eggert@cs.ucla.edu>
50562
50563         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
50564         (get_date): Overparenthesize to avoid GCC warning.
50565
50566 2004-11-02  Bruno Haible  <bruno@clisp.org>
50567
50568         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
50569         returns void.
50570
50571 2004-11-02  Bruno Haible  <bruno@clisp.org>
50572
50573         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
50574         function returns void.
50575
50576 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50577
50578         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
50579         fflush_unlocked, flockfile, funlockfile, funlockfile,
50580         fputs_unlocked, putc_unlocked.
50581
50582 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50583
50584         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
50585         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
50586         already declared.
50587
50588 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50589
50590         * modules/getdate (Files): Add doc/getdate.texi.
50591         (Depends-on): Add setenv, xalloc.
50592
50593 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50594
50595         * lib/getdate.y: Add support for TZ="foo" within a date string.
50596         Fix some bugs near time_t boundaries.  Reject dates with
50597         out-of-range components, e.g., "Sept 31".
50598         Include <stdlib.h>, "setenv.h", "xalloc.h".
50599         (ISDIGIT_LOCALE): Remove; unused.
50600         Note that the TZ and time functions used here are not reentrant.
50601         (mktime_ok, get_tz): New functions.
50602         (TZBUFSIZE): New constant.
50603         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
50604         This requires that we sometimes generate our own TZ="XXX..." setting.
50605
50606 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
50607
50608         * doc/getdate.texi: New file, from coreutils with modifications for
50609         the new TZ parsing.
50610
50611 2004-10-27  Derek R. Price  <derek@ximbiot.com>
50612
50613         * lib/mktime.c (not_equal_tm): Remove redundant check.
50614
50615 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50616
50617         * modules/regex (lib_SOURCES): Add regex.c.
50618         Reported by James Youngman in
50619         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
50620
50621 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50622
50623         * lib/getdate.y: Use Bison 1.875 features, and some minor
50624         code cleanups.  This change does not affect semantics.
50625         Don't include <stdlib.h>; no longer needed.
50626         Don't include unlocked-io.h; only the "#if TEST" code uses
50627         stdio, and performance isn't crucial there.
50628         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
50629         Bison 1.875 features as described below.
50630         All uses of "PC." replaced by "pc->".
50631         (YYSTYPE): Add a forward declaration.
50632         (yylex, yyerror): Use full prototypes in forward decls.
50633         Use "%pure-parser" rather than obsolescent "%pure_parser".
50634         Use %parse-param and %lex-param instead of obsolescent
50635         YYPARSE_PARAM and YYLEX_PARAM.
50636         (meridian_table, month_and_day_table, time_units_table,
50637         relative_time_table, time_zone_table, military_table,
50638         lookup_zone, lookup_word, get_date):
50639         Use NULL instead of 0 where appropriate.
50640         (to_hour): Avoid abort (), to avoid a dependency on
50641         stdlib.h.
50642         (yyerror, yylex): Now accepts parser_control * arg.
50643         (main) [TEST]: Use '\0' rather than 0 for char.
50644
50645 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50646
50647         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
50648
50649 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50650
50651         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
50652         It's now the caller's responsibility to handle the case where
50653         !HAVE_GETPAGESIZE && !defined getpagesize.
50654
50655         * lib/mktime.c (leapyear): Arg is long int, not int.
50656
50657 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
50658
50659         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
50660
50661 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
50662
50663         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
50664         missing.  Problem reported by James Youngman.
50665
50666 2004-10-16  Simon Josefsson  <jas@extundo.com>
50667
50668         * gnulib-tool: Fix comments.  Fix parse problem.
50669         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
50670
50671 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
50672
50673         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
50674         implementation of getopt_long.  Problem reported by Alexander Taler in:
50675         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
50676
50677 2004-10-15  Bruno Haible  <bruno@clisp.org>
50678
50679         * gnulib-tool: Untabify. Initialize supplied_libname.
50680         (func_usage): More homogenous output.
50681         (func_modules_transitive_closure, func_modules_to_filelist,
50682         func_emit_lib_Makefile_am): New functions.
50683         (func_import): New function, extracted from big case statement. Use
50684         func_get_license, func_modules_transitive_closure,
50685         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
50686         opt_lgpl. Don't use test -a, as it's not portable.
50687         (func_create_testdir): Use func_modules_transitive_closure,
50688         func_modules_to_filelist, func_emit_lib_Makefile_am.
50689
50690 2004-10-15  Bruno Haible  <bruno@clisp.org>
50691
50692         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
50693
50694 2004-10-15  Bruno Haible  <bruno@clisp.org>
50695
50696         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
50697         the portions belonging to each module.
50698         Suggested by Derek Robert Price <derek@ximbiot.com>.
50699
50700 2004-10-12  Simon Josefsson  <jas@extundo.com>
50701
50702         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
50703         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
50704         to real functions.
50705
50706 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50707
50708         * modules/vsnprintf: New file.
50709
50710 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50711
50712         * m4/vsnprintf.m4: New file.
50713
50714 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50715
50716         * lib/vsnprintf.h: New file.
50717         * lib/vsnprintf.c: New file.
50718
50719 2004-10-11  Bruno Haible  <bruno@clisp.org>
50720
50721         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
50722         vsnprintf.
50723
50724 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50725
50726         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
50727
50728 2004-10-07  Bruno Haible  <bruno@clisp.org>
50729
50730         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
50731         fits into the provided buffer.
50732
50733 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50734
50735         * lib/diacrit.c, diacrit.h: Add GPL notice.
50736
50737         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
50738         notice.
50739         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
50740         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
50741         This avoids a potential constant-folding bug.
50742
50743 2004-10-05  Bruno Haible  <bruno@clisp.org>
50744
50745         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
50746         for the declaration of strsep.
50747
50748 2004-10-05  Bruno Haible  <bruno@clisp.org>
50749
50750         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
50751
50752 2004-10-04  Simon Josefsson  <jas@extundo.com>
50753
50754         * modules/memmem: New file.
50755         * tests/test-memmem.c: New file.
50756         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
50757
50758 2004-10-04  Simon Josefsson  <jas@extundo.com>
50759
50760         * m4/memmem.m4: New file.
50761
50762 2004-10-04  Simon Josefsson  <jas@extundo.com>
50763
50764         * lib/memmem.h: New file.
50765         * lib/memmem.c: New file, taken from glibc.
50766
50767 2004-10-04  Simon Josefsson  <jas@extundo.com>
50768
50769         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
50770         '#ifdef USE_UNLOCKED_IO'.
50771
50772 2004-10-04  Simon Josefsson  <jas@extundo.com>
50773
50774         * config/srclist.txt: Add memmem from glibc.
50775
50776 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50777
50778         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
50779
50780         * modules/argmatch, modules/argp, modules/closeout, modules/error,
50781         modules/exclude, modules/getdate, modules/getline,
50782         modules/getndelim2, modules/getpass, modules/getpass-gnu,
50783         modules/getusershell, modules/linebuffer, modules/md5,
50784         modules/mountlist, modules/posixtm, modules/readtokens,
50785         modules/readutmp, modules/regex, modules/sha1,
50786         modules/version-etc, modules/yesno:
50787         Remove dependency on unlocked-io.
50788
50789 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50790
50791         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
50792
50793         * m4/unlocked-io.m4: Add copyright notice.
50794         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
50795
50796 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50797
50798         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
50799         * lib/xmalloc.c (xmemdup): Likewise.
50800         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
50801         XFREE): Remove these long-obsolescent macros.
50802         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
50803         * lib/xstrdup.c: Remove.
50804
50805         * lib/regex.c (re_comp): Cast gettext return value to char *,
50806         Problem reported by Martin Neitzel via Mark D. Baushke.
50807
50808 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
50809
50810         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
50811         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
50812         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
50813         regex.c, sha1.c, version-etc.c, yesno.c:
50814         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
50815         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
50816         the includer's responsibility.
50817
50818         Sync from coreutils.
50819
50820         * lib/modechange.c (mode_compile): Don't decrement a pointer that
50821         points to the start of a string, as the C Standard says the
50822         resulting behavior is undefined.
50823
50824         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
50825         simple -> simple_backups, numbered_existing ->
50826         numbered_existing_backups, numbered -> numbered_backups
50827         to avoid shadowing problems.  All uses changed.
50828         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
50829         * lib/backupfile.c (check_extension, numbered_backup):
50830         Rename locals to avoid shadowing 'basename'.
50831         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
50832         once.
50833
50834         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
50835         * lib/.cvsignore: Add getopt.h.
50836
50837 2004-10-04  Bruno Haible  <bruno@clisp.org>
50838
50839         * modules/README: New file.
50840         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
50841         not a module.
50842
50843 2004-10-02  Jim Meyering  <jim@meyering.net>
50844
50845         * lib/dirfd.h, getpagesize.h: Add copyright notice.
50846
50847 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50848
50849         * modules/strsep: New file.
50850
50851 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50852
50853         * m4/strsep.m4: New file.
50854
50855 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50856
50857         * lib/strsep.h: New file.
50858         * lib/strsep.c: New file.
50859
50860 2004-10-01  Simon Josefsson  <jas@extundo.com>
50861
50862         * lib/snprintf.c (snprintf): Handle size==0.
50863
50864 2004-10-01  Simon Josefsson  <jas@extundo.com>
50865             Bruno Haible  <bruno@clisp.org>
50866
50867         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
50868         (snprintf): Declare 'args'.
50869
50870 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
50871
50872         * lib/snprintf.c: Remove comments as to why each header is needed.
50873
50874 2004-10-01  Bruno Haible  <bruno@clisp.org>
50875
50876         * MODULES.html.sh: Add strsep.
50877
50878 2004-09-30  Simon Josefsson  <jas@extundo.com>
50879
50880         * modules/snprintf: New file.
50881
50882 2004-09-30  Simon Josefsson  <jas@extundo.com>
50883
50884         * m4/snprintf.m4: New file.
50885
50886 2004-09-30  Simon Josefsson  <jas@extundo.com>
50887
50888         * lib/snprintf.h, lib/snprintf.c: New files.
50889
50890 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
50891
50892         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
50893         (hol_entry_help): Never translate an empty string.
50894         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
50895         * lib/argp.h (OPTION_NO_TRANS): New option.
50896
50897 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
50898
50899         * modules/argp (Maintainer): Replace Simon Josefsson
50900         by Sergey Poznyakoff.
50901
50902 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
50903
50904         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
50905         changes merged back into glibc.
50906
50907 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
50908
50909         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
50910
50911 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
50912
50913         * lib/xvasprintf.c: Include xalloc.h.
50914         (xvasprintf): Use xalloc_die, not xmalloc_die.
50915
50916 2004-09-29  Bruno Haible  <bruno@clisp.org>
50917
50918         * modules/alloca-opt: New file, derived from modules/alloca.
50919         * modules/allocsa: Depend on alloca-opt instead of alloca.
50920         * modules/setenv: Likewise.
50921         * modules/vasnprintf: Likewise.
50922         * MODULES.html.sh: Add alloca-opt.
50923
50924 2004-09-28  Simon Josefsson  <jas@extundo.com>
50925
50926         * gnulib-tool: New parameter --lgpl, to asseert that modules are
50927         LGPL, and to replace license template from GPL to LGPL.
50928
50929 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
50930
50931         * modules/dummy: Change license to LGPL.
50932
50933 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
50934
50935         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
50936
50937 2004-09-24  Simon Josefsson  <jas@extundo.com>
50938
50939         * modules/minmax (License): Change from GPL to LGPL.
50940
50941 2004-09-23  Simon Josefsson  <jas@extundo.com>
50942
50943         * gnulib-tool (--import): Typo.
50944
50945 2004-09-23  Simon Josefsson  <jas@extundo.com>
50946
50947         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
50948
50949 2004-09-22  Bruno Haible  <bruno@clisp.org>
50950
50951         * modules/*: Add 'License' field.
50952         * gnulib-tool: Accept --extract-license option.
50953         (func_get_license): New function.
50954
50955 2004-09-21  Bruno Haible  <bruno@clisp.org>
50956
50957         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
50958         Reported by Simon Josefsson.
50959
50960 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
50961
50962         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
50963         gl_AC_TYPE_LONG_LONG.
50964
50965 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
50966
50967         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
50968
50969 2004-09-18  Simon Josefsson  <jas@extundo.com>
50970         and  Paul Eggert  <eggert@cs.ucla.edu>
50971
50972         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
50973         calls with autoreconf.  Define GL_LIB.
50974
50975 2004-09-14  Karl Berry  <karl@gnu.org>
50976
50977         * config/srclist.txt: unsync setenv.c, sigh.
50978
50979 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
50980
50981         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
50982         Problem reported by Bruno Haible in:
50983         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
50984
50985 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
50986
50987         * config/srclist.txt: Comment out argp-pvh.c.
50988
50989 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
50990
50991         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
50992         in case some system header has #define'd it.  Problem reported by
50993         Soeren D. Schulze in
50994         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
50995
50996 2004-09-09  Karl Berry  <karl@gnu.org>
50997
50998         * regex.[ch]: delete from the root.  These were supposed to be
50999                 synced with emacs cvs, but this has not happened for about
51000                 a year, and anyway nothing else uses emacs regex.[ch].
51001                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
51002                 lib/regex[.ch] is untouched.
51003
51004 2004-09-09  Bruno Haible  <bruno@clisp.org>
51005
51006         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
51007
51008 2004-09-09  Bruno Haible  <bruno@clisp.org>
51009
51010         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
51011         modifications.
51012         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
51013
51014 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
51015
51016         * modules/xvasprintf: New file.
51017         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
51018
51019 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
51020
51021         * lib/xvasprintf.h: New file.
51022         * lib/xvasprintf.c: New file.
51023         * lib/xasprintf.c: New file.
51024
51025 2004-09-08  Bruno Haible  <bruno@clisp.org>
51026
51027         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
51028
51029 2004-09-08  Bruno Haible  <bruno@clisp.org>
51030
51031         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
51032         length is > INT_MAX.
51033         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
51034         more.
51035
51036 2004-09-08  Bruno Haible  <bruno@clisp.org>
51037
51038         * lib/stdint_.h: New file, taken from GNU clisp.
51039
51040 2004-09-08  Bruno Haible  <bruno@clisp.org>
51041             Oskar Liljeblad  <oskar@osk.mine.nu>
51042
51043         * modules/stdint: New file.
51044         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
51045
51046 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51047
51048         Import from coreutils.
51049         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
51050         strings on unbounded length.  alloca's performance benefits aren't
51051         that important here.
51052         (V_STRDUP): Remove.
51053         (parse_with_separator): New function, with most of the internals
51054         of the old parse_user_spec.  Allow user to omit both user and group,
51055         for compatibility with FreeBSD.
51056         Clone only the user name, not the entire spec.
51057         Do not set *uid, *gid unless entirely successful.
51058         Avoid memory leak in some failing cases.
51059         Fix regression for USER.GROUP reported by Dmitry V. Levin in
51060         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
51061         (parse_user_spec): Rewrite to use parse_with_separator.
51062
51063 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51064
51065         * modules/userspec: Don't depend on alloca.
51066
51067 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
51068
51069         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
51070
51071 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
51072
51073         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
51074         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
51075         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
51076
51077 2004-08-16  Simon Josefsson  <jas@extundo.com>
51078
51079         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
51080         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
51081         Add --dry-run for --import.
51082         Let user provided command line parameters override configure.ac
51083         settings.
51084
51085 2004-08-12  Simon Josefsson  <jas@extundo.com>
51086
51087         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
51088         as discussed with Paul Eggert in threads rooted at
51089         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
51090         and
51091         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
51092         Before, the test was empty, and relied on ELIDE_CODE in source
51093         code.)
51094         (gl_PREREQ_GETOPT): New macro.
51095         (gl_GETOPT): Use them.
51096
51097 2004-08-12  Simon Josefsson  <jas@extundo.com>
51098
51099         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
51100         * lib/getopt_.h: Renamed from getopt.h.
51101
51102 2004-08-12  Simon Josefsson  <jas@extundo.com>
51103
51104         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
51105         Change default library name from libfoo to libgnu.
51106         Now, if you have a configure.ac that says:
51107                 gl_SOURCE_BASE(gl)
51108                 gl_M4_BASE(gl/m4)
51109                 gl_MODULES(error getopt etcetera)
51110                 gl_INIT
51111         you can import all you need by running:
51112                 ../gnulib/gnulib-tool --import
51113
51114         * modules/getopt (Files): Rename getopt.h to getopt_.h.
51115         (Makefile.am): Rewrite, use logic from argz.
51116         (Include): Use <getopt.h> instead of "getopt.h".
51117
51118 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51119
51120         * modules/argp (Files): Add m4/unlocked-io.m4.
51121         (Depends-on): Add extensions.
51122
51123 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51124
51125         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
51126         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
51127         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
51128         Check for program_invocation_name, program_invocation_short_name,
51129         flockfile, funlockfile, features.h, _getopt_long_only_r.
51130
51131 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51132
51133         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
51134         its complicated substitute.
51135         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
51136         and program_invocation_name.
51137         (__argp_basename) [!_LIBC]: Remove; the only use was
51138         replaced by its body.
51139         (__argp_short_program_name): Change condition from
51140         !defined __argp_short_program_name to
51141         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
51142         to match argp-namefrob.h.
51143         (__argp_failure): Don't assume strerror_r returns char *.
51144         * lib/argp-parse.c (N_): Define unconditionally.
51145         (argp_default_options): Fill out initializers with 0 to avoid
51146         gcc warnings.
51147
51148 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
51149
51150         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
51151         getopt1.c.
51152
51153 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51154
51155         Merge from coreutils.
51156
51157         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
51158
51159         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
51160         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
51161
51162 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51163
51164         Merge from coreutils.
51165
51166         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
51167         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
51168         for Reliant Unix 5.43.
51169
51170         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
51171         (union fooround): Use uintmax_t, not long int.
51172         The rest is a merge from libc:
51173         [defined _LIBC]: Include <shlib-compat.h>.
51174         (_obstack) [defined _LIBC]: Remove after 2.3.4.
51175
51176         * lib/settime.c (settime): Recode to avoid warning with
51177         Sun Forte C 6U2.
51178
51179         * lib/strverscmp.c: Convert to UTF-8.
51180
51181 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
51182
51183         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
51184         m4/uintmax_t.m4.
51185
51186 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51187
51188         * modules/xalloc-die: New file.
51189         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
51190
51191         * modules/md5 (Files): Add m4/uint32_t.m4.
51192         * modules/sha1: Renamed from modules/sha.
51193         (Files):
51194         Rename lib/sha.h to lib/sha1.h.
51195         Rename lib/sha.c to lib/sha1.c.
51196         Rename m4/sha.m4 to m4/sha1.m4.
51197         (lib_SOURCES): Likewise.
51198         (configure.ac): Rename gl_SHA to gl_SHA1.
51199         (Include): sha.h -> sha1.h.
51200
51201 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51202
51203         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
51204         * m4/sha1.m4: Renamed from sha.m4.
51205         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
51206
51207 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
51208
51209         * lib/obstack.h (obstack_empty_p):
51210         Don't assume that chunk->contents is suitably aligned.
51211         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
51212         Likewise. Problem reported by Benno in
51213         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
51214
51215         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
51216         readable.  This could be improved further but it'd take some work.
51217
51218 2004-08-08  Simon Josefsson  <jas@extundo.com>
51219
51220         * modules/xgethostname (Depends-on): Remove exit and error (not
51221         used).
51222
51223         * modules/getpass-gnu: Add getpass.h.
51224         (Depends-on): Add stdbool.
51225         * modules/getpass: Add getpass.h.
51226
51227 2004-08-08  Simon Josefsson  <jas@extundo.com>
51228
51229         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
51230         Check getpass declaration.
51231
51232 2004-08-08  Simon Josefsson  <jas@extundo.com>
51233
51234         * lib/xgethostname.c: Don't include error.h (not used).
51235
51236         * lib/getpass.h: Add.
51237         * lib/getpass.c: Include getpass.h first.
51238
51239 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
51240
51241         * lib/xalloc-die.c: New file.
51242         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
51243         All uses removed.
51244         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
51245         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
51246         xalloc-die.c.
51247         (_, N_, xalloc_die): Move to xalloc-die.c.
51248         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
51249         so that we needn't mess with xalloc_msg_memory_exhausted.
51250
51251         * lib/sha1.h: Renamed from sha.h.
51252         (SHA1_H): Renamed from _SHA_H.
51253         (sha1_ctx): Renamed from sha_ctx.
51254         (sha1_init_ctx): Renamed from sha_init_ctx.
51255         (sha1_process_block): Renamed from sha_process_block.
51256         (sha1_process_bytes): Renamed from sha_process_bytes.
51257         (sha1_finish_ctx): Renamed from sha_finish_ctx.
51258         (sha1_read_ctx): Renamed from sha_read_ctx.
51259         (sha1_stream): Renamed from sha_stream.
51260         (sha1_buffer): Renamed from sha_buffer.
51261         * lib/sha1.c: Likewise; renamed from sha.c.
51262         Do not include <sys/types.h>.
51263         Include <stddef.h> rather than <stdlib.h>.
51264
51265 2004-08-08  Bruno Haible  <bruno@clisp.org>
51266
51267         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
51268         FILESYSTEM_PREFIX_LEN.
51269         * lib/progreloc.c: Likewise.
51270         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
51271
51272 2004-08-06  Simon Josefsson  <jas@extundo.com>
51273
51274         * modules/progname (Depends-on): Don't depend on stdbool.
51275
51276 2004-08-06  Simon Josefsson  <jas@extundo.com>
51277
51278         * modules/getsubopt: New file.
51279         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51280         getsubopt.
51281
51282 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51283
51284         More merge from coreutils.
51285
51286         * m4/utimens.m4, m4/utimecmp.m4: New files.
51287         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
51288         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
51289         prereq.m4, sha.m4: Import changes from coreutils.
51290
51291 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51292
51293         More merge from coreutils.
51294         * modules/raise, modules/readtokens0, modules/utimens:
51295         * modules/utimecmp, module/xnanosleep: New files.
51296         * modules/strftime: Add lib/strftime.h.
51297         Change include from <time.h> to "strftime.h".
51298         * modules/yesno: Add lib/yesno.h.
51299         * modules/backupfile: Remove lib/addext.c.
51300         * modules/euidaccess: Add stat-macros.h.
51301         * modules/canonicalize, modules/euidaccess,
51302         modules/filemode, modules/lchown, modules/makepath,
51303         modules/rmdir, modules/stat: Likewise.
51304
51305 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
51306
51307         Merge from tar.
51308         * lib/argp-help.c (make_hol, hol_append): Don't assume that
51309         SIZE_MAX is a valid preprocessor constant.
51310         (__argp_basename): Change from "#ifndef _LIBC"
51311         to "#ifndef __argp_short_program_name", so that
51312         we don't compile these functions for tar.
51313
51314         More merges from coreutils.
51315         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
51316         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
51317         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
51318         * lib/addext.c: Remove; no longer needed.
51319         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
51320         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
51321         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
51322         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
51323         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
51324         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
51325         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
51326         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
51327         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
51328         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51329         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
51330         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
51331         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
51332         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
51333         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
51334         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
51335         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
51336         Import changes from coreutils.
51337
51338 2004-08-05  Simon Josefsson  <jas@extundo.com>
51339
51340         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
51341
51342 2004-08-05  Simon Josefsson  <jas@extundo.com>
51343
51344         * m4/getsubopt.m4: New file.
51345
51346 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51347
51348         Merge from coreutils.
51349
51350         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
51351         * m4/getcwd-path-max.m4: New files.
51352
51353         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
51354         FILESYSTEM_PREFIX_LEN ->
51355         FILE_SYSTEM_PREFIX_LEN.
51356         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
51357         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
51358         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
51359         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
51360
51361         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
51362         prerequisite modules now handle the DOS stuff.
51363         Don't check for unistd.h.
51364
51365 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51366
51367         Merge from coreutils.
51368
51369         * lib/.gdb-history: Remove; this doesn't belong here.
51370
51371         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
51372         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
51373         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
51374         * lib/getcwd.c: New files.
51375
51376         * lib/dirname.h: Include <stdbool.h>.
51377         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
51378         for consistency with POSIX terminology.  All uses changed.
51379         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
51380         (strip_trailing_slashes): Use bool for booleans.
51381         * lib/stripslash.c (strip_trailing_slashes): Likewise.
51382
51383         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
51384         sometimes returns a positive errno value even when it succeeds.
51385         (print_errno_message) [!LIBC]: Fall back on strerror if
51386         __strerror_r fails.
51387
51388         * lib/path-concat.c (mempcpy): Don't define if a system header defines
51389         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
51390         (longest_relative_suffix): New function.
51391         (path_concat): Use it.  Assume first argument is not NULL.
51392         Port to DOS.  Omit redundant separators.
51393         Report an error instead of returning NULL.
51394         Use mempcpy instead of memcpy.
51395         (xpath_concat): Remove: not declared or used.
51396
51397         * lib/same.h: Include <stdbool.h>
51398         (same_name): Return bool, not int.
51399         * lib/same.c (same_name): Likewise.
51400         (errno): Don't declare; we assume C89 or better now.
51401
51402         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
51403         if not already defined.
51404
51405         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
51406         * lib/dup-safer.c (errno): Likewise.
51407
51408 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
51409
51410         Merge from coreutils.
51411         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
51412         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
51413         * modules/path-concat: Don't depend on strdup.
51414
51415 2004-08-03  Simon Josefsson  <jas@extundo.com>
51416
51417         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
51418         * lib/progname.h: Don't include stdbool.h.
51419
51420 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51421
51422         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
51423         * MODULES.html.sh (func_all_modules): Remove fatal.
51424
51425 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51426
51427         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
51428
51429 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
51430
51431         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
51432         working.
51433
51434 2004-08-02  Simon Josefsson  <jas@extundo.com>
51435
51436         * lib/getsubopt.h: New file, with comments from Bruno Haible.
51437         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
51438         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
51439
51440 2004-08-01  Simon Josefsson  <jas@extundo.com>
51441
51442         * lib/xgetdomainname.c: Include stdlib.h, for free().
51443
51444 2004-07-19  Bruno Haible  <bruno@clisp.org>
51445
51446         * MODULES.html.sh (func_all_modules): Add dummy.
51447
51448 2004-07-16  Simon Josefsson  <jas@extundo.com>
51449
51450         * modules/dummy: New file.
51451
51452 2004-07-16  Simon Josefsson  <jas@extundo.com>
51453
51454         * lib/dummy.c: New file.
51455
51456 2004-07-16  Bruno Haible  <bruno@clisp.org>
51457
51458         * lib/backupfile.h: Add extern "C" for C++.
51459         * lib/closeout.h: Likewise.
51460         * lib/copy-file.h: Likewise.
51461         * lib/findprog.h: Likewise.
51462         * lib/full-write.h: Likewise.
51463         * lib/pathname.h: Likewise.
51464         * lib/progname.h: Likewise.
51465         * lib/stpcpy.h: Likewise.
51466         * lib/stpncpy.h: Likewise.
51467         * lib/strcase.h: Likewise.
51468         * lib/strstr.h: Likewise.
51469         * lib/xalloc.h: Likewise.
51470
51471         * lib/mbswidth.h: Add extern "C" for C++.
51472         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
51473
51474 2004-07-13  Robert Millan  <robertmh@gnu.org>
51475
51476         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
51477
51478 2004-07-09  Simon Josefsson  <jas@extundo.com>
51479
51480         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
51481         failed without this.)
51482
51483 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51484
51485         * modules/chown (Files): Add lib/fchown-stub.c, since
51486         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
51487
51488 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51489
51490         * lib/fchown-stub.c: New file.
51491
51492 2004-06-24  Jim Meyering  <jim@meyering.net>
51493
51494         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
51495
51496 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51497
51498         * modules/argz: Omit "#include".
51499
51500         * MODULES.html.sh (func_all_modules): Add calloc, to match
51501         2004-06-01 addition of calloc module.
51502
51503 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51504
51505         * m4/argz.m4: New file, which is autoupdated from libtool.
51506
51507 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51508
51509         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
51510         libtool.
51511
51512 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
51513
51514         * config/srclist-update: Don't insist on "USA." before the
51515         close-comment, as libtool omits the period and puts the */ on a
51516         separate line.
51517         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
51518         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
51519
51520 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
51521
51522         * modules/argz: New file.
51523         * MODULES.html.sh (func_all_modules): Add argz.
51524
51525 2004-06-12  Jim Meyering  <jim@meyering.net>
51526         and  Paul Eggert  <eggert@cs.ucla.edu>
51527
51528         * modules/hash (Files): Add lib/xalloc.h.
51529         * modules/pipe (Depends-on): Add wait-process.
51530         * modules/stat (Depends-on): Add xalloc.
51531         * modules/userspec (Files): Add lib/userspec.h.
51532         * modules/xstrto
51533
51534         Upgrade from gettext-0.13.
51535         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
51536         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
51537         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
51538
51539 2004-06-10  Jim Meyering  <jim@meyering.net>
51540
51541         * lib/calloc.c: New file.
51542
51543 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
51544
51545         * lib/getdate.y (yylex): Allow space between sign and number.
51546         Problem reported by Dan Jacobson.
51547
51548 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
51549
51550         Merge from coreutils CVS.
51551
51552         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
51553         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
51554         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
51555         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
51556         xstrtol.m4: Fix copyright date and/or serial number.
51557
51558         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
51559         See if we need an fchown replacement.
51560         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
51561         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
51562         and use the replacement function if we detect either defect.
51563
51564         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
51565         gl_UTIMECMP.
51566
51567 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
51568         and  Jim Meyering  <jim@meyering.net>
51569
51570         Merge from coreutils CVS.
51571
51572         * lib/stat-macros.h: New file, with contents from file-type.h
51573         and coreutils' system.h.
51574         * lib/file-type.c: Include "stat-macros.h".
51575         * lib/file-type.h (file_type): Move all macro definitions to new file,
51576         stat-macros.h.
51577
51578         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
51579         Wrap old code with this conditional.
51580         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
51581         function that does not dereference symlinks.
51582         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
51583
51584         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
51585         dependency problems.
51586         (xreadlink): Accept new arg SIZE, for efficiency.
51587         All decls and uses changed.
51588         * lib/xreadlink.h: Include <stddef.h>, for size_t.
51589
51590         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
51591         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
51592
51593         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
51594         sysexits.h.
51595
51596 2004-06-01  Jim Meyering  <jim@meyering.net>
51597
51598         * m4/calloc.m4: New file.
51599
51600 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
51601
51602         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
51603         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
51604         Also, fix a typo in a diagnostic.
51605
51606 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
51607
51608         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
51609         or AC_FUNC_REALLOC.
51610
51611 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
51612
51613         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
51614         macros to be defined.
51615         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
51616         the allocator returns NULL because the requested size is zero.
51617
51618 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
51619
51620         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
51621         var.  Add comment explaining why libc still defines it.  This
51622         merges the following patch from glibc:
51623         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
51624
51625 2004-05-20  Andreas Schwab  <schwab@suse.de>
51626
51627         * m4/free.m4: Replace free if it not known to work, not the other
51628         way round.
51629
51630 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
51631
51632         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
51633         present in glibc since revision 1.1 of this file.
51634         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
51635         obstack_alignment_mask, obstack_alloc, obstack_base,
51636         obstack_blank, obstack_blank_fast, obstack_chunk_size,
51637         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
51638         obstack_grow0, obstack_init, obstack_int_grow,
51639         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
51640         obstack_next_free, obstack_object_size, obstack_ptr_grow,
51641         obstack_ptr_grow_fast, obstack_room): Remove declarations of
51642         nonexistent functions.
51643
51644 2004-05-18  Karl Berry  <karl@gnu.org>
51645
51646         * config/srclist.txt: break link for vasnprintf.c.
51647
51648 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51649
51650         Port obstack to the AS/400, where pointers are 16 bytes wide and
51651         you cannot cast an integer to a valid pointer.  This patch is
51652         currently waiting to be integrated into glibc; see
51653         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
51654
51655         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
51656         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
51657         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
51658         (struct obstack): temp member is now a union of a pointer and
51659         an integer, instead of an integer.  All integer uses changed.
51660         This does not affect the physical layout of struct obstack,
51661         except on hosts (like the AS/400) where the size or alignment of
51662         void * is greater than that of ptrdiff_t.
51663         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
51664         __STDC__)]: Store temporary in pointer member of union, not
51665         integer member.
51666         * lib/obstack.c: Include <stddef.h>, for offsetof.
51667         (struct fooalign): Remove; it doesn't need a name.
51668         (union fooround): Change double to long double, and add void *.
51669         (DEFAULT_ALIGNMENT): Use offsetof to compute.
51670         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
51671         not a macro.  Hence the values are always int; so remove all
51672         casts-to-int in uses.
51673
51674 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
51675
51676         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
51677         we can get this patch merged into glibc.
51678
51679 2004-05-17  Derek R. Price  <derek@ximbiot.com>
51680             Paul Eggert  <eggert@cs.ucla.edu>
51681
51682         * m4/argp: Depend on alloca.
51683
51684 2004-05-17  Derek R. Price  <derek@ximbiot.com>
51685             Paul Eggert  <eggert@cs.ucla.edu>
51686
51687         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
51688         freecoding.
51689
51690 2004-05-17  Bruno Haible  <bruno@clisp.org>
51691
51692         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
51693         precision that consists of a '.' followed by an empty digit string.
51694         Patch by Tor Lillqvist <tml@iki.fi>.
51695
51696 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51697
51698         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
51699         for backward compatibility with older code.  We need our own
51700         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
51701         it under some other name, and our alloca.h will define it.
51702
51703 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
51704             Derek Price  <derek@ximbiot.com>
51705
51706         * lib/alloca.c: Include <alloca.h>, to get our interface.
51707         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
51708         include <alloca.h> first.  Use C89 prototype for alloca; this
51709         requires including <stddef.h> for size_t.  Use extern "C" if C++.
51710         Use #elif for simplicity, since we can assume C89 now.
51711         Don't try to source the system alloca.h since it will not be found
51712         and to prevent recursively including its replacement.
51713         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
51714         * lib/regex.c: Likewise.
51715
51716 2004-05-16  Derek Price  <derek@ximbiot.com>
51717             Paul Eggert  <eggert@cs.ucla.edu>
51718
51719         getline cleanup.  This changes the getndelim2 API: both order of
51720         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
51721         no delimiter).
51722
51723         * lib/getline.c: Don't include stddef.h or stdio.h, since our
51724         interface does that.
51725         (getline): Always use getdelim, so that we don't have two
51726         copies of this code.
51727         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
51728         if available.
51729         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
51730         (GETNDELIM2_MAXIMUM): New macro.
51731         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
51732         instead of the old practice of delim2==0.  All callers changed.
51733         Return -1 on overflow, instead of returning junk.
51734         Do not set *linesize unless allocation succeeds.
51735         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
51736         that we include sys/types.h.
51737         * lib/getnline.h: Likewise.
51738         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
51739         (getndelim2): Reorder arguments.
51740         * lib/getnline.c (getnline, getndelim):
51741         Don't discard the NMAX argument.
51742         (getnline): Invoke getndelim, to avoid code duplication.
51743         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
51744         of (size_t) -1 by callers of the getnline family.
51745
51746 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51747
51748         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
51749         Check for gettimeofday.
51750         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
51751         Check for settimeofday, stime.
51752
51753 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
51754
51755         * lib/nanosleep.c (suspended): Change its type from int to
51756         sig_atomic_t volatile.
51757         (first_call): Make it private to rpl_nanosleep, and have it
51758         be zero initially as that's a bit faster.
51759         (my_usleep): Round up fractional times instead of truncating them,
51760         as this is the usual meaning for 'sleep'.
51761
51762         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
51763         doesn't work.
51764         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
51765         (ENOSYS): Define if not defined.
51766         (settime): Fall back on stime if it exists and settimeofday fails.
51767         But don't bother with fallbacks if a method fails with errno == EPERM.
51768
51769 2004-05-11  Jim Meyering  <jim@meyering.net>
51770
51771         Prior to this change, the save_cwd caller required read access to the
51772         current directory on most systems (ones with the fchdir function).
51773
51774         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
51775         fails, try write-only, and finally, resort to using xgetcwd.
51776
51777 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
51778
51779         * lib/obstack.c, obstack.h: Import changes from libc.
51780
51781 2004-04-28  Bruno Haible  <bruno@clisp.org>
51782
51783         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
51784         also implicitly appends .exe to executables.
51785         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
51786         accepts Windows pathnames.
51787         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
51788         Treat Cygwin like Windows, since it now accepts Windows pathnames.
51789         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
51790         Treat Cygwin like Windows, since it now accepts Windows pathnames.
51791         Reported by Derek Robert Price <derek@ximbiot.com>.
51792
51793 2004-04-21  Karl Berry  <karl@gnu.org>
51794
51795         * config/srclist.txt (localcharset.c): break sync.
51796
51797 2004-04-20  Paul Eggert  <eggert@twinsun.com>
51798
51799         * m4/host-os.m4: Add a copyright notice.
51800
51801 2004-04-20  Jim Meyering  <jim@meyering.net>
51802
51803         Change UTILS_ to gl_ in AC_DEFINE'd names.
51804         Change utils_- and jm_-prefixed variables, too.
51805         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
51806         UTILS_FUNC_MKDIR_TRAILING_SLASH.
51807         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
51808
51809         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
51810         Don't emit trailing blanks.
51811         Also rename jm_-prefixed variables to have gl_ prefix.
51812
51813         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
51814         Also rename jm_-prefixed variables to have gl_ prefix.
51815
51816         * m4/jm-macros.m4: Reflect the renamings.
51817         * m4/prereq.m4: Likewise.
51818
51819 2004-04-20  Jim Meyering  <jim@meyering.net>
51820
51821         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
51822         memory.
51823
51824 2004-04-20  Jim Meyering  <jim@meyering.net>
51825             Bruno Haible  <bruno@clisp.org>
51826
51827         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
51828         memory when realloc fails.
51829
51830 2004-04-19  Jim Meyering  <jim@meyering.net>
51831
51832         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
51833         now that readutmp.c may call `free (0)'.
51834
51835 2004-04-19  Bruno Haible  <bruno@clisp.org>
51836
51837         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
51838         * m4/inttypes_h.m4: Likewise.
51839         * m4/stdint_h.m4: Likewise.
51840         * m4/intmax_t.m4: Likewise.
51841         * m4/uintmax_t.m4: Likewise.
51842
51843 2004-04-18  Jim Meyering  <jim@meyering.net>
51844
51845         * m4/prereq.m4: Don't forbid jm_ prefix.
51846
51847         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
51848         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
51849         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
51850         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
51851         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
51852         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
51853         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
51854         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
51855         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
51856         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
51857         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
51858         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
51859         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
51860         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
51861         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
51862         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
51863         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
51864         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
51865         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
51866
51867 2004-04-18  Jim Meyering  <jim@meyering.net>
51868
51869         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
51870         failure, don't leak memory and do call END_UTMP_ENT.
51871
51872 2004-04-16  Jim Meyering  <jim@meyering.net>
51873
51874         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
51875         coreutils' stat program.
51876         (gl_PREREQ): Don't require jm_PREREQ_STAT.
51877
51878 2004-04-11  Paul Eggert  <eggert@twinsun.com>
51879
51880         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
51881         C89.
51882         (CHAR_BIT): Remove, since we assume C89.
51883         Include <stdint.h> if available, as per current Autoconf CVS advice.
51884
51885 2004-03-31  Jim Meyering  <jim@meyering.net>
51886
51887         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
51888         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
51889         * m4/xalloc.m4: Likewise.
51890
51891 2004-03-30  Paul Eggert  <eggert@twinsun.com>
51892
51893         Merge from coreutils.
51894
51895         * m4/inttostr.m4: New file.
51896         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
51897         Require AM_STDBOOL_H and gl_TIMESPEC instead.
51898         Require gl_CLOCK_TIME.
51899         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
51900
51901 2004-03-30  Paul Eggert  <eggert@twinsun.com>
51902
51903         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
51904         not bool, to be more consistent with Unix conventions.
51905         Suggested by Bruno Haible.
51906
51907         Merge from coreutils.
51908
51909         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
51910         * lib/umaxtostr.c: New files.
51911
51912         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
51913         the usual <time.h> dance.
51914         (get_date): Change signature to support fractional time stamps.
51915         All callers changed.
51916         * lib/getdate.y: Include "getdate.h" first, as we can now
51917         assume C89 and don't need to worry about 'const'.
51918         Similarly, include "unlocked-io.h" near start, not in middle.
51919         Include <limits.h>.
51920         (textint.value): Use long int rather than int.
51921         (textint.digits): Use size_t rather than int.
51922         (BILLION, LOG10_BILLION): New constants.
51923         (parser_control): New member rel_ns.  Members day_ordinal,
51924         time_zone, month, day, hour, minutes, rel_year, rel_month,
51925         rel_day, rel_hour, rel_minutes, rel_seconds
51926         are now long int, not int.  Member seconds is now struct timespec,
51927         not int.  New member timespec_seen.  Members dates_seen, days_seen,
51928         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
51929         not int.
51930         (%union.intval): Now long int, not int.
51931         New member timespec.
51932         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
51933         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
51934         (spec): Now is a timespec or an item list.
51935         (timespec, items): New nonterminals.
51936         (time, rel, relunit, number, get_date):
51937         Add support for fractional seconds.
51938         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
51939         (gmtime, localtime, mktime): Remove decls; not needed with C89.
51940         (to_hour): First arg is now long int, not int.
51941         (to_year): Returns long int, not int.
51942         Don't treat year -70 like 70.
51943         (tm_diff): Returns long int, not int.
51944         (lookup_word): Use bool instead of int when appropriate.
51945         (yylex): Use size_t for count, not int.
51946         Detect overflow when parsing large integer constants.
51947         Add support for fractions.
51948         (get_date): Make pointers 'const' if possible.
51949         Use more-portable code to detect integer overflow.
51950         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
51951         Don't use ctime; it's not reliable if the year has >4 digits.
51952
51953         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
51954         This is for compatibility with BSD.
51955
51956         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
51957         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
51958         From coreutils' system.h.
51959
51960         * lib/userspec.c: Don't include "posixver.h".
51961         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
51962         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
51963         compatible extension.  Simplify code by removing a boolean int
51964         that was always nonzero if a string was nonnull.
51965
51966 2004-03-30  Jim Meyering  <jim@meyering.net>
51967
51968         Merge from coreutils.
51969
51970         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
51971         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
51972         on some systems one must include <grp.h> before it.
51973         Reported by Christian Krackowizer.
51974
51975 2004-03-30  Jim Meyering  <jim@meyering.net>
51976
51977         Merge from coreutils.
51978
51979         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
51980
51981         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
51982         an empty input stream.
51983
51984         * lib/readtokens.c: Include <stdbool.h>.
51985         (readtoken): Use `size_t' rather than int/long.
51986         All callers adjusted.
51987         Use `bool' rather than `int' where appropriate.
51988         Use memset rather than an explicit loop.
51989         Use x2nrealloc rather than xrealloc.
51990         Allow the use of `\0' as a delimiter.
51991         (readtokens): Likewise.
51992         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
51993
51994 2004-03-30  Jim Meyering  <jim@meyering.net>
51995
51996         * m4/realloc.m4: Remove file, since now it does no more than
51997         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
51998         the `configure.ac' section of module/realloc.
51999         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
52000
52001 2004-03-30  Bruno Haible  <bruno@clisp.org>
52002
52003         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
52004         nonnull.
52005
52006 2004-03-29  Paul Eggert  <eggert@twinsun.com>
52007
52008         Merge changes to getloadavg.c from coreutils and Emacs.
52009
52010         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
52011         Define to an expression, not to the empty string.
52012         Include cloexec.h and xalloc.h.
52013         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
52014         Use set_cloexec_flag rather than rolling our own.
52015         * lib/cloexec.c, lib/cloexec.h: New files.
52016
52017 2004-03-29  Paul Eggert  <eggert@twinsun.com>
52018
52019         * m4/cloexec.m4: New file.
52020
52021 2004-03-18  Paul Eggert  <eggert@twinsun.com>
52022
52023         * lib/getopt.h: Sync with libc CVS.
52024
52025 2004-03-18  Paul Eggert  <eggert@twinsun.com>
52026             Bruno Haible  <bruno@clisp.org>
52027
52028         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
52029         mbswidth.
52030
52031 2004-03-18  Paul Eggert  <eggert@twinsun.com>
52032             Bruno Haible  <bruno@clisp.org>
52033
52034         * lib/mbswidth.h: Include <wchar.h> only if
52035         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
52036         <wchar.h>.
52037         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
52038
52039 2004-03-09  Paul Eggert  <eggert@twinsun.com>
52040
52041         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
52042         Sync with libc CVS.
52043         * lib/getopt_int.h: New file, also synced from libc.
52044
52045 2004-03-09  Paul Eggert  <eggert@twinsun.com>
52046
52047         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
52048         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
52049         Bring back getopt.c, getopt.h, getopt1.c.
52050
52051 2004-03-07  Paul Eggert  <eggert@twinsun.com>
52052
52053         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
52054         All uses changed.  Check for sa_sigaction member; this fixes
52055         a bug first reported by Jason Andrade in
52056         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
52057
52058 2004-03-07  Paul Eggert  <eggert@twinsun.com>
52059
52060         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
52061         '#if' expressions.  Unlike the code it replaces, it does not
52062         depend on (defined _SC_PAGESIZE).  However, it does depend on
52063         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
52064         first reported by Jason Andrade in
52065         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
52066
52067 2004-02-25  Simon Josefsson  <jas@extundo.com>
52068
52069         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
52070
52071 2004-02-25  Simon Josefsson  <jas@extundo.com>
52072
52073         * lib/strdup.h: New file.
52074         * lib/strdup.c: Include it.
52075         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
52076         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
52077
52078 2004-02-23  Karl Berry  <karl@gnu.org>
52079
52080         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
52081         (from fencepost.gnu.org:/gd/gnuorg).
52082
52083 2004-02-23  Karl Berry  <karl@gnu.org>
52084
52085         * config/srclistvars.sh (GNUORG) [karl]: redefine.
52086         * config/srclist.txt: add maintain/standards documents.
52087
52088 2004-02-18  Bruno Haible  <bruno@clisp.org>
52089
52090         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
52091         Reported by Derek Robert Price <derek@ximbiot.com>.
52092
52093 2004-02-16  Karl Berry  <karl@gnu.org>
52094
52095         * config/mkinstalldirs, install-sh: update from automake.
52096
52097 2004-02-06  Karl Berry  <karl@gnu.org>
52098
52099         * m4/po.m4: update from gettext 0.14.1.
52100
52101 2004-02-06  Karl Berry  <karl@gnu.org>
52102
52103         * lib/config.charset: update from gettext 0.14.1.
52104
52105 2004-02-05  Paul Eggert  <eggert@twinsun.com>
52106
52107         Add comments and code, prompted by suggestions from Bruno Haible
52108         for sh-quote.
52109         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
52110         describing the enum quoting_style values.
52111         * lib/quotearg.c (quotearg_alloc): New function.
52112         (quotearg_buffer_restyled): Treat lone { and } as special.
52113         Treat = as special.  Work around bug with older shells
52114         that "see" a '\' that is really the 2nd byte of a multibyte char.
52115         Quote empty string with shell_quoting_style.
52116
52117 2004-02-03  Bruno Haible  <bruno@clisp.org>
52118
52119         * m4/pipe.m4: New file, from GNU gettext.
52120
52121 2004-02-03  Bruno Haible  <bruno@clisp.org>
52122
52123         * lib/pipe.h: New file, from GNU gettext.
52124         * lib/pipe.c: New file, from GNU gettext.
52125
52126 2004-01-27  Bruno Haible  <bruno@clisp.org>
52127
52128         * m4/execute.m4: New file, from GNU gettext.
52129
52130 2004-01-27  Bruno Haible  <bruno@clisp.org>
52131
52132         * lib/execute.h: New file, from GNU gettext.
52133         * lib/execute.c: New file, from GNU gettext.
52134         * lib/w32spawn.h: New file, from GNU gettext.
52135
52136 2004-01-24  Paul Eggert  <eggert@twinsun.com>
52137
52138         Merge from diffutils.
52139
52140         * lib/file-type.c (file_type): Add typed memory objects.
52141         * lib/file-type.h (S_TYPEISTMO): New macro.
52142
52143         * lib/c-stack.h (c_stack_action): Remove argv argument.
52144         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
52145         (die): Don't calculate message unless segv_action returns.
52146         (get_stack_location, min_address_from_argv, max_address_from_argv,
52147         volatile stack_base, volatile_stack_size): Remove.
52148         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
52149         that every segmentation violation is a stack overflow.  (Ouch!)
52150         See Debian bug 136249 (still outstanding) for more info about why
52151         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
52152
52153 2004-01-24  Paul Eggert  <eggert@twinsun.com>
52154
52155         Exit-status fix from coreutils.
52156
52157         Use exit_failure consistently in place of EXIT_FAILURE,
52158         so that program exit statuses are consistent on failure.
52159
52160         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
52161         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
52162         * lib/argmatch.h: Comment fix to match the above.
52163         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
52164         Now a macro referring to exit_failure, instead of a separate
52165         variable.  Include "exitfail.h" to get it.
52166         * lib/xstrtol.h: Include "exitfail.h".
52167         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
52168
52169         * lib/long-options.c (parse_long_options): Use prototype
52170         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
52171         for clarity.
52172
52173 2004-01-21  Jim Meyering  <jim@meyering.net>
52174
52175         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
52176         so as not to conflict with a different-sized __mktime_internal
52177         function in GNU libc.
52178         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
52179         Problem building statically-linked `ls' reported by Michael Brunnbauer.
52180
52181 2004-01-20  Karl Berry  <karl@gnu.org>
52182
52183         * config/config.guess: update from config.
52184
52185         * config/srclistvars.sh: GNUWWWLICENSES for karl.
52186
52187 2004-01-20  Bruno Haible  <bruno@clisp.org>
52188
52189         Safer stack allocation.
52190         * lib/setenv.c: Include allocsa.h.
52191         (alloca): Remove fallback definition.
52192         (freea): Remove macro.
52193         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
52194         instead of freea.
52195
52196 2004-01-20  Bruno Haible  <bruno@clisp.org>
52197
52198         * m4/eealloc.m4: New file, from GNU gettext.
52199
52200 2004-01-20  Bruno Haible  <bruno@clisp.org>
52201
52202         * m4/allocsa.m4: New file, from GNU gettext.
52203
52204 2004-01-20  Bruno Haible  <bruno@clisp.org>
52205
52206         * lib/xallocsa.h: New file, from GNU gettext.
52207         * lib/xallocsa.c: New file, from GNU gettext.
52208
52209 2004-01-20  Bruno Haible  <bruno@clisp.org>
52210
52211         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
52212
52213 2004-01-20  Bruno Haible  <bruno@clisp.org>
52214
52215         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
52216         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
52217         specially.
52218
52219 2004-01-20  Bruno Haible  <bruno@clisp.org>
52220
52221         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
52222         patch.
52223
52224 2004-01-20  Bruno Haible  <bruno@clisp.org>
52225
52226         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
52227
52228 2004-01-20  Bruno Haible  <bruno@clisp.org>
52229
52230         * lib/eealloc.h: New file.
52231
52232 2004-01-20  Bruno Haible  <bruno@clisp.org>
52233
52234         * lib/binary-io.h: Avoid warnings on Cygwin.
52235
52236 2004-01-20  Bruno Haible  <bruno@clisp.org>
52237
52238         * lib/allocsa.h: New file, from GNU gettext.
52239         * lib/allocsa.c: New file, from GNU gettext.
52240
52241 2004-01-18  Karl Berry  <karl@gnu.org>
52242
52243         * doc/gpl.texi, doc/lgpl.texi: new files.
52244
52245 2004-01-18  Karl Berry  <karl@gnu.org>
52246
52247         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
52248         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
52249
52250 2004-01-15  Paul Eggert  <eggert@twinsun.com>
52251
52252         Merge from coreutils.
52253
52254         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
52255         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
52256         (gl_DEFAULT_POSIX2_VERSION): Move
52257         the documentation from 'configure' into 'config.hin',
52258         so that 'configure --help' isn't burdened by it and
52259         we don't have to worry about its formatting there.
52260         Reword the documentation so that it's more succinct
52261         and can be run together into a single paragraph.
52262         * m4/same.m4 (gl_SAME): Check for pathconf.
52263
52264 2004-01-15  Paul Eggert  <eggert@twinsun.com>
52265
52266         Merge from coreutils.
52267
52268         * lib/posixver.c: Include posixver.h.
52269
52270         * lib/same.c: Include <stdbool.h>, <limits.h>.
52271         (_POSIX_NAME_MAX): Define if not defined.
52272         (MIN): New macro.
52273         (same_name): If file names are silently truncated, report
52274         that the file names are the same if they are the same after
52275         the silent truncation.
52276
52277         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
52278         conversion function.
52279         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
52280         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
52281         longer needed.
52282
52283 2004-01-15  Jim Meyering  <jim@meyering.net>
52284
52285         Merge from coreutils.
52286
52287         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
52288         if no library is required.
52289         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
52290         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
52291         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
52292         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
52293         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
52294         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
52295         value, $ac_cv_search_crypt, if it's "none required".
52296         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
52297         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
52298         not gl_FUNC_GETLOADAVG.
52299         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
52300         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
52301
52302 2004-01-15  Jim Meyering  <jim@meyering.net>
52303
52304         Merge from coreutils.
52305
52306         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
52307         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
52308         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
52309
52310         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
52311         optional configure-time default.
52312
52313         * lib/version-etc.c (version_etc_copyright): Update copyright date.
52314
52315         * lib/xreadlink.c (xreadlink): Correct outdated comment.
52316
52317 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
52318
52319         Merge from coreutils.
52320
52321         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
52322         value, $ac_cv_search_nanosleep, if it's "none required".
52323
52324 2004-01-14  Paul Eggert  <eggert@twinsun.com>
52325
52326         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
52327         with like-named macro in fnmatch.c.
52328         (EXT): Use an internal constant instead.
52329
52330         Merge fnmatch patches from glibc.
52331         * lib/fnmatch.c (mbsinit): Remove define.
52332         Add libc_hidden_ver (__fnmatch, fnmatch).
52333         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
52334         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
52335
52336 2004-01-14  Karl Berry  <karl@gnu.org>
52337
52338         * config/install-sh: update from automake.
52339
52340 2004-01-13  Karl Berry  <karl@gnu.org>
52341
52342         * config/install-sh: update from automake.
52343
52344 2004-01-09  Karl Berry  <karl@gnu.org>
52345
52346         * config/install-sh: update from automake.
52347
52348 2004-01-05  Karl Berry  <karl@gnu.org>
52349
52350         * config/config.{sub,guess}: update from config.
52351
52352 2003-12-31  Karl Berry  <karl@gnu.org>
52353
52354         * config/depcomp: update from automake.
52355
52356 2003-12-14  Karl Berry  <karl@gnu.org>
52357
52358         * lib/config.charset: update from gettext-runtime.
52359
52360 2003-12-03  Paul Eggert  <eggert@twinsun.com>
52361
52362         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
52363         Bug reported by Alfred M. Szmidt.
52364
52365 2003-12-03  Bruno Haible  <bruno@clisp.org>
52366
52367         * m4/gettext.m4: Upgrade from gettext-0.13.
52368         * m4/po.m4: Upgrade from gettext-0.13.
52369         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
52370         * m4/intmax.m4: New file, from gettext-0.13.
52371         * m4/printf-posix.m4: New file, from gettext-0.13.
52372
52373 2003-11-29  Karl Berry  <karl@gnu.org>
52374
52375         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
52376
52377 2003-11-25  Paul Eggert  <eggert@twinsun.com>
52378             Bruno Haible  <bruno@clisp.org>
52379
52380         * lib/printf-parse.h: Don't include sys/types.h.
52381         (ARG_NONE): New macro.
52382         (char_directive): Change type of *arg_index fields to size_t.
52383         * lib/printf-parse.c: Don't include sys/types.h.
52384         (SSIZE_MAX): Remove macro.
52385         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
52386         Remove unnecessary overflow check.
52387         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
52388         fields.
52389
52390 2003-11-25  Bruno Haible  <bruno@clisp.org>
52391
52392         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
52393
52394 2003-11-25  Bruno Haible  <bruno@clisp.org>
52395
52396         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
52397         gt_TYPE_SSIZE_T.
52398
52399 2003-11-24  Paul Eggert  <eggert@twinsun.com>
52400
52401         * modules/alloca: Remove dependency on xalloc.
52402
52403 2003-11-24  Paul Eggert  <eggert@twinsun.com>
52404
52405         * lib/alloca.c: Remove dependency on xalloc module.
52406         (xalloc_die): Remove.
52407         (memory_full) [!defined emacs]: New macro.
52408         [!defined emacs]: Don't include xalloc.h.
52409         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
52410         address arithmetic overflows.  Change datatypes a bit to avoid
52411         unnecessary casts.
52412
52413 2003-11-22  Jim Meyering  <jim@meyering.net>
52414
52415         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
52416         s/size/size_t/.
52417
52418 2003-11-21  Karl Berry  <karl@gnu.org>
52419
52420         * config/config.{sub,guess}: update from config.
52421
52422 2003-11-18  Karl Berry  <karl@gnu.org>
52423
52424         * config/config.{sub,guess}: update from config.
52425
52426         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
52427
52428 2003-11-17  Paul Eggert  <eggert@twinsun.com>
52429
52430         * README: Mention that S+T cannot overflow if S is the size of
52431         an existing object and T is sufficiently small.
52432
52433 2003-11-17  Jim Meyering  <jim@meyering.net>
52434
52435         On systems without utime and without a utimes function capable of
52436         dealing with a NULL struct utimbuf* argument, this utime replacement
52437         could -- in unusual circumstances -- leak a file descriptor.
52438         * lib/utime.c: Include <unistd.h> and <errno.h>.
52439         (utime_null): Be sure to close `fd' and to preserve errno.
52440         Reported by Geoff Collyer via Arnold Robbins.
52441
52442 2003-11-17  Bruno Haible  <bruno@clisp.org>
52443
52444         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
52445         (Depends-on): Add xsize.
52446
52447 2003-11-17  Bruno Haible  <bruno@clisp.org>
52448
52449         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
52450
52451 2003-11-17  Bruno Haible  <bruno@clisp.org>
52452
52453         * lib/vasnprintf.c (alloca): Remove fallback definition.
52454         (freea): Remove definition.
52455         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
52456         Reported by Paul Eggert.
52457
52458 2003-11-16  Paul Eggert  <eggert@twinsun.com>
52459             Bruno Haible  <bruno@clisp.org>
52460
52461         Protect against address arithmetic overflow.
52462         * lib/printf-args.h: Include stddef.h.
52463         (arguments): Change type of field 'count' to size_t.
52464         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
52465         'unsigned int' where appropriate.
52466         * lib/printf-parse.h: Include sys/types.h.
52467         (char_directive): Change type of *arg_index fields to ssize_t.
52468         (char_directives): Change type of fields 'count', max_*_length to
52469         size_t.
52470         * lib/printf-parse.c: Include sys/types.h and xsize.h.
52471         (SSIZE_MAX): Define fallback value.
52472         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
52473         instead of 'int' where appropriate. Check a_allocated, d_allocated
52474         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
52475         * lib/vasnprintf.c: Include xsize.h.
52476         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
52477         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
52478         overflow. Avoid wraparound when converting a width or precision from
52479         decimal to binary.
52480
52481 2003-11-16  Bruno Haible  <bruno@clisp.org>
52482
52483         Update from GNU gettext.
52484         * lib/printf-parse.c: Generalize to it can be compiled for wide
52485         strings.
52486         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
52487         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
52488         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
52489         SNPRINTF): New macros.
52490         Don't include <alloca.h> if the file is used inside libintl.
52491         (local_wcslen): New function, for Solaris 2.5.1.
52492         (VASNPRINTF): Use it instead of wcslen.
52493
52494 2003-11-16  Bruno Haible  <bruno@clisp.org>
52495
52496         * lib/xsize.h (xmax): New function.
52497         (xsum, xsum3, xsum4): Declare as "pure" functions.
52498
52499 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52500
52501         * modules/xalloc (Files): Undo latest change, since xalloc.h
52502         no longer needs SIZE_MAX or PTRDIFF_MAX.
52503
52504 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52505
52506         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
52507         gl_PTRDIFF_MAX.
52508
52509 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52510
52511         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
52512         "return", to pacify some unknown compiler.  Problem reported
52513         by Joerg Schilling.
52514
52515 2003-11-12  Paul Eggert  <eggert@twinsun.com>
52516
52517         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
52518         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
52519         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
52520         heuristic is just as accurate as far as we know, and it removes a
52521         dependency on size_max.m4 and ptrdiff_max.m4.
52522
52523 2003-11-11  Bruno Haible  <bruno@clisp.org>
52524
52525         * modules/xsize (Files): Add m4/size_max.m4.
52526         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
52527
52528 2003-11-11  Bruno Haible  <bruno@clisp.org>
52529
52530         * m4/size_max.m4: New file.
52531         * m4/ptrdiff_max.m4: New file.
52532         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
52533         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
52534         (gl_XALLOC): Invoke it.
52535
52536 2003-11-11  Bruno Haible  <bruno@clisp.org>
52537
52538         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
52539         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
52540         defined.
52541
52542 2003-11-10  Paul Eggert  <eggert@twinsun.com>
52543
52544         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
52545         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
52546         rejected some allocations of exactly SIZE_MAX - 2 bytes.
52547         From Bruno Haible.
52548         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
52549         not (size_t) -1, since it's defined here.
52550
52551 2003-11-09  Karl Berry  <karl@gnu.org>
52552
52553         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
52554
52555 2003-11-06  Paul Eggert  <eggert@twinsun.com>
52556
52557         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
52558         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
52559         Reject sizes of exactly SIZE_MAX bytes.
52560         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
52561         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
52562
52563 2003-11-05  Bruno Haible  <bruno@clisp.org>
52564
52565         * lib/xsize.h: Include limits.h, to avoid a possible collision with
52566         SIZE_MAX defined in <limits.h> on Solaris.
52567
52568 2003-11-04  Jim Meyering  <jim@meyering.net>
52569
52570         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
52571         variable names, rather than @VAR@.
52572         * modules/poll: Likewise.
52573
52574 2003-11-04  Bruno Haible  <bruno@clisp.org>
52575
52576         * modules/xsize: New file.
52577         * modules/linebreak: Depend on xsize.
52578         * MODULES.html.sh (func_all_modules): Add xsize.
52579
52580 2003-11-04  Bruno Haible  <bruno@clisp.org>
52581
52582         * m4/xsize.m4: New file.
52583
52584 2003-11-04  Bruno Haible  <bruno@clisp.org>
52585
52586         * lib/xsize.h: New file.
52587         * lib/linebreak.c: Include xsize.h.
52588         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
52589         argument for overflow.
52590         Suggested by Paul Eggert.
52591
52592 2003-11-03  Karl Berry  <karl@gnu.org>
52593
52594         * config/config.{guess,sub}: update from config.
52595
52596 2003-11-03  Jim Meyering  <jim@meyering.net>
52597
52598         * modules/userspec (lib_SOURCES): Add userspec.h.
52599         (Include): Add "userspec.h".
52600         Improve description.
52601
52602 2003-11-03  Jim Meyering  <jim@meyering.net>
52603
52604         * lib/userspec.c: Include "userspec.h".
52605         * lib/userspec.h: New file.
52606
52607 2003-11-03  Bruno Haible  <bruno@clisp.org>
52608
52609         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
52610
52611 2003-11-03  Bruno Haible  <bruno@clisp.org>
52612
52613         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
52614         available, to avoid (extremely rare) race condition.
52615         Suggested by Paul Eggert.
52616
52617 2003-11-02  Karl Berry  <karl@gnu.org>
52618
52619         * config/srclist.txt (vasprintf.c): sync broken, sigh.
52620
52621 2003-10-31  Paul Eggert  <eggert@twinsun.com>
52622
52623         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
52624         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
52625         (read_filesystem_list): Set and use me_type_malloced.
52626         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
52627         whatever the type happens to be), for brevity and consistency.
52628         Check for size calculation overflow on Alphas running OSF/1.
52629
52630 2003-10-31  Jim Meyering  <jim@meyering.net>
52631
52632         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
52633
52634         * lib/linebuffer.c: Include <string.h> for declaration of memset.
52635
52636 2003-10-30  Paul Eggert  <eggert@twinsun.com>
52637             Bruno Haible  <bruno@clisp.org>
52638
52639         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
52640         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
52641
52642 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
52643
52644         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
52645         netbsd*-gnu*.  Suggested by Robert Millan.
52646
52647 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52648
52649         * modules/group-member: Depend on stdbool.
52650
52651 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52652
52653         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
52654
52655 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52656
52657         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
52658         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
52659         after the 'gnu' in these cases.  This fixes some bugs in the
52660         previous change, and is based on suggestions by Robert Millan.
52661
52662 2003-10-29  Paul Eggert  <eggert@twinsun.com>
52663
52664         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
52665         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
52666         no longer needed.
52667         * lib/quotearg.c (quotearg_n_options): Use it.
52668         * lib/group-member.c: Include <stdbool.h>.
52669         (free_group_info): Arg is now const *; don't free arg.
52670         (get_group_info): Now returns bool and accepts struct group_info *,
52671         rather than returning a malloc'ed struct group_info *.
52672         All uses changed.  Check for overflow in internal size calculation.
52673
52674         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
52675         rather than xmalloc/xrealloc.
52676         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
52677         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
52678         conformance bug: the old code used a pointer after freeing the
52679         storage that it addressed.
52680         * lib/hash.c (hash_initialize): Simplify the code by using
52681         xalloc_oversized rather than doing it by hand.
52682         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
52683         the buffer preserved.  Use free and xmalloc instead.
52684         * lib/quotearg.c (quotearg_n_options): Likewise.
52685         Use a simpler test for size overflow.  Don't use xalloc_oversized
52686         because unsigned int might be wider than size_t (!); this suggests
52687         that we should switch from unsigned int to size_t for slot numbers.
52688
52689 2003-10-28  Paul Eggert  <eggert@twinsun.com>
52690
52691         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
52692         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
52693         NetBSD kernels.  Requested by Richard Stallman.
52694
52695 2003-10-27  Paul Eggert  <eggert@twinsun.com>
52696
52697         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
52698         to allocate the returned structure.  Do not allocate a subarray,
52699         as x2nrealloc will do that.
52700         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
52701         instead of xnrealloc.
52702         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
52703
52704 2003-10-27  Bruno Haible  <bruno@clisp.org>
52705
52706         * lib/stdbool_.h: Better support for BeOS.
52707
52708 2003-10-26  Paul Eggert  <eggert@twinsun.com>
52709
52710         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
52711         now uses inline.
52712
52713 2003-10-26  Paul Eggert  <eggert@twinsun.com>
52714
52715         * lib/xalloc.h (xalloc_oversized): New static inline function, for
52716         callers that want to do their own size-overflow checking.  Include
52717         <stdbool.h>, since xalloc_oversized returns bool.
52718         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
52719         to use xalloc_oversized.
52720
52721         Add two functions x2realloc, x2nrealloc, for programs that grow
52722         arrays dynamically by doubling their sizes.
52723         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
52724         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
52725         New functions.
52726
52727         Port to C99 semantics for 'inline' of external functions.
52728         Bug reported by Bruno Haible.
52729         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
52730         with the old contents of xnmalloc.
52731         (xnmalloc, xmalloc): Use it.
52732         (xnrealloc_inline): New static inline function,
52733         with the old contents of xnrealloc.
52734         (xnrealloc, xrealloc): Use it.
52735
52736         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
52737         that.
52738
52739 2003-10-26  Karl Berry  <karl@gnu.org>
52740
52741         * config/srclist.txt (COPYING.DOC): no longer available from
52742         /gd/gnuorg; don't know where the ultimate source is.
52743
52744 2003-10-25  Paul Eggert  <eggert@twinsun.com>
52745
52746         Fix several address-calculation bugs in the hash modules,
52747         plus some minor code cleanup.
52748
52749         * lib/hash.h: Include <stdbool.h>, for bool.
52750         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
52751         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
52752         hash_get_n_entries, hash_get_max_bucket_length,
52753         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
52754         hash_rehash): Use size_t rather than unsigned.
52755         * lib/hash.c (struct hash_table, hash_get_n_buckets,
52756         hash_get_n_buckets_used, hash_get_n_entries,
52757         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
52758         hash_get_entries, hash_do_for_each, hash_string, is_prime,
52759         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
52760         Likewise.
52761         (SIZE_MAX): Define if not defined.
52762         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
52763         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
52764         hash_print):
52765         Use const * when possible.
52766         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
52767         (check_tuning): Fix bug: if tuning parameters were very close to
52768         0 or 1, rounding errors could have caused subscript violations.
52769         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
52770         (hash_initialize): Add 'fail:' label
52771         to free table and return NULL, and use it to simplify code.
52772         Use calloc rather than clearing the storage ourself.
52773         (hash_initialize, hash_rehash): Check for arithmetic overflow in
52774         buffer size calculations.
52775         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
52776         Include <stddef.h>, for size_t.
52777         * lib/hash-pjw.c (hash_pjw): Likewise.
52778         Switch to method described by Bruno Haible.
52779         Include <limits.h>, for CHAR_BIT.
52780         (SIZE_BITS): New macro.
52781
52782 2003-10-23  Paul Eggert  <eggert@twinsun.com>
52783
52784         * m4/getline.m4 (AM_FUNC_GETLINE):
52785         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
52786         hosts.  Problem reported by Derek Robert Price in
52787         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
52788         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
52789         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
52790
52791 2003-10-21  Paul Eggert  <eggert@twinsun.com>
52792
52793         * lib/getndelim2.c (getndelim2): When size calculation overflows,
52794         ceiling the allocation at NMAX bytes rather than silently
52795         discarding input bytes before NMAX is reached.  This makes
52796         a difference only if NMAX exceeds SIZE_MAX / 2.
52797
52798         * lib/obstack.c: Merge from glibc.
52799         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
52800         Add libc_hidden_def (_obstack_newchunk).
52801         (_obstack_free) [! defined _LIBC]: Remove.
52802         [defined _LIBC]: Make a strong alias from obstack_free, rather than
52803         a clone of the function body.
52804         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
52805         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
52806
52807         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
52808         glibc.
52809         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
52810         arg to memcpy.
52811
52812         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
52813         (obstack_ptr_grow_fast, obstack_int_grow_fast):
52814         Don't use lvalue casts, as GCC plans to remove support for them
52815         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
52816         was also present in the non-GCC version, indicating that this
52817         code had always been buggy and had never been widely used.
52818         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
52819         Use the fast variant of each macro, rather than copying the
52820         definiens of the fast variant; that way, we'll be more likely to
52821         catch future bugs in the fast variants.
52822
52823 2003-10-20  Bruno Haible  <bruno@clisp.org>
52824
52825         * modules/wait-process: New file.
52826         * MODULES.html.sh (func_all_modules): Add wait-process.
52827
52828 2003-10-20  Bruno Haible  <bruno@clisp.org>
52829
52830         * m4/wait-process.m4: New file.
52831
52832 2003-10-20  Bruno Haible  <bruno@clisp.org>
52833
52834         * lib/wait-process.h: New file, from GNU gettext.
52835         * lib/wait-process.c: New file, from GNU gettext.
52836
52837 2003-10-19  Jim Meyering  <jim@meyering.net>
52838
52839         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
52840         HPUX 10.20.
52841
52842 2003-10-18  Karl Berry  <karl@gnu.org>
52843
52844         * config/config.guess: update from config.
52845
52846 2003-10-16  Paul Eggert  <eggert@twinsun.com>
52847
52848         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
52849         (getgroups): First arg is int, not size_t.
52850         Don't let 'free' mangle errno.
52851
52852 2003-10-16  Paul Eggert  <eggert@twinsun.com>
52853
52854         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
52855
52856 2003-10-16  Karl Berry  <karl@gnu.org>
52857
52858         * config/config.{guess,sub}: update from config.
52859
52860 2003-10-16  Jim Meyering  <jim@meyering.net>
52861
52862         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
52863         memcpy.
52864
52865 2003-10-15  Paul Eggert  <eggert@twinsun.com>
52866
52867         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
52868         (SIZE_MAX): Remove.
52869         (new_exclude, add_exclude_file): Initial size no longer needs to
52870         be a power of 2.
52871         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
52872         our own address arithmetic overflow checking.
52873
52874         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
52875         (fnmatch): Do not alloca more than 2000 wide characters;
52876         instead, use malloc for large buffers.
52877         Check for address arithmetic overflow, and return -1
52878         with errno set to ENOMEM in that case.
52879         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
52880         (NEW_PATTERN): Do not alloca more than 8000 bytes;
52881         instead, return -1.  Check for address arithmetic overflow.
52882
52883 2003-10-14  Paul Eggert  <eggert@twinsun.com>
52884
52885         Handle invalid suffixes and overflow independently, so that
52886         callers can treat them independently as needed.  Fix some bugs in
52887         suffix handling, e.g., "100k@" was not diagnosed as an invalid
52888         suffix for a human-readable blocksize.  The major caller-visible
52889         change is the addition of a new
52890         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
52891         that both overflow and suffix chars were found.
52892
52893         * lib/human.c (humblock): Don't check separately for invalid suffix
52894         char; that is xstrtoumax's job (now that its bug is fixed).
52895         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
52896         INTMAX_MAX]: New macros.
52897         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
52898         TYPE_MAXIMUM): New macros.
52899         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
52900         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
52901         if overflow occurs, as it's what __strtol does and it's more useful
52902         in practice.
52903         (__xstrtol): If __strtol reports some error other than ERANGE,
52904         reflect it to the caller as LONGINT_INVALID.  If it reports
52905         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
52906         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
52907         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
52908         value.
52909         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
52910         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
52911         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
52912         [defined UINTMAX_MAX]: New macros.
52913
52914 2003-10-14  Bruno Haible  <bruno@clisp.org>
52915
52916         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
52917
52918 2003-10-14  Bruno Haible  <bruno@clisp.org>
52919
52920         * m4/sig_atomic_t: New file, from GNU gettext.
52921         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
52922
52923 2003-10-14  Bruno Haible  <bruno@clisp.org>
52924
52925         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
52926         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
52927         Also use volatile where needed.
52928
52929 2003-10-12  Paul Eggert  <eggert@twinsun.com>
52930
52931         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
52932         Change maintainer from Bruno Haible to 'all'.
52933
52934 2003-10-12  Paul Eggert  <eggert@twinsun.com>
52935
52936         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
52937
52938 2003-10-12  Paul Eggert  <eggert@twinsun.com>
52939
52940         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
52941         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
52942         and define in terms of the other primitives.
52943         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
52944         (SIZE_MAX): Define if not already defined.
52945         (array_size_overflow): New function.
52946         (xalloc_die): Abort instead of exiting if 'error' returns.
52947         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
52948         (xmalloc, xrealloc): Use them.
52949         (xcalloc): Check for address arithmetic overflow.
52950         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
52951         a bit faster than strcpy.
52952
52953 2003-10-10  Simon Josefsson  <jas@extundo.com>
52954
52955         * modules/argp (Depends-on): Add restrict and strcase.
52956
52957 2003-10-10  Simon Josefsson  <jas@extundo.com>
52958
52959         * m4/argp.m4: Add AC_C_INLINE.
52960
52961 2003-10-08  Paul Eggert  <eggert@twinsun.com>
52962
52963         Merge getpass from libc, plus a few fixes.
52964
52965         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
52966         Include <stdbool.h>.
52967         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
52968         __fsetlocking to empty.
52969         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
52970         do include <bits/libc-lock.h>.
52971         Do not include <fcntl.h>; not needed.
52972         [_LIBC]: Include <wchar.h>.
52973         (NOTCANCEL_MODE): New macro.
52974         (flockfile, funlockfile) [_LIBC]: New macros.
52975         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
52976         [!_LIBC]: New macros.
52977         (call_fclose): New function.
52978         (getpass): Use it.  Save tty stream separately; this simplifies the
52979         code and makes it more reliable if stdin happens to equal stdout.
52980         Invoke __fsetlocking on tty.
52981         Handle thread cancellation if needed.
52982         Namespace cleanup (use __tcgetattr, __getline).
52983         Use bool for Booleans.
52984         [USE_IN_LIBIO]: Handle wide streams.
52985         [!_LIBC]: Unconditionally do the fseek, since we don't know what
52986         stream might go where.
52987
52988         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
52989         doesn't have to include <stdio.h> before us.
52990         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
52991         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
52992         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
52993         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
52994         if not declared, so that we can use getpass.c code from libc without
52995         rewriting it.
52996         (flockfile, ftrylockfile, funlockfile): New macros.
52997
52998 2003-10-08  Paul Eggert  <eggert@twinsun.com>
52999
53000         * modules/getpass: Depend on stdbool.
53001
53002 2003-10-08  Paul Eggert  <eggert@twinsun.com>
53003
53004         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
53005
53006 2003-10-07  Karl Berry  <karl@gnu.org>
53007
53008         * config/config.{guess,sub}: update from config.
53009
53010 2003-10-06  Jim Meyering  <jim@meyering.net>
53011             Bruno Haible  <bruno@clisp.org>
53012
53013         This lets translators provide better translations for the
53014         "Written by ..." part of --version output.
53015         * lib/version-etc.h: Include stdarg.h.
53016         (version_etc_copyright): Declare as readonly.
53017         (version_etc): Make this function variadic with a NULL-terminated list
53018         of author name strings.
53019         (version_etc_va): New declaration.
53020         * lib/version-etc.c: Include stdarg.h, stdlib.h.
53021         (version_etc_copyright): Declare as readonly.
53022         (version_etc_va): New function. Provide a different translatable string
53023         for each possible number of authors < 10. Abbreviate when there are 10
53024         authors or more.
53025         (version_etc): Make this function variadic. Call version_etc_va.
53026         Suggestion from Gary V. Vaughan.
53027
53028         * lib/long-options.h (parse_long_options): Change prototype: the
53029         authors string is moved to the end and becomes variadic.
53030         * lib/long-options.c: Include stdarg.h.
53031         (parse_long_options): Make this function variadic, too.
53032         Call version_etc_va, not version_etc.
53033
53034 2003-10-06  Bruno Haible  <bruno@clisp.org>
53035
53036         * modules/version-etc-2: Remove file.
53037         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
53038
53039 2003-10-06  Bruno Haible  <bruno@clisp.org>
53040
53041         * modules/fatal-signal: New file.
53042         * MODULES.html.sh (func_all_modules): Add fatal-signal.
53043
53044 2003-10-06  Bruno Haible  <bruno@clisp.org>
53045
53046         * m4/fatal-signal.m4: New file.
53047         * m4/signalblocking.m4: New file, from GNU gettext.
53048
53049 2003-10-06  Bruno Haible  <bruno@clisp.org>
53050
53051         * lib/version-etc-2.h: Remove file.
53052         * lib/version-etc-2.c: Remove file.
53053
53054 2003-10-06  Bruno Haible  <bruno@clisp.org>
53055
53056         * lib/fatal-signal.h: New file, from GNU gettext.
53057         * lib/fatal-signal.c: New file, from GNU gettext.
53058
53059 2003-10-05  Paul Eggert  <eggert@twinsun.com>
53060
53061         * README: Rework advice for preventing empty .o files.
53062         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
53063         not <sys/types.h>.
53064
53065 2003-10-04  Karl Berry  <karl@gnu.org>
53066
53067         * lib/argp*: update from libc.
53068
53069 2003-10-04  Karl Berry  <karl@gnu.org>
53070
53071         * config/config.{guess,sub}: update from config.
53072
53073 2003-10-02  Bruno Haible  <bruno@clisp.org>
53074
53075         * modules/lchown (Include): Add lchown.h.
53076         * modules/time_r (Include): Use "..." syntax.
53077         * modules/xgetdomainname (Include): Add xgetdomainname.h.
53078
53079 2003-10-01  Simon Josefsson  <jas@extundo.com>
53080
53081         * MODULES.html.sh (func_all_modules): Move gethostname from section
53082         'based on' to section 'lacking' POSIX:2001.
53083
53084 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
53085
53086         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
53087         to output mode on the same stream.
53088
53089 2003-09-29  Paul Eggert  <eggert@twinsun.com>
53090
53091         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
53092         Fix arg typo in previous patch.
53093
53094 2003-09-28  Jim Meyering  <jim@meyering.net>
53095
53096         * lib/error.c: Correct cpp indentation.
53097
53098 2003-09-27  Paul Eggert  <eggert@twinsun.com>
53099
53100         * modules/free: New file.
53101
53102 2003-09-27  Paul Eggert  <eggert@twinsun.com>
53103
53104         * m4/free.m4: New file.
53105
53106 2003-09-27  Paul Eggert  <eggert@twinsun.com>
53107
53108         * lib/minmax.h (MIN, MAX)
53109         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
53110         Omit the special code that used __typeof__, since we worry that
53111         it could be more trouble than it's worth.  See:
53112         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
53113         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
53114
53115         * lib/free.c: New file.
53116
53117 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
53118
53119         Trivial fixes to Makefile.am parts of module listings.
53120         * modules/strstr: Append strstr.h to lib_SOURCES.
53121         * modules/strcase: Likewise, for strcase.h.
53122
53123 2003-09-27  Karl Berry  <karl@gnu.org>
53124
53125         * config/mkinstalldirs: update from automake.
53126
53127 2003-09-26  Paul Eggert  <eggert@twinsun.com>
53128
53129         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
53130         (error_tail): Do not loop, reallocating temporary buffer, since
53131         the output cannot contain more wide characters than the input
53132         contains bytes, the size must be big enough already.  This avoids
53133         one potential size overflow calculation.  Check for size overflow
53134         when calculating temporary buffer size.  Free temporary buffer
53135         when done, if it was allocated with malloc; this plugs a memory
53136         leak.  Remove casts from void * to pointers, that are no longer
53137         needed now that we're assuming C89 or better.
53138
53139         Merge error changes from glibc.
53140
53141         * lib/error.c, error.h: Update copyright notice header to match glibc.
53142         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
53143         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
53144         Disable cancellation while printing error.
53145         * lib/error.h: Prepend __ to parameter names.
53146
53147 2003-09-26  Jim Meyering  <jim@meyering.net>
53148
53149         * lib/error.c (error_tail): Move some declarations
53150         into inner scope where the local variables are used.
53151
53152 2003-09-26  Bruno Haible  <bruno@clisp.org>
53153
53154         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
53155         stpncpy().
53156         Don't define stpncpy through config.h; it's now done through stpncpy.h.
53157
53158 2003-09-26  Bruno Haible  <bruno@clisp.org>
53159
53160         * lib/stpncpy.h (gnu_stpncpy): New declaration.
53161         (stpncpy): Define as alias for gnu_stpncpy.
53162         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
53163
53164 2003-09-25  Simon Josefsson  <jas@extundo.com>
53165
53166         * lib/xgetdomainname.h: New file.
53167         * lib/xgetdomainname.c: New file.
53168
53169 2003-09-25  Simon Josefsson  <jas@extundo.com>
53170             Bruno Haible  <bruno@clisp.org>
53171
53172         * modules/getdomainname: New file.
53173         * modules/xgetdomainname: New file.
53174         * MODULES.html.sh (func_all_modules): Add getdomainname,
53175         xgetdomainname.
53176
53177 2003-09-25  Simon Josefsson  <jas@extundo.com>
53178             Bruno Haible  <bruno@clisp.org>
53179
53180         * m4/getdomainname.m4: New file.
53181
53182 2003-09-25  Simon Josefsson  <jas@extundo.com>
53183             Bruno Haible  <bruno@clisp.org>
53184
53185         * lib/getdomainname.h: New file.
53186         * lib/getdomainname.c: New file.
53187
53188 2003-09-25  Karl Berry  <karl@gnu.org>
53189
53190         * lib/argp-fmtstream.c, argp-help.c: update from libc.
53191
53192 2003-09-25  Karl Berry  <karl@gnu.org>
53193
53194         * config/install-sh: update from automake.
53195
53196 2003-09-25  Bruno Haible  <bruno@clisp.org>
53197
53198         * modules/version-etc-2: New file, from modules/version-etc with
53199         modifications.
53200         * MODULES.html.sh (func_all_modules): Add version-etc-2.
53201
53202 2003-09-25  Bruno Haible  <bruno@clisp.org>
53203
53204         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
53205         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
53206
53207 2003-09-24  Simon Josefsson  <jas@extundo.com>
53208
53209         * modules/xgethostname: Add xgethostname.h.
53210
53211 2003-09-24  Paul Eggert  <eggert@twinsun.com>
53212
53213         * lib/linebuffer.c (freebuffer): Don't free the argument, just
53214         the buffer associated with the argument.  Bug reported by
53215         Simon Josefsson.
53216
53217 2003-09-24  Paul Eggert  <eggert@twinsun.com>
53218
53219         * README: Document assumptions that 'int' is at least 32 bits
53220         wide, that integer arithmetic is 2's complement without overflow,
53221         that there are no holes in integer values, that adding sizes of
53222         two nonoverlapping objects can't overflow, and that all-bits-zero
53223         yields scalar zero.  Fix spelling and capitalization typos.
53224
53225 2003-09-19  Karl Berry  <karl@gnu.org>
53226
53227         * lib/argp.h: update from libc.
53228
53229 2003-09-17  Paul Eggert  <eggert@twinsun.com>
53230
53231         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
53232         to avoid spurious warnings like "AC_RUN_IFELSE was called before
53233         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
53234
53235 2003-09-17  Paul Eggert  <eggert@twinsun.com>
53236
53237         * gnulib-tool: Use "test -h", not "test -L", for portability
53238         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
53239         (tags_regexp): Remove, since \| doesn't conform to POSIX.
53240         (sed_extract_prog): Issue s commands one-by-one, rather than
53241         using \| in one s command.
53242
53243 2003-09-16  Paul Eggert  <eggert@twinsun.com>
53244
53245         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
53246         input error, instead of returning NULL the next time we are called
53247         (and therefore losing track of errno).
53248
53249 2003-09-16  Bruno Haible  <bruno@clisp.org>
53250
53251         * gnulib-tool (func_create_testdir): Warn about duplicated
53252         dependencies.
53253
53254 2003-09-15  Paul Eggert  <eggert@twinsun.com>
53255
53256         * modules/argmatch, modules/fatal, modules/obstack,
53257         modules/xalloc, modules/xgethostname: Sort dependencies by
53258         importance, not alphabetically.
53259
53260 2003-09-15  Paul Eggert  <eggert@twinsun.com>
53261
53262         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
53263         fails, so that the caller gets the proper errno.
53264
53265         * lib/readutmp.c (read_utmp): Likewise.
53266         Check for fstat error.  Close stream and free storage
53267         when failing.
53268
53269 2003-09-14  Karl Berry  <karl@gnu.org>
53270
53271         * config/srclist.txt (strdup.c): disable for c89 changes.
53272
53273 2003-09-14  Jim Meyering  <jim@meyering.net>
53274
53275         * lib/getloadavg.c: Correct cpp indentation.
53276         * lib/strdup.c: Likewise.
53277         * lib/vasnprintf.c: Likewise.
53278
53279 2003-09-14  Bruno Haible  <bruno@clisp.org>
53280
53281         * modules/fwriteerror: New file.
53282         * MODULES.html.sh (func_all_modules): Add fwriteerror.
53283
53284 2003-09-14  Bruno Haible  <bruno@clisp.org>
53285
53286         * lib/fwriteerror.h: New file.
53287         * lib/fwriteerror.c: New file.
53288
53289 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53290
53291         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
53292         modules/xgethostname, modules/xalloc: Depend on exit.
53293
53294 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53295
53296         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
53297
53298         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
53299         and AC_MINIX, too, so that their extensions are available.
53300
53301         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
53302         This macro has been superseded by gl_BACKUPFILE.
53303
53304         More patches to assume C89 or better.
53305
53306         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
53307
53308         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
53309         unconditionally.
53310         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
53311         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
53312         Include <string.h>, <stdlib.h> unconditionally.
53313         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
53314         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
53315         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
53316         headers or for string.h.
53317         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
53318         or strtoul.
53319
53320         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
53321         headers.
53322         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
53323         * m4/userspec.m4 (gl_USERSPEC): Likewise.
53324         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
53325         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
53326         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53327         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
53328         memcpy, memset.
53329         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
53330         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
53331         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
53332         strtol.
53333         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
53334         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
53335         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
53336         strtoul.
53337
53338 2003-09-12  Paul Eggert  <eggert@twinsun.com>
53339
53340         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
53341         * lib/obstack.c [!defined _LIBC]: Likewise.
53342         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
53343         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
53344         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
53345
53346         More changes to assume C89 or better.
53347
53348         * lib/error.c (error_tail): Assume vprintf.
53349
53350         * lib/argmatch.c (getenv): Remove decl.
53351         * lib/progreloc.c (get_full_program_name): Define via prototype.
53352         * lib/setenv.c (clearenv): Likewise.
53353         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
53354         needed.
53355         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
53356         (malloc, memcpy): Remove decls.
53357         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
53358         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
53359         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53360         (memcpy): Remove macro.
53361         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
53362         (__P): Remove.  All uses removed.
53363         (PTR): Remove.  All uses changed to void *.
53364         (CHAR_BIT, NULL): Remove.
53365         (spaces, zeros, memset_space, memset_zero)
53366         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
53367         Remove.
53368         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
53369         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
53370         Define with prototype.
53371         Remove now-unnecessary prototype decl.
53372         (extra_args_spec): Assume ANSI C.  All uses changed.
53373         (extra_args_spec_iso): Remove.
53374         (my_strftime, emacs_strftimeu): Define via prototype.
53375         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
53376         unconditionally.
53377         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
53378         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
53379         (strtoul, strtol): Remove decls.
53380         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
53381         LONG_MAX): Remove.
53382         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53383         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
53384         (LOCALE_PARAM_PROTO): New macro.
53385         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
53386         (INTERNAL (strtol), strtol): Define with a prototype.
53387         (PARAMS): Remove.  All uses removed.
53388         * lib/tempname.c: Include <string.h> unconditionally.
53389         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
53390         * lib/xgethostname.c (main): Define with a prototype.
53391         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
53392         Include <stdlib.h> unconditionally.
53393         (calloc, malloc, realloc, free): Remove decls.
53394         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
53395         Include <stdlib.h> unconditionally.  Sort include file names.
53396         (strtod): Remove.
53397         (xstrtod): Define with a prototype.
53398         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
53399         (strtol, strtoul): Remove decls.
53400
53401 2003-09-11  Paul Eggert  <eggert@twinsun.com>
53402
53403         More patches to assume C89 or better.
53404         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
53405         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
53406         string.h, memchr, STDC_HEADERS.
53407
53408 2003-09-11  Paul Eggert  <eggert@twinsun.com>
53409
53410         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
53411         Include <stdlib.h>, <string.h> unconditionally.
53412         Remove now-unnecessary cast to char *.
53413         * lib/strnlen.c: Include <string.h> unconditionally.
53414         * lib/yesno.c (yesno): Define with a prototype.
53415
53416 2003-09-11  Bruno Haible  <bruno@clisp.org>
53417
53418         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
53419
53420 2003-09-10  Jim Meyering  <jim@meyering.net>
53421
53422         * lib/error.c: Correct indentation of cpp directives.
53423
53424 2003-09-10  Bruno Haible  <bruno@clisp.org>
53425
53426         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
53427         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
53428         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
53429         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
53430         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
53431         <stdlib.h> and <string.h> checks.
53432         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
53433         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
53434
53435 2003-09-10  Bruno Haible  <bruno@clisp.org>
53436
53437         * lib/strcspn.c: Include <string.h> unconditionally.
53438         * lib/strpbrk.c: Include <string.h> unconditionally.
53439         * lib/strstr.c: Include <string.h> unconditionally.
53440         * lib/unicodeio.c: Include <string.h> unconditionally.
53441         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
53442         * lib/unsetenv.c: Likewise.
53443         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
53444         * lib/yesno.c: Include <stdlib.h> unconditionally.
53445         (rpmatch): Add prototype.
53446
53447 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53448
53449         More patches to assume C89 or better.
53450         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
53451         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
53452         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
53453         or for string.h.
53454         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
53455         stdlib.h.
53456         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
53457         C headers.
53458         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
53459         string.h.
53460         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
53461         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
53462         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
53463         or for string.h.
53464         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
53465         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
53466         C headers.
53467         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
53468         memcpy.
53469         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
53470         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
53471         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
53472         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
53473         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
53474         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
53475         string.h, free.
53476         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
53477         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
53478         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
53479         C headers, or for string.h.
53480         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
53481         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
53482         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
53483         headers, memory.h, stdlib.h, string.h, strings.h.
53484         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
53485         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
53486         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
53487         strchr.
53488         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
53489         headers, memory.h, string.h.
53490         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
53491         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
53492         free.
53493         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
53494         headers.
53495         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
53496         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
53497         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
53498         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
53499         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
53500
53501 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53502
53503         More K&R removal.
53504
53505         * lib/acosl.c (main): Use a prototype.
53506         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
53507         tanl.c: Likewise.
53508
53509         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
53510
53511         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
53512         (getopt, etopt_long, getopt_long_only, _getopt_internal)
53513         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
53514         with a prototype.
53515         * lib/getopt.c (const): Remove macro.
53516         Include <string.h> unconditionally.
53517         (my_index): Remove; all uses changed to strchr.
53518         (strlen): Remove decl.
53519         (exchange): Remove forward decl; no longer needed.
53520         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
53521         Define with prototype.
53522         * lib/getopt1.c (const): Remove macro.
53523         (getopt_long, getopt_long_only, main): Define with prototype.
53524
53525         * lib/getugroups.c: Include <string.h> unconditionally.
53526
53527         * lib/getusershell.c: Include <stdlib.h> unconditionally.
53528         (getusershell, setusershell, endusershell, readname, main):
53529         Define with prototypes.
53530
53531         * lib/group-member.c: Include group-member.h first.
53532         Include <stdlib.h> unconditionally.
53533
53534         * lib/hard-locale.c: Include hard-locale.h first.
53535         Include <stdlib.h>, <string.h> unconditionally.
53536
53537         * lib/hash.c (free, malloc): Remove decls.
53538         Include <stdlib.h> unconditionally.
53539
53540         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
53541         (getenv): Do not declare.
53542
53543         * lib/idcache.c: Include <string.h> unconditionally.
53544
53545         * lib/long-options.c: Include long-options.h first, to test interface.
53546         Include <stdlib.h> unconditionally.
53547
53548         * lib/makepath.c: Include makepath.h first, to test interface.
53549         Include <stdlib.h> and <string.h> unconditionally.
53550
53551         * lib/linebuffer.c: Include <stdlib.h>.
53552         (free): Remove decl.
53553
53554         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
53555         stddef.h. rpl_malloc returns void *, not char *.
53556         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
53557         prototype.
53558
53559         * lib/md5.h: Include <limits.h> unconditionally.
53560         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
53561         (__P): Remove; all uses removed.
53562         * lib/md5.c: Include "md5.h" first.
53563         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
53564         md5_buffer, md5_process_bytes, md5_process_block):
53565         Define with prototypes.
53566         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
53567         * lib/sha.c: Include "sha.h" first.
53568         Include <stdlib.h>, <string.h> unconditionally.
53569
53570         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
53571         * lib/memcmp.c (__ptr_t): Likewise.
53572         * lib/memrchr.c (__ptr_t): Likewise.
53573         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
53574         Include <string.h> unconditionally.
53575         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
53576         * lib/memchr.c: Include <stdlib.h> unconditionally.
53577         * lib/memchr.c (LONG_MAX): Remove.
53578         * lib/memrchr.c (LONG_MAX): Likewise.
53579         * lib/memchr.c (__memchr): Define via a prototype.
53580         * lib/memrchr.c (__memrchr): Likewise.
53581         * lib/memcmp.c (__P): Remove, and remove all uses.
53582         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
53583         Remove forward decls; no longer needed.
53584         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
53585         Use types required by C89 in prototype.
53586
53587         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
53588         * lib/savedir.c: Likewise.
53589         * lib/mkdir.c (free): Remove decl.
53590         * lib/rmdir.c (rmdir): Define with a prototype.
53591         * lib/savedir.c: Include savedir.h first, to test interface.
53592
53593         * lib/mktime.c (STDC_HEADERS): Remove.
53594         Include <stdlib.h>, <string.h> unconditionally.
53595
53596         * lib/modechange.c: Include <stdlib.h> unconditionally.
53597         (malloc): Remove decl.
53598
53599         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
53600         (free): Remove decl.
53601
53602         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
53603         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
53604         (This type really should be intptr_t, but that's a C99ism.)
53605         (_obstack_memcpy): Remove: all uses changed to memcpy.
53606         Include <string.h> unconditionally.
53607         (struct obstack): Assume __STDC__ for types of members
53608         chunkfun, freefun, extra_arg.
53609         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
53610         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
53611         obstack_begin, obstack_specify_allocation,
53612         obstack_specify_allocation_with_arg, obstack_chunkfun,
53613         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
53614         Remove unprototyped decls and the macros that use them.
53615         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
53616         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
53617         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
53618         (defined __STDC__ && __STDC__)]:
53619         Remove nonprototyped code.
53620         Include <stdlib.h> unconditionally.
53621         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
53622         _obstack_allocated_p, _obstack_free, obstack_free,
53623         _obstack_memory_used, print_and_abort):
53624         Define using prototypes.
53625         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
53626         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
53627         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
53628         obstack_next_free, obstack_object_size, obstack_room) [0]:
53629         Remove unused, unprototyped code.
53630
53631         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
53632
53633         * lib/physmem.c (physmem_total, physmem_available, main): Define
53634         with prototypes.
53635
53636         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
53637         (main): Define with a prototype.
53638
53639         * lib/posixver.c (getenv): Remove decl.
53640
53641         * lib/putenv.c (malloc): Returns void *, not char *.
53642         Include <string.h> unconditionally.
53643         (strchr, memcpy, NULL): Do not define.
53644
53645         * lib/readtokens.c: Include readtokens.h first, to test interface.
53646         Include <stdlib.h>, <string.h> unconditionally.
53647         (init_tokenbuffer): Define with a prototype.
53648
53649         * lib/regex.c (PARAMS): Remove.  All uses removed.
53650         All uses of _RE_ARGS removed, too.
53651         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53652         unconditionally.
53653         (bzero): Assume memset exists.
53654         (memcmp, memcpy, NULL): Remove.
53655         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
53656         char, or assignments to local vars of type signed char.
53657         (init_syntax_once, PREFIX(extract_number_and_incr),
53658         PREFIX(print_partial_compiled_pattern),
53659         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
53660         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
53661         PREFIX(regex_grow_registers), PREFIX(regex_compile),
53662         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
53663         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
53664         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
53665         wcs_compile_range, byte_compile_range, truncate_wchar,
53666         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
53667         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
53668         count_mbs_length, wcs_re_match_2_internal,
53669         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
53670         PREFIX(alt_match_null_string_p),
53671         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
53672         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
53673         regfree, PREFIX(extract_number)): Define with prototype.  Remove
53674         now-unnecessary declaration, if any.
53675         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
53676         regcomp, regexec):
53677         Remove now-unnecessary casts among pointer types.
53678         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
53679
53680         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
53681         (free): Remove decl.
53682
53683         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
53684
53685         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
53686         (free): Remove decl.
53687
53688         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
53689         * lib/xgetcwd.c: Likewise.
53690
53691         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
53692         (free): Remove decl.
53693
53694         * lib/strchrnul.c (strchrnul): Define with a prototype.
53695         Fix bug: c_in was not converted to char before searching.
53696
53697         The following changes are not K&R related:
53698
53699         * lib/group-member.h: Include <sys/types.h>, so that this file is
53700         self-contained.
53701         * lib/makepath.h: Likewise.
53702
53703         * lib/getusershell.c (readname, default_index, line_size, readname):
53704         Use size_t, not int, for sizes.
53705         (readname): If the size overflows, report an error instead of
53706         looping forever.
53707
53708 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53709
53710         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
53711         libc.
53712
53713 2003-09-09  Paul Eggert  <eggert@twinsun.com>
53714
53715         * README: New section: portability guidelines.
53716
53717 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
53718
53719         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
53720         C89 spec.
53721
53722 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
53723
53724         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
53725
53726 2003-09-08  Paul Eggert  <eggert@twinsun.com>
53727
53728         Assume C89 or better; remove K&R cruft.
53729         A few of these changes were first proposed by Derek Robert Price
53730         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
53731
53732         * lib/addext.c: Include <string.h> unconditionally.
53733         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
53734         Don't declare getenv or malloc.
53735
53736         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
53737         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
53738         (NULL): Remove.
53739         (find_stack_direction, alloca): Use prototypes.
53740
53741         * lib/atexit.c (atexit): Define using a prototype.
53742
53743         * lib/basename.c, dirname.c, stripslash.c:
53744         Include <string.h> unconditionally.
53745
53746         * lib/bcopy.c: Include <stddef.h>.
53747         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
53748
53749         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
53750
53751         * lib/error.h (error, error_at_line, error_print_progname)
53752         [! (defined (__STDC__) && __STDC__)]: Remove decls.
53753         * lib/error.c: Include error.h first, to check interface.
53754         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
53755         (VA_START): Remove; all uses changeed to va_start.
53756         (exit, strerror): Remove decls.
53757         (error_print_progname): Prototype uncondionally.
53758         Don't include <errno.h>; no longer needed.
53759         (private_strerror): Remove.
53760         (error_tail): Always define.
53761         (error, error_at_line): Assume C89 or better; always use prototypes.
53762         * lib/fatal.c: Include "fatal.h" first, to test interface.
53763         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
53764         (VA_START): Remove; all uses changed to va_start.
53765         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
53766         this case.
53767         (exit): Remove decl.
53768         (fatal): Prototype unconditionally.  Assume va_start works.
53769         Abort at end, to pacify gcc.
53770
53771         * lib/euidaccess.c (main): Define with a prototype.
53772
53773         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
53774
53775         * lib/exitfail.c: Include <stdlib.h> unconditionally.
53776
53777         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
53778         prototypes.
53779         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
53780         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
53781         (getenv): Remove decl.
53782         (fnmatch): Define using a prototype.
53783         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
53784         (FCT): Define using a prototype.
53785
53786         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
53787
53788         * lib/gethostname.c: Include <stddef.h>.
53789         (gethostname): Define with prototype.  Length is size_t, not int.
53790
53791 2003-09-08  Paul Eggert  <eggert@twinsun.com>
53792
53793         Assume C89 or better; remove K&R cruft.
53794         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
53795         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
53796         string.h, getenv, malloc.
53797         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
53798         headers.
53799         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
53800         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
53801         do not check for strerror.
53802         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
53803         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
53804         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
53805         do not check for doprnt or vprintf.
53806         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
53807         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
53808
53809 2003-09-08  Paul Eggert  <eggert@twinsun.com>
53810
53811         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
53812         getversion.c should have been removed then, but was accidentally
53813         preserved.
53814
53815         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
53816         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
53817
53818 2003-09-08  Karl Berry  <karl@gnu.org>
53819
53820         * config/config.sub, config.guess, srclistvars.sh: update from savannah
53821                 config, forget about prep.
53822
53823         * config/depcomp, missing: update from automake.
53824
53825 2003-09-07  Paul Eggert  <eggert@twinsun.com>
53826
53827         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
53828         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
53829
53830 2003-09-07  Paul Eggert  <eggert@twinsun.com>
53831
53832         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
53833         copy_tm_result.  Bug reported by Simon Josefsson in
53834         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
53835
53836 2003-09-06  Paul Eggert  <eggert@twinsun.com>
53837
53838         * m4/time_r.m4: New file.
53839         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
53840         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
53841         is. Check for timegm declaration.
53842         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
53843         Do not check for gmtime_r.
53844         Replace mktime if __mktime_internal does not exist and if mktime
53845         hasn't been replaced already.
53846
53847 2003-09-06  Paul Eggert  <eggert@twinsun.com>
53848
53849         * lib/time_r.c, lib/time_r.h: New files.
53850
53851         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
53852         __localtime_r.
53853         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
53854         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
53855
53856         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
53857         __gmtime_r.
53858         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
53859         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
53860         Include <time_r.h>.
53861
53862         * lib/timegm.c: Switch to glibc implementation, with the following
53863         changes:
53864         [defined HAVE_CONFIG_H]: Include <config.h>.
53865         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
53866         (__mktime_internal) [!defined _LIBC]: New decl.
53867         (__gmtime_r) [!defined _LIBC]: New macro and function.
53868         (timegm): Use a prototype, since gnulib assumes C89.
53869         Do not bother declaring tmp to be const, as it's not really usefu.
53870         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
53871         (timegm): Declare only if HAVE_DECL_TIMEGM.
53872
53873 2003-09-06  Paul Eggert  <eggert@twinsun.com>
53874
53875         * MODULES.html.sh (func_all_modules): Add time_r.
53876         * modules/time_r: New file.
53877         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
53878         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
53879
53880 2003-09-03  Paul Eggert  <eggert@twinsun.com>
53881
53882         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
53883         Bug reported by Lute Kamstra in
53884         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
53885
53886         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
53887         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
53888         course with correspondingly smaller numbers for tomorrow and
53889         yesterday.  From Tadayoshi Funaba.  Originally installed into
53890         sh-utils on 1999-08-07, but the patch got lost (I guess during the
53891         coreutils merge?).
53892
53893 2003-08-31  Simon Josefsson  <jas@extundo.com>
53894
53895         * modules/timegm: New file.
53896         * MODULES.html.sh (func_all_modules): Add timegm.
53897
53898 2003-08-31  Simon Josefsson  <jas@extundo.com>
53899
53900         * m4/timegm.m4: New file.
53901
53902 2003-08-31  Simon Josefsson  <jas@extundo.com>
53903
53904         * lib/timegm.h: New file.
53905         * lib/timegm.c: New file.  Based on
53906         wget-1.8.2/src/http.c:mktime_from_utc.
53907
53908 2003-08-31  Karl Berry  <karl@gnu.org>
53909
53910         * lib/argp.h: update from libc.
53911
53912 2003-08-28  Bruno Haible  <bruno@clisp.org>
53913
53914         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
53915         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
53916         followed by '#define fnmatch fnmatch_posix' gives an error.
53917
53918 2003-08-28  Bruno Haible  <bruno@clisp.org>
53919
53920         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
53921         warning on QNX, which defines O_BINARY to 000000.
53922
53923 2003-08-27  Jim Meyering  <jim@meyering.net>
53924
53925         * m4/mkstemp.m4: Require that the system mkstemp be able to create
53926         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
53927         would fail after 32.  Reported by Danny Levinson.  Details here:
53928         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
53929
53930 2003-08-24  Bruno Haible  <bruno@clisp.org>
53931
53932         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
53933         MSVC7 <stdio.h> is included later.
53934
53935 2003-08-22  Simon Josefsson  <jas@extundo.com>
53936
53937         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
53938
53939 2003-08-20  Karl Berry  <karl@gnu.org>
53940
53941         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
53942
53943 2003-08-20  Bruno Haible  <bruno@clisp.org>
53944
53945         * modules/progname: New file.
53946         * MODULES.html.sh (func_all_modules): Add progname.
53947
53948 2003-08-20  Bruno Haible  <bruno@clisp.org>
53949
53950         * lib/progname.h: New file, from GNU gettext.
53951         * lib/progname.c: New file, from GNU gettext.
53952         * lib/progreloc.c: New file, from GNU gettext.
53953
53954 2003-08-19  Jim Meyering  <jim@meyering.net>
53955
53956         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
53957         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
53958
53959 2003-08-19  Bruno Haible  <bruno@clisp.org>
53960
53961         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
53962         more.
53963
53964 2003-08-19  Bruno Haible  <bruno@clisp.org>
53965
53966         * lib/xstrdup.c: Assume <string.h> exists.
53967
53968 2003-08-18  Paul Eggert  <eggert@twinsun.com>
53969
53970         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
53971         in makefile rules.
53972
53973 2003-08-18  Jim Meyering  <jim@meyering.net>
53974
53975         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
53976         * m4/lib-ld.m4: Likewise.
53977
53978 2003-08-18  Jim Meyering  <jim@meyering.net>
53979
53980         * lib/setenv.h: Indent nested cpp directive.
53981         * lib/vasnprintf.c: Remove trailing blanks.
53982
53983 2003-08-17  Simon Josefsson  <jas@extundo.com>
53984
53985         * modules/xstrndup: New file.
53986         * MODULES.html.sh (func_all_modules): Add xstrndup.
53987
53988 2003-08-17  Simon Josefsson  <jas@extundo.com>
53989
53990         * modules/argp: Fix autoconf macro name. Add more dependencies.
53991
53992 2003-08-17  Simon Josefsson  <jas@extundo.com>
53993
53994         * m4/xstrndup.m4: New file.
53995
53996 2003-08-17  Simon Josefsson  <jas@extundo.com>
53997
53998         * m4/argp.m4: New file.
53999
54000 2003-08-17  Simon Josefsson  <jas@extundo.com>
54001             Bruno Haible  <bruno@clisp.org>
54002
54003         * lib/xstrndup.h: New file.
54004         * lib/xstrndup.c: New file.
54005
54006 2003-08-17  Bruno Haible  <bruno@clisp.org>
54007
54008         * modules/strndup (Files, Include): Add lib/strndup.h.
54009
54010 2003-08-17  Bruno Haible  <bruno@clisp.org>
54011
54012         * modules/euidaccess (Files): Add lib/euidaccess.h.
54013
54014 2003-08-17  Bruno Haible  <bruno@clisp.org>
54015
54016         * lib/strndup.h: New file.
54017
54018 2003-08-17  Bruno Haible  <bruno@clisp.org>
54019
54020         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
54021         like AC_GNU_SOURCE.
54022         * modules/extensions (configure.ac): Comment out the invocation of
54023         gl_USE_SYSTEM_EXTENSIONS.
54024
54025 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54026
54027         Merges from coreutils, etc.
54028         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
54029         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
54030         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
54031         fixing a typo.
54032         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
54033         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
54034
54035 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54036
54037         Document merge from coreutils.
54038         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
54039         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
54040         * modules/utime: Add m4/utimes-null.m4.
54041
54042 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54043
54044         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
54045         space, undoing this 2003-08-12 change:
54046         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
54047
54048 2003-08-16  Paul Eggert  <eggert@twinsun.com>
54049
54050         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
54051         strtoul.c from libc, undoing this 2003-08-12 change:
54052         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
54053
54054 2003-08-16  Jim Meyering  <jim@meyering.net>
54055
54056         Merges from coreutils.
54057         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
54058         prefix.  Adjust cache variables similarly.  Create 500 rather than
54059         just 300 files, to exercise bug on Darwin6.5, too.
54060         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
54061         $missing_dir.
54062         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
54063         AM_SYS_POSIX_TERMIOS.
54064         Reported by mkc@mathdogs.com.
54065         Also change use of $am_cv_sys_posix_termios
54066         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
54067         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
54068         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
54069         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
54070         in /proc/mounts until it finds one with matching device number.  This
54071         is unnecessary when the FILE argument *is* a mount point.  No stat call
54072         is necessary in that case.  So, disable the statvfs-testing code on
54073         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
54074         as RedHat bug# 84846.
54075         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
54076         to 1MB, so as not to render systems with no stack size limit (e.g.,
54077         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
54078         Include <unistd.h>.  On some systems,
54079         it is required for the definition of _SC_PAGESIZE.
54080
54081 2003-08-16  Jim Meyering  <jim@meyering.net>
54082
54083         Merge from coreutils.
54084         * lib/xstrtoimax.c: #else #if -> #elif.
54085         * lib/xstrtoumax.c: Likewise.
54086
54087 2003-08-16  Jim Meyering  <jim@meyering.net>
54088
54089         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
54090         * m4/utimes.m4: Removed.
54091         * m4/utimes-null.m4: Renamed from utimes.m4.
54092
54093         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
54094         to 1MB, so as not to render systems with no stack size limit (e.g.,
54095         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
54096         Include <unistd.h>.  On some systems,
54097         it is required for the definition of _SC_PAGESIZE.
54098
54099 2003-08-16  Jim Meyering  <jim@meyering.net>
54100         and Paul Eggert  <eggert@cs.ucla.edu>
54101
54102         Merges from coreutils, etc.
54103
54104         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
54105         using the latest version from cvs.  This avoids problems with #line
54106         directives using a vendor (Sun) compiler.
54107         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
54108         Don't set GETGROUPS_LIB here; now it's
54109         done via getgroups.m4's wrapper function.
54110         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
54111         rather than just in sh-util/configure.in, so that the
54112         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
54113         same.
54114         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
54115         AC_FUNC_GETLOADAVG where to find getloadavg.c.
54116         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
54117         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
54118         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
54119         Remove code that is now done by the newly-required macros.
54120         Append $(EXEEXT) to DF_PROG.
54121         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
54122         Do not invoke or require the following here,
54123         since prereq.m4 or some gnulib .m4 now does this for us:
54124         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
54125         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
54126         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
54127         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
54128         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
54129         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
54130         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
54131         AC_FUNC_OBSTACK.
54132         Do not replace the following functions, as this is now the job
54133         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
54134         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
54135         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
54136         atexit getpass, strdup, getpagesize.
54137         Replace 'raise'.
54138         Do not check for the following functions, as this is now the job
54139         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
54140         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
54141         setregid.
54142         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
54143         Check for sys/sysctl.h.
54144         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
54145         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
54146         of checking for ssize_t ourselves.
54147
54148         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
54149         Require every macro that gnulib/modules/* suggests for us.
54150         (jm_PREREQ_ADDEXT): New macro.
54151         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
54152         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
54153
54154         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
54155         (gl_PHYSMEM): Use it.
54156         Also check for `table' function.
54157         Check for new headers and functions.
54158         Add check for sys/sysmp.h.
54159         With suggestions from Kaveh Ghazi.
54160         Ignore headers that are present but cannot be compiled.  This
54161         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
54162         C 5.4.
54163
54164 2003-08-15  Paul Eggert  <eggert@twinsun.com>
54165
54166         Document merge from coreutils.
54167         * modules/userspec: Depend on posixver.
54168         * modules/strftime: Depend on tzset.
54169
54170 2003-08-15  Paul Eggert  <eggert@twinsun.com>
54171
54172         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
54173         rather than tab, after '#' in shell-script copyright notices.
54174         Suggested by Bruno Haible.
54175
54176 2003-08-15  Paul Eggert  <eggert@twinsun.com>
54177
54178         * config/srclist-update: Use three spaces, rather than tab, after '#'
54179         in shell-script copyright notices.  Suggested by Bruno Haible.
54180         Remove unnecessary parenthesization in regular expression.
54181
54182 2003-08-15  Jim Meyering  <jim@meyering.net>
54183
54184         Merge from coreutils.
54185         * lib/xgethostname.c: Include <stdlib.h>.
54186         (xghostname): Don't exit for anything other than memory-related
54187         failure; just return NULL.
54188         * lib/userspec.c: Include "posixver.h".
54189         (parse_user_spec): Accept `.' as a separator only
54190         in pre-POSIX-200112 mode.
54191         * lib/strtoimax.c: Use #elif rather than #else #if.
54192         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
54193         Remove function, now that we can rely on a working tzset function.
54194         [!_LIBC]: Ensure that the required autoconf test has been run.
54195         [!defined _NL_CURRENT && HAVE_STRFTIME]:
54196         Use underlying_strftime for %r.
54197         * lib/sha.c: Merge in some clean-up and optimization changes from
54198         glibc.
54199         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
54200         Ensure that it is a multiple of 64.
54201         Rearrange loop exit tests so as to avoid performing an
54202         additional fread after encountering an error or EOF.
54203         * lib/realloc.c: Update copyright date.
54204
54205 2003-08-15  Jim Meyering  <jim@meyering.net>
54206         and Paul Eggert  <eggert@twinsun.com>
54207
54208         Merge from coreutils.
54209         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
54210         member but strut utmpx does not.  Needed for AIX 4.3.3.
54211         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
54212
54213 2003-08-15  Jim Meyering  <jim@meyering.net>
54214         and Paul Eggert  <eggert@cs.ucla.edu>
54215
54216         Merges from coreutils, etc.
54217         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
54218         Require gl_FUNC_TZSET_CLOBBER.
54219         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
54220         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
54221         members.
54222
54223 2003-08-14  Paul Eggert  <eggert@twinsun.com>
54224
54225         Help the merge from coreutils.
54226         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
54227         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
54228         * m4/tzset.m4: Use it too.
54229
54230 2003-08-14  Paul Eggert  <eggert@twinsun.com>
54231
54232         * modules/tzset: New file.
54233
54234 2003-08-14  Jim Meyering  <jim@meyering.net>
54235
54236         Merges from coreutils.
54237         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
54238         variable names, rather than @FNMATCH_H@.
54239         * modules/alloca: Likewise for $(ALLOCA_H).
54240
54241         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
54242         the three copies of the literal target, `fnmatch.h'.
54243         * modules/alloca (alloca.h): Likewise.
54244
54245 2003-08-14  Jim Meyering  <jim@meyering.net>
54246
54247         Merge from coreutils.
54248         * m4/tzset.m4: New file.
54249         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
54250         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
54251         otherwise, AIX 5.1 systems would end up using the latter.
54252         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
54253         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
54254         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
54255         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
54256
54257 2003-08-14  Jim Meyering  <jim@meyering.net>
54258
54259         Merge from coreutils.
54260         * lib/obstack.h: Whitespace changes.
54261         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
54262         and xcalloc return values.
54263         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
54264         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
54265         hang on OSF/1 5.1 for DIR on both local and remote file systems.
54266         Reported by (and fix confirmed by) Nelson H. F. Beebe.
54267         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
54268         error from mntctl.
54269         Use mntctl's return value to drive the entry-processing loop, since
54270         we can't rely on the value of the vmt_length member in the last
54271         entry.  On some systems doing so could result in exhausting
54272         virtual memory.  Based in part on a patch from Mike Jetzer.
54273
54274 2003-08-14  Jim Meyering  <jim@meyering.net>
54275         and Paul Eggert  <eggert@twinsun.com>
54276
54277         Merges from coreutils, plus other fixes.
54278         * lib/physmem.c: Merge in portability changes from gcc/libiberty
54279         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
54280         for credits and details.  Thanks to Kaveh Ghazi for helping
54281         to keep these files in sync.
54282         (ARRAY_SIZE): Define it.
54283         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
54284         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
54285         (memcasecmp): Don't assume size_t fits in unsigned int.
54286         Remove casts and duplicate code.
54287         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
54288         (memcpy): Remove definition.
54289         Merge in some clean-up and optimization changes from glibc.
54290         [BLOCKSIZE]: Move definition to top of file.
54291         Ensure that it is a multiple of 64.
54292         Rearrange loop exit tests so as to avoid performing an
54293         additional fread after encountering an error or EOF.
54294         * lib/md5.h (md5_uintptr): Define.
54295         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
54296         return to the initial working directory.  Preserve errno
54297         for caller.
54298         * lib/idcache.c: Include "xalloc.h".
54299         (xmalloc, xrealloc): Remove decls.
54300         (getuser): Remove casts no longer required in C89.
54301         * lib/human.c: Include stdio.h, for sprintf.
54302         * lib/group-member.c: Include "xalloc.h".
54303         (xmalloc, xrealloc): Remove decls.
54304         (get_group_info): Remove casts no longer required in C89.
54305         * lib/getusershell.c (readname): Remove casts no longer required in
54306         C89.
54307         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
54308         * lib/getline.c: Whitespace fix, from coreutils.
54309
54310 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54311
54312         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
54313         Check for isascii.
54314
54315         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54316         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54317         Undo previous (whitespace-only) change.
54318
54319 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54320
54321         * lib/exclude.c: Include <ctype.h>
54322         (IN_CTYPE_DOMAIN): New macro.
54323         (is_space): New fn.
54324         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
54325         and empty lines.
54326
54327         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54328         Undo previous (whitespace-only) change.
54329
54330 2003-08-13  Paul Eggert  <eggert@twinsun.com>
54331
54332         * config/srclist-update: Change update back to the old behavior,
54333         leaving whitespace alone.  Use one 'sed' command rather than a
54334         pipeline.
54335         (fixlicense): Now a variable, not a function.
54336         (remove_trailing_blanks): Remove.
54337         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
54338         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54339         Undo previous (whitespace-only) change.
54340
54341 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54342
54343         Merge from coreutils.
54344         * modules/euidaccess: Add lib_SOURCES, include for new
54345         file euidaccess.h
54346
54347 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54348
54349         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54350         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54351         Normalize leading white space and remove trailing white space.
54352
54353         Merge from coreutils
54354         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
54355
54356         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
54357         0.12.1.  These files are now being upgraded automatically by
54358         ../config/srclist-update.
54359
54360 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54361
54362         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54363         Normalize leading white space and remove trailing white space.
54364         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
54365         notice, as per ../config/srclist-update.
54366
54367         Merge from coreutils.
54368         * lib/euidaccess.h: New file.
54369         * lib/euidaccess.c: Include it.
54370         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
54371         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
54372         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
54373
54374 2003-08-12  Paul Eggert  <eggert@twinsun.com>
54375
54376         * config/srclist-update: Add copyright notice.
54377         (remove_id_lines, remove_trailing_blanks): New constants.
54378         (fixfile): Use them to normalize spacing a bit in copied files.
54379         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54380         Normalize leading white space and remove trailing white space.
54381
54382         * config/texinfo.tex: Sync with texinfo.
54383
54384         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
54385         strtoul.c from libc, to merge coreutils whitespace changes.
54386
54387         * config/srclist.txt: Get the following m4 files from gettext:
54388         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
54389         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
54390         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
54391         wint_t.m4.
54392
54393 2003-08-12  Karl Berry  <karl@gnu.org>
54394
54395         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
54396         been made.
54397
54398 2003-08-11  Paul Eggert  <eggert@twinsun.com>
54399
54400         * modules/gnu-source, m4/gnu-source.m4:
54401         Remove; we're assuming Autoconf 2.54 or later now.
54402         Suggested by Bruno Haible.
54403         * MODULES.html.sh (func_all_modules): Remove gnu-source.
54404
54405 2003-08-11  Bruno Haible  <bruno@clisp.org>
54406
54407         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
54408
54409 2003-08-11  Bruno Haible  <bruno@clisp.org>
54410
54411         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
54412         (vasnprintf): Use it instead of wcslen.
54413
54414 2003-08-11  Bruno Haible  <bruno@clisp.org>
54415
54416         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
54417         value to ensure that _Bool promotes to int. Use #define for _Bool when
54418         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
54419
54420 2003-08-10  Karl Berry  <karl@gnu.org>
54421
54422         * lib/regex.h: update from libc (whitespace fix).
54423
54424 2003-08-09  Paul Eggert  <eggert@twinsun.com>
54425
54426         Merge some files from coreutils.  These changes were
54427         originally made by Jim Meyering.
54428         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
54429         many older Unixes require this.
54430         * lib/alloca.c (alloca): Remove cast to argument of free;
54431         no longer needed in C89.
54432         * lib/alloca_.h, regex.h: Fix white space to match
54433         what GNU indent does.
54434
54435 2003-08-09  Paul Eggert  <eggert@twinsun.com>
54436
54437         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
54438         apparently Emacs's Unicode mode got confused before my 2003-08-05
54439         checkin.
54440
54441 2003-08-08  Paul Eggert  <eggert@twinsun.com>
54442
54443         * m4/extensions.m4: New file.
54444         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
54445         Require gl_USE_SYSTEM_EXTENSIONS.
54446         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
54447         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
54448
54449 2003-08-08  Paul Eggert  <eggert@twinsun.com>
54450
54451         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
54452         * modules/extensions, modules/gnu-source: New files.
54453         * modules/timespec, modules/unlocked-io: Depend on extensions.
54454
54455 2003-08-07  Paul Eggert  <eggert@twinsun.com>
54456
54457         * modules/restrict: New file.
54458         * MODULES.html.sh (func_all_modules): Add restrict.
54459         * modules/regex: Depend on restrict.
54460
54461 2003-08-07  Paul Eggert  <eggert@twinsun.com>
54462
54463         * m4/restrict.m4: New file.
54464         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
54465
54466 2003-08-07  Bruno Haible  <bruno@clisp.org>
54467
54468         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
54469         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
54470
54471 2003-08-07  Bruno Haible  <bruno@clisp.org>
54472
54473         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
54474         makes the module 'getndelim2' compatible with the module 'getline'.
54475
54476 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54477
54478         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
54479         byte with "\201" to avoid glitches when editing that source file
54480         with multi-gnome-terminal.
54481
54482 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54483
54484         * lib/bumpalloc.h: Remove.
54485
54486 2003-08-05  Paul Eggert  <eggert@twinsun.com>
54487
54488         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
54489         * modules/bumpalloc: Remove.
54490
54491 2003-08-04  Paul Eggert  <eggert@twinsun.com>
54492
54493         * lib/getloadavg.c: Change copyright notice and spacing to conform to
54494         GNU coding style.
54495
54496         Merge from coreutils.
54497         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
54498         1. From glibc.
54499         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
54500         from Karl Berry, implemented by Jim Meyering.
54501         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
54502         from Dmitry V. Levin.
54503         Remove anachronistic cast of xrealloc.
54504         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
54505         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
54506         type. Otherwise, it wouldn't compile with at least /bin/cc on
54507         ymp-cray-unicos9.0.2.X.
54508         Combine two mostly-identical uses of alloca into one.
54509         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
54510
54511 2003-08-04  Dave Love  <d.love@dl.ac.uk>
54512
54513         [From Emacs.]
54514
54515         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
54516         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
54517         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
54518         obsolete NLIST_NAME_UNION.
54519         [__GNU__]: Undef BSD and FSCALE.
54520         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
54521
54522 2003-08-03  Paul Eggert  <eggert@twinsun.com>
54523
54524         * lib/stdbool_.h (_Bool): Make it signed char, instead of
54525         an enum type, so that it's guaranteed to promote to int.  See:
54526         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
54527
54528 2003-08-03  Karl Berry  <karl@gnu.org>
54529
54530         * config/depcomp: update from automake.
54531
54532 2003-07-31  Paul Eggert  <eggert@twinsun.com>
54533
54534         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
54535         (strerror): Don't assume that a printable int fits in 14 bytes.
54536
54537 2003-07-31  Bruno Haible  <bruno@clisp.org>
54538
54539         * modules/getpass-gnu: New file.
54540         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
54541
54542 2003-07-31  Bruno Haible  <bruno@clisp.org>
54543
54544         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
54545
54546 2003-07-24  Karl Berry  <karl@gnu.org>
54547
54548         * config/missing: update from automake.
54549
54550 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
54551             Bruno Haible  <bruno@clisp.org>
54552
54553         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
54554         * lib/getline.c (getline, getdelim): Likewise.
54555         Remove _GNU_SOURCE define; now it's defined in config.h through
54556         m4/getline.m4.
54557
54558 2003-07-23  Karl Berry  <karl@gnu.org>
54559
54560         * config/config.sub: update from prep.
54561
54562 2003-07-22  Paul Eggert  <eggert@twinsun.com>
54563
54564         * modules/xalloc (Depends-on): Add exitfail.
54565         * modules/xmemcoll: Likewise.
54566
54567 2003-07-22  Paul Eggert  <eggert@twinsun.com>
54568
54569         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
54570         over-parenthesization in macros.
54571
54572         Sync with coreutils.
54573
54574         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
54575         required by C99.
54576
54577         Use `exit_failure' for xalloc and xmemcoll instead of their own
54578         private exit-failure variables.
54579         * lib/xalloc.h (xalloc_exit_failure): Remove.
54580         * lib/xmalloc.c: Likewise.  Include exitfail.h.
54581         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
54582         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
54583         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
54584         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
54585
54586 2003-07-20  Jim Meyering  <jim@meyering.net>
54587
54588         * modules/closeout (Depends-on): Add exitfail.
54589         Suggestion from Bruno Haible.
54590
54591 2003-07-19  Karl Berry  <karl@gnu.org>
54592
54593         * config/config.sub: update from prep.
54594
54595 2003-07-18  Paul Eggert  <eggert@twinsun.com>
54596
54597         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
54598         Remove.
54599         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
54600         to test that it can stand by itself.  Include "exitfail.h".
54601         Clients should set exit_failure instead.
54602         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
54603
54604 2003-07-18  Bruno Haible  <bruno@clisp.org>
54605
54606         * modules/getndelim2: New file.
54607         * modules/getline: Share files with module getndelim2.
54608         * modules/getnline: Depend on getndelim2 instead of sharing files with
54609         it. Add getnline.c to lib_SOURCES.
54610         * MODULES.html.sh (func_all_modules): Add getndelim2.
54611
54612 2003-07-18  Bruno Haible  <bruno@clisp.org>
54613
54614         * m4/getndelim2.m4: New file.
54615         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
54616         invoke gl_PREREQ_GETNDELIM2.
54617         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
54618         gl_PREREQ_GETNDELIM2.
54619         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
54620         gl_GETNDELIM2.
54621
54622 2003-07-18  Bruno Haible  <bruno@clisp.org>
54623
54624         * lib/getndelim2.h: New file.
54625         * lib/getndelim2.c: Make into a module of its own. Include config.h,
54626         getndelim2.h.
54627         (getndelim2): Make non-static. Change return type to ssize_t.
54628         * lib/getline.h: Change argument names.
54629         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
54630         * lib/getnline.c: Include getndelim2.h.
54631
54632 2003-07-18  Andreas Schwab  <schwab@suse.de>
54633
54634         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
54635
54636 2003-07-17  Karl Berry  <karl@gnu.org>
54637
54638         * config/config.sub: update from prep.
54639
54640 2003-07-17  Bruno Haible  <bruno@clisp.org>
54641
54642         * modules/getnline: New file.
54643         * modules/getline: Add lib/getndelim2.c to source file list.
54644         * MODULES.html.sh (func_all_modules): Add getnline.
54645
54646 2003-07-17  Bruno Haible  <bruno@clisp.org>
54647
54648         * m4/getnline.m4: New file.
54649
54650 2003-07-17  Bruno Haible  <bruno@clisp.org>
54651
54652         * m4/Makefile.am.in: Remove file.
54653         * m4/Makefile.am: Remove file.
54654         * m4/Makefile.in: Remove file.
54655
54656 2003-07-17  Bruno Haible  <bruno@clisp.org>
54657
54658         * lib/getnline.h: New file.
54659         * lib/getnline.c: New file.
54660         * lib/getndelim2.c: New file, extracted from getline.c.
54661         (getndelim2): Renamed from getdelim2, with added nmax argument.
54662         * lib/getline.c: Include getndelim2.c.
54663         (getdelim2): Moved out to getndelim2.c.
54664         (getline, getdelim): Update.
54665
54666 2003-07-17  Bruno Haible  <bruno@clisp.org>
54667
54668         * lib/Makefile.am: Remove file.
54669         * lib/Makefile.in: Remove file.
54670
54671 2003-07-17  Bruno Haible  <bruno@clisp.org>
54672
54673         * configure.in: Remove file.
54674         * Makefile.in: Remove file.
54675
54676 2003-07-17  Bruno Haible  <bruno@clisp.org>
54677
54678         * MODULES.html.sh: Put the </BODY> right before </HTML>.
54679
54680 2003-07-16  Karl Berry  <karl@gnu.org>
54681
54682         * config/srclist-update: was running fixlicense twice, which caused
54683                 texinfo.tex to be nullified for some reason.  Simplify,
54684                 $gplsrc is no longer needed as far as I can see?
54685
54686 2003-07-16  Jim Meyering  <jim@meyering.net>
54687
54688         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
54689
54690 2003-07-15  Paul Eggert  <eggert@twinsun.com>
54691
54692         * config/srclist.txt: Get the following files from gettext-runtime/intl
54693         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
54694         ref-del.sin.  From Bruno Haible.
54695         * config/srclist-update (fixfile): Change grep pattern again, since the
54696         previous fix didn't work (there was another trailing $).  Use
54697         '[$]' to escape the $s.
54698
54699 2003-07-15  Karl Berry  <karl@gnu.org>
54700
54701         * lib/vasnprintf.c: update from gettext.
54702
54703 2003-07-15  Karl Berry  <karl@gnu.org>
54704
54705         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
54706         gets expanded when surrounded by '$'.
54707
54708 2003-07-15  Jim Meyering  <jim@meyering.net>
54709
54710         * modules/save-cwd: Don't depend on error.  From Derek Price.
54711
54712 2003-07-15  Jim Meyering  <jim@meyering.net>
54713
54714         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
54715
54716 2003-07-14  Simon Josefsson  <jas@extundo.com>
54717
54718         * modules/mempcpy: New file.
54719         * MODULES.html.sh (func_all_modules): Add mempcpy.
54720
54721 2003-07-14  Simon Josefsson  <jas@extundo.com>
54722
54723         * m4/mempcpy.m4: New file.
54724
54725 2003-07-14  Simon Josefsson  <jas@extundo.com>
54726
54727         * lib/mempcpy.h: New file.
54728         * lib/mempcpy.c: New file.
54729
54730 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54731
54732         * modules/getdate, modules/posixtm: Depend on mktime.
54733
54734 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54735
54736         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
54737         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
54738         unicodeio.c, unicodeio.h, unlocked-io.h:
54739         Switch from LGPL to GPL.
54740
54741 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54742
54743         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
54744         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
54745         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
54746         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
54747         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
54748         updated automatically by ../config/srclist-update.  This changes
54749         their license from LPGL to GPL.
54750
54751 2003-07-14  Paul Eggert  <eggert@twinsun.com>
54752
54753         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
54754         assumed to refer to the root of the most recent stable gettext version.
54755         * config/srclistvars.sh: Add defaults for eggert.
54756         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
54757         Match "This program" as well as "The program".  This is needed
54758         for gettext.
54759
54760 2003-07-14  Jim Meyering  <jim@meyering.net>
54761
54762         Don't emit diagnostics.  Let callers do that.
54763         * lib/save-cwd.c: Don't include "error.h".
54764         (save_cwd): Don't call error.  Ensure that errno is valid
54765         when returning nonzero.
54766
54767         * lib/save-cwd.h (restore_cwd): Update prototype.
54768         * lib/save-cwd.c (restore_cwd): Remove two parameters.
54769         Simplify.  Don't call error upon failure.  Let callers do that.
54770         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
54771         when auditing is enabled.  But don't bother updating the #if.
54772
54773 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
54774
54775         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
54776         it breaks C++ compilation.
54777         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
54778
54779 2003-07-10  Simon Josefsson  <jas@extundo.com>
54780
54781         * modules/strchrnul (Makefile.am): Add strchrnul.h.
54782
54783 2003-07-10  Jim Meyering  <jim@meyering.net>
54784
54785         * m4/clock_time.m4: Remove trailing blank.
54786         * m4/intmax_t.m4: Likewise.
54787
54788 2003-07-10  Jim Meyering  <jim@meyering.net>
54789
54790         * lib/vasnprintf.c: Remove trailing blanks.
54791         Make cpp indentation consistent.
54792
54793 2003-07-09  Paul Eggert  <eggert@twinsun.com>
54794
54795         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
54796         posixver.c, strftime.c, strnlen.c, strverscmp.c:
54797         Switch from LGPL to GPL.
54798
54799 2003-07-09  Paul Eggert  <eggert@twinsun.com>
54800
54801         * config/srclist.txt: Sort sublists.  Add
54802         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
54803         that differ from gnulib for one reason or another; we'd like this list
54804         to be smaller but for now let's document what we have.
54805
54806 2003-07-08  Paul Eggert  <eggert@twinsun.com>
54807
54808         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
54809         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
54810         and sweeter "eval x=$x".
54811         * config/srclist.txt: Get lib/argp* from glibc.
54812
54813 2003-07-07  Paul Eggert  <eggert@twinsun.com>
54814
54815         * lib/mktime.c: Fix some boundary cases and remove need for floating
54816         point.
54817
54818         Issue a compile-time diagnostic if time_t is floating point, or if
54819         two's complement arithmetic is not in effect, or if arithmetic
54820         right shift does not propagate the sign.  These assumptions were
54821         all in the original code but they weren't checked.
54822
54823         (TIME_T_MIDPOINT, verify): New macros.
54824         (__isleap): Remove; it has integer overflow problems.
54825         (leapyear): New function, without those problems.
54826         (ydhms_tm_diff): Remove; splitting into two parts.
54827         (ydhms_diff): New function, containing the arithmetic part of
54828         the old ydhms_tm_diff function.  Issue a compile-time
54829         diagnostic if we are not using C99 integer division.
54830         Avoid casts when possible.
54831         (guess_time_tm): New function, containing the checking part of
54832         the old ydhms_tm_diff function.  Return the new value, rather than
54833         the difference between it and the old.  Accept a new argument T
54834         so that *T specifies the old value.  Check for overflow in the result.
54835
54836         (__mktime_internal): Use a time_t offset, not a long int offset.
54837         This undoes the 2003-06-04 change, which is no longer needed now
54838         that we have better overflow checking.
54839         (localtime_offset): Likewise.
54840
54841         (__mktime_internal): Avoid harmful overflow on hosts where time_t
54842         and long are 64-bit but int is only 32-bit.
54843         (ydhms_diff): Use long int to store year1 and yday1.
54844         Issue a compile-time diagnostic if long int is not wide enough.
54845
54846         (__mktime_internal): Use long int to store adjusted year and yday.
54847         Use plain C rather than preprocessor commands, if that doesn't
54848         affect efficiency.
54849         Check for overflow (and try to repair) after each probe
54850         rather than checking only at the very end.  This avoids some bugs
54851         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
54852         does not equal GMT offset at maximum time).
54853         Use integer to check for overflow rather than floating point; this
54854         is more portable to non-IEEE hosts, and is a tad faster.
54855         When we detect that we are oscillating between two values,
54856         don't check whether tm_isdst has the requested value, since
54857         we already know the answer.  When tm_isdst has the wrong value,
54858         use a different heuristic to find the right one, based on the
54859         extreme values actually observed in practice in tz2003a,
54860         rather than the (overly optimistic) "previous 3 calendar quarters".
54861
54862         (not_equal_tm, print_tm, check_result): Use "const T" rather than
54863         "T const" to accommodate glibc style.
54864         (check_result): Use less-confusing report format.  "long" -> "long int.
54865         (main): Likewise.
54866         Don't loop if the iteration overflows time_t.
54867         Allow a negative step in the iteration.
54868
54869 2003-07-06  Karl Berry  <karl@gnu.org>
54870
54871         * config/depcomp: update from automake.
54872         * config/config.sub: update from prep.
54873
54874 2003-07-03  Karl Berry  <karl@gnu.org>
54875
54876         * config/config.guess: update from prep.
54877
54878 2003-07-01  Paul Eggert  <eggert@twinsun.com>
54879
54880         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
54881         xreadlink.c now includes it unconditionally.
54882
54883 2003-07-01  Paul Eggert  <eggert@twinsun.com>
54884
54885         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
54886         having it depend on HAVE_SYS_TYPES_H.
54887
54888 2003-07-01  Bruno Haible  <bruno@clisp.org>
54889
54890         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
54891         <sys/types.h> should be sufficient.
54892         Reported by Paul Eggert.
54893
54894 2003-06-26  Karl Berry  <karl@gnu.org>
54895
54896         * config/depcomp: update from automake.
54897
54898 2003-06-26  Bruno Haible  <bruno@clisp.org>
54899
54900         * modules/human: Depend on module stdbool.
54901
54902 2003-06-25  Bruno Haible  <bruno@clisp.org>
54903
54904         * modules/readlink: New file.
54905         * modules/xreadlink: Depend on it.
54906         * MODULES.html.sh (func_all_modules): Add readlink.
54907
54908 2003-06-25  Bruno Haible  <bruno@clisp.org>
54909
54910         * m4/readlink.m4: New file.
54911
54912 2003-06-25  Bruno Haible  <bruno@clisp.org>
54913
54914         * lib/readlink.c: New file.
54915
54916 2003-06-22  Karl Berry  <karl@gnu.org>
54917
54918         * config/srclist.txt: update mkinstalldirs from automake.
54919         * config/mkinstalldirs: update.
54920
54921 2003-06-22  Bruno Haible  <bruno@clisp.org>
54922
54923         Portability to mingw32.
54924         * m4/ssize_t.m4: New file, from GNU gettext.
54925         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
54926         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
54927
54928 2003-06-22  Bruno Haible  <bruno@clisp.org>
54929
54930         * modules/safe-read: Add m4/ssize_t.m4.
54931         * modules/xreadlink: Add m4/ssize_t.m4.
54932
54933 2003-06-20  Bruno Haible  <bruno@clisp.org>
54934
54935         Assume C89, so PARAMS isn't needed.
54936         * lib/unicodeio.h (PARAMS): Remove.
54937         * lib/unicodeio.c: Don't use PARAMS.
54938
54939 2003-06-18  Karl Berry  <karl@gnu.org>
54940
54941         * config/config.{guess,sub}: update from prep.
54942
54943 2003-06-18  Jim Meyering  <jim@meyering.net>
54944
54945         Merge changes from coreutils.
54946         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
54947         Remove explicit declarations of xmalloc and realloc.
54948         Include xalloc.h.
54949         (read_utmp): Remove anachronistic cast of xmalloc.
54950
54951 2003-06-17  Paul Eggert  <eggert@twinsun.com>
54952
54953         Assume C89, so PARAMS isn't needed.
54954         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
54955         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
54956         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
54957         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
54958         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
54959         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
54960         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
54961         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
54962         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
54963         lib/xstrtod.h, lib/xstrtol.h: Likewise.
54964         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
54965         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
54966         no longer needed. Anyway, config.h should always be included before any
54967         other file.
54968
54969 2003-06-11  Simon Josefsson  <jas@extundo.com>
54970
54971         * modules/sysexits: New file.
54972         * MODULES.html.sh (func_all_modules): Add sysexits.
54973
54974 2003-06-11  Simon Josefsson  <jas@extundo.com>
54975
54976         * lib/sysexit_.h: New file.
54977
54978 2003-06-11  Derek Price  <derek@ximbiot.com>
54979
54980         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
54981         necessary.
54982
54983 2003-06-11  Bruno Haible  <bruno@clisp.org>
54984
54985         * m4/sysexits.m4: New file.
54986
54987 2003-06-10  Simon Josefsson  <jas@extundo.com>
54988
54989         * lib/argp.h: New file, from glibc.
54990         * lib/argp-ba.c: New file, from glibc.
54991         * lib/argp-eexst.c: New file, from glibc.
54992         * lib/argp-fmtstream.c: New file, from glibc.
54993         * lib/argp-fmtstream.h: New file, from glibc.
54994         * lib/argp-fs-xinl.c: New file, from glibc.
54995         * lib/argp-help.c: New file, from glibc.
54996         * lib/argp-namefrob.h: New file, from glibc.
54997         * lib/argp-parse.c: New file, from glibc.
54998         * lib/argp-pv.c: New file, from glibc.
54999         * lib/argp-pvh.c: New file, from glibc.
55000         * lib/argp-xinl.c: New file, from glibc.
55001
55002 2003-06-10  Simon Josefsson  <jas@extundo.com>
55003
55004         * modules/strchrnul: New file.
55005
55006 2003-06-10  Simon Josefsson  <jas@extundo.com>
55007
55008         * modules/argp: New file.
55009
55010 2003-06-10  Simon Josefsson  <jas@extundo.com>
55011
55012         * m4/strchrnul.m4: New file.
55013
55014 2003-06-10  Simon Josefsson  <jas@extundo.com>
55015
55016         * lib/strchrnul.h: New file.
55017         * lib/strchrnul.c: New file.
55018
55019 2003-06-10  Bruno Haible  <bruno@clisp.org>
55020
55021         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
55022
55023 2003-06-07  Karl Berry  <karl@gnu.org>
55024
55025         * config/config.{guess,sub}: update from prep.
55026
55027 2003-06-07  Jim Meyering  <jim@meyering.net>
55028
55029         * modules/strtod: Use $(...) notation, not @...@ for
55030         AC_REPLACE'd variables.
55031         * modules/localcharset: Likewise.
55032
55033 2003-06-07  Jim Meyering  <jim@meyering.net>
55034
55035         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
55036         in place of my name in the copyright comment.
55037         Remove definition and uses of __P.
55038
55039         From coreutils.
55040         * lib/stat.c: Don't declare xmalloc explicitly.
55041         Instead, include "xalloc.h".
55042         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
55043         xrealloc, and xcalloc return values.
55044         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
55045         Improve comment.
55046         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
55047
55048 2003-06-07  Bruno Haible  <bruno@clisp.org>
55049
55050         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
55051         avoid AC_CONFIG_LINKS.
55052         * modules/fnmatch (Makefile.am): Use explicit creation rule for
55053         fnmatch.h, to avoid AC_CONFIG_LINKS.
55054         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
55055
55056 2003-06-07  Bruno Haible  <bruno@clisp.org>
55057
55058         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
55059         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
55060         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
55061         directory.
55062         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
55063         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
55064         directory.
55065
55066 2003-06-06  Jim Meyering  <jim@meyering.net>
55067
55068         Merge from coreutils.
55069         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
55070         Consolidate declarations and initializations of *_base* locals.
55071
55072         Merge from coreutils.
55073         This avoids a core dump on systems without GNU putenv,
55074         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
55075         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
55076         (unsetenv): New static function, from GNU libc.
55077         (rpl_putenv): Use it.
55078
55079         * lib/modechange.c: Remove trailing blanks.
55080
55081         Merge from coreutils.
55082         * lib/fsusage.c: Remove declaration of statfs.
55083         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
55084
55085         * lib/posixtm.c: Include <stdbool.h> unconditionally.
55086
55087 2003-06-06  Jim Meyering  <jim@meyering.net>
55088
55089         * lib/stdbool_.h: Renamed from stdbool.h.in.
55090
55091 2003-06-06  Jim Meyering  <jim@meyering.net>
55092             Bruno Haible  <bruno@clisp.org>
55093
55094         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
55095         Adjust Makefile.am snippet not to redirect directly to target.
55096         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
55097
55098 2003-06-05  Paul Eggert  <eggert@twinsun.com>
55099
55100         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
55101         mismatch, look in future quarters as well as past.  This fixes a
55102         bug when processing fall-backwards gaps immediately after a long
55103         period of daylight-saving time.
55104
55105         * lib/mktime.c: Assume freestanding C89 or better.
55106         (HAVE_LIMITS_H): Remove.  Assume it's 1.
55107         (__P): Remove; not used.
55108         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
55109         (mktime, not_equal_tm, print_tm, check_result,
55110         main): Use prototypes.  Use const * where appropriate.
55111         (main): Fix typo in testing code that uncovered by above changes.
55112         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
55113
55114 2003-06-04  Paul Eggert  <eggert@twinsun.com>
55115
55116         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
55117         locale.h, localeconv.  This merges changes from coreutils.
55118
55119         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
55120         It can be removed after the next Autoconf is released.
55121         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
55122         needed.
55123
55124 2003-06-04  Paul Eggert  <eggert@twinsun.com>
55125
55126         * lib/mktime.c: Fix Debian bug 177940
55127         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
55128         (localtime_offset): Now long int, not time_t, because we want it
55129         to be guaranteed to be signed.  All uses changed.
55130         (__mktime_internal): If overflow would occur when adding offset,
55131         don't add it.
55132
55133         Merge 'human' changes from coreutils.  Rewrite to support
55134         locale-specific notations like thousands separators.
55135         * lib/human.c: Simplify authorship notice.
55136         Include human.h immediately after config.h.
55137         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
55138         <limits.h>: Do not include, since human.h does.
55139         (SIZE_MAX, UINTMAX_MAX): New macros.
55140         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
55141         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
55142         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
55143         (power_letter): Renamed from suffixes.
55144         (generate_suffix_backwards): Remove.
55145         (adjust_value): Now takes int style (because of human.h changes)
55146         and long double value (for greater precision on some platforms).
55147         (group_number): New function.
55148         (human_readable): Use it.  Use integer options, not enum.
55149         Put the options before the sizes in the arg list.
55150         Support all the new options.
55151         The old human_readable function has been removed;
55152         use inttostr.h instead.
55153         (human_readable, default_block_size, humblock):
55154         Use uintmax_t, not int, for block sizes.
55155         (human_readable_inexact, block_size_types): Remove.
55156         (block_size_opts): New constant.
55157         (human_options): Renamed from human_block_size, with new signature
55158         that allows block sizes up to UINTMAX_MAX.  All callers changed.
55159         * lib/human.h: Add copyright and authorship notice.
55160         Include <limits.h> and <stdbool.h> unconditionally.
55161         (PARAMS): Remove.  All uses removed.
55162         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
55163         (enum human_inexact_style): Remove tag; now a nameless enum.
55164         (human_floor, human_ceiling, human_round_to_even): Now have
55165         values 2, 0, 1 rather than -1, 1, 0.
55166         (human_group_digits, human_suppress_point_zero, human_autoscale,
55167         human_base_1024, human_SI, human_B): New constants.
55168         (human_readable_inexact, human_block_size): Remove.
55169         (human_readable): Size args are now uintmax_t, not int.
55170         (human_options): New decl.
55171
55172         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
55173         unnecessary now that we assume C89 or better.  This change
55174         imported from coreutils.
55175
55176         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
55177         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
55178         in the 2003-05-30 sync from glibc.
55179
55180         .h files should stand alone, but we shouldn't include <sys/types.h>
55181         if we can get away with just <stddef.h>.
55182
55183         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
55184         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
55185         rather than <sys/types.h>, as we merely need size_t.
55186         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
55187         to get size_t.
55188         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
55189         Include <stdio.h>, to get FILE.
55190         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
55191         memcasecmp.h has included <stddef.h> and all we need is size_t.
55192         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
55193         our interface, instead of including <sys/types.h>
55194
55195 2003-06-04  Paul Eggert  <eggert@twinsun.com>
55196
55197         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
55198         now, as glibc mktime is buggy on non-glibc systems.
55199
55200 2003-06-03  Karl Berry  <karl@gnu.org>
55201
55202         * config/config.sub: update from prep.
55203
55204 2003-06-02  Paul Eggert  <eggert@twinsun.com>
55205
55206         [from coreutils]
55207         Fix some minor time-related bugs with POSIX time arguments.
55208         Some valid time stamps were being rejected (notably -1, and
55209         time stamps before 1900 on 64-bit hosts).  And some invalid
55210         time stamps were being accepted, e.g. September 31.
55211
55212         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
55213         that we can return (time_t) -1 successfully.
55214         * lib/posixtm.c: Likewise.
55215         [HAVE_STDBOOL_H]: Include <stdbool.h>.
55216         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
55217         (t): Remove static var.
55218         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
55219         of static var.  All uses changed.
55220         (year): Do not reject years before 1900; they can occur with
55221         64-bit time_t.
55222         (posix_time_parse): Do not check for out-of-range components;
55223         that is now the caller's responsibility, since our checks were
55224         only approximations.
55225         (posixtime): Use mktime to check for out-of-range components,
55226         since it knows them exactly.
55227         If mktime returns (time_t) -1, check whether an error actually occurred
55228         by invoking localtime on -1.
55229         (main) [TEST_POSIXTIME]: Check for input data errors, and report
55230         posixtime failures better.
55231         Improve the test data (in comments only).
55232
55233 2003-06-02  Karl Berry  <karl@gnu.org>
55234
55235         * config/mkinstalldirs (version): new variable.
55236         (--version): new option.
55237         (usage): improve message.
55238
55239 2003-05-30  Karl Berry  <karl@gnu.org>
55240
55241         * lib/mktime.c: update from libc.
55242
55243 2003-05-30  Bruno Haible  <bruno@clisp.org>
55244
55245         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
55246         * config/config.rpath: Upgrade to gettext-0.12.1.
55247
55248 2003-05-30  Bruno Haible  <bruno@clisp.org>
55249
55250         * m4/gettext.m4: Upgrade to gettext-0.12.1.
55251         * m4/nls.m4: New file, from gettext-0.12.1.
55252         * m4/po.m4: New file, from gettext-0.12.1.
55253         * m4/progtest.m4: Upgrade to gettext-0.12.1.
55254
55255 2003-05-30  Bruno Haible  <bruno@clisp.org>
55256
55257         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
55258         * lib/localcharset.h: Likewise.
55259         * lib/localcharset.c: Likewise.
55260
55261 2003-05-29  Karl Berry  <karl@gnu.org>
55262
55263         * config/config.rpath: update from gettext.
55264
55265 2003-05-28  Paul Eggert  <eggert@twinsun.com>
55266
55267         Assume the headers required for C89 freestanding compilers.
55268         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
55269         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
55270         * m4/human.m4 (gl_HUMAN): Likewise.
55271         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
55272         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
55273         * m4/userspec.m4 (gl_USERSPEC): Likewise.
55274         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
55275         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55276         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
55277
55278 2003-05-28  Paul Eggert  <eggert@twinsun.com>
55279
55280         Assume the headers required for C89 freestanding compilers.
55281         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
55282         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
55283         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
55284         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
55285         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
55286         define, since <limits.h> is guaranteed to do that.
55287         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
55288         * lib/exclude.c: Include <stdbool.h> unconditionally.
55289         * lib/tempname.c: Include <stddef.h> unconditionally.
55290         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
55291         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
55292         <stddef.h> does that.
55293         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
55294         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
55295         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
55296         needed.
55297         * lib/xstrtol.c: Likewise.
55298         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
55299         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
55300
55301         * lib/addext.c (addext): Use assignment rather than cast, to avoid
55302         warnings on some platforms.
55303
55304         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
55305         arbitrarily.
55306
55307 2003-05-26  Jim Meyering  <jim@meyering.net>
55308
55309         Merge in a change from coreutils:
55310         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
55311         that is guaranteed to be `no'.  Use `no_such_member' to indicate
55312         that condition, rather than `-1' which is slightly misleading.
55313         Change the name of the cache variable to have the gl_ prefix.
55314         Prompted by a patch from Richard Dawe for DJGPP.
55315
55316 2003-05-24  Karl Berry  <karl@gnu.org>
55317
55318         * config/config.guess: update from prep.
55319
55320 2003-05-22  Karl Berry  <karl@gnu.org>
55321
55322         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
55323
55324 2003-05-20  Karl Berry  <karl@gnu.org>
55325
55326         * config/config.guess: update from prep.
55327
55328 2003-05-18  Karl Berry  <karl@gnu.org>
55329
55330         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
55331         might actually be set by the user.
55332
55333         * config/depcomp, install-sh, mdate-sh: update from automake.
55334
55335 2003-05-17  Bruno Haible  <bruno@clisp.org>
55336
55337         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
55338         invalid expansion for AC_EGREP_CPP.
55339         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
55340         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55341         Suggested by Akim Demaille <akim@epita.fr> in
55342         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
55343
55344 2003-05-12  Jim Meyering  <jim@meyering.net>
55345
55346         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
55347         the space-padded-by-default conversion specifiers, %e, %k, %l.
55348
55349 2003-05-12  Bruno Haible  <bruno@clisp.org>
55350
55351         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
55352         the string is longer than 4 KB.
55353
55354 2003-05-11  Karl Berry  <karl@gnu.org>
55355
55356         * config/config.{guess,sub}: update from prep.
55357
55358 2003-05-09  Bruno Haible  <bruno@clisp.org>
55359
55360         * modules/error: Add m4/strerror_r.m4 to file list.
55361
55362 2003-05-03  Bruno Haible  <bruno@clisp.org>
55363
55364         Upgrade to Unicode-4.0.
55365         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
55366         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
55367         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
55368         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
55369         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
55370         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
55371         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
55372         Change width of U+E0100..U+E01EF from 1 to 0.
55373
55374 2003-04-25  Jim Meyering  <jim@meyering.net>
55375
55376         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
55377         of type size_t, not int.
55378
55379 2003-04-25  Bruno Haible  <bruno@clisp.org>
55380
55381         * lib/copy-file.c: Include <stddef.h>, for size_t.
55382
55383 2003-04-21  Paul Eggert  <eggert@twinsun.com>
55384
55385         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
55386         code which expansion is under static control.  Patch imported from
55387         Akim Demaille's patch to Bison; see
55388         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
55389
55390 2003-04-14  Bruno Haible  <bruno@clisp.org>
55391
55392         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
55393
55394 2003-04-11  Jim Meyering  <jim@meyering.net>
55395
55396         Merge changes from Coreutils.
55397
55398         2003-03-22  Jim Meyering  <jim@meyering.net>
55399
55400         * lib/strftime.c (widen): Cast alloca return value to proper type.
55401
55402         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
55403
55404         From GNU libc.
55405         * lib/strftime.c (my_strftime): Handle very large width
55406         specifications for numeric values correctly.  Improve checks for
55407         overflow.
55408
55409         2003-01-19  Jim Meyering  <jim@meyering.net>
55410
55411         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
55412         definitions.
55413         (nl_get_alt_digit) [! defined my_strftime]: Define.
55414         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
55415         _nl_get_alt_digit and _nl_get_walt_digit.
55416
55417         * lib/strftime.c (my_strftime): Merge in locale-related changes from
55418         libc. These changes have no effect outside of _LIBC.
55419
55420 2003-04-10  Bruno Haible  <bruno@clisp.org>
55421
55422         * modules/findprog: New file.
55423         * MODULES.html.sh (func_all_modules): Add it.
55424
55425 2003-04-10  Bruno Haible  <bruno@clisp.org>
55426
55427         * m4/findprog.m4: New file.
55428         * m4/eaccess.m4: New file.
55429
55430 2003-04-10  Bruno Haible  <bruno@clisp.org>
55431
55432         * lib/findprog.h: New file, from GNU gettext.
55433         * lib/findprog.c: New file, from GNU gettext.
55434
55435 2003-04-05  Jim Meyering  <jim@meyering.net>
55436
55437         Merge changes from Coreutils.
55438
55439         * lib/exclude.h (PARAMS): Remove definition and uses.
55440         * lib/exclude.c: Remove uses of `PARAMS'.
55441
55442         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
55443         Add test-cases for DOS filenames. Declare program_name.
55444         (main): Set up program_name.  Patch by Rich Dawe.
55445
55446         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
55447         error from mntctl.
55448         Use mntctl's return value to drive the entry-processing loop, since
55449         we can't rely on the value of the vmt_length member in the last
55450         entry.  On some systems doing so could result in exhausting
55451         virtual memory.  Based in part on a patch from Mike Jetzer.
55452
55453 2003-04-04  Bruno Haible  <bruno@clisp.org>
55454
55455         * modules/linebreak: New file.
55456         * MODULES.html.sh (func_all_modules): Add it.
55457
55458 2003-04-04  Bruno Haible  <bruno@clisp.org>
55459
55460         * m4/linebreak.m4: New file.
55461
55462 2003-04-04  Bruno Haible  <bruno@clisp.org>
55463
55464         * lib/linebreak.h: New file, from GNU gettext.
55465         * lib/linebreak.c: New file, from GNU gettext with slight
55466         modifications.
55467         * lib/lbrkprop.h: New file, from GNU gettext.
55468
55469 2003-04-03  Bruno Haible  <bruno@clisp.org>
55470
55471         * modules/utf8-ucs4: New file.
55472         * modules/utf16-ucs4: New file.
55473         * modules/ucs4-utf8: New file.
55474         * modules/ucs4-utf16: New file.
55475         * MODULES.html.sh (func_all_modules): Add them.
55476
55477 2003-04-03  Bruno Haible  <bruno@clisp.org>
55478
55479         * m4/utf-ucs4.m4: New file.
55480         * m4/ucs4-utf.m4: New file.
55481
55482 2003-04-03  Bruno Haible  <bruno@clisp.org>
55483
55484         * lib/utf8-ucs4.h: New file, from GNU gettext.
55485         * lib/utf16-ucs4.h: New file, from GNU gettext.
55486         * lib/ucs4-utf8.h: New file, from GNU gettext.
55487         * lib/ucs4-utf16.h: New file, from GNU gettext.
55488
55489 2003-04-02  Bruno Haible  <bruno@clisp.org>
55490
55491         * modules/binary-io: New file.
55492         * MODULES.html.sh (func_all_modules): Add it.
55493
55494 2003-04-02  Bruno Haible  <bruno@clisp.org>
55495
55496         * lib/binary-io.h: New file, from GNU gettext.
55497
55498 2003-04-01  Bruno Haible  <bruno@clisp.org>
55499
55500         * modules/pathname: New file.
55501         * MODULES.html.sh (func_all_modules): Add it.
55502
55503 2003-04-01  Bruno Haible  <bruno@clisp.org>
55504
55505         * lib/pathname.h: New file, from GNU gettext.
55506         * lib/concatpath.c: New file, from GNU gettext.
55507
55508 2003-03-30  Bruno Haible  <bruno@clisp.org>
55509
55510         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
55511
55512 2003-03-30  Bruno Haible  <bruno@clisp.org>
55513
55514         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
55515         function chown() doesn't exist.
55516
55517 2003-03-28  Bruno Haible  <bruno@clisp.org>
55518
55519         * modules/copy-file: New file.
55520         * MODULES.html.sh (func_all_modules): Add it.
55521
55522 2003-03-28  Bruno Haible  <bruno@clisp.org>
55523
55524         * m4/copy-file.m4: New file.
55525
55526 2003-03-28  Bruno Haible  <bruno@clisp.org>
55527
55528         * lib/copy-file.h: New file, from GNU gettext.
55529         * lib/copy-file.c: New file, from GNU gettext.
55530
55531 2003-03-18  Jim Meyering  <jim@meyering.net>
55532
55533         * lib/quote.c (quote_n): Fix typo in comment.
55534
55535 2003-03-18  Bruno Haible  <bruno@clisp.org>
55536
55537         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
55538         checking.
55539         * m4/onceonly_2_57.m4: Likewise.
55540
55541 2003-03-17  Bruno Haible  <bruno@clisp.org>
55542
55543         * m4/onceonly.m4: Require autoconf 2.54 or newer.
55544         (m4_quote): Remove macro.
55545         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
55546
55547 2003-03-14  Jim Meyering  <jim@meyering.net>
55548
55549         Merge changes from Coreutils.
55550         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
55551         to be const, in order to avoid warnings.
55552         (obstack_room): Likewise.
55553         (obstack_empty_p): Likewise.
55554
55555 2003-03-14  Bruno Haible  <bruno@clisp.org>
55556
55557         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
55558         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
55559
55560 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55561
55562         Merge changes from Bison.
55563         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
55564         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
55565         when compiling Bison 1.875's `bitset bset = obstack_alloc
55566         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
55567         * lib/hash.c: Include <stdbool.h> unconditionally.
55568
55569 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55570
55571         * m4/onceonly.m4 (m4_quote): New macro.
55572         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
55573         Quote AC_FOREACH variable-expansions properly.
55574
55575 2003-03-13  Paul Eggert  <eggert@twinsun.com>
55576
55577         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
55578
55579 2003-03-09  Paul Eggert  <eggert@twinsun.com>
55580
55581         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
55582         Reported by Bruce Becker; see:
55583         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
55584
55585 2003-03-03  Paul Eggert  <eggert@twinsun.com>
55586             Bruno Haible  <bruno@clisp.org>
55587
55588         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
55589         Reported by John Hughes, see
55590         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
55591
55592 2003-02-20  Bruno Haible  <bruno@clisp.org>
55593
55594         * MODULES.html.sh (func_all_modules): Add poll.
55595
55596 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55597
55598         * modules/poll: New file.
55599
55600 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55601
55602         * lib/poll_.h: New file.
55603         * lib/poll.c: New file.
55604
55605 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
55606
55607         * m4/poll.m4: New file.
55608
55609 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55610
55611         * modules/mathl: New file.
55612
55613 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55614
55615         * lib/mathl.h: New file.
55616         * lib/acosl.c: New file.
55617         * lib/asinl.c: New file.
55618         * lib/atanl.c: New file.
55619         * lib/ceill.c: New file.
55620         * lib/cosl.c: New file.
55621         * lib/expl.c: New file.
55622         * lib/floorl.c: New file.
55623         * lib/frexpl.c: New file.
55624         * lib/ldexpl.c: New file.
55625         * lib/logl.c: New file.
55626         * lib/sincosl.c: New file.
55627         * lib/sinl.c: New file.
55628         * lib/sqrtl.c: New file.
55629         * lib/tanl.c: New file.
55630         * lib/trigl.c: New file.
55631         * lib/trigl.h: New file.
55632
55633 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
55634
55635         * m4/mathl.m4: New file.
55636
55637 2003-02-18  Bruno Haible  <bruno@clisp.org>
55638
55639         * MODULES.html.sh (func_all_modules): Add mathl.
55640
55641 2003-02-17  Bruno Haible  <bruno@clisp.org>
55642
55643         * modules/mkdtemp: New module.
55644         * MODULES.html.sh (func_all_modules): Add it.
55645
55646 2003-02-17  Bruno Haible  <bruno@clisp.org>
55647
55648         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
55649
55650 2003-02-17  Bruno Haible  <bruno@clisp.org>
55651
55652         * lib/mkdtemp.h: New file, from GNU gettext.
55653         * lib/mkdtemp.c: New file, from GNU gettext.
55654
55655 2003-02-02  Jim Meyering  <jim@meyering.net>
55656
55657         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
55658         e.g. glibc-2.2.93.
55659
55660 2003-01-31  Bruno Haible  <bruno@clisp.org>
55661
55662         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
55663         'rpl_rename'.
55664         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
55665         'rpl_strnlen'.
55666         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
55667         'rpl_strtod'.
55668         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
55669         'rpl_utime'.
55670
55671 2003-01-31  Bruno Haible  <bruno@clisp.org>
55672
55673         * lib/rename.c: #undef rename before defining rpl_rename.
55674         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
55675
55676 2003-01-30  Bruno Haible  <bruno@clisp.org>
55677
55678         * modules/vasnprintf, modules/vasprintf: New modules.
55679         * MODULES.html.sh (func_all_modules): Add them.
55680
55681 2003-01-30  Bruno Haible  <bruno@clisp.org>
55682
55683         * m4/signed.m4: New file, from GNU gettext.
55684         * m4/longdouble.m4: New file, from GNU gettext.
55685         * m4/wchar_t.m4: New file, from GNU gettext.
55686         * m4/wint_t.m4: New file, from GNU gettext.
55687         * m4/vasnprintf.m4: New file.
55688         * m4/vasprintf.m4: New file.
55689
55690 2003-01-30  Bruno Haible  <bruno@clisp.org>
55691
55692         * lib/printf-args.h: New file, from GNU gettext.
55693         * lib/printf-args.c: New file, from GNU gettext.
55694         * lib/printf-parse.h: New file, from GNU gettext.
55695         * lib/printf-parse.c: New file, from GNU gettext.
55696         * lib/vasnprintf.h: New file, from GNU gettext.
55697         * lib/vasnprintf.c: New file, from GNU gettext.
55698         * lib/asnprintf.c: New file, from GNU gettext.
55699         * lib/vasprintf.h: New file, from GNU gettext with modifications.
55700         * lib/vasprintf.c: New file, from GNU gettext.
55701         * lib/asprintf.c: New file, from GNU gettext.
55702
55703 2003-01-29  Bruno Haible  <bruno@clisp.org>
55704
55705         * modules/stpncpy: New module.
55706         * MODULES.html.sh (func_all_modules): Add it.
55707
55708 2003-01-29  Bruno Haible  <bruno@clisp.org>
55709
55710         * m4/stpncpy.m4: New file.
55711
55712 2003-01-29  Bruno Haible  <bruno@clisp.org>
55713
55714         * lib/stpncpy.h: New file, from GNU gettext with modifications.
55715         * lib/stpncpy.c: New file, from GNU gettext with modifications.
55716
55717 2003-01-28  Bruno Haible  <bruno@clisp.org>
55718
55719         * modules/c-ctype: New module.
55720         * MODULES.html.sh (func_all_modules): Add it.
55721
55722 2003-01-28  Bruno Haible  <bruno@clisp.org>
55723
55724         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
55725         Paul Eggert.
55726         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
55727         Paul Eggert.
55728
55729 2003-01-27  Bruno Haible  <bruno@clisp.org>
55730
55731         * modules/xsetenv: New module.
55732         * MODULES.html.sh (func_all_modules): Add it.
55733
55734 2003-01-27  Bruno Haible  <bruno@clisp.org>
55735
55736         * lib/xsetenv.h: New file, from GNU gettext.
55737         * lib/xsetenv.c: New file, from GNU gettext.
55738
55739 2003-01-23  Jim Meyering  <jim@meyering.net>
55740
55741         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
55742         from working on systems without dirfd (at least Irix and OSF1/Tru64).
55743
55744 2003-01-23  Bruno Haible  <bruno@clisp.org>
55745
55746         * modules/minmax: New module.
55747         * MODULES.html.sh (func_all_modules): Add it.
55748
55749 2003-01-23  Bruno Haible  <bruno@clisp.org>
55750
55751         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
55752         Eggert.
55753
55754 2003-01-22  Bruno Haible  <bruno@clisp.org>
55755
55756         * modules/exit: New module.
55757         * MODULES.html.sh (func_all_modules): Add it.
55758
55759 2003-01-22  Bruno Haible  <bruno@clisp.org>
55760
55761         * lib/exit.h: New file, from GNU gettext.
55762
55763 2003-01-19  Bruno Haible  <bruno@clisp.org>
55764
55765         * gnulib-tool: Recognize option --extract-maintainer.
55766         (func_get_maintainer): New function.
55767         * modules/*: Add Maintainer entry.
55768
55769 2003-01-16  Jim Meyering  <jim@meyering.net>
55770
55771         * m4/regex.m4: The `regex' struct is both input and output.
55772         Initialize it before each use.  Patch by Tim Waugh.
55773
55774 2003-01-16  Bruno Haible  <bruno@clisp.org>
55775
55776         * MODULES.html.sh: Add a table of contents. Add the module name as
55777         leftmost column. Add hyperlinks.
55778
55779 2003-01-15  Bruno Haible  <bruno@clisp.org>
55780
55781         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
55782
55783 2003-01-15  Bruno Haible  <bruno@clisp.org>
55784
55785         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
55786         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
55787         suffix.
55788
55789 2003-01-15  Bruno Haible  <bruno@clisp.org>
55790
55791         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
55792
55793 2003-01-15  Bruno Haible  <bruno@clisp.org>
55794
55795         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
55796         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
55797
55798 2003-01-14  Jim Meyering  <jim@meyering.net>
55799
55800         * lib/same.c (same_name): Tweak a comment.
55801
55802 2003-01-14  Bruno Haible  <bruno@clisp.org>
55803
55804         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
55805         when a string comparison is sufficient.
55806
55807 2003-01-14  Bruno Haible  <bruno@clisp.org>
55808
55809         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
55810         'unsigned int'.
55811
55812 2003-01-14  Bruno Haible  <bruno@clisp.org>
55813
55814         * lib/hash-pjw.c: Add comment about low quality of this function.
55815
55816 2003-01-13  Bruno Haible  <bruno@clisp.org>
55817
55818         * modules/stpcpy: Distribute lib/stpcpy.h.
55819         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
55820
55821 2003-01-13  Bruno Haible  <bruno@clisp.org>
55822
55823         * modules/*: Add a description.
55824         * modules/strpbrk: Fix Makefile.am snippet.
55825         * modules/strtoimax: Fix dependencies.
55826         * modules/strtoumax: Likewise.
55827
55828 2003-01-13  Bruno Haible  <bruno@clisp.org>
55829
55830         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
55831         * modules/alloca (Makefile.am): All object files depend on alloca.h.
55832         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
55833
55834 2003-01-13  Bruno Haible  <bruno@clisp.org>
55835
55836         * gnulib-tool (func_create_testdir): Store config/* files in the main
55837         directory.
55838         * config.rpath: Move to ...
55839         * config/config.rpath: ... here.
55840         * modules/gettext: Contains config/config.rpath, not config.rpath.
55841         * modules/iconv: Likewise.
55842
55843 2003-01-12  Paul Eggert  <eggert@twinsun.com>
55844
55845         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55846         to avoid collisions with libcurses and libreadline.
55847
55848         * m4/getstr.m4: Remove.
55849         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
55850
55851 2003-01-12  Paul Eggert  <eggert@twinsun.com>
55852
55853         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55854         to avoid collisions with libcurses and libreadline.
55855
55856         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
55857         * lib/getstr.h, getstr.c: Remove.
55858         * lib/getline.c: Include "getline.h", to check interface.
55859         Move body of old getstr.c here: this defines MIN_CHUNK and
55860         declares getdelim2, which is renamed from getstr.
55861         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
55862
55863         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
55864         All uses changed.
55865         * lib/linebuffer.h: Likewise.
55866         (readline): Remove backward-compatibility macro.
55867
55868 2003-01-12  Paul Eggert  <eggert@twinsun.com>
55869
55870         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55871         to avoid collisions with libcurses and libreadline.
55872         * getstr: Remove.
55873         * MODULES.html.sh: Remove getstr.
55874         * modules/getline: Depend on unlocked-io, not getstr.
55875
55876 2003-01-12  Jim Meyering  <jim@meyering.net>
55877
55878         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
55879
55880 2003-01-10  Bruno Haible  <bruno@clisp.org>
55881
55882         * modules/alloca: Change Makefile.am requirements. Simplify Include
55883         requirements. Add lib/alloca_.h to file list.
55884
55885 2003-01-10  Bruno Haible  <bruno@clisp.org>
55886
55887         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
55888
55889 2003-01-10  Bruno Haible  <bruno@clisp.org>
55890
55891         * lib/alloca_.h: New file.
55892         * lib/getdate.y: Unconditionally include alloca.h.
55893         * lib/makepath.c: Likewise.
55894         * lib/setenv.c: Likewise.
55895         * lib/userspec.c: Likewise.
55896
55897 2003-01-09  Karl Berry  <karl@gnu.org>
55898
55899         * MODULES.html.sh: include `dirname $0` in PATH, to find
55900         gnulib-tool.
55901
55902 2003-01-09  Bruno Haible  <bruno@clisp.org>
55903
55904         * modules/stdbool: Change configure.ac, Makefile.am requirements.
55905         Simplify Include requirements. Add lib/stdbool.h.in to file list.
55906
55907 2003-01-09  Bruno Haible  <bruno@clisp.org>
55908
55909         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
55910
55911 2003-01-09  Bruno Haible  <bruno@clisp.org>
55912
55913         * lib/stdbool.h.in: New file.
55914
55915 2003-01-09  Bruno Haible  <bruno@clisp.org>
55916
55917         * gnulib-tool (func_all_modules): Ignore files ending in ~.
55918         * MODULES.html.sh: Likewise.
55919
55920 2003-01-08  Jim Meyering  <jim@meyering.net>
55921
55922         * lib/full-write.c: Undefine and define-away `const' after inclusion
55923         of errno.h, not before.  Suggestion from Bruno Haible.
55924
55925 2003-01-08  Bruno Haible  <bruno@clisp.org>
55926
55927         * modules/full-read: Depend on full-write.
55928
55929 2003-01-08  Bruno Haible  <bruno@clisp.org>
55930
55931         * lib/safe-read.c: Include specification header first, to ensure its
55932         selfcontainedness.
55933         * lib/full-write.c: Likewise.
55934
55935 2003-01-07  Jim Meyering  <jim@meyering.net>
55936
55937         * lib/full-write.c: Rework so that it may serve to define full_read,
55938         too.
55939         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
55940
55941 2003-01-07  Bruno Haible  <bruno@clisp.org>
55942
55943         * lib/strtoimax.c: Include <stdint.h> as an alternative to
55944         <inttypes.h>.
55945         * lib/xstrtol.h: Likewise.
55946         * lib/xstrtoimax.c: Likewise.
55947         * lib/xstrtoumax.c: Likewise.
55948         * lib/human.h: Likewise.
55949
55950         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
55951         on systems that have <inttypes.h> but not <stdint.h>.
55952
55953 2003-01-07  Bruno Haible  <bruno@clisp.org>
55954
55955         * MODULES.html.sh: Add copyright notice.
55956         (missed_files): Omit CVS directory entries.
55957         (func_module): Make it work with sed-3.02.
55958         * MODULES.txt: Remove file.
55959
55960 2003-01-06  Jim Meyering  <jim@meyering.net>
55961
55962         * lib/version-etc.c: Update year in translatable copyright string.
55963
55964 2003-01-03  Karl Berry  <karl@gnu.org>
55965
55966         * config/config.{guess,sub}: update from prep.
55967
55968 2003-01-02  Karl Berry  <karl@gnu.org>
55969
55970         * doc/COPYING.DOC: belatedly updated to 1.2.
55971
55972 2003-01-01  Karl Berry  <karl@gnu.org>
55973
55974         * gnulib-tool (func_verify_module): report module name $module in
55975         error message, not $1.
55976         * gnulib-tool (create-testdir): don't complain if destdir couldn't
55977         be created, only if it doesn't exist.
55978         * gnulib-tool (last_checkin_date): don't expand the $Date here.
55979
55980 2002-12-31  Paul Eggert  <eggert@twinsun.com>
55981
55982         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
55983
55984 2002-12-31  Paul Eggert  <eggert@twinsun.com>
55985
55986         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
55987         memcmp if strcoll doesn't work.
55988
55989 2002-12-31  Bruno Haible  <bruno@clisp.org>
55990
55991         * lib/utime.c (utime_null): No need to call ftruncate if the file was
55992         nonempty.
55993
55994 2002-12-31  Bruno Haible  <bruno@clisp.org>
55995
55996         * lib/memcoll.c (STRCOLL): New macro.
55997         (memcoll): Use it.
55998
55999 2002-12-31  Bruno Haible  <bruno@clisp.org>
56000
56001         * lib/localcharset.h: New file.
56002         * lib/localcharset.c: Include it.
56003         * lib/unicodeio.c: Likewise.
56004
56005 2002-12-31  Bruno Haible  <bruno@clisp.org>
56006
56007         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
56008         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
56009
56010 2002-12-31  Bruno Haible  <bruno@clisp.org>
56011
56012         * lib/getline.h: Include <stddef.h>, for size_t.
56013
56014         * lib/unicodeio.h: Include <stddef.h>, for size_t.
56015         * lib/unicodeio.c: Don't include <stddef.h>.
56016
56017 2002-12-31  Bruno Haible  <bruno@clisp.org>
56018
56019         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
56020         HAVE_TM_ZONE.
56021
56022 2002-12-24  Karl Berry  <karl@gnu.org>
56023
56024         * config/config.guess: update from prep.
56025
56026 2002-12-24  Bruno Haible  <bruno@clisp.org>
56027
56028         General infrasructure.
56029         * m4/README: Rewritten.
56030         * m4/onceonly.m4: New file.
56031         * m4/onceonly_2_57.m4: New file.
56032
56033         Module atexit.
56034         * m4/atexit.m4: New file.
56035
56036         Module strtod.
56037         * m4/strtod.m4: New file.
56038
56039         Module strtol.
56040         * m4/strtol.m4: New file.
56041
56042         Module strtoul.
56043         * m4/strtoul.m4: New file.
56044
56045         Module memchr.
56046         * m4/memchr.m4: New file.
56047
56048         Module memcmp.
56049         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
56050         (jm_FUNC_MEMCMP): Invoke it.
56051
56052         Module memcpy.
56053         * m4/memcpy.m4: New file.
56054
56055         Module memmove.
56056         * m4/memmove.m4: New file.
56057
56058         Module memset.
56059         * m4/memset.m4: New file.
56060
56061         Module strcspn.
56062         * m4/strcspn.m4: New file.
56063
56064         Module strpbrk.
56065         * m4/strpbrk.m4: New file.
56066
56067         Module strstr.
56068         * m4/strstr.m4: New file.
56069
56070         Module strerror.
56071         * m4/strerror.m4: New file.
56072
56073         Module mktime.
56074         * m4/mktime.m4: Renamed from jm-mktime.m4.
56075         (gl_PREREQ_MKTIME): New macro.
56076         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
56077
56078         Module malloc.
56079         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
56080         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
56081         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
56082
56083         Module realloc.
56084         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
56085         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
56086         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
56087
56088         Module strftime.
56089         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
56090         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
56091         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
56092         gl_TM_GMTOFF.
56093         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
56094
56095         Module xalloc.
56096         * m4/xalloc.m4: New file.
56097
56098         Module alloca.
56099         * m4/alloca.m4: New file.
56100
56101         Module putenv.
56102         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
56103         (jm_FUNC_PUTENV): Invoke it.
56104
56105         Module setenv.
56106         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
56107         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
56108         when invoked twice.
56109         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
56110         gt_FUNC_SETENV.
56111
56112         Module memrchr.
56113         * m4/memrchr.m4: New file.
56114
56115         Module stpcpy.
56116         * m4/stpcpy.m4: New file.
56117
56118         Module strcase.
56119         * m4/strcase.m4: New file.
56120
56121         Module strdup.
56122         * m4/strdup.m4: New file.
56123
56124         Module strnlen.
56125         * m4/strnlen.m4: New file.
56126
56127         Module strndup.
56128         * m4/strndup.m4: New file.
56129
56130         Module xstrtod.
56131         * m4/xstrtod.m4: New file.
56132
56133         Module xstrtol.
56134         * m4/xstrtol.m4: New file.
56135
56136         Module getdate.
56137         * m4/getdate.m4: New file.
56138
56139         Module unlocked-io.
56140         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
56141         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
56142         * m4/jm-glibc-io.m4n: Remove file.
56143
56144         Module long-options.
56145         * m4/long-options.m4: New file.
56146
56147         Module md5.
56148         * m4/md5.m4: New file.
56149
56150         Module sha.
56151         * m4/sha.m4: New file.
56152
56153         Module getstr.
56154         * m4/getstr.m4: New file.
56155
56156         Module getline.
56157         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
56158         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
56159         <sys/types.h>, for size_t. Use the function name gnu_getline, not
56160         simply getline. Infoke gl_PREREQ_GETLINE.
56161
56162         Module obstack.
56163         * m4/obstack.m4: New file.
56164
56165         Module hash.
56166         * m4/hash.m4: New file.
56167
56168         Module readtokens.
56169         * m4/readtokens.m4: New file.
56170
56171         Module strverscmp.
56172         * m4/strverscmp.m4: New file.
56173
56174         Module stdbool.
56175         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
56176         OSF/1.
56177
56178         Module strtoll.
56179         * m4/strtoll.m4: New file.
56180
56181         Module strtoull.
56182         * m4/strtoull.m4: New file.
56183
56184         Module strtoimax.
56185         * m4/strtoimax.m4: New file.
56186
56187         Module strtoumax.
56188         * m4/strtoumax.m4: New file.
56189
56190         Module xstrtoimax.
56191         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
56192         jm_AC_PREREQ_XSTRTOIMAX.
56193         Moved the strtol prerequisites to strtol.m4.
56194         Moved the strtoll prerequisites to strtoll.m4.
56195         Moved the strtoimax prerequisites to strtoimax.m4.
56196
56197         Module xstrtoumax.
56198         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
56199         jm_AC_PREREQ_XSTRTOUMAX.
56200         Moved the strtoul prerequisites to strtoul.m4.
56201         Moved the strtoull prerequisites to strtoull.m4.
56202         Moved the strtoumax prerequisites to strtoumax.m4.
56203
56204         Module chown.
56205         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
56206         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
56207
56208         Module dup2.
56209         * m4/dup2.m4: New file.
56210
56211         Module ftruncate.
56212         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
56213         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
56214
56215         Module getgroups.
56216         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
56217         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
56218
56219         Module gettimeofday.
56220         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
56221         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
56222         gl_PREREQ_GETTIMEOFDAY.
56223
56224         Module mkdir.
56225         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
56226         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
56227
56228         Module mkstemp.
56229         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
56230         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
56231         jm_AC_TYPE_UINTMAX_T.
56232         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
56233
56234         Module stat.
56235         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
56236         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
56237
56238         Module lstat.
56239         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
56240         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
56241
56242         Module timespec.
56243         * m4/timespec.m4 (gl_TIMESPEC): New macro.
56244         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
56245         * m4/st_mtim.m4: Indentation.
56246
56247         Module nanosleep.
56248         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
56249         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
56250         gl_PREREQ_NANOSLEEP.
56251
56252         Module regex.
56253         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
56254         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
56255         (gl_REGEX): New macro.
56256
56257         Module rename.
56258         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
56259         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
56260
56261         Module rmdir.
56262         * m4/rmdir.m4: New file.
56263
56264         Module utime.
56265         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
56266         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
56267         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
56268
56269         Module dirname.
56270         * m4/dirname.m4: New file.
56271
56272         Module getopt.
56273         * m4/getopt.m4: New file.
56274
56275         Module unistd-safer.
56276         * m4/unistd-safer.m4: New file.
56277
56278         Module fnmatch.
56279         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
56280         declaration.
56281         (gl_PREREQ_FNMATCH_EXTRA): New macro.
56282         (gl_FUNC_FNMATCH_POSIX): New macro.
56283         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
56284         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
56285         simply fnmatch.
56286
56287         Module exclude.
56288         * m4/exclude.m4: New file.
56289
56290         Module human.
56291         * m4/human.m4: New file.
56292
56293         Module acl.
56294         * m4/acl.m4: Nop.
56295
56296         Module backupfile.
56297         * m4/backupfile.m4: New file.
56298         * m4/d-ino.m4: Indentation.
56299
56300         Module fsusage.
56301         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
56302         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
56303         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
56304
56305         Module dirfd.
56306         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
56307         requirements.
56308
56309         Module euidaccess.
56310         * m4/euidaccess.m4: New file.
56311
56312         Module file-type.
56313         * m4/file-type.m4: New file.
56314
56315         Module fileblocks.
56316         * m4/fileblocks.m4: New file.
56317
56318         Module filemode.
56319         * m4/filemode.m4: New file.
56320
56321         Module isdir.
56322         * m4/isdir.m4: New file.
56323
56324         Module lchown.
56325         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
56326         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
56327
56328         Module makepath.
56329         * m4/makepath.m4: New file.
56330
56331         Module modechange.
56332         * m4/modechange.m4: New file.
56333
56334         Module mountlist.
56335         * m4/mountlist.m4: New file.
56336         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
56337         Indentation.
56338
56339         Module path-concat.
56340         * m4/path-concat.m4: New file.
56341
56342         Module pathmax.
56343         * m4/pathmax.m4: New file.
56344
56345         Module same.
56346         * m4/same.m4: New file.
56347
56348         Module save-cwd.
56349         * m4/save-cwd.m4: New file.
56350
56351         Module savedir.
56352         * m4/savedir.m4: New file.
56353
56354         Module xgetcwd.
56355         * m4/xgetcwd.m4: New file.
56356         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
56357
56358         Module xreadlink.
56359         * m4/xreadlink.m4: New file.
56360
56361         Module safe-read.
56362         * m4/safe-read.m4: New file.
56363
56364         Module safe-write.
56365         * m4/safe-write.m4: New file.
56366
56367         Module closeout.
56368         * m4/closeout.m4: New file.
56369
56370         Module stdio-safer.
56371         * m4/stdio-safer.m4: New file.
56372
56373         Module getpass.
56374         * m4/getpass.m4: New file.
56375
56376         Module getugroups.
56377         * m4/getugroups.m4: New file.
56378
56379         Module group-member.
56380         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
56381         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
56382
56383         Module idcache.
56384         * m4/idcache.m4: New file.
56385
56386         Module userspec.
56387         * m4/userspec.m4: New file.
56388
56389         Module gettime.
56390         * m4/clock_time.m4: New file.
56391         * m4/gettime.m4: New file.
56392
56393         Module settime.
56394         * m4/settime.m4: New file.
56395
56396         Module posixtm.
56397         * m4/posixtm.m4: New file.
56398
56399         Module gethostname.
56400         * m4/gethostname.m4: New file.
56401
56402         Module canon-host.
56403         * m4/canon-host.m4: New file.
56404
56405         Module gettext.
56406         * m4/codeset.m4: New file, from gettext-0.11.5.
56407         * m4/gettext.m4: New file, from gettext-0.11.5.
56408         * m4/glibc21.m4: New file, from gettext-0.11.5.
56409         * m4/iconv.m4: New file, from gettext-0.11.5.
56410         * m4/intdiv0.m4: New file, from gettext-0.11.5.
56411         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
56412         * m4/inttypes.m4: New file, from gettext-0.11.5.
56413         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
56414         * m4/isc-posix.m4: New file, from gettext-0.11.5.
56415         * m4/lcmessage.m4: New file, from gettext-0.11.5.
56416         * m4/lib-ld.m4: New file, from gettext-0.11.5.
56417         * m4/lib-link.m4: New file, from gettext-0.11.5.
56418         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
56419         * m4/progtest.m4: New file, from gettext-0.11.5.
56420         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
56421         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
56422         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
56423
56424         Module localcharset.
56425         * m4/localcharset.m4: New file.
56426
56427         Module hard-locale.
56428         * m4/hard-locale.m4: New file.
56429
56430         Module mbswidth.
56431         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
56432         onceonly macros.
56433         * m4/mbrtowc.m4: Add comment.
56434
56435         Module memcasecmp.
56436         * m4/memcasecmp.m4: New file.
56437
56438         Module memcoll.
56439         * m4/memcoll.m4: New file.
56440
56441         Module unicodeio.
56442         * m4/unicodeio.m4: New file.
56443
56444         Module rpmatch.
56445         * m4/rpmatch.m4: New file.
56446
56447         Module yesno.
56448         * m4/yesno.m4: New file.
56449
56450         Module exitfail.
56451         * m4/exitfail.m4: New file.
56452
56453         Module c-stack.
56454         * m4/c-stack.m4 (gl_C_STACK): New macro.
56455         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
56456
56457         Module error.
56458         * m4/error.m4 (gl_ERROR): New macro.
56459         (jm_PREREQ_ERROR): Use onceonly macros.
56460
56461         Module fatal.
56462         * m4/fatal.m4: New file.
56463
56464         Module getloadavg.
56465         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
56466         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
56467
56468         Module getpagesize.
56469         * m4/getpagesize.m4: New file.
56470
56471         Module getusershell.
56472         * m4/getusershell.m4: New file.
56473
56474         Module physmem.
56475         * m4/physmem.m4: New file.
56476
56477         Module posixver.
56478         * m4/posixver.m4: New file.
56479
56480         Module quotearg.
56481         * m4/quotearg.m4: New file.
56482
56483         Module quote.
56484         * m4/quote.m4: New file.
56485
56486         Module readutmp.
56487         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
56488
56489         Module sig2str.
56490         * m4/sig2str.m4: New file.
56491
56492         Other.
56493         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
56494         ulonglong.m4.
56495         * m4/intmax_t.m4: New file.
56496         * m4/d-type.m4: Indentation.
56497         * m4/jm-macros.m4: Update.
56498         * m4/prereq.m4 (jm_PREREQ): Update.
56499         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
56500         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
56501         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
56502         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
56503         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
56504         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
56505         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
56506         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
56507         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
56508         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
56509         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
56510         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
56511         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
56512         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
56513         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
56514         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
56515         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
56516         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
56517         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
56518
56519 2002-12-24  Bruno Haible  <bruno@clisp.org>
56520
56521         * MODULES.txt: Update according to m4/ changes.
56522
56523         Module gettext.
56524         * config.rpath: New file, from gettext-0.11.5.
56525
56526         * modules/*: New module descriptions.
56527         * gnulib-tool: New file.
56528         * MODULES.html.sh: New file.
56529
56530 2002-12-21  Karl Berry  <karl@gnu.org>
56531
56532         * doc/fdl.texi: update to version 1.2.
56533
56534 2002-12-19  Karl Berry  <karl@gnu.org>
56535
56536         * config/config.guess: update from prep.
56537
56538 2002-12-18  Bruno Haible  <bruno@clisp.org>
56539
56540         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
56541         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
56542
56543 2002-12-17  Bruno Haible  <bruno@clisp.org>
56544
56545         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
56546         stdlib.h, string.h.
56547
56548 2002-12-17  Bruno Haible  <bruno@clisp.org>
56549
56550         * lib/canon-host.c (strdup): Remove unused declaration.
56551
56552         * lib/fsusage.c: Include full_read.h.
56553         (get_fs_usage): Use full_read instead of safe_read.
56554
56555         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
56556
56557 2002-12-12  Karl Berry  <karl@gnu.org>
56558
56559         * config/config.guess: update from prep.
56560
56561 2002-12-11  Bruno Haible  <bruno@clisp.org>
56562
56563         * m4/setenv.m4: New file, from gettext-0.11.5.
56564
56565 2002-12-11  Bruno Haible  <bruno@clisp.org>
56566
56567         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
56568         not unsetenv().
56569         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
56570         modifications:
56571
56572         2002-12-11  Bruno Haible  <bruno@clisp.org>
56573
56574                 * setenv.c (alloca): Fall back to malloc.
56575                 (freea): New macro.
56576                 (setenv): Use freea() to free memory allocated with alloca().
56577
56578         2002-11-13  Bruno Haible  <bruno@clisp.org>
56579
56580                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
56581                 function declarations.
56582                 * unsetenv.c (unsetenv): Likewise.
56583
56584         2002-03-04  Bruno Haible  <bruno@clisp.org>
56585
56586                 Portability to AIX 4.3.3.
56587                 * unsetenv.c: New file, extracted from setenv.c.
56588                 * setenv.c: Move the unsetenv() function to unsetenv.c.
56589
56590         2001-12-20  Bruno Haible  <bruno@clisp.org>
56591
56592                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
56593                 use malloc instead. For SunOS 4.
56594
56595         2001-12-11  Bruno Haible  <bruno@clisp.org>
56596
56597                 * setenv.c: Declare alloca.
56598                 (compar_fn_t): New typedef.
56599                 (KNOWN_VALUE, STORE_VALUE): Use it.
56600
56601         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
56602         setenv.h.
56603
56604 2002-12-10  Paul Eggert  <eggert@twinsun.com>
56605
56606         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
56607         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
56608         Choose values that are less likely to collide with system fnmatch
56609         options.
56610         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
56611         defined (e.g., a pure POSIX system).
56612         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
56613         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
56614
56615 2002-12-06  Paul Eggert  <eggert@twinsun.com>
56616
56617         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
56618         a pain in practice to deal with generated m4 files.  This change
56619         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
56620
56621         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
56622         and jm-glibc-io.m4, as they are no longer a special case.
56623         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
56624         kludge and the auto-generation stuff.  Check only whether the
56625         functions are declared, not whether they exist, since older hosts
56626         that don't declare the functions can't use the optimization anyway.
56627
56628 2002-12-06  Jim Meyering  <jim@meyering.net>
56629
56630         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
56631
56632         Merge in changes from libc's misc/error.c, in preparation
56633         for the merge of gnulib's changes back into libc.
56634
56635         * lib/error.c (_): Define only if not already defined.
56636         Move definition to follow all #include directives.
56637         Include unlocked-io.h only if !_LIBC.
56638         [_LIBC]: Include <libio/libioP.h>.
56639         [USE_IN_LIBIO]: Include <libio/iolibio.h>
56640         (fflush): Tweak definition to use INTUSE.
56641         (putc): Define.
56642
56643 2002-12-05  Paul Eggert  <eggert@twinsun.com>
56644
56645         * lib/alloca.c [defined emacs]: Include "lisp.h".
56646         (xalloc_die) [defined emacs]: New macro.
56647         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
56648         [! defined emacs]: Include <xalloc.h>.
56649         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
56650         (pointer): Typedef to POINTER_TYPE *.
56651         (malloc): Remove decl; we now always use xmalloc.
56652         (alloca): Use old-style definition, since Emacs needs this.
56653         Check for arithmetic overflow when computing combined size.
56654
56655 2002-12-04  Paul Eggert  <eggert@twinsun.com>
56656
56657         Do not generate unlocked-io.h automatically, since it's easier to
56658         maintain it by hand.
56659
56660         * lib/unlocked-io.h: New file, from GNU diffutils,
56661         but with proper copyright notice and attribution.
56662         * lib/gen-uio: Remove.
56663         * lib/Makefile.am: Add copyright notice.
56664         (libfetish_a_SOURCES): Add unlocked-io.h.
56665         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
56666         (DISTCLEANFILES, io_functions): Remove macros.
56667         (EXTRA_DIST): Remove gen_uio.
56668         (unlocked-io.h): Remove rule.
56669
56670 2002-12-04  Jim Meyering  <jim@meyering.net>
56671
56672         Reflect the fact that stat.c and lstat.c are no longer generated.
56673         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
56674         (DISTCLEANFILES): Likewise.
56675         (EXTRA_DIST): Likewise.
56676         (all_local): Don't depend on stat.c or lstat.c.
56677         (stat.c, lstat.c): Remove rules.
56678         (EXTRA_DIST): Remove xstat.in.
56679
56680         * lib/xstat.in: Remove file.  Contents moved into stat.c.
56681         * lib/stat.c: New file.  Contents mostly from xstat.in.
56682         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
56683         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
56684
56685         * lib/safe-read.c: Rework so that it may serve to define safe_write,
56686         too.
56687         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
56688
56689 2002-12-03  Jim Meyering  <jim@meyering.net>
56690
56691         * lib/safe-read.c, safe-write.c: Change variable names and comments,
56692         but not semantics, to minimize the differences between these two files.
56693         (safe_read): Change comment to mention SAFE_READ_ERROR.
56694
56695         * lib/safe-read.c (IS_EINTR): Define.
56696         (safe_read): Use IS_EINTR in place of in-function cpp directives.
56697
56698 2002-12-02  Jim Meyering  <jim@meyering.net>
56699
56700         * lib/safe-read.c (EINTR): Define.
56701         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
56702         (INT_MAX): Provide fallback.
56703         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
56704
56705         * lib/safe-read.h (SAFE_READ_ERROR): Define.
56706
56707 2002-12-02  Bruno Haible  <bruno@clisp.org>
56708
56709         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
56710         Define, taken from safe-read.c.
56711         (INT_MAX): Provide fallback.
56712         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
56713         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
56714
56715         * lib/safe-read.c (EINTR): Remove definition.
56716         (safe_read): Don't use EINTR if it is absent.
56717
56718 2002-12-01  Jim Meyering  <jim@meyering.net>
56719
56720         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
56721         zero.
56722         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
56723
56724 2002-11-27  Paul Eggert  <eggert@twinsun.com>
56725
56726         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
56727         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
56728         with `if (! (value < limit)) abort ();', for readability.
56729
56730 2002-11-26  Karl Berry  <karl@gnu.org>
56731
56732         * lib/strdup.c: copy from libc again, with jim's ok.
56733         * lib/.cppi-disable: re-add strdup.c
56734
56735 2002-11-25  Karl Berry  <karl@gnu.org>
56736
56737         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
56738         instead of "strtol.c".
56739
56740 2002-11-25  Karl Berry  <karl@gnu.org>
56741
56742         * config/install-sh: update from automake for variable quoting, $0 in
56743         error msgs, etc.
56744
56745         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
56746         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
56747         entry.
56748
56749 2002-11-25  Jim Meyering  <jim@meyering.net>
56750
56751         * lib/mktime.c: Sync from libc, now that it has the latest fix.
56752
56753 2002-11-24  Karl Berry  <karl@gnu.org>
56754
56755         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
56756         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
56757
56758 2002-11-24  Jim Meyering  <jim@meyering.net>
56759
56760         Update from coreutils:
56761
56762         * lib/mktime.c: Merge in changes from libc.
56763
56764         Avoid a link-time failure on some Linux systems.
56765         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
56766         (otherwise).
56767         (__mon_yday): Declare with the STATIC attribute.
56768         (__mktime_internal): Likewise.
56769         Based on a report from Greg Schafer.
56770
56771 2002-11-23  Jim Meyering  <jim@meyering.net>
56772
56773         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
56774         Use `unsigned', not `int', as type of index.
56775
56776         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
56777
56778         * lib/fsusage.c: Remove unneeded parentheses around operands of
56779         `defined'.
56780
56781 2002-11-22  Paul Eggert  <eggert@twinsun.com>
56782
56783         * lib/quotearg.h: Allow multiple inclusion by surrounding with
56784         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
56785         so that we can be included first.
56786         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
56787         * lib/quotearg.c: Include quotearg.h immediately after config.h.
56788         No need to include stddef.h or sys/types.h any more.
56789         Surround local include files with "", not "<>".
56790         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
56791         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
56792         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
56793         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
56794         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
56795         (ISPRINT): Remove; no longer needed now that we assume C89.
56796
56797         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
56798         Preserve errno.
56799
56800         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
56801         quotearg_char): Use SIZE_MAX rather than
56802         (size_t) -1 when we are talking about "infinity".
56803
56804         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
56805
56806 2002-11-22  Paul Eggert  <eggert@twinsun.com>
56807
56808         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
56809         hint that one should use `if (! x) abort ();' rather than `assert
56810         (x);', and anyway it's one less thing to worry about configuring.
56811         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
56812         hash_rehash, hash_insert): Use abort rather than assert.
56813
56814 2002-11-22  Bruno Haible  <bruno@clisp.org>
56815
56816         * lib/safe-read.h: Assume C89. Add comments.
56817         (safe_read): Change return type to size_t.
56818         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
56819         byte counts > SSIZE_MAX correctly.
56820         * lib/safe-write.h: New file.
56821         * lib/safe-write.c: New file.
56822         * lib/full-read.h: New file.
56823         * lib/full-read.c: New file.
56824         * lib/full-write.h: Assume C89. Add comments.
56825         * lib/full-write.c: Include safe-write.h.
56826         (full_write): Rewritten to use safe_write.
56827         Suggested by Jim Meyering and Paul Eggert.
56828
56829 2002-11-21  Jim Meyering  <jim@meyering.net>
56830
56831         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
56832
56833         Merge in changes from the coreutils.
56834
56835         2002-09-25  Paul Eggert  <eggert@twinsun.com>
56836         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
56837         <stdint.h>.
56838         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
56839         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
56840         int.  Work more efficiently if X is the same width as uintmax_t.
56841         Do not compare X to -1, to avoid bogus compiler warning.
56842         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
56843         Don't assume that f_frsize and f_bsize are the same type.
56844
56845         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
56846         warning on FreeBSD.
56847
56848         * lib/makepath.c (make_path): Restore umask *before* creating the final
56849         component.
56850         (make_path): Minor reformatting.
56851
56852         * lib/xmalloc.c: Adjust to work with new autoconf macros,
56853         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
56854         HAVE_MALLOC/HAVE_REALLOC.
56855
56856         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
56857         dummy ones.  At least on GNU/Linux systems, `auto' means something
56858         else.
56859         From Michael Stone.
56860
56861 2002-11-21  Bruno Haible  <bruno@clisp.org>
56862
56863         Remove case insensitive option matching.
56864         * lib/argmatch.h (argcasematch): Remove declaration.
56865         (ARGCASEMATCH): Remove macro.
56866         (__xargmatch_internal): Remove case_sensitive argument.
56867         (XARGMATCH): Update.
56868         (XARGCASEMATCH): Remove macro.
56869         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
56870         case_sensitive argument.
56871         (argcasematch): Remove function.
56872         (__xargmatch_internal): Remove case_sensitive argument.
56873         (main): Use XARGMATCH instead of XARGCASEMATCH.
56874
56875         * lib/xmalloc.c: Change compile-time error message. Add comment about
56876         required autoconf version.
56877
56878 2002-11-20  Paul Eggert  <eggert@twinsun.com>
56879
56880         Merge argmatch cleanups from Bison.  Assume C89.
56881
56882         * lib/argmatch.c: Include config.h here, not in argmatch.h.
56883         Include stdlib.h, for EXIT_FAILURE.
56884         Always include <string.h>, since we assume C89.
56885         (EXIT_FAILURE): Remove pre-C89 bug workaround.
56886         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
56887         Include <stddef.h> instead, since it's all we need for size_t.
56888         (PARAMS): Remove.  All uses removed.
56889         (ARRAY_CARDINALITY): Do not bother to #undef.
56890         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
56891         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
56892         Remove unnecessary parentheses.
56893         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
56894         Insert necessary parentheses.
56895         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
56896         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
56897
56898 2002-11-19  Bruno Haible  <bruno@clisp.org>
56899
56900         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
56901         * lib/mbswidth.h: Include <stddef.h>, for size_t.
56902
56903         * lib/mbswidth.h (PARAMS): Remove macro.
56904         (mbswidth, mbsnwidth): Use ANSI C function declarations.
56905         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
56906
56907         * lib/gcd.h (PARAMS): Remove macro.
56908         (gcd): Use ANSI C function declarations.
56909         * lib/gcd.c (gcd): Likewise.
56910
56911 2002-11-15  Bruno Haible  <bruno@clisp.org>
56912
56913         * lib/strcspn.c: Include <stddef.h>.
56914         (strcspn): Use ANSI C function declaration. Change return type to
56915         size_t. Use NULL.
56916         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
56917         (strpbrk): Use NULL.
56918         * lib/strpbrk.h (PARAMS): Remove macro.
56919         (strpbrk): Use ANSI C function declaration.
56920         * lib/strstr.c: Don't include <sys/types.h>.
56921         * lib/strstr.h (PARAMS): Remove macro.
56922         (strstr): Use ANSI C function declarations.
56923
56924 2002-11-14  Karl Berry  <karl@gnu.org>
56925
56926         * config/mkinstalldirs: `do' on separate line, instead of
56927         `for var; do'.
56928
56929 2002-11-06  Bruno Haible  <bruno@clisp.org>
56930
56931         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
56932         * lib/gcd.c (gcd): Likewise.
56933
56934 2002-11-05  Bruno Haible  <bruno@clisp.org>
56935
56936         * lib/gcd.h: New file, from gettext-0.11.5.
56937         * lib/gcd.c: New file, from gettext-0.11.5.
56938
56939 2002-11-05  Bruno Haible  <bruno@clisp.org>
56940
56941         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
56942         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
56943         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
56944         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
56945
56946         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
56947         <libintl.h>.
56948         * lib/makepath.c: Include gettext.h instead of <locale.h> and
56949         <libintl.h>.
56950
56951         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
56952         * lib/human.c: Include gettext.h instead of <libintl.h>.
56953         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
56954         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
56955         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
56956         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
56957         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
56958         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
56959         (textdomain): Remove definition.
56960         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
56961
56962         * lib/long-options.c: Remove include of <libintl.h> and definition of
56963         _.
56964         * lib/same.c: Remove include of <libintl.h> and definition of _.
56965
56966 2002-11-04  Owen Taylor  <otaylor@redhat.com>
56967
56968         * lib/config.charset: A few additions for Solaris.
56969
56970 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
56971
56972         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
56973         * lib/localcharset.c (locale_charset): Declare as extern "C".
56974
56975 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
56976
56977         * lib/config.charset: msdos in uk_UA uses CP1125.
56978
56979 2002-11-04  Bruno Haible  <bruno@clisp.org>
56980
56981         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
56982         * lib/strcase.h: New file, from GNU gettext-0.11.5.
56983         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
56984         * lib/strstr.h: New file, from GNU gettext-0.11.5.
56985         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
56986
56987 2002-11-04  Bruno Haible  <bruno@clisp.org>
56988
56989         * lib/localcharset.c (locale_charset): Don't return an empty string.
56990
56991 2002-11-04  Bruno Haible  <bruno@clisp.org>
56992
56993         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
56994         aliases.
56995
56996 2002-11-04  Bruno Haible  <bruno@clisp.org>
56997
56998         * lib/config.charset: Update for newest glibc. Add canonical names
56999         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
57000
57001 2002-11-04  Bruno Haible  <bruno@clisp.org>
57002
57003         * lib/config.charset: Add support for NetBSD.
57004
57005 2002-11-04  Bruno Haible  <bruno@clisp.org>
57006
57007         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
57008
57009 2002-11-01  Bruno Haible  <bruno@clisp.org>
57010
57011         * configure.in: Add AC_CONFIG_AUX_DIR call.
57012         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
57013         test/Makefile.
57014         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
57015
57016 2002-09-28  Karl Berry  <karl@gnu.org>
57017
57018         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
57019         installed automake until the next release, since changes have been
57020         made.
57021
57022 2002-09-25  Karl Berry  <karl@gnu.org>
57023
57024         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
57025         * lib/getopt*: copy from libc/posix.
57026         * lib/gettext.h: copy from gettext.
57027         * lib/.cppi-disable: add strdup.c, gettext.h.
57028
57029 2002-09-25  Karl Berry  <karl@gnu.org>
57030
57031         * config/srclist.txt: enable gettext.h check.
57032         * config/config.{guess,sub}: update from prep.
57033         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
57034                 from automake 1.6.3.
57035         See srclist*.
57036
57037 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
57038
57039         * regex.c (PATFETCH): Remove the translating fetch.
57040         (PATFETCH_RAW): Rename to PATFETCH.
57041         (set_image_of_range): New fun.
57042         (SET_RANGE_TABLE_WORK_AREA): Use it.
57043         (regex_compile): Don't translate the pattern chars so eagerly.
57044         Only do it when inserting an `exactn' bytecode or when handling
57045         a char-range.
57046         (mutually_exclusive_p): Avoid empty statement.
57047
57048 2002-07-06  Jim Meyering  <meyering@lucent.com>
57049
57050         * m4/README: Don't mention Makefile.am.in.
57051         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
57052
57053 2002-07-01  Jim Meyering  <meyering@lucent.com>
57054
57055         * lib/c-stack.c: Include sys/time.h.
57056         From Volker Borchert.
57057
57058 2002-06-26  Paul Eggert  <eggert@twinsun.com>
57059
57060         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
57061
57062 2002-06-26  Paul Eggert  <eggert@twinsun.com>
57063
57064         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
57065         New macro.  Use it uniformly instead of
57066         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
57067         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
57068         reported by Vin Shelton.
57069
57070 2002-06-22  Paul Eggert  <eggert@twinsun.com>
57071
57072         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
57073         Do not assume SA_SIGINFO behavior.
57074         Bug reported by Jim Meyering on NetBSD 1.5.2.
57075
57076 2002-06-22  Jim Meyering  <meyering@lucent.com>
57077
57078         * m4/c-stack.m4: New file, from diffutils-2.8.2.
57079         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
57080
57081         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
57082         now that configure.ac uses AC_GNU_SOURCE.
57083         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
57084         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
57085
57086         Update to latest tools.  Suggestions from Paul Eggert.
57087         * m4/stdbool.m4: New file, from diffutils-2.8.2.
57088         * m4/gnu-source.m4: Update from diffutils-2.8.2.
57089         * m4/fnmatch.m4: Likewise.
57090         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
57091         to AC_HEADER_STDBOOL
57092
57093 2002-06-22  Jim Meyering  <meyering@lucent.com>
57094
57095         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
57096         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
57097
57098 2002-06-22  Jim Meyering  <meyering@lucent.com>
57099
57100         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
57101
57102         * lib/exitfail.c, exitfail.h: Likewise.
57103         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
57104
57105         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
57106         of fnmatch.h.
57107         (EXTRA_DIST): Add fnmatch_loop.c.
57108         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
57109
57110         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
57111         * lib/fnmatch.c: Update from diffutils-2.8.2.
57112         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
57113         * lib/fnmatch.h: Remove file.
57114
57115 2002-06-21  Jim Meyering  <meyering@lucent.com>
57116
57117         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
57118         * m4/mbrtowc.m4: Likewise.
57119
57120         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
57121         * m4/mbswidth.m4: Reflect name change:
57122         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
57123         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
57124
57125         * m4/lib-link.m4: Update from gettext-0.11.2.
57126         * m4/gettext.m4: Likewise.
57127
57128         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
57129         From Alfred M. Szmidt.
57130
57131 2002-06-18  Paul Eggert  <eggert@twinsun.com>
57132
57133         * lib/file-type.h: Report an error if neither S_ISREG nor
57134         S_IFREG is defined, instead of using a test specific to glibc
57135         2.2.  This should be safe, since POSIX requires S_ISREG and
57136         Unix Version 7 had S_IFREG.  We don't need to check for
57137         <sys/types.h> since we don't use any symbols that it defines.
57138
57139 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
57140
57141         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
57142         $@-t, so that each temporary file name is unique and valid in the first
57143         8 characters, for operation under DOS.
57144
57145 2002-06-15  Paul Eggert  <eggert@twinsun.com>
57146
57147         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
57148
57149 2002-06-15  Jim Meyering  <meyering@lucent.com>
57150
57151         Work even with DJGPP 2.03, which lacks support for symlinks.
57152         From Richard Dawe.
57153         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
57154         is defined.
57155         * lib/lchown.c (S_ISLNK): Likewise.
57156
57157 2002-06-15  Jim Meyering  <meyering@lucent.com>
57158
57159         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
57160         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
57161         have been included before this file.
57162
57163 2002-06-14  Jim Meyering  <meyering@lucent.com>
57164
57165         * lib/file-type.h: Use the version from diffutils-2.8.2.
57166         * lib/file-type.c: Likewise.
57167
57168 2002-06-07  Jim Meyering  <meyering@lucent.com>
57169
57170         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
57171         They're needed at least for NetBSD 1.5.2.
57172         ($statxfs_includes): Include those same headers.
57173         ($statxfs_includes): Include sys/vfs.h if available.
57174         ($statxfs_includes): Likewise for sys/statvfs.h.
57175         Check for the following members in both structs statfs and statvfs:
57176         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
57177
57178 2002-06-01  Jim Meyering  <meyering@lucent.com>
57179
57180         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
57181         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
57182
57183 2002-05-28  Jim Meyering  <meyering@lucent.com>
57184
57185         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
57186         Reported by Volker Borchert.
57187
57188 2002-05-27  Jim Meyering  <meyering@lucent.com>
57189
57190         Fix a problem seen only on nonconforming systems whereby ls.c's
57191         use of localtime, and then of gettimeofday would cause trouble:
57192         the localtime call used to initialize rpl_gettimeofday's save
57193         mechanism would clobber ls's current local time information so
57194         that in any long listing the first file would always be listed
57195         with date 1970-01-01.  Analysis by Volker Borchert.
57196
57197         * lib/gettimeofday.c (localtime): Undefine.
57198         (rpl_localtime): New function.
57199
57200 2002-05-27  Jim Meyering  <meyering@lucent.com>
57201
57202         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
57203         localtime.
57204
57205         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
57206         use the replacement function; it wouldn't resolve at link time.
57207         Reported by Volker Borchert.
57208
57209 2002-05-22  Jim Meyering  <meyering@lucent.com>
57210
57211         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
57212         file-type.h.
57213         * lib/file-type.h: New file.
57214         * lib/file-type.c (file_type): New file/function.  Extracted from
57215         diffutils.
57216
57217 2002-04-30  Jim Meyering  <meyering@lucent.com>
57218
57219         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
57220
57221 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57222
57223         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
57224
57225 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57226
57227         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
57228         Do not check for alloca.h (no longer used) or stdbool.h (was never
57229         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
57230
57231 2002-04-29  Paul Eggert  <eggert@twinsun.com>
57232
57233         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
57234
57235 2002-04-29  Jim Meyering  <meyering@lucent.com>
57236
57237         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
57238         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
57239         Use AC_FUNC_STRNLEN here instead.
57240
57241         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
57242         With autoconf-2.53a, it's part of AC_PROG_CC.
57243
57244 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57245
57246         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
57247         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
57248
57249 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57250
57251         * lib/sig2str.h, lib/sig2str.c: New files.
57252         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
57253
57254 2002-04-28  Paul Eggert  <eggert@twinsun.com>
57255
57256         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
57257         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
57258         of 127, since 64 is the largest conceivable number for ancient
57259         nonstandard hosts.
57260         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
57261
57262 2002-04-28  Jim Meyering  <meyering@lucent.com>
57263
57264         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
57265
57266 2002-04-24  Jim Meyering  <meyering@lucent.com>
57267
57268         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
57269         (jm_PREREQ): Use it.
57270
57271         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
57272         mach/mach.h fcntl.h.
57273         Check for this function: setlocale.
57274
57275 2002-04-24  Jim Meyering  <meyering@lucent.com>
57276
57277         * lib/gettext.h: New file, from Gettext.
57278         * lib/Makefile.am (INCLUDES): Remove -I../intl.
57279         (libfetish_a_SOURCES): Add gettext.h.
57280
57281 2002-04-16  Jim Meyering  <meyering@lucent.com>
57282
57283         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
57284         ut_pid, ut_id, ut_exit.
57285
57286 2002-04-16  Jim Meyering  <meyering@lucent.com>
57287
57288         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
57289         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
57290         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
57291
57292 2002-04-12  Jim Meyering  <meyering@lucent.com>
57293
57294         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
57295         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
57296         existence of the getmntinfo function.  Needed for Darwin 5.3.
57297
57298         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
57299         This is necessary at least on Darwin 5.3.
57300
57301         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
57302         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
57303         strnlen.o in the library, and that makes some versions of ranlib
57304         object.
57305
57306 2002-04-12  Jim Meyering  <meyering@lucent.com>
57307
57308         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
57309
57310 2002-04-09  Jim Meyering  <meyering@lucent.com>
57311
57312         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
57313         to be more precise.  Rather than saying we're checking whether the
57314         function `works', say what we're testing.
57315         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
57316         Reported by Bruno Haible.
57317
57318 2002-03-10  Jim Meyering  <meyering@lucent.com>
57319
57320         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
57321         Suggestion from Santiago Vila.
57322
57323 2002-03-08  Jim Meyering  <meyering@lucent.com>
57324
57325         * lib/rename.c: Mention that this wrapper is needed also on
57326         mips-dec-ultrix4.4 systems.
57327
57328 2002-03-02  Jim Meyering  <meyering@lucent.com>
57329
57330         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
57331         not HAVE_CLOCK_SETTIME.
57332
57333 2002-02-27  Paul Eggert  <eggert@twinsun.com>
57334
57335         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
57336         Check for clock_settime.
57337
57338 2002-02-27  Paul Eggert  <eggert@twinsun.com>
57339
57340         * lib/nanosleep.h: Rename to....
57341         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
57342
57343         * lib/gettime.c: New file.
57344         * lib/settime.c: New file.
57345         * lib/stime.c: Remove.
57346
57347         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
57348         timespec.h.  Remove nanosleep.h.
57349
57350 2002-02-25  Paul Eggert  <eggert@twinsun.com>
57351
57352         * m4/acl.m4: New file.
57353         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
57354         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
57355
57356 2002-02-25  Paul Eggert  <eggert@twinsun.com>
57357
57358         * lib/acl.c, lib/acl.h: New files.
57359         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
57360
57361 2002-02-24  Jim Meyering  <meyering@lucent.com>
57362
57363         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
57364         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
57365         cause trouble.  Reported by Nelson Beebe.
57366
57367 2002-02-23  Paul Eggert  <eggert@twinsun.com>
57368
57369         * lib/path-concat.c (xpath_concat): Reorder code to pacify
57370         compilers that don't know that xalloc_die never returns.
57371
57372 2002-02-20  Jim Meyering  <meyering@lucent.com>
57373
57374         * lib/getdate.c: Regenerate using bison-1.33.
57375
57376 2002-02-17  Jim Meyering  <meyering@lucent.com>
57377
57378         * config/config.guess (main): Don't use `head -1'; it's no longer
57379         portable. Use `sed 1q' instead.
57380
57381 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
57382
57383         * m4/codeset.m4: Upgrade to gettext-0.11.
57384         * m4/gettext.m4: Upgrade to gettext-0.11.
57385         * m4/glibc21.m4: Upgrade to gettext-0.11.
57386         * m4/iconv.m4: Upgrade to gettext-0.11.
57387         * m4/isc-posix.m4: Upgrade to gettext-0.11.
57388         * m4/lcmessage.m4: Upgrade to gettext-0.11.
57389         * m4/lib-ld.m4: New file, from gettext-0.11.
57390         * m4/lib-link.m4: New file, from gettext-0.11.
57391         * m4/lib-prefix.m4: New file, from gettext-0.11.
57392         * m4/progtest.m4: Upgrade to gettext-0.11.
57393
57394 2002-02-15  Paul Eggert  <eggert@twinsun.com>
57395
57396         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
57397         (jm_PREREQ): Use it.
57398
57399 2002-02-15  Paul Eggert  <eggert@twinsun.com>
57400
57401         * lib/posixver.c, lib/posixver.h: New files.
57402         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57403
57404 2002-02-02  Paul Eggert  <eggert@twinsun.com>
57405             Bruno Haible  <bruno@clisp.org>
57406
57407         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
57408         (fwrite_success_callback): New declaration.
57409         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
57410         print_unicode_char. Call failure callback instead of error.
57411         (fwrite_success_callback): New function.
57412         (exit_failure_callback): New function.
57413         (fallback_failure_callback): New function.
57414         (print_unicode_char): Call unicode_to_mb.
57415
57416 2002-01-26  Jim Meyering  <meyering@lucent.com>
57417
57418         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
57419         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
57420
57421 2002-01-26  Jim Meyering  <meyering@lucent.com>
57422
57423         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
57424
57425 2002-01-22  Paul Eggert  <eggert@twinsun.com>
57426
57427         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
57428
57429 2002-01-22  Jim Meyering  <meyering@lucent.com>
57430
57431         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
57432         Otherwise, some versions of automake would omit the rule that makes
57433         Makefile from Makefile.in.
57434
57435 2002-01-21  Paul Eggert  <eggert@twinsun.com>
57436
57437         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
57438         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57439         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
57440         (memcoll): Set errno to zero if there is no error.
57441
57442         * lib/quotearg.c (quotearg_buffer_restyled):
57443         Fix bug with quoting buffers containing NUL when backslashing escapes.
57444         This bug was exposed by the other changes in this patch.
57445         (quotearg_n_options): New arg ARGSIZE.
57446         All callers changed.
57447         (quoting_options_from_style): New function.
57448         (quotearg_n_style): Use it.
57449         (quotearg_n_style_mem): New function.
57450
57451         * lib/quotearg.h (quotearg_n_style_mem): New function.
57452
57453 2002-01-19  Jim Meyering  <meyering@lucent.com>
57454
57455         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
57456         Remove useless quotes: DF_PROG="df".
57457         * m4/strnlen.m4: New file.
57458
57459 2002-01-16  Paul Eggert  <eggert@twinsun.com>
57460
57461         * lib/backupfile.c (ISDIGIT): Comment fix.
57462         * lib/getdate.y (ISDIGIT): Likewise.
57463         * lib/posixtm.c (ISDIGIT, year): Likewise.
57464         * lib/strverscmp.c (ISDIGIT): Likewise.
57465         * lib/userspec.c (ISDIGIT): Likewise.
57466
57467 2002-01-16  Jim Meyering  <meyering@lucent.com>
57468
57469         * lib/getdate.y: Add three semicolons, each just before a closing
57470         brace. Bison (as of version 1.31) no longer papers over that mistake.
57471
57472 2002-01-05  Jim Meyering  <meyering@lucent.com>
57473
57474         * lib/version-etc.c (version_etc_copyright): Update copyright year.
57475
57476 2001-12-19  Paul Eggert  <eggert@twinsun.com>
57477
57478         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
57479         not silently exit merely because the output buffer happens to
57480         have nothing pending.
57481
57482 2001-12-18  Paul Eggert  <eggert@twinsun.com>
57483
57484         See the big note in ../ChangeLog.
57485         * lib/human.c (suffixes): Prefer K to k for 1024.
57486         (generate_suffix_backwards): New function.
57487         (human_readable_inexact): Use it.
57488         * lib/xstrtol.c (__xstrtol): If there is no number but there
57489         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
57490         Accept 'K' as well as 'k'.
57491
57492 2001-12-15  Jim Meyering  <meyering@lucent.com>
57493
57494         * lib/regex.h (__restrict_arr): Update from libc.
57495
57496         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
57497         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
57498         (STREQ): Define.
57499
57500 2001-12-14  Jim Meyering  <meyering@lucent.com>
57501
57502         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
57503         Suggestion from Bruno Haible.
57504
57505 2001-12-10  Jim Meyering  <meyering@lucent.com>
57506
57507         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
57508         xrealloc, Instead, include "xalloc.h".
57509         (initbuffer): Don't cast xmalloc return value to char*.
57510         (readline): Reword comment.
57511         Don't cast xrealloc return value to char*
57512         Return NULL, not 0.
57513
57514 2001-12-09  Jim Meyering  <meyering@lucent.com>
57515
57516         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
57517         about `signed and unsigned type in conditional expression'.
57518         * lib/posixtm.c (posix_time_parse): Likewise.
57519
57520         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
57521
57522         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
57523         to avoid a pedantic warning.
57524
57525         * lib/getstr.c: Don't include assert.h.
57526         (getstr): Remove warning-evoking assertions.
57527         Return -1 if offset parameter is out of bounds.
57528         Change the type of a local from int to size_t.
57529
57530         * lib/strftime.c (my_strftime_localtime_r): Include this function
57531         definition in the `#if ! HAVE_TM_GMTOFF' block.
57532
57533         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
57534         Include xalloc.h instead.
57535
57536 2001-12-02  Jim Meyering  <meyering@lucent.com>
57537
57538         * lib/tempname.c: Don't declare getenv, thus reverting the change of
57539         2001-11-18.  It's no longer necessary, now that stdlib.h is always
57540         included.
57541
57542         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
57543         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
57544
57545 2001-11-30  Akim Demaille  <akim@epita.fr>
57546
57547         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
57548         before being defined.
57549
57550 2001-11-27  Paul Eggert  <eggert@twinsun.com>
57551
57552         * lib/quotearg.h (quotearg_n, quotearg_n_style):
57553         First arg is int, not unsigned.
57554         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
57555         (SIZE_MAX, UINT_MAX): New macros.
57556         (quotearg_n_options): Abort if N is negative.
57557         Avoid overflow check on hosts where size_t is 64 bits and int
57558         is 32 bits, as overflow is impossible there.
57559         Fix off-by-one typo that caused unnecessary reallocation.
57560
57561 2001-11-27  Jim Meyering  <meyering@lucent.com>
57562
57563         * lib/tempname.c: Merge with version from libc.
57564         * lib/regex.c: Likewise.
57565
57566         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
57567         systems for which STDC_HEADERS is 0, it was not included, resulting in
57568         a warning about an integer-to-pointer conversion problem with getenv.
57569         Reported by Volker Borchert.
57570
57571 2001-11-26  Jim Meyering  <meyering@lucent.com>
57572
57573         * lib/gtod.h: Remove file.
57574         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
57575         * lib/gettimeofday.c: Don't include gtod.h.
57576         (GTOD_init): Remove function.
57577         (rpl_gettimeofday): Do its job here instead, rather than aborting.
57578         Suggestion from Volker Borchert.
57579
57580 2001-11-23  Jim Meyering  <meyering@lucent.com>
57581
57582         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
57583         it.
57584         * lib/hash.c (struct hash_table): Define it here instead.
57585
57586 2001-11-22  Jim Meyering  <meyering@lucent.com>
57587
57588         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
57589
57590 2001-11-20  Jim Meyering  <meyering@lucent.com>
57591
57592         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
57593         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
57594
57595 2001-11-19  Jim Meyering  <meyering@lucent.com>
57596
57597         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
57598         directory.  Use "conftestXXXXXX" as the template.
57599         Suggestion from Paul Eggert.
57600
57601         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
57602         immediately, so the test doesn't mistakenly hit the max-open-files
57603         limit.
57604
57605 2001-11-18  Paul Eggert  <eggert@twinsun.com>
57606
57607         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
57608         (TEMPORARIES): New macro.
57609         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
57610         removes an artificial limitation (e.g. HP-UX 10.20, where
57611         TMP_MAX is 17576).
57612
57613 2001-11-18  Jim Meyering  <meyering@lucent.com>
57614
57615         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
57616
57617 2001-11-18  Jim Meyering  <meyering@lucent.com>
57618
57619         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
57620         on SunOS 4.
57621
57622         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
57623         files will be created before anything else.
57624
57625 2001-11-17  Paul Eggert  <eggert@twinsun.com>
57626
57627         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
57628         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
57629
57630 2001-11-17  Jim Meyering  <meyering@lucent.com>
57631
57632         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
57633         Prompted by a report from Bob Proulx.
57634
57635         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
57636         Instead, require UTILS_FUNC_MKSTEMP.
57637
57638 2001-11-17  Jim Meyering  <meyering@lucent.com>
57639
57640         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
57641         Now, that's done as part of AC_FUNC_STRTOD.
57642
57643 2001-11-17  Jim Meyering  <meyering@lucent.com>
57644
57645         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
57646         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
57647         rather than group writable.  Patch by Juan F. Codagnone.
57648
57649         * lib/readtokens.c: Remove explicit declarations of xmalloc and
57650         xrealloc, Instead, include "xalloc.h".
57651
57652         * lib/mountlist.c: Include unlocked-io.h after all system headers.
57653         Remove explicit declarations of xmalloc, xrealloc,
57654         and xstrdup.  Instead, include "xalloc.h".
57655
57656         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
57657         unlocked-io.h.
57658         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
57659         Likewise.
57660         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
57661
57662         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
57663         Reported by Padraig Brady.
57664
57665         * lib/mkstemp.c: #undef mkstemp.
57666         Include config.h.
57667         (rpl_mkstemp): Rename from mkstemp.
57668         Protoize.
57669
57670 2001-11-16  Jim Meyering  <meyering@lucent.com>
57671
57672         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
57673         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
57674         determine the amount of total physical memory, use pstat_getstatic.
57675         HPUX-11 doesn't define _SC_PHYS_PAGES.
57676         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
57677         If sysconf couldn't be used to determine the amount of available
57678         physical memory, use both pstat_getstatic and pstat_getdynamic.
57679         Based on a patch from Bob Proulx.
57680
57681 2001-11-10  Jim Meyering  <meyering@lucent.com>
57682
57683         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
57684         (jm_PREREQ): Use it.
57685
57686 2001-11-09  Jim Meyering  <meyering@lucent.com>
57687
57688         * m4/jm-macros.m4: Require autoconf-2.52f.
57689         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
57690         Use these AC_-prefixed names, not the AM_-prefixed ones.
57691
57692         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
57693
57694 2001-11-05  Jim Meyering  <meyering@lucent.com>
57695
57696         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
57697
57698 2001-11-04  Jim Meyering  <meyering@lucent.com>
57699
57700         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
57701         $DEFS.
57702
57703 2001-11-03  Jim Meyering  <meyering@lucent.com>
57704
57705         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
57706         of AC_DEFUN.
57707
57708         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
57709         know the name of the variable in the macro definition.
57710
57711 2001-11-03  Jim Meyering  <meyering@lucent.com>
57712
57713         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
57714         in argmatch_to_argument call.
57715
57716         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
57717         argument.
57718
57719         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
57720         e.g., a fault due to an attempt to free a NULL pointer.
57721
57722 2001-11-01  Jim Meyering  <meyering@lucent.com>
57723
57724         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
57725         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
57726
57727 2001-11-01  Jim Meyering  <meyering@lucent.com>
57728
57729         * lib/dirfd.c, lib/dirfd.h: New files.
57730         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
57731
57732         * lib/hash.c (hash_print) [TESTING]: Clean up.
57733
57734 2001-10-22  Paul Eggert  <eggert@twinsun.com>
57735
57736         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
57737         to avoid a warning if -Wall.
57738
57739 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
57740
57741         * README: New file
57742         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
57743         (per RMS's instructions, this is now the canonical source)
57744         * lgpl/, gpl/: New directories.
57745
57746 2001-10-21  Paul Eggert  <eggert@twinsun.com>
57747
57748         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
57749
57750 2001-10-21  Jim Meyering  <meyering@lucent.com>
57751
57752         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
57753         this code would end up calling gettext even in packages built
57754         with --disable-nls.
57755         * lib/getopt.c (_): Likewise.
57756         * lib/regex.c (_): Likewise.
57757
57758 2001-10-20  Paul Eggert  <eggert@twinsun.com>
57759
57760         * m4/error.m4 (jm_PREREQ_ERROR):
57761         Do not invoke AC_CHECK_FUNCS with strerror_r, as
57762         AC_FUNC_STRERROR_R does that.
57763         Check for strerror declaration.
57764
57765         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
57766         are supposed to have them these days.
57767         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
57768         Merge changes from latest Autoconf CVS.
57769         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
57770         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
57771         POSIX decided to standardize on the int flavor of strerror_r.
57772
57773 2001-10-20  Paul Eggert  <eggert@twinsun.com>
57774
57775         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
57776         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
57777         Use strerror_r that is only a macro, even if it is not a function.
57778         (strerror): Check for HAVE_DECL_STRERROR before declaring.
57779         (private_strerror): Use prototypes, not old-style function definition.
57780         (print_errno_message): New function.
57781         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
57782         char*-flavored one.
57783         (error_tail, error, error_at_line): Use it.
57784
57785 2001-10-11  Jim Meyering  <meyering@lucent.com>
57786
57787         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
57788         and quote_n (1, ... to avoid clobbering a buffer.
57789
57790 2001-10-05  Jim Meyering  <meyering@lucent.com>
57791
57792         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
57793         hash-pjw.h.
57794         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
57795         * lib/hash-pjw.h: New file.
57796
57797 2001-09-30  Jim Meyering  <meyering@lucent.com>
57798
57799         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
57800         `struct fsstat' has the `f_fstypename' member.
57801         Use that to define FS_TYPE, which is now used to make
57802         the getfsstat link test tighter.
57803
57804 2001-09-30  Jim Meyering  <meyering@lucent.com>
57805
57806         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
57807         Include <sys/ucred.h>, for Apple Darwin.
57808         Include sys/mount.h and sys/fs_types.h only if available.
57809         (FS_TYPE): Define.
57810         (read_filesystem_list): Use FS_TYPE.
57811
57812 2001-09-29  Paul Eggert  <eggert@twinsun.com>
57813
57814         * lib/exclude.c (excluded_filename): 0 -> false, since it's
57815         a boolean context.
57816
57817 2001-09-29  Jim Meyering  <meyering@lucent.com>
57818
57819         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
57820         [one-argument getmntent function]): Include stdio.h before mntent.h.
57821         SunOS 4.1.x needs it for the declaration of `FILE'.
57822         Patch by Volker Borchert.
57823
57824         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
57825         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
57826         sys/fs_types.h, and make the link-test for getfsstat guard #include
57827         directives with appropriate #if HAVE_*_H tests so that we can
57828         detect getfsstat on Apple Darwin1.3.7 systems.
57829         Reported by Nelson Beebe.
57830         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
57831
57832 2001-09-28  Paul Eggert  <eggert@twinsun.com>
57833
57834         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
57835         #defines strtoimax.  Also treat the other strto* functions
57836         like strtoimax.
57837
57838         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
57839         Check for strtoul and strtoumax,
57840         as those declarations are made even in the signed case.
57841         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
57842         Likewise, for strtol and strtoimax.
57843
57844 2001-09-28  Paul Eggert  <eggert@twinsun.com>
57845
57846         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
57847         #defines strtoimax.  Also treat the other strto* functions
57848         like strtoimax.
57849
57850         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
57851         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
57852         (strtoimax, strtoumax): Do not declare if already defined as a macro.
57853
57854 2001-09-26  Jim Meyering  <meyering@lucent.com>
57855
57856         Most macros in unlocked-io.h had the wrong number of arguments.
57857         * lib/gen-uio: New script.
57858         (USE_UNLOCKED_IO): Define to 1 if not already defined.
57859         * lib/unlocked-io.hin: Remove file.
57860         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
57861         rather than trying to embed it here.
57862         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
57863         Reported by Padraig Brady.
57864
57865 2001-09-25  Volker Borchert  <bt@teknon.de>
57866
57867         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
57868         `result'.
57869
57870 2001-09-24  Jim Meyering  <meyering@lucent.com>
57871
57872         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
57873
57874 2001-09-23  Jim Meyering  <meyering@lucent.com>
57875
57876         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
57877         instead of the mere test for existence of mntent.h.  The latter
57878         would get a false-positive on AIX 3.4 systems.
57879         In the outer getmntent if-block, don't die if neither of the getmntent
57880         tests succeeds.  Instead, just fall through and continue with the
57881         remaining tests.
57882
57883 2001-09-23  Jim Meyering  <meyering@lucent.com>
57884
57885         * lib/mountlist.c: Remove useless parentheses in #if directives.
57886         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
57887         the deprecated MOUNTED symbol is no longer defined in mntent.h.
57888
57889 2001-09-22  Jim Meyering  <meyering@lucent.com>
57890
57891         * m4/gettext.m4: New file.  From gettext.
57892         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
57893         * m4/progtest.m4: Likewise
57894         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
57895         * m4/glibc21.m4: Likewise.
57896
57897         * m4/libintl.m4: Remove.  No longer used.
57898
57899 2001-09-22  Jim Meyering  <meyering@lucent.com>
57900
57901         * lib/localcharset.c: Update from latest gettext.
57902         * lib/config.charset: Likewise.
57903
57904 2001-09-20  Jim Meyering  <meyering@lucent.com>
57905
57906         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
57907         strtoimax.
57908         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
57909         strtoumax.
57910
57911 2001-09-20  Jim Meyering  <meyering@lucent.com>
57912
57913         * lib/xstrtol.c (strtoimax): Guard declaration with
57914         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
57915         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
57916         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
57917         (strtoumax): Likewise, for completeness (it wasn't necessary).
57918
57919 2001-09-17  Paul Eggert  <eggert@twinsun.com>
57920
57921         * lib/strtoimax.c (HAVE_LONG_LONG):
57922         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
57923         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
57924         to work around bug in IBM C compiler.
57925
57926 2001-09-17  Jim Meyering  <meyering@lucent.com>
57927
57928         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
57929         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
57930         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
57931         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
57932         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
57933         whenever the right hand side need not be expanded by the shell.
57934
57935 2001-09-16  Paul Eggert  <eggert@twinsun.com>
57936
57937         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
57938         library.  It's not correct, as some older glibcs are buggy.
57939         fnmatch wasn't fixed until glibc 2.2.
57940
57941         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
57942         special shell magic here.
57943
57944 2001-09-16  Jim Meyering  <meyering@lucent.com>
57945
57946         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
57947         * m4/jm-macros.m4: Require it.
57948
57949 2001-09-16  Jim Meyering  <meyering@lucent.com>
57950
57951         * lib/mkdir.c: New file.
57952
57953 2001-09-15  Jim Meyering  <meyering@lucent.com>
57954
57955         * m4/jm-macros.m4: Check for help2man.
57956
57957 2001-09-11  Jim Meyering  <meyering@lucent.com>
57958
57959         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
57960         The body, by Paul Eggert, was moved here from configure.in.
57961         * m4/jm-macros.m4: Require UTILS_HOST_OS.
57962
57963 2001-09-04  Paul Eggert  <eggert@twinsun.com>
57964
57965         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
57966         (jm_PREREQ): Use it.
57967
57968 2001-09-04  Paul Eggert  <eggert@twinsun.com>
57969
57970         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
57971         Use ssize_t, not int, to store result of readlink.
57972         Check for ssize_t overflow as well as size_t overflow,
57973         as POSIX says the result of readlink is implementation-defined
57974         when ssize_t overflows.
57975         Remove unnecessary cast to char*.
57976         Use free+malloc instead of realloc, as the storage doesn't need
57977         to be preserved and it's clearer and can be more efficient that way.
57978         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
57979         * lib/xreadlink.h (xreadlink): Update prototype.
57980
57981 2001-09-04  Paul Eggert  <eggert@twinsun.com>
57982
57983         * lib/xgetcwd.c: Revert some of the previous change; intead,
57984         fix the HAVE_GETCWD_NULL code to behave more like the
57985         !HAVE_GETCWD_NULL code used to.
57986
57987         Include "xalloc.h".
57988         (xgetcwd): Do not return NULL when memory is exhausted; instead,
57989         invoke xalloc_die.
57990
57991 2001-09-03  Paul Eggert  <eggert@twinsun.com>
57992
57993         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
57994         sys/param.h, as pathmax.h includes them.
57995
57996 2001-09-03  Paul Eggert  <eggert@twinsun.com>
57997
57998         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
57999         (jm_PREREQ_XGETCWD): New macro.
58000
58001         * m4/getcwd.m4: New file.
58002
58003 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58004
58005         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
58006         like the HAVE_GETCWD_NULL code.
58007         Include pathmax.h if not HAVE_GETCWD.
58008         Do not include xalloc.h.
58009         (INITIAL_BUFFER_SIZE): New symbol.
58010         Do not use xmalloc / xrealloc, since the caller is responsible for
58011         handling errors.  Preserve errno around `free' during failure.
58012         Do not overrun buffer when using getwd.
58013
58014 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58015
58016         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
58017         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
58018         getcwd (NULL, 0).
58019
58020 2001-09-03  Paul Eggert  <eggert@twinsun.com>
58021
58022         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
58023         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
58024         spotted by Jim Meyering.
58025
58026 2001-09-03  Jim Meyering  <meyering@lucent.com>
58027
58028         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
58029         failure.
58030
58031 2001-09-02  Jim Meyering  <meyering@lucent.com>
58032
58033         * lib/error.c: Update from GNU libc.
58034
58035 2001-09-01  Jim Meyering  <meyering@lucent.com>
58036
58037         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
58038         Used by df.
58039
58040 2001-09-01  Jim Meyering  <meyering@lucent.com>
58041
58042         * lib/xreadlink.c: New file.
58043         * lib/xreadlink.h: New file.
58044         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
58045         xreadlink.h.
58046
58047         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
58048         doesn't conflict with sparc Solaris 7's definition in
58049         /usr/include/sys/int_types.h.
58050
58051         * lib/exclude.c: Use `""', not `<>' to #include non-system header
58052         files.
58053         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
58054         and strncasecmp as r-values.  Unixware didn't have declarations.
58055
58056 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58057
58058         * lib/xstrtol.h: Add copyright notice.
58059         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
58060         LONGINT_INVALID_SUFFIX_CHAR.
58061
58062 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58063
58064         * lib/xstrtol.c (strtoimax): New decl.
58065
58066 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58067
58068         * lib/xgetcwd.c: Don't include pathmax.h.
58069         Include stdlib.h and unistd.h if available.
58070         Include xalloc.h.
58071         (xmalloc, xstrdup, free): Remove decls.
58072         (xgetcwd): Don't assume sizes fit in unsigned.
58073         Check for overflow when computing sizes.
58074         Simplify reallocation code.
58075
58076 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58077
58078         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
58079         a directory's st_size can have an arbitrary value, so the old
58080         usage could waste an arbitrary amount of memory.  All uses
58081         changed.
58082         * lib/savedir.h: Update prototype.
58083
58084 2001-08-31  Paul Eggert  <eggert@twinsun.com>
58085
58086         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
58087
58088         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
58089         old strtoimax.c.
58090
58091         Also, make the following further changes to make this file's
58092         configuration more similar to that of strtol.c:
58093         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
58094         (strtoumax, uintmax_t, strtoull, strtol): Remove.
58095         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
58096         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
58097         changed to signed values.
58098
58099         And make the following changes as well:
58100         Fix copyright notice, as 1999 was missing.
58101         (verify): New macro.
58102         (strtoimax): Check sizes at compile-time, not run-time.
58103         Prefer strtol to strtoll if both work.
58104         (main): Remove; it was not that useful and was a pain to maintain.
58105
58106         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
58107
58108 2001-08-31  Jim Meyering  <meyering@lucent.com>
58109
58110         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
58111         Use an initial, malloc'd, buffer of length 128 rather than
58112         a statically allocated one of length 1024.
58113
58114 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58115
58116         Simplify code, partly by assuming autoconf 2.52 semantics.
58117
58118         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
58119
58120         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
58121         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
58122         All uses removed.
58123         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
58124         Move AC_REQUIRE to next-to-top level, to avoid confusion.
58125         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
58126         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
58127         jm_AC_HEADER_INTTYPES_H.
58128         * m4/jm-macros.m4 (jm_MACROS): Likewise.
58129
58130         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
58131
58132         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
58133         Quote first arg of AC_DEFUN.
58134         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
58135         since they are needed to parse the include file even if we need
58136         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
58137         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
58138         but with opposite signedness.
58139
58140 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58141
58142         Merge 'exclude' changes from tar 1.13.22.
58143         This fixes one or two unlikely storage allocation overflow bugs,
58144         but doesn't change user-visible behavior otherwise.
58145
58146 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58147
58148         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
58149         (jm_PREREQ_EXCLUDE): New macro.
58150
58151 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58152
58153         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
58154         tm to be declared.
58155
58156 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58157
58158         * lib/hash.c: Remove '2001' from copyright notice.
58159
58160 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58161
58162         * lib/full-write.h: New file.
58163         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
58164         * lib/full-write.c: Correct credits, as cccp.c no longer
58165         exists and anyway it was so heavily changed from the old cccp
58166         code as to be unrecognizable.  Include full-write.h.
58167         (full_write) Return size_t, with short writes meaning failure.
58168         All callers changed.  This fixes a bug with large buffers
58169         on 64-bit hosts.
58170         * lib/utime.c: Include full-write.h.
58171
58172 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58173
58174         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
58175         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
58176         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
58177         Include if available.
58178         (<xalloc.h>): Include
58179         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
58180         (verify): New macro.  Use it to verify that EXCLUDE macros do not
58181         collide with FNM macros.
58182         (struct patopts): New struct.
58183         (struct exclude): Use it, as exclude patterns now come with options.
58184         (new_exclude): Support above changes.
58185         (new_exclude, add_exclude_file):
58186         Initial size must now be a power of two to simplify overflow checking.
58187         (free_exclude, fnmatch_no_wildcards): New function.
58188         (excluded_filename): No longer requires options arg, as the options
58189         are determined by add_exclude.  Now returns bool, not int.
58190         (excluded_filename, add_exclude):
58191         Add support for the fancy new exclusion options.
58192         (add_exclude, add_exclude_file): Now takes int options arg.
58193         Check for arithmetic overflow when computing sizes.
58194         (add_exclude_file): xrealloc might modify errno, so don't
58195         realloc until after errno might be used.
58196
58197         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
58198         New macros.
58199         (free_exclude): New decl.
58200         (add_exclude, add_exclude_file): Now takes int options arg.
58201         (excluded_filename): No longer requires options arg, as the options
58202         are determined by add_exclude.  Now returns bool, not int.
58203
58204 2001-08-30  Paul Eggert  <eggert@twinsun.com>
58205
58206         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
58207
58208 2001-08-27  Jim Meyering  <meyering@lucent.com>
58209
58210         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
58211
58212         * lib/version-etc.c (N_): Remove definition.
58213         Revert most of last change.
58214         Instead, simply don't mark the `Copyright...' string for translation.
58215         Based on advice from Paul Eggert.
58216
58217         * lib/strtoxmax.c: Tweak comment.
58218
58219 2001-08-26  Jim Meyering  <meyering@lucent.com>
58220
58221         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
58222
58223         * m4/xstrtoimax.m4: New file.
58224         * m4/xstrtoumax.m4: Add comments explaining why we
58225         AC_REPLACE_FUNCS(strtol).
58226
58227 2001-08-26  Jim Meyering  <meyering@lucent.com>
58228
58229         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
58230         of copyright with `%s' so translators don't get an untranslated
58231         message in 2002.
58232         (COPYRIGHT_YEAR): Define.
58233         (version_etc): Use fprintf rather than fputs.
58234         Suggestion from Ulrich Drepper.
58235
58236         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
58237
58238         * lib/strtoll.c: New file, from GNU libc.
58239         * lib/xstrtoimax.c: New file.
58240
58241         * lib/xstrtol.h: Add xstrtoimax.
58242         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
58243         * lib/strtoimax.c: New file.  Likewise, but first define
58244         STRTOUXMAX_SIGNED.
58245
58246         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
58247         ...
58248         * lib/strtoxmax.c: ... then renamed to this.
58249
58250 2001-08-18  Paul Eggert  <eggert@twinsun.com>
58251
58252         * m4/inttypes.m4: Add AC_PREREQ(2.13).
58253         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
58254         (jm_AC_TYPE_INTMAX_T): New macro.
58255         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
58256
58257         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
58258
58259         * m4/longlong.m4: Renamed from ulonglong.m4.
58260         * m4/inttypes.m4: Renamed from inttypes_h.m4.
58261         * m4/uintmax_t.m4: Removed.
58262
58263 2001-08-13  Paul Eggert  <eggert@twinsun.com>
58264
58265         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
58266         Port to Solaris 8, where 'sed' requires a space after the 'r'
58267         command, and where sh dislikes "$/".  Clean up the spacing a bit.
58268         Redirect output to $tmp just once.
58269
58270 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
58271
58272         * lib/addext.c (<errno.h>): Include.
58273         (errno): Declare if not defined.
58274         (addext): Work correctly when pathconf returns -1 and leaves
58275         errno alone because there is no limit.  Also, work even if
58276         pathconf returns a value greater than SIZE_MAX.
58277
58278 2001-08-12  Jim Meyering  <meyering@lucent.com>
58279
58280         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
58281         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
58282         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
58283         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
58284         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
58285         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
58286         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
58287         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
58288         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
58289         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
58290         utime.m4, utimes.m4, xstrtoumax.m4:
58291         Quote the first argument in each use of AC_DEFUN.
58292
58293 2001-08-12  Jim Meyering  <meyering@lucent.com>
58294
58295         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
58296         Simply `return getcwd (NULL, 0);'.
58297         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
58298         Use 1300 as initial value for length, not PATH_MAX.
58299
58300         * lib/pathmax.h: Clean up cpp syntax.
58301
58302 2001-08-12  Jim Meyering  <meyering@lucent.com>
58303
58304         * lib/gettimeofday.c: New file.
58305         * lib/gtod.h: New file.
58306         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
58307
58308 2001-08-05  Jim Meyering  <meyering@lucent.com>
58309
58310         * m4/jm-macros.m4: Require autoconf-2.52.
58311
58312 2001-08-04  Jim Meyering  <meyering@lucent.com>
58313
58314         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
58315         stmt, to get in sync with glibc.
58316
58317 2001-08-03  Paul Eggert  <eggert@twinsun.com>
58318
58319         The following changes are from gettext 0.10.39 as maintained by
58320         Bruno Haible.
58321
58322         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
58323         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
58324         with inverted sense.  All uses changed.
58325
58326         * lib/mbswidth.c: Don't include <limits.h>.
58327         Include <stdlib.h> and <string.h> unconditionally.
58328         (iswcntrl, mbsinit, ISCNTRL): New macros.
58329         (mbsnwidth): Use K&R style function declarations.
58330         Don't bother checking for MB_LEN_MAX == 1, since the compiler
58331         can optimize it when MB_CUR_MAX == 1.
58332         The width of control characters is zero, not 1.
58333
58334 2001-08-03  Paul Eggert  <eggert@twinsun.com>
58335
58336         The following changes are from gettext 0.10.39 as maintained by
58337         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
58338
58339         * m4/codeset.m4: Upgrade to serial AM1.
58340         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
58341         all uses changed.  Quote first arg of AC_DEFUN.
58342         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
58343
58344         * m4/iconv.m4: Upgrade to serial AM2.
58345         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
58346         Add --with-libconv-prefix.
58347         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
58348         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
58349         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
58350         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
58351         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
58352
58353         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
58354         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
58355         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
58356         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
58357         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
58358         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
58359         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
58360         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
58361         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
58362
58363         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
58364         string.h any more.
58365
58366         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
58367         not the default value.
58368
58369         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
58370         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
58371         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
58372         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
58373         Also check for iswcntrl, used for wcwidth fallback.
58374         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
58375         to Autoconf 2.13.
58376
58377 2001-08-03  Jim Meyering  <meyering@lucent.com>
58378
58379         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
58380         as it was in the original.  Reported by Paul Eggert.
58381
58382 2001-07-16  Jim Meyering  <meyering@lucent.com>
58383
58384         * m4/gettimeofday.m4: New file.
58385         Prompted by a report from Bernhard Baehr.
58386
58387 2001-07-15  Jim Meyering  <meyering@lucent.com>
58388
58389         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
58390         stuff. Now it's in ../Makefile.cfg.
58391
58392 2001-07-15  Jim Meyering  <meyering@lucent.com>
58393
58394         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
58395         (BUILT_SOURCES): Add unlocked-io.h.
58396         (io_functions): Define.
58397         (unlocked-io.h): New rule.
58398         (DISTCLEANFILES): Add unlocked-io.h.
58399         (all-local): Depend on unlocked-io.h, to ensure it is created.
58400
58401         * lib/unlocked-io.hin: New file
58402
58403         * lib/regex.c: Update from glibc.
58404
58405 2001-07-05  Jim Meyering  <meyering@lucent.com>
58406
58407         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
58408         recommendation.
58409         (libfetish_a_SOURCES): Put all .h files here instead.
58410         Remove a thus-exposed (better checks in automake) duplicate and
58411         two unnecessary .h files.
58412
58413 2001-07-04  Jim Meyering  <meyering@lucent.com>
58414
58415         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
58416         that generates jm-glibc-io.m4 so that it doesn't trigger any make
58417         distcheck failure.
58418
58419 2001-07-02  Jim Meyering  <meyering@lucent.com>
58420
58421         The following changes were prompted by suggestions from Bruno Haible.
58422
58423         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
58424         is now generated.
58425         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
58426         definition of EXTRA_DIST.
58427         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
58428         ensure that the generated file is created/updated whenever the list
58429         of $(unlocked_functions) is changed.
58430         (jm-glibc-io.m4): New rule.
58431         (unlocked-io.h): New rule -- currently unused.
58432
58433 2001-06-24  Jim Meyering  <meyering@lucent.com>
58434
58435         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
58436         unmatched right bracket, rather than kludging it with an extra,
58437         falsely-matching quote in a comment.  Patch by Akim Demaille.
58438
58439 2001-06-11  Jim Meyering  <meyering@lucent.com>
58440
58441         * lib/regex.c: Update from GNU libc.
58442
58443 2001-05-27  Jim Meyering  <meyering@lucent.com>
58444
58445         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
58446         Check for ut_type in struct utmp.
58447
58448 2001-05-27  Jim Meyering  <meyering@lucent.com>
58449
58450         * lib/readutmp.h (UT_TYPE): Define.
58451
58452 2001-05-24  Jim Meyering  <meyering@lucent.com>
58453
58454         * lib/argmatch.c: Include "quote.h".
58455         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
58456         quote function.  Reported by Göran Uddeborg.
58457
58458 2001-05-22  Jim Meyering  <meyering@lucent.com>
58459
58460         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
58461         now that we use the package-supplied version unconditionally.
58462         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
58463
58464 2001-05-21  Jim Meyering  <meyering@lucent.com>
58465
58466         * m4/regex.m4: Change a couple backticks to single quotes to avoid
58467         shell syntax errors.
58468
58469 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
58470
58471         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
58472
58473 2001-05-20  Paul Eggert  <eggert@twinsun.com>
58474
58475         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
58476         Don't bother to check library strftime, since
58477         we'll be using our own my_strftime function anyway.
58478         Define my_strftime instead of strftime.
58479
58480 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
58481
58482         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
58483         which is not yet declared.
58484
58485 2001-05-15  Jim Meyering  <meyering@lucent.com>
58486
58487         * m4/regex.m4: Use proper quoting so brackets appear in the test
58488         program.
58489         Reported by, and with help from, Bruno Haible.
58490
58491 2001-05-13  Jim Meyering  <meyering@lucent.com>
58492
58493         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
58494         undefined.
58495
58496 2001-05-11  Paul Eggert  <eggert@twinsun.com>
58497
58498         dirname code cleanup.  base_name now behaves more compatibly
58499         with POSIX basename when given file names that have trailing
58500         slashes, and similarly for dir_name.  Add new primitives
58501         base_len and dir_len.  Put the directory-name-related decls
58502         into dirname.h.
58503
58504         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
58505         * lib/backupfile.c (base_name): Likewise.
58506         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
58507         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
58508         * lib/makepath.c (strip_trailing_slashes): Likewise.
58509         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
58510         ISSLASH): Likewise.
58511         * lib/rename.c (strip_trailing_slashes): Likewise.
58512         * lib/same.c (base_name): Likewise.
58513         * lib/stripslash.c (ISSLASH): Likewise.
58514
58515         * lib/addext.c: Include <dirname.h> after size_t is defined.
58516         * lib/backupfile.c: Likewise.
58517
58518         * lib/addext.c (addext): Use base_len to trim redundant
58519         trailing slashes instead of doing it ourselves.
58520         But do not trim the last slash if it is not redundant.
58521
58522         * lib/backupfile.c (find_backup_file_name,
58523         max_backup_version): Use base_len instead of rolling it ourselves.
58524         Handle the case of "" and (on DOS) "C:" correctly.
58525
58526         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
58527         needed. Include <string.h>, <dirname.h>.
58528         (base_name): Allow file names ending in slashes, other than names
58529         that are all slashes.  In this case, return the basename followed
58530         by the slashes.  This is more general, and can be used in places
58531         where the original base_name purposely had an assertion failure.
58532         (base_len): New function.
58533
58534         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
58535         Do not include <assert.h>; no longer needed.
58536         Include xalloc.h.
58537         (memrchr): Remove decl.
58538         (dir_name_r): Remove.
58539         (dir_len): Renamed from dirlen.  All callers changed.
58540         Rewrite in terms of base_name, for simplicity and consistency.
58541         (dir_name): Never return NULL.  All callers changed.
58542         Do not include <stdlib.h> in test program; no longer needed.
58543         return 0; is fine for test program.
58544
58545         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
58546         New macros.
58547         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
58548
58549         * lib/path-concat.c (path_concat): Use base_len to compute
58550         base length, not strlen; this means we cannot rely on memcpy
58551         to null-terminate.
58552
58553         * lib/same.c (STREQ): Remove.
58554         (same_name): Handle the case where the basename ends in trailing '/'.
58555
58556         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
58557         a slash was stripped.  Do not strip the last slash after a
58558         file system prefix.
58559
58560 2001-05-11  Paul Eggert  <eggert@twinsun.com>
58561
58562         * lib/Makefile.am (libfetish_a_SOURCES):
58563         Add strftime.c, since we now compile it on all hosts.
58564
58565         * lib/strftime.c (my_strftime):
58566         Define to nstrftime if emacs, but only if my_strftime is not defined.
58567         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
58568         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
58569         Add one more extra argument: a nanoseconds value.
58570         All uses changed.
58571         (ns): New macro.
58572         (my_strftime function): Add %N format.
58573         (emacs_strftimeu): Renamed from emacs_strftime,
58574         with extra ut argument.
58575
58576 2001-05-09  Paul Eggert  <eggert@twinsun.com>
58577
58578         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
58579
58580 2001-04-21  Jim Meyering  <meyering@lucent.com>
58581
58582         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
58583         doesn't interfere.
58584
58585 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
58586
58587         * m4/ftruncate.m4: Check for chsize.
58588         Link with ftruncate.o unconditionally if ftruncate is missing.
58589         This was required when cross-compiling to i586-mingw32msvc.
58590
58591 2001-04-08  Jim Meyering  <meyering@lucent.com>
58592
58593         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
58594         recomputed; that's necessary when the offset spans a DST transition.
58595         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
58596
58597 2001-04-02  Jim Meyering  <meyering@lucent.com>
58598
58599         * lib/regex.h, regex.c: Update from GNU libc.
58600
58601 2001-03-24  Jim Meyering  <meyering@lucent.com>
58602
58603         * m4/jm-macros.m4: Require autoconf-2.49d.
58604
58605 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
58606
58607         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
58608
58609 2001-03-19  Paul Eggert  <eggert@twinsun.com>
58610
58611         * lib/version-etc.c (version_etc_copyright): Update to 2001.
58612
58613 2001-03-17  Jim Meyering  <meyering@lucent.com>
58614
58615         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
58616         now that the version in autoconf is equivalent.
58617         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
58618
58619         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
58620         Suggestion from Akim Demaille.
58621
58622         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
58623         (jm_PREREQ_TEMPNAME): New function.
58624
58625 2001-03-16  Paul Eggert  <eggert@twinsun.com>
58626
58627         * lib/tempname.c (uint64_t): Define to uintmax_t if
58628         not defined, and if UINT64_MAX is not defined.
58629         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
58630         Reported by John David Anglin.
58631
58632 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
58633
58634         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
58635         resolve alias if codeset is empty.
58636         * lib/config.charset (BeOS): Use wildcard syntax.
58637
58638 2001-03-13  Jim Meyering  <meyering@lucent.com>
58639
58640         * lib/path-concat.c (path_concat)
58641         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
58642         concatenating e.g., `C:' and `foo'.
58643         From Bruno Haible.
58644
58645 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
58646
58647         * lib/localcharset.c (locale_charset): Don't use
58648         setlocale(LC_CTYPE,NULL). Don't return NULL.
58649         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
58650
58651 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
58652
58653         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
58654         support for DOS/DJGPP.
58655
58656 2001-03-01  Paul Eggert  <eggert@twinsun.com>
58657
58658         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
58659         lacks mkstemp.  Compile our own tempname.c if we compile our own
58660         mkstemp.c, as mkstemp relies on tempname.
58661
58662 2001-03-01  Jim Meyering  <meyering@lucent.com>
58663
58664         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
58665         AH_VERBATIM really does output its argument verbatim.
58666
58667 2001-02-28  Paul Eggert  <eggert@twinsun.com>
58668
58669         * lib/Makefile.am (libfetish_a_SOURCES):
58670         Add dup-safer.c, fopen-safer.c.
58671         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
58672
58673         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
58674         * lib/unistd-safer.h: New files.
58675
58676 2001-02-25  Paul Eggert  <eggert@twinsun.com>
58677
58678         The mkstemp replacement is taken from glibc 2.2.2, with some
58679         portability fixes for use outside glibc, as follows:
58680
58681         * lib/tempname.c (struct_stat64): New macro.
58682         (direxists, __gen_tempname): Use it.
58683         This avoids a portability problem with Solaris 8.
58684
58685         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
58686         (<stddef.h>, <stdint.h>, <string.h>):
58687         Include only if STDC_HEADERS || _LIBC.
58688         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
58689         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
58690         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
58691         (__set_errno): Define this macro if <errno.h> doesn't.
58692         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
58693         Define these macros if <stdio.h> doesn't.
58694         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
58695         Define these macros if <sys/stat.h>
58696         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
58697         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
58698         __xstat64): Define if not _LIBC.
58699         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
58700         (__gen_tempname): Invoke gettimeofday only if
58701         HAVE_GETTIMEOFDAY || _LIBC;
58702         otherwise, fall back on plain "time".
58703         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
58704
58705         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
58706
58707         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
58708
58709 2001-02-18  Paul Eggert  <eggert@twinsun.com>
58710
58711         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
58712
58713 2001-02-17  Paul Eggert  <eggert@twinsun.com>
58714
58715         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
58716         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
58717         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
58718         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
58719
58720 2001-02-17  Paul Eggert  <eggert@twinsun.com>
58721
58722         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
58723         Remove workaround macros for hosts that have mbrtowc but not
58724         mbstate_t, as we now insist on proper declarations for both
58725         before using mbrtowc.
58726
58727 2001-02-17  Jim Meyering  <meyering@lucent.com>
58728
58729         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
58730         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
58731         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
58732         UnixWare 7.1.1.
58733
58734         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
58735         rather than AC_CACHE_VAL.
58736
58737 2001-02-17  Jim Meyering  <meyering@lucent.com>
58738
58739         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
58740         around included file name.
58741
58742         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
58743
58744         * lib/strftime.c: Update from GNU libc (the only changes were to
58745         comments).
58746
58747 2001-02-17  Jim Meyering  <meyering@lucent.com>
58748
58749         * lib/regex.c: Update from libc.
58750
58751 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
58752
58753         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
58754         clash.
58755
58756 2001-02-16  Paul Eggert  <eggert@twinsun.com>
58757
58758         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
58759         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
58760         Reported by Mark Hounschell via Paul Eggert.
58761
58762 2001-02-07  Jim Meyering  <meyering@lucent.com>
58763
58764         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
58765
58766 2001-02-05  Jim Meyering  <meyering@lucent.com>
58767
58768         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
58769         it includes the patch required for `large file' support with at least
58770         HP-UX's 10.20 /bin/cc.
58771
58772 2001-02-03  Jim Meyering  <meyering@lucent.com>
58773
58774         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
58775         AS_IF, now that it works once again (mysteriously).
58776         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
58777
58778 2001-01-30  Jim Meyering  <meyering@lucent.com>
58779
58780         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
58781         * m4/chown.m4: Rename conftestchown to conftest.chown.
58782         * m4/rename.m4: s/conftestdir/conftest.d1/ and
58783         s/conftestdir2/conftest.d2/.
58784         * m4/utimes.m4: s/conftestdata/conftest.data/
58785         Inspired by Pavel Roskin's change in autoconf.
58786
58787 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
58788
58789         * lib/config.charset: Update for FreeBSD 4.2.
58790
58791 2001-01-27  Jim Meyering  <meyering@lucent.com>
58792
58793         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
58794         a use of AS_IF.
58795         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
58796
58797 2001-01-26  Jim Meyering  <meyering@lucent.com>
58798
58799         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
58800         quotearg.c includes it.
58801
58802 2001-01-26  Jim Meyering  <meyering@lucent.com>
58803
58804         * lib/quotearg.c: Include stddef.h.
58805         * lib/quote.c: Include stddef.h.
58806         Reported by Axel Kittenberger.
58807
58808         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
58809         line in double quotes so that it evokes a better diagnostic.
58810         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
58811         Reported by Axel Kittenberger.
58812
58813 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
58814
58815         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
58816         as if it was a `charset'.
58817
58818 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
58819
58820         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
58821         has const.
58822
58823 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
58824
58825         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
58826         to avoid a warning.  Add back 'const' to inptr.
58827
58828 2001-01-20  Jim Meyering  <meyering@lucent.com>
58829
58830         Be sure that headers are checked before used in code compiled
58831         for the type checks.
58832         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
58833         In place of that, invoke jm_CHECK_ALL_TYPES.
58834         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
58835         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
58836         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
58837         The check for ssize_t was mistakenly run before the test for unistd.h.
58838
58839         The configure-time check for stdbool.h was missing.
58840         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
58841         (jm_PREREQ_HASH): New function.
58842
58843 2001-01-17  Jim Meyering  <meyering@lucent.com>
58844
58845         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
58846         for autoconf-2.49c.
58847         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
58848
58849 2001-01-16  Jim Meyering  <meyering@lucent.com>
58850
58851         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
58852         From Bruno Haible.
58853
58854 2001-01-14  Jim Meyering  <meyering@lucent.com>
58855
58856         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
58857         foo and bar.  Create conftestdir/ in the script, not in the C code.
58858         Remove directories in the script, not in the C code.
58859         Remove conftestdir{,2} before trying to create the directory.
58860         Make the entire configure script fail if the mkdir fails.
58861
58862 2001-01-14  Jim Meyering  <meyering@lucent.com>
58863
58864         * lib/rename.c: New file.  From Volker Borchert.
58865         Include stdlib.h, string.h or strings.h, and xalloc.h.
58866         Use strip_trailing_slashes rather than open-coding it.
58867
58868 2001-01-03  Paul Eggert  <eggert@twinsun.com>
58869
58870         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
58871
58872 2001-01-03  Jim Meyering  <meyering@lucent.com>
58873
58874         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
58875         of local `inptr' to avoid warning with some system declarations of
58876         iconv.
58877
58878 2001-01-02  Volker Borchert  <bt@teknon.de>
58879
58880         * m4/rename.m4: New file.
58881         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
58882
58883 2001-01-01  Jim Meyering  <meyering@lucent.com>
58884
58885         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
58886         even on systems with utmpx.h.  It's necessary for the declaration of
58887         utmp's ut_user member.  Reported by Andreas Jaeger.
58888
58889         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
58890         available. They are required for the declarations of getgrgid and
58891         getpwuid resp.
58892         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
58893         Reported by Andreas Jaeger.
58894
58895 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
58896
58897         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
58898         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
58899         so `make install' also works in VPATH builds.
58900
58901 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
58902
58903         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
58904         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
58905         can be used in subdirectories.
58906
58907 2000-12-29  Paul Eggert  <eggert@twinsun.com>
58908
58909         * lib/modechange.c: Do not assume that mode_t uses the
58910         traditional octal encoding.  E.g. "chmod 1 FOO" should set
58911         the other-execute bit of FOO even if S_IXOTH != 1.
58912
58913         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
58914         WOTH, XOTH, ALLM): New macros.
58915         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
58916          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
58917         Use them.
58918         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
58919         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
58920         (mode_compile):
58921         No need to use uintmax_t; unsigned long is long enough.
58922         Don't bother to get suffix since we don't use it.
58923
58924 2000-12-26  Jim Meyering  <meyering@lucent.com>
58925
58926         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
58927         better with autoheader.
58928
58929 2000-12-24  Jim Meyering  <meyering@lucent.com>
58930
58931         * lib/hash.c (is_prime): Return explicit boolean values.
58932         (hash_get_first): Return NULL to appease Irix5.6's 89.
58933         Reported by Nelson Beebe.
58934
58935 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
58936
58937         * lib/localcharset.c (locale_charset): Add support for Win32.
58938
58939 2000-12-18  Paul Eggert  <eggert@twinsun.com>
58940
58941         * lib/physmem.h, lib/physmem.c: New files.
58942
58943         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
58944         (noinst_HEADERS): Add physmem.h.
58945
58946         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
58947         't' for compatibility with Solaris 8 sort.
58948
58949 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
58950
58951         * lib/config.charset: Add support for BeOS.
58952
58953 2000-12-17  Jim Meyering  <meyering@lucent.com>
58954
58955         * m4/dos.m4 (jm_AC_DOS): New file and macro.
58956         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
58957
58958 2000-12-16  Jim Meyering  <meyering@lucent.com>
58959
58960         This bug had a serious impact on chown: `chown N:M FILE' (for integer
58961         N and M) would have treated it like `chown N:N FILE'.
58962
58963         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
58964
58965 2000-12-16  Jim Meyering  <meyering@lucent.com>
58966
58967         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
58968         SHELLS_FILE to a file name that's useful on djgpp systems.
58969         Include stdlib.h.
58970         (ADDITIONAL_DEFAULT_SHELLS): Define.
58971         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
58972         Based mostly on a patch from Prashant TR.
58973
58974 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
58975
58976         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
58977         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
58978         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
58979
58980 2000-12-08  Andreas Schwab  <schwab@suse.de>
58981
58982         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
58983         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
58984
58985 2000-12-07  Jim Meyering  <meyering@lucent.com>
58986
58987         * lib/stripslash.c (ISSLASH): Define.
58988         (strip_trailing_slashes): Use ISSLASH rather than comparing against
58989         `/'.
58990         From Prashant TR.
58991
58992         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
58993         (dir_name_r): Declare this function as static.
58994         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
58995         manifest itself on a name containing a mix of slashes and
58996         backslashes.
58997         Make this function work with names starting with a DOS-style
58998         drive letter and colon prefix.
58999         (dir_name): Append `.' if necessary.
59000         Based mostly on patches from Prashant TR and Eli Zaretskii.
59001
59002         * lib/dirname.h (dir_name_r): Remove prototype.
59003
59004 2000-12-06  Paul Eggert  <eggert@twinsun.com>
59005
59006         * m4/off_t-format.m4: Remove this file.
59007         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
59008
59009 2000-12-06  Jim Meyering  <meyering@lucent.com>
59010
59011         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
59012         replacement strtoull, we may well need the replacement strtoul, too.
59013         Check for declarations of strtoul and strtoull.
59014         Check for strtol.  Mainly as a cue to cause automake to include
59015         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
59016         Check for limits.h -- strtol.c needs it.
59017
59018 2000-12-05  Jim Meyering  <meyering@lucent.com>
59019
59020         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
59021
59022 2000-12-04  Jim Meyering  <meyering@lucent.com>
59023
59024         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
59025         Also include memory.h, stdlib.h, unistd.h if appropriate.
59026         Reported by Andreas Jaeger (conflicting declaration of malloc).
59027
59028 2000-12-02  Jim Meyering  <meyering@lucent.com>
59029
59030         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
59031         * m4/jm-macros.m4 (jm_MACROS): require it.
59032
59033 2000-12-02  Jim Meyering  <meyering@lucent.com>
59034
59035         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
59036
59037 2000-12-01  Paul Eggert  <eggert@twinsun.com>
59038
59039         * lib/memrchr.c: Include <config.h> before any system include file.
59040
59041 2000-11-30  Jim Meyering  <meyering@lucent.com>
59042
59043         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
59044
59045 2000-11-30  Jim Meyering  <meyering@lucent.com>
59046
59047         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
59048
59049 2000-11-29  Paul Eggert  <eggert@twinsun.com>
59050
59051         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
59052
59053 2000-11-26  Jim Meyering  <meyering@lucent.com>
59054
59055         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
59056
59057 2000-11-22  Paul Eggert  <eggert@twinsun.com>
59058
59059         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
59060         size of (size_t) -1; it's not portable.
59061
59062 2000-11-17  Jim Meyering  <meyering@lucent.com>
59063
59064         * lib/strstr.c: Update from GNU libc.
59065
59066 2000-11-17  Akim Demaille  <akim@epita.fr>
59067
59068         * lib/obstack.h: Formatting changes.
59069         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
59070         prevent type checking.
59071         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
59072         cast the value to (void *): assigning a `foo *' to a `void *'
59073         variable is valid.
59074         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
59075
59076 2000-11-16  Jim Meyering  <meyering@lucent.com>
59077
59078         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
59079
59080 2000-11-11  Jim Meyering  <meyering@lucent.com>
59081
59082         * lib/error.c: Add a couple #includes, merging from GNU libc version.
59083
59084 2000-11-10  Jim Meyering  <meyering@lucent.com>
59085
59086         * lib/obstack.h: Update from GNU libc.
59087         * lib/obstack.c: Likewise.
59088
59089 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
59090
59091         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
59092
59093 2000-11-06  Paul Eggert  <eggert@twinsun.com>
59094
59095         * lib/getusershell.c (setusershell): Use rewind rather than
59096         fseek/fseeko, to avoid configuration hassles with fseeko.
59097         Don't bother opening SHELLS_FILE if shellstream is NULL;
59098         it's not necessary.
59099
59100 2000-11-05  Jim Meyering  <meyering@lucent.com>
59101
59102         * lib/makepath.h (make_dir): Declare.
59103         * lib/makepath.c (make_dir): Remove `static' attribute.
59104         Tweak a comment.
59105
59106 2000-11-04  Jim Meyering  <meyering@lucent.com>
59107
59108         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
59109
59110 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
59111
59112         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
59113         last one in a bucket, advance to the next bucket.
59114
59115 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
59116
59117         * lib/fnmatch.c: Do not comment out all the code if we are using
59118         the GNU C library, because in some cases we are replacing buggy
59119         code in the GNU C library itself.
59120
59121 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
59122
59123         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
59124         (regex_compile): Catch bogus \(\1\).
59125
59126 2000-10-30  Paul Eggert  <eggert@twinsun.com>
59127
59128         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
59129         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
59130         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
59131
59132 2000-10-30  Paul Eggert  <eggert@twinsun.com>
59133
59134         * lib/error.h, getline.h, modechange.h:
59135         Remove "2000" from Copyright line, as the file hasn't been
59136         changed this year other than in the copyright notice.
59137
59138         * lib/xalloc.h: Add "2000" to Copyright line, as this file
59139         was changed this year.
59140
59141 2000-10-29  Jim Meyering  <meyering@lucent.com>
59142
59143         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
59144         renaming.
59145         * m4/ls-mntd-fs.m4: Likewise
59146
59147 2000-10-29  Jim Meyering  <meyering@lucent.com>
59148
59149         * lib/xstat.in: Fix grammar in comment.
59150
59151 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
59152
59153         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
59154         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
59155         doesn't define __restrict_arr.
59156
59157 2000-10-28  Jim Meyering  <meyering@lucent.com>
59158
59159         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
59160         (jm_PREREQ_MEMCHR): New function.
59161
59162 2000-10-28  Jim Meyering  <meyering@lucent.com>
59163
59164         * lib/memchr.c: Update from libc.
59165         Adjust for portability:
59166         [HAVE_STDLIB_H]: Include stdlib.h.
59167         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
59168         Undef __memchr, too.
59169         [!weak_alias]: Define __memchr to memchr.
59170
59171         * lib/regex.c: Update from libc.
59172         * lib/regex.h: Likewise.
59173         * lib/getopt1.c: Likewise.
59174         * lib/memcmp.c: Likewise.
59175
59176         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
59177         Avoid using fseek, when possible -- it's broken by design.
59178         Patch by Ulrich Drepper.
59179
59180 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
59181
59182         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
59183         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
59184         Giving in to popular pressure to shut up the compiler with casts.
59185
59186 2000-10-26  Jim Meyering  <meyering@lucent.com>
59187
59188         * lib/strftime.c: Update from libc.
59189
59190 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
59191
59192         * regex.c: More `unsigned char' -> `re_char' changes.
59193         Also change several `int' into `re_wchar_t'.
59194         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
59195         (PUSH_FAILURE_POINTER): Don't cast any more.
59196         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
59197         We want GCC to complain, since this piece of code makes
59198         re_match non-reentrant, which *should* be fixed.
59199         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
59200         (EXTEND_BUFFER): Use RETALLOC.
59201         (SET_LIST_BIT): Don't cast.
59202         (re_wchar_t): New type.
59203         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
59204         that those two functions will always properly return.
59205         (IMMEDIATE_QUIT_CHECK): Cast to void.
59206         (analyse_first): Use recursion rather than an explicit stack.
59207         (re_compile_fastmap): Can't fail anymore.
59208         (re_search_2): Don't check re_compile_fastmap for failure.
59209         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
59210         Now also sets the new value (passed in a new argument).
59211         (re_match_2_internal): Use it.
59212         Also, use a new var `reg' of type size_t when looping through regs
59213         rather than reuse the inappropriate `mcnt'.
59214
59215 2000-10-25  Jim Meyering  <meyering@lucent.com>
59216
59217         * lib/obstack.c: Update from libc.
59218
59219 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
59220
59221         * regex.c (regex_compile): Change the way of handling a range from
59222         a char less than 256 to a char not less than 256.
59223
59224 2000-10-24  Andrew Innes  <andrewi@gnu.org>
59225
59226         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
59227         NT-Emacs only.
59228         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
59229         so that re_search functions only quit when callers expect them to.
59230
59231 2000-10-23  Jim Meyering  <meyering@lucent.com>
59232
59233         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
59234         wrong.  That set_locale call must not have any side effects.
59235         From Paul Eggert.
59236
59237 2000-10-22  Jim Meyering  <meyering@lucent.com>
59238
59239         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
59240         [CYCLIC]: Remove now-unused definition.
59241
59242         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
59243         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
59244         Suggestion from Ulrich Drepper.
59245
59246 2000-10-21  Jim Meyering  <meyering@lucent.com>
59247
59248         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
59249         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
59250         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
59251
59252 2000-10-21  Jim Meyering  <meyering@lucent.com>
59253
59254         * lib/dirname.c (memrchr): Declare if necessary.
59255         (dir_name): Remove the restriction that there be no
59256         trailing slashes.  Now, this code skips past them, effectively
59257         ignoring them.
59258         [TEST_DIRNAME] (main): New unit tests.
59259
59260         * lib/memrchr.c: New file from GNU libc.
59261         Undef __memrchr, too.
59262         [!weak_alias]: Define __memrchr to memrchr.
59263         Guard weak_alias use with `#ifdef weak_alias'.
59264
59265 2000-10-21  Jim Meyering  <meyering@lucent.com>
59266
59267         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
59268         (dir_name): Use dir_name_r.
59269         * lib/dirname.h (dir_name_r): Declare it.
59270
59271 2000-10-17  Jim Meyering  <meyering@lucent.com>
59272
59273         * lib/quote.h (PARAMS): Define and use.
59274         Reported by Akim Demaille.
59275
59276         * lib/getopt.c: Update from libc.
59277
59278 2000-10-16  Jim Meyering  <meyering@lucent.com>
59279
59280         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
59281         setlocale.
59282         From Jan Fedak.
59283
59284 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
59285
59286         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
59287
59288 2000-09-25  Jim Meyering  <meyering@lucent.com>
59289
59290         * lib/md5.h (rol): Define (from GnuPG).
59291
59292         * lib/sha.c: Give credit (GnuPG) where due.
59293         (M): Use rol rather than open-coding it.
59294         Add a FIXME comment.
59295
59296 2000-09-21  Jim Meyering  <meyering@lucent.com>
59297
59298         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
59299         Reported by Michael Stone.
59300
59301 2000-09-20  Jim Meyering  <meyering@lucent.com>
59302
59303         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
59304         (noinst_HEADERS): Add sha.h.
59305         Based on code from Scott G. Miller and from GnuPG.
59306
59307 2000-09-18  Jim Meyering  <meyering@lucent.com>
59308
59309         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
59310         LIBS. Otherwise, everyone ends up linking with -lelf for some
59311         configurations.
59312         Reported by Mike Stone.
59313
59314 2000-09-15  Jim Meyering  <meyering@lucent.com>
59315
59316         * lib/regex.c: Update from libc.
59317
59318 2000-09-10  Jim Meyering  <meyering@lucent.com>
59319
59320         * lib/getopt.c (_getopt_internal): Update from glibc.
59321
59322 2000-09-09  Jim Meyering  <meyering@lucent.com>
59323
59324         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
59325         think it should be used as a general replacement for isascii.
59326         * lib/fnmatch.c: Likewise.
59327         * lib/mbswidth.c: Likewise
59328         * lib/regex.c: Likewise.
59329
59330         Don't use atoi.
59331         * lib/userspec.c: Include sys/param.h and limits.h.
59332         Include xstrtol.h.
59333         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59334         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
59335         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
59336         UID, GID.  Check range.
59337
59338 2000-09-06  Jim Meyering  <meyering@lucent.com>
59339
59340         * lib/getopt.c (_getopt_internal): Update from glibc.
59341
59342 2000-08-30  Jim Meyering  <meyering@lucent.com>
59343
59344         * lib/strftime.c: Merge in changes from GNU libc.
59345
59346 2000-08-26  Jim Meyering  <meyering@lucent.com>
59347
59348         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
59349         * m4/fpending.m4: New file.
59350
59351 2000-08-26  Jim Meyering  <meyering@lucent.com>
59352
59353         * lib/closeout.c: Include "__fpending.h".
59354         (close_stdout_status): Return right away if there's nothing to flush.
59355
59356         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
59357         * lib/__fpending.c: New file.
59358         * lib/__fpending.h: New file.
59359
59360 2000-08-20  Jim Meyering  <meyering@lucent.com>
59361
59362         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
59363         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
59364         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
59365
59366 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
59367
59368         Improve fileutils installation on systems where running
59369         programs (like install) can't be unlinked.
59370         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
59371         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
59372
59373 2000-08-07  Paul Eggert  <eggert@twinsun.com>
59374
59375         Standardize on "memory exhausted" instead of "Memory exhausted"
59376         or "virtual memory exhausted".
59377         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
59378         "virtual memory exhausted".
59379         * lib/same.c (same_name): Invoke xalloc_die instead of printing
59380         our own message.
59381         * lib/userspec.c (parse_user_spec): Likewise.
59382         * lib/bumpalloc.h: comment fix
59383         * lib/same.c, userspec.c: Include xalloc.h.
59384
59385         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
59386         not char *const and pointing to a constant array.
59387         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
59388         (xrealloc): Comment fix.
59389
59390         * lib/userspec.c (parse_user_spec):
59391         Don't translate a message until just before returning,
59392         to avoid unnecessary translation.
59393
59394 2000-08-07  Jim Meyering  <meyering@lucent.com>
59395
59396         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
59397         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
59398         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
59399         getgroups.c, gethostname.c, getopt.h, group-member.c,
59400         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
59401         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
59402         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
59403         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
59404         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
59405         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
59406         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
59407         yesno.c: Back out Copyright date changes for each file with no change
59408         this year.  This eases coordination with other programs using the same
59409         source code modules.  From Paul Eggert.
59410
59411 2000-08-06  Paul Eggert  <eggert@twinsun.com>
59412
59413         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
59414         not char, for compatibility with glibc 2.1.3 strftime.c.
59415
59416 2000-08-03  Greg McGary  <greg@mcgary.org>
59417
59418         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
59419         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
59420         (EXTEND_BUFFER): Use them.
59421
59422 2000-08-01  Jim Meyering  <meyering@lucent.com>
59423
59424         * lib/dirname.c (ISSLASH): Define.
59425         (BACKSLASH_IS_PATH_SEPARATOR): Define.
59426         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
59427         both `\' and `/' may be use as path separators.
59428         Based on a patch from Prashant TR.
59429
59430 2000-07-31  Paul Eggert  <eggert@twinsun.com>
59431
59432         * lib/quotearg.c (quotearg_n_options): Don't make the initial
59433         slot vector a constant, since it might get modified.
59434
59435 2000-07-31  Jim Meyering  <meyering@lucent.com>
59436
59437         * lib/xmalloc.c: Use `virtual memory exhausted', not
59438         `Memory exhausted'.
59439         * lib/obstack.c (print_and_abort): Likewise.
59440
59441 2000-07-30  Paul Eggert  <eggert@twinsun.com>
59442
59443         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
59444         buffer, so that the caller can always quote one small
59445         component of a "memory exhausted" message in slot 0.
59446         From a suggestion by Jim Meyering.
59447
59448 2000-07-30  Jim Meyering  <meyering@lucent.com>
59449
59450         * lib/makepath.c (make_path): Quote the other instance, too.
59451
59452         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
59453         (STATIC_BUF_SIZE): Define.
59454         (quotearg_n_options): Use only statically allocated storage when
59455         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
59456         than STATIC_BUF_SIZE.
59457
59458 2000-07-29  Jim Meyering  <meyering@lucent.com>
59459
59460         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
59461         * lib/dirname.c (dir_name): Likewise.
59462
59463         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
59464         `/'.
59465
59466         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
59467         (dir_name): Assert that there are no trailing slashes.
59468
59469 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
59470
59471         * lib/mbswidth.h (mbswidth): Add a flags argument.
59472         (mbswidth): New declaration.
59473         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
59474         * lib/mbswidth.c (mbswidth): Add a flags argument.
59475         (mbsnwidth): New function.
59476
59477 2000-07-24  Jim Meyering  <meyering@lucent.com>
59478
59479         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
59480
59481 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59482
59483         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
59484
59485 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59486
59487         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
59488         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
59489         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
59490         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
59491         invoke multibyte primitives.
59492
59493 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59494
59495         * lib/quotearg.c:
59496         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
59497         so that mbstate_t is always defined.
59498
59499         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
59500         be 1 in at least one GCC installation, and this configuration
59501         error is likely to be common.  Ignoring MB_LEN_MAX hurts
59502         performance on hosts that have mbrtowc but have only unibyte
59503         locales, but I assume these hosts are rare.
59504
59505 2000-07-23  Paul Eggert  <eggert@twinsun.com>
59506
59507         * lib/mbswidth.c (_XOPEN_SOURCE):
59508         Don't define; this causes problems on Solaris 7.
59509         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
59510
59511 2000-07-23  Jim Meyering  <meyering@lucent.com>
59512
59513         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
59514         too: getgrgid, getpwuid, getuid.
59515
59516 2000-07-23  Jim Meyering  <meyering@lucent.com>
59517
59518         * lib/basename.c (base_name): Add an assertion.
59519
59520 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
59521
59522         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
59523         shadow its mbsinit function.
59524
59525 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
59526
59527         * lib/mbswidth.h: New file.
59528         * lib/mbswidth.c: New file.
59529         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
59530         (noinst_HEADERS): Add mbswidth.h.
59531
59532 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
59533
59534         * lib/config.charset: Add support for FreeBSD. Improve support for
59535         HP-UX and IRIX 6.
59536
59537 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
59538
59539         * m4/mbswidth.m4: New file.
59540         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
59541
59542 2000-07-15  Jim Meyering  <meyering@lucent.com>
59543
59544         * lib/makepath.c: Include quote.h.
59545         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
59546         corresponding argument in a `quote (...)' call.
59547         Give better diagnostics.
59548
59549         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
59550         (noinst_HEADERS): Add quote.h.
59551
59552         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
59553         from tar's src/misc.c.
59554         * lib/quote.h: New file.  Prototypes for same.
59555
59556 2000-07-14  Paul Eggert  <eggert@twinsun.com>
59557
59558         From a suggestion by Bruno Haible.
59559         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
59560         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
59561         to decide whether to define the BeOS workaround macro;
59562         this adjusts to the change to AC_MBSTATE_T.
59563
59564 2000-07-14  Jim Meyering  <meyering@lucent.com>
59565
59566         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
59567         jm_AC_TYPE_UINTMAX_T.
59568
59569 2000-07-13  Paul Eggert  <eggert@twinsun.com>
59570
59571         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
59572
59573         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
59574         quotearg_buffer_restyled): Add support for
59575         clocale_quoting_style.  Undo previous change to
59576         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
59577         and "{RIGHT QUOTATION MARK}" msgids.
59578
59579 2000-07-10  Paul Eggert  <eggert@twinsun.com>
59580
59581         From a suggestion by Bruno Haible.
59582         * m4/mbstate_t.m4 (AC_MBSTATE_T):
59583         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
59584         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
59585         and mbstate_t, to a single-part test that simply defines mbstate_t.
59586         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
59587         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
59588
59589 2000-07-10  Jim Meyering  <meyering@lucent.com>
59590
59591         * m4/strerror_r.m4: Mirror the correction made in autoconf.
59592
59593         * m4/gnu-source.m4: Output to confdefs.h directly.
59594         Suggestion from Akim Demaille.
59595
59596 2000-07-09  Paul Eggert  <eggert@twinsun.com>
59597
59598         The old behavior of quoting `like this' doesn't look good with
59599         newer, ISO-style fonts.  See:
59600         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
59601
59602         Instead, quote "like this" by default.  Let the translator
59603         tailor the locale-specific quoting behavior by providing
59604         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
59605
59606         * lib/quotearg.c (N_): New macro.
59607         (gettext_default): New function.
59608         (quotearg_buffer_restyled): Use
59609         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
59610         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
59611
59612 2000-07-09  Jim Meyering  <meyering@lucent.com>
59613
59614         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
59615         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
59616
59617         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
59618         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
59619
59620 2000-07-09  Jim Meyering  <meyering@lucent.com>
59621
59622         * lib/Most files: Update copyright dates to include 2000.
59623
59624 2000-07-08  Jim Meyering  <meyering@lucent.com>
59625
59626         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
59627         if not defined.
59628         (xgethostname): Remove now-unnecessary #ifdef.
59629         Move declaration of `err' into loop where it's used.
59630
59631 2000-07-05  Paul Eggert  <eggert@twinsun.com>
59632         and Bruno Haible  <haible@clisp.cons.org>
59633
59634         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
59635         only if the test for an object-type mbstate_t fails.  This
59636         prevents us from mistakenly reporting that mbstate_t is a
59637         system object type after we "#define mbstate_t int" to work
59638         around its lack.
59639
59640 2000-07-05  Paul Eggert  <eggert@twinsun.com>
59641         and Bruno Haible  <haible@clisp.cons.org>
59642
59643         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
59644
59645 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59646
59647         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
59648         to strerror_r.
59649         Include <ctype.h> for use of isalpha.
59650
59651 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59652
59653         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
59654         by allocating a larger buffer. Test the gethostname return value for
59655         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
59656         returns an error and ENAMETOOLONG isn't defined.
59657
59658 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
59659
59660         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
59661         dimension.
59662
59663 2000-07-04  Jim Meyering  <meyering@lucent.com>
59664
59665         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
59666         of the deprecated AC_CHECKING.
59667
59668 2000-07-04  Jim Meyering  <meyering@lucent.com>
59669
59670         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
59671         Reported by Bruno Haible.
59672
59673 2000-07-04  Jim Meyering  <meyering@lucent.com>
59674
59675         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
59676         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
59677         lacks mbrtowc.
59678
59679 2000-07-03  Paul Eggert  <eggert@twinsun.com>
59680
59681         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
59682         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
59683
59684 2000-07-03  Paul Eggert  <eggert@twinsun.com>
59685         and Bruno Haible  <haible@clisp.cons.org>
59686
59687         * lib/quotearg.c (mbrtowc):
59688         Assign to *pwc, and return 1 only if result is nonzero.
59689         (iswprint): Use ISPRINT when substituting our own mbrtowc.
59690
59691 2000-07-03  Jim Meyering  <meyering@lucent.com>
59692
59693         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
59694
59695 2000-07-03  Jim Meyering  <meyering@lucent.com>
59696
59697         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
59698         This is necessary to get a definition of e.g., UTMP_FILE on
59699         HP-UX 10.20.
59700         From Bob Proulx.
59701
59702 2000-07-02  Jim Meyering  <meyering@lucent.com>
59703
59704         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
59705
59706         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
59707         AC_LIBOBJ(function_name).
59708         * m4/chown.m4: Likewise.
59709         * m4/fnmatch.m4: Likewise.
59710         * m4/ftruncate.m4: Likewise.
59711         * m4/getgroups.m4: Likewise.
59712         * m4/getline.m4: Likewise.
59713         * m4/group-member.m4: Likewise.
59714         * m4/jm-macros.m4: Likewise.
59715         * m4/lstat.m4: Likewise.
59716         * m4/malloc.m4: Likewise.
59717         * m4/memcmp.m4: Likewise.
59718         * m4/nanosleep.m4: Likewise.
59719         * m4/putenv.m4: Likewise.
59720         * m4/realloc.m4: Likewise.
59721         * m4/regex.m4: Likewise.
59722         * m4/stat.m4: Likewise.
59723         * m4/strftime.m4: Likewise.
59724
59725 2000-07-02  Jim Meyering  <meyering@lucent.com>
59726
59727         * lib/quotearg.c (mbstate_t): Don't define here.
59728
59729 2000-07-02  Jim Meyering  <meyering@lucent.com>
59730
59731         * lib/nanosleep.c (SIGCONT): Define if not already defined.
59732
59733 2000-07-01  Jim Meyering  <meyering@lucent.com>
59734
59735         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
59736
59737 2000-07-01  Jim Meyering  <meyering@lucent.com>
59738
59739         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
59740         problem.
59741
59742 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
59743
59744         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
59745         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
59746
59747 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
59748
59749         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
59750         per change in ../m4/ls-mntd-fs.m4.
59751         (read_filesystem_list): Ignore symbolic links.
59752
59753 2000-06-29  Jim Meyering  <meyering@lucent.com>
59754
59755         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
59756         for declaration of strcmp.
59757
59758         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
59759
59760         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
59761         Avoid warning by casting result to `char *' to remove `const'.
59762
59763 2000-06-28  Jim Meyering  <meyering@lucent.com>
59764
59765         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
59766         included by quotearg.c, for which we perform this test.  From
59767         Bruno Haible.
59768
59769 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
59770
59771         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
59772         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
59773         <utmpx.h> exists, put readutmp.o into LIBOBJS.
59774
59775 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
59776
59777         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
59778
59779 2000-06-26  Paul Eggert  <eggert@twinsun.com>
59780
59781         savedir now sets errno on failure and invokes xmalloc to get memory.
59782         Fix a couple of other minor bugs while we're at it.
59783
59784         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
59785         (NAMLEN): Remove macro.
59786         (malloc, realloc): Remove decls.
59787         (stpcpy): Likewise.
59788         ("xalloc.h"): Include.
59789         (NAME_SIZE_DEFAULT): New macro.
59790         (savedir): Use xmalloc / xrealloc to allocate memory.
59791         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
59792         Skip "" directory entries.
59793         Use strlen to calculate directory entry length, since the old method
59794         is rarely used these days and isn't worth supporting.
59795         Don't use a pointer after freeing it.
59796         Check for integer overflow when calculating allocation size.
59797         Use memcpy to copy entries, instead of stpcpy.
59798         Set errno properly when returning NULL.
59799         Check for readdir error.
59800
59801 2000-06-26  Jim Meyering  <meyering@lucent.com>
59802
59803         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
59804
59805 2000-06-25  Jim Meyering  <meyering@lucent.com>
59806
59807         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
59808         Linux header bug when _XOPEN_SOURCE is defined to 500.
59809
59810 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
59811
59812         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
59813         deficiency.
59814
59815 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
59816
59817         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
59818         Include xalloc.h.
59819         Don't include <stdlib.h>.  Don't declare malloc, realloc.
59820
59821 2000-06-24  Jim Meyering  <meyering@lucent.com>
59822
59823         * m4/strerror_r.m4: Revive this file -- to try out an experimental
59824         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
59825         for which strerror does return char*, but which lacks a conveniently
59826         accessible declaration of the function.  If the compile-test says
59827         strerror_r doesn't work, then resort to a `run'-test that works on
59828         BeOS and segfaults on DEC Unix.
59829
59830 2000-06-24  Jim Meyering  <meyering@lucent.com>
59831
59832         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
59833
59834 2000-06-23  Paul Eggert  <eggert@twinsun.com>
59835
59836         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
59837         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
59838
59839 2000-06-23  Paul Eggert  <eggert@twinsun.com>
59840
59841         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
59842         (mbrtowc, mbstate_t): Define substitutes if
59843         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
59844         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
59845         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
59846
59847 2000-06-23  Jim Meyering  <meyering@lucent.com>
59848
59849         * m4/afs.m4: Add missing AC_MSG_RESULT.
59850         Reported by Bruno Haible.
59851
59852         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
59853         Suggestion from Bruno Haible.
59854
59855 2000-06-23  Jim Meyering  <meyering@lucent.com>
59856
59857         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
59858
59859 2000-06-21  Jim Meyering  <meyering@lucent.com>
59860
59861         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
59862
59863 2000-06-21  Jim Meyering  <meyering@lucent.com>
59864
59865         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
59866         (noinst_HEADERS): Add getstr.h.
59867
59868         * lib/getline.c (getstr): Move into a separate file.
59869         * lib/getstr.c (getstr): New file, extracted from getline.c, with
59870         the following changes: new parameter, delim2; both delim[12]
59871         parameters have type `int', not `char'.  The latter would lose
59872         with 8-bit delimiters.
59873         * lib/getstr.h: New file.
59874
59875 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
59876
59877         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
59878         than 1024, return a memory chunk of least possible size, instead
59879         of size PATH_MAX + 2. In the loop, increment the size proportionally.
59880         Use free/xmalloc instead of xrealloc to avoid copying for very long
59881         paths.
59882
59883 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
59884
59885         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
59886         the empty string.
59887
59888 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
59889
59890         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
59891         address, not strdup.  Include <stdlib.h> and don't declare free().
59892
59893 2000-06-19  Jim Meyering  <meyering@lucent.com>
59894
59895         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
59896
59897 2000-06-18  Jim Meyering  <meyering@lucent.com>
59898
59899         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
59900
59901         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
59902         `checking whether...' message to be consistent with that of the
59903         lstat test.
59904
59905 2000-06-18  Jim Meyering  <meyering@lucent.com>
59906
59907         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
59908         Besides, these days every porting target provides a mkdir function.
59909
59910         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
59911         needed. (this snippet comes from src/system.h).
59912
59913 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
59914
59915         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
59916
59917 2000-06-15  Paul Eggert  <eggert@twinsun.com>
59918
59919         * lib/human.c (adjust_value): New function.
59920         (human_readable_inexact): Apply rounding style even when
59921         printing approximate values.
59922
59923 2000-06-14  Paul Eggert  <eggert@twinsun.com>
59924
59925         * lib/human.c (human_readable_inexact): Allow an input block
59926         size that is not a multiple of the output block size, and vice versa.
59927         Reported by Piergiorgio Sartor.
59928
59929 2000-06-14  Paul Eggert  <eggert@twinsun.com>
59930
59931         * lib/getdate.y (get_date): Apply relative times after time
59932         zone indicator, not before.  Reported by Todd A. Jacobs.
59933
59934 2000-06-13  Jim Meyering  <meyering@lucent.com>
59935
59936         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
59937
59938         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
59939
59940 2000-06-12  Paul Eggert  <eggert@twinsun.com>
59941
59942         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
59943
59944 2000-06-12  Jim Meyering  <meyering@lucent.com>
59945
59946         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
59947         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
59948         optional argument.
59949         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
59950         the optional argument, `lib'.
59951
59952 2000-06-08  Jim Meyering  <meyering@lucent.com>
59953
59954         * m4/largefile.m4: Remove file (now that it's part of autoconf).
59955
59956 2000-06-04  Paul Eggert  <eggert@twinsun.com>
59957
59958         Rewrite largefile configuration so that we don't need to run
59959         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
59960         AC_CANONICAL_HOST in configure.in -- jmm]
59961
59962         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
59963         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
59964         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
59965         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
59966         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
59967         All uses changed.
59968         Instead of inspecting the output of getconf, try to compile the
59969         test program without and with the macro definition.
59970         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
59971         for getconf.  Instead, check for the needed flags by compiling
59972         test programs.
59973
59974 2000-06-04  Paul Eggert  <eggert@twinsun.com>
59975
59976         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
59977
59978 2000-06-04  Jim Meyering  <meyering@lucent.com>
59979
59980         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
59981         SunOS 4.1.4 for which gid_t is an unsigned type.
59982
59983 2000-06-03  Jim Meyering  <meyering@lucent.com>
59984
59985         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
59986         now that autoconf requires that.
59987
59988         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
59989         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
59990         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
59991
59992 2000-06-03  Jim Meyering  <meyering@lucent.com>
59993
59994         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
59995
59996 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
59997
59998         * m4/glibc21.m4: New file.
59999         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
60000
60001 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
60002
60003         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
60004         newer, don't install charset.alias.
60005         * lib/config.charset: Change the Linux/glibc rules so they become empty
60006         on glibc-2.1 or newer.
60007
60008 2000-06-02  Jim Meyering  <meyering@lucent.com>
60009
60010         * lib/mountlist.c: Back out last change.  Instead, do this...
60011         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
60012         me_dummy member using the same `ignore'-testing code.
60013         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
60014         fs_type strings.
60015         From Mark D. Roth.
60016
60017 2000-05-29  Jim Meyering  <meyering@lucent.com>
60018
60019         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
60020         mounts with the `ignore' attribute.  Based on a patch from
60021         Mark D. Roth.
60022
60023 2000-05-28  Jim Meyering  <meyering@lucent.com>
60024
60025         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
60026         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60027         * m4/stat.m4: Likewise.
60028         * m4/lstat.m4: Likewise.
60029         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
60030
60031         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
60032         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
60033
60034 2000-05-26  Jim Meyering  <meyering@lucent.com>
60035
60036         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
60037
60038 2000-05-24  Jim Meyering  <meyering@lucent.com>
60039
60040         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
60041         autoconf requires that.
60042         * m4/lib-check.m4: Likewise.
60043         * m4/jm-macros.m4: Likewise.
60044         * m4/strftime.m4: Likewise.
60045
60046         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
60047         AC_CHECK_DECLS, now that autoconf requires that.
60048
60049 2000-05-22  Jim Meyering  <meyering@lucent.com>
60050
60051         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60052         * m4/lstat.m4: Likewise.
60053
60054 2000-05-22  Jim Meyering  <meyering@lucent.com>
60055
60056         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
60057
60058 2000-05-20  Jim Meyering  <meyering@lucent.com>
60059
60060         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
60061         (jm_PREREQ): Use it.
60062
60063 2000-05-18  Jim Meyering  <meyering@lucent.com>
60064
60065         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
60066         back, too, since it may have been modified by allocate_entry.
60067         (hash_delete): Rewrite to use neither the assignment operator
60068         nor the comma operator in an if-expression.
60069
60070 2000-05-15  Paul Eggert  <eggert@twinsun.com>
60071
60072         * lib/closeout.c:
60073         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
60074         Remove; no longer needed.
60075         "quotearg.h": Add include.
60076         (file_name): Do not bother to explicitly initialize to NULL; it's less
60077         efficient on some hosts.
60078         (close_stdout_status): Remove test as to whether stdout was already
60079         closed; it breaks for the case "echo x | sort >&-".
60080         Quote file name colons.
60081         Do not assume that _("write error") lacks format strings.
60082
60083 2000-05-15  Jim Meyering  <meyering@lucent.com>
60084
60085         * lib/version-etc.c (version_etc_copyright): Update the copyright
60086         string used in all --version output.
60087
60088 2000-05-14  Jim Meyering  <meyering@lucent.com>
60089
60090         * lib/closeout.c (close_stdout_set_file_name): New function.
60091         (close_stdout_status): Use new file-scoped global.
60092         Return right away if fstat says the stdout file descriptor is invalid.
60093         * lib/closeout.h (close_stdout_set_file_name): Declare.
60094
60095 2000-05-10  Jim Meyering  <meyering@lucent.com>
60096
60097         * lib/closeout.c [default_exit_status]: New file-scoped variable.
60098         (close_stdout_set_status): New function.
60099         * lib/closeout.h (close_stdout_set_status): Declare.
60100
60101 2000-05-09  Jim Meyering  <meyering@lucent.com>
60102
60103         * m4/gettext.m4: Rename this...
60104         * m4/libintl.m4: ...to this.
60105
60106 2000-05-08  Jim Meyering  <meyering@lucent.com>
60107
60108         * lib/long-options.c: Don't include closeout.h.
60109         (parse_long_options): Don't call close_stdout for --version.
60110
60111 2000-05-06  Paul Eggert  <eggert@twinsun.com>
60112
60113         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
60114         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
60115         2.1.3 bug.  This avoids a clash when files like regex.c define
60116         _GNU_SOURCE.
60117
60118 2000-05-06  Jim Meyering  <meyering@lucent.com>
60119
60120         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
60121         (AC_REPLACE_FUNCS): Add strnlen.
60122
60123         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
60124         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
60125
60126         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
60127         AC_SEARCH_LIBS call for nanosleep.
60128         (LIB_NANOSLEEP): Set and AC_SUBST.
60129
60130 2000-05-06  Jim Meyering  <meyering@lucent.com>
60131
60132         * lib/strnlen.c: Undefine __strnlen and strnlen.
60133         [!weak_alias]: Define __strnlen to strnlen.
60134
60135         * lib/atexit.c: New file, from libiberty.
60136
60137 2000-05-06  Jim Meyering  <meyering@lucent.com>
60138
60139         * lib/closeout.c (close_stdout_status): Also check for errors on the
60140         stderr stream.
60141
60142 2000-05-05  Jim Meyering  <meyering@lucent.com>
60143
60144         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
60145         AC_SEARCH_LIBS call for clock_gettime.
60146         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
60147
60148         * m4/search-libs.m4: Update from autoconf.
60149
60150         su doesn't work on Solaris 2.6.
60151         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
60152         <shadow.h>.  Reported by Dragos Harabor.
60153
60154 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
60155
60156         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
60157         memcpy instead of xmalloc, xrealloc, path_concat.
60158         (locale_charset): Treat empty environment variables as absent.
60159         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
60160
60161 2000-05-04  Jim Meyering  <meyering@lucent.com>
60162
60163         * lib/getopt.c: Update from glibc.
60164         * lib/obstack.c: Likewise.
60165         * lib/obstack.h: Likewise.
60166         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
60167         file
60168
60169         * lib/regex.h: Likewise.
60170         * lib/strndup.c: Likewise.
60171         * lib/strnlen.c: New file, from glibc.
60172
60173 2000-05-03  Jim Meyering  <meyering@lucent.com>
60174
60175         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
60176
60177 2000-05-02  Paul Eggert  <eggert@twinsun.com>
60178
60179         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
60180         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
60181         compile-time test, rather than inspecting host and OS, to
60182         decide whether to define _LARGEFILE_SOURCE.
60183
60184 2000-05-01  Jim Meyering  <meyering@lucent.com>
60185
60186         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
60187
60188         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
60189         Based on a patch from Bruno Haible.
60190
60191 2000-05-01  Jim Meyering  <meyering@lucent.com>
60192
60193         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
60194
60195 2000-04-29  Jim Meyering  <meyering@lucent.com>
60196
60197         * lib/path-concat.c: Declare strdup only if it's not defined.
60198         * lib/canon-host.c: Likewise.
60199
60200 2000-04-28  Jim Meyering  <meyering@lucent.com>
60201
60202         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
60203         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
60204         is included first, then limits.h is included by locale.h by libintl.h.
60205         From John David Anglin.
60206
60207 2000-04-25  Jim Meyering  <meyering@lucent.com>
60208
60209         * lib/makepath.c (S_IRWXUGO): Define.
60210         (make_path): Always perform explicit chmod if MODE specifies any
60211         of the `special' permission bits.  Prompted by a bug report against
60212         install from Mate Wierdl and Joost van Baal.
60213
60214 2000-04-18  Jim Meyering  <meyering@lucent.com>
60215
60216         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
60217         (jm_PREREQ): Use it.
60218
60219 2000-04-18  Jim Meyering  <meyering@lucent.com>
60220
60221         * lib/README: New file.
60222
60223         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
60224         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
60225
60226 2000-04-17  Jim Meyering  <meyering@lucent.com>
60227
60228         Get it right :-)
60229         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
60230         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
60231         Suggestion from Akim Demaille.
60232
60233 2000-04-17  Jim Meyering  <meyering@lucent.com>
60234
60235         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
60236         the definition of it to rpl_strftime also defined-away the system's
60237         declaration.
60238
60239 2000-04-15  Jim Meyering  <meyering@lucent.com>
60240
60241         Use `C' to denote so-called `contiguous' files, the same way
60242         that tar does.
60243         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
60244         (ftypelet): Use S_ISCTG.
60245         From Michael Deutschmann.
60246
60247 2000-04-14  Jim Meyering  <meyering@lucent.com>
60248
60249         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
60250         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
60251         clobbered.
60252
60253 2000-04-14  Jim Meyering  <meyering@lucent.com>
60254
60255         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
60256
60257 2000-04-13  Jim Meyering  <meyering@lucent.com>
60258
60259         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
60260         AH_VERBATIM to insert required #ifndef into config.h.in.
60261         Suggestion from Akim Demaille.
60262
60263 2000-04-12  Jim Meyering  <meyering@lucent.com>
60264
60265         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
60266         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
60267         Christian Krackowizer.
60268
60269         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
60270         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
60271         (AC_SYS_LARGEFILE): Require.
60272         (AM_C_PROTOTYPES): Require.
60273
60274 2000-04-08  Jim Meyering  <meyering@lucent.com>
60275
60276         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
60277         names don't conflict.  Reported by Eli Zaretskii.
60278
60279 2000-04-07  Jim Meyering  <meyering@lucent.com>
60280
60281         * lib/putenv.c: Move inclusion of errno.h so it follows that of
60282         sys/types.h, to work around system header problems on AIX 3.2.5.
60283         From Bruno Haible.
60284
60285 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
60286
60287         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
60288         bug.  Deal with the different error behavior of Irix iconv.
60289
60290 2000-04-05  Paul Eggert  <eggert@twinsun.com>
60291
60292         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
60293         IRIX if the installer said otherwise.
60294
60295 2000-04-05  Jim Meyering  <meyering@lucent.com>
60296
60297         Portability tweaks required for ultrix4.3.
60298         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
60299         (jm_CHECK_DECLS): Add getutent to the list of functions.
60300         (_jm_DECL_HEADERS): Add utmpx.h.
60301         From John David Anglin.
60302
60303         * m4/strftime.m4: Back out the 2000-04-02 change.
60304         Instead of that change, simply undefine putenv in the test program.
60305
60306 2000-04-05  Jim Meyering  <meyering@lucent.com>
60307
60308         Portability tweaks required for ultrix4.3.
60309         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
60310         getutent.
60311         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
60312         * lib/canon-host.c: Declare strdup.
60313         * lib/path-concat.c: Likewise.
60314         From John David Anglin.
60315
60316 2000-04-04  Jim Meyering  <meyering@lucent.com>
60317
60318         Be more DOS 8.3-friendly.
60319         * lib/ref-add.sin: Renamed from ref-add.sed.in.
60320         * lib/ref-del.sin: Renamed from ref-del.sed.in.
60321         * lib/Makefile.am: Reflect renaming.
60322         Reported by Eli Zaretskii.
60323
60324         Use a temporary file name that won't clash with `charset.alias'
60325         in the DOS 8.3 name space.
60326         * lib/Makefile.am (charset_tmp): Define.
60327         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
60328         (uninstall-local): Likewise.
60329         Reported by Eli Zaretskii.
60330
60331 2000-04-03  Jim Meyering  <meyering@lucent.com>
60332
60333         * m4/gettext.m4: Fix typo in comment.
60334
60335         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
60336         textutils/configure.in).  Suggestion from Paul Eggert.
60337         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
60338
60339 2000-04-02  Paul Eggert  <eggert@twinsun.com>
60340
60341         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
60342         variable in the shell rather than using putenv, which isn't
60343         portable.  This avoids the configure-time inter-test dependency
60344         on the potentially-renamed putenv function.
60345
60346 2000-03-30  Paul Eggert  <eggert@twinsun.com>
60347
60348         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
60349         before checking struct stat.st_blksize, so that
60350         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
60351
60352 2000-03-29  Paul Eggert  <eggert@twinsun.com>
60353
60354         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
60355         since strftime.c uses HAVE_STRFTIME to decide whether to use
60356         the underlying strftime.
60357
60358 2000-03-29  Paul Eggert  <eggert@twinsun.com>
60359
60360         * lib/time/strftime.c (my_strftime): Make sure we call the system
60361         strftime, not ourselves, when invoking the underlying strftime.
60362
60363 2000-03-24  Jim Meyering  <meyering@lucent.com>
60364
60365         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
60366         (charset_alias): Define.
60367         (install-exec-local): Factor out common code.
60368         (uninstall-local): Split lines longer than 80.
60369         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
60370         (SUFFIXES): Define.
60371         (.sed.in.sed): New rule.  Don't redirect directly to $@.
60372         (CLEANFILES): Add ref-add.sed and ref-del.sed.
60373
60374 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
60375
60376         * lib/config.charset: Output a line containing "Packages using this
60377         file".
60378         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
60379         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
60380         ref-del.sed): New rules.
60381
60382 2000-03-17  Jim Meyering  <meyering@lucent.com>
60383
60384         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
60385         Otherwise, include <strings.h>
60386
60387 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
60388
60389         * lib/unicodeio.c (utf8_wctomb): New function.
60390         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
60391         format instead of in UCS-4 with platform dependent endianness.
60392
60393 2000-03-10  Jim Meyering  <meyering@lucent.com>
60394
60395         * m4/lib-check.m4: Look for getspnam in -lgen, too.
60396         From Marco Franzen.
60397
60398 2000-03-07  Paul Eggert  <eggert@twinsun.com>
60399
60400         * lib/savedir.c (savedir): Work even if directory size is
60401         negative; this can happen with some screwy NFS configurations.
60402
60403 2000-03-06  Jim Meyering  <meyering@lucent.com>
60404
60405         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
60406         if it's NULL (because we ran out of memory).  From Bruno Haible.
60407
60408 2000-03-05  Jim Meyering  <meyering@lucent.com>
60409
60410         * lib/localcharset.c ("path-concat.h"): Include.
60411         (get_charset_aliases): Use path_concat instead of ANSI string
60412         concatenation.
60413
60414         * lib/unicodeio.h (PARAMS): Define.
60415         Use it to guard prototype.
60416
60417 2000-03-04  Jim Meyering  <meyering@lucent.com>
60418
60419         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
60420         for lib/localcharset.c.
60421
60422 2000-03-04  Jim Meyering  <meyering@lucent.com>
60423
60424         * lib/Makefile.am (install-exec-local): Create $(libdir) before
60425         installing into it.
60426         (uninstall-local): Uncomment this rule so `make distcheck' works
60427         once again.
60428
60429         * lib/unicodeio.c (<errno.h>): Include it.
60430         (errno): Declare if not defined.
60431
60432         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
60433
60434         * lib/config.charset: New version, incorporating remarks from a linux
60435         i18n mailing list.  From Bruno Haible.
60436
60437 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
60438
60439         * m4/codeset.m4: New file.
60440         * m4/iconv.m4: New file.
60441         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
60442
60443 2000-03-03  Jim Meyering  <meyering@lucent.com>
60444
60445         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
60446
60447 2000-03-02  Jim Meyering  <meyering@lucent.com>
60448
60449         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
60450         the messages come out on separate lines.
60451
60452         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
60453         rather than jm_CHECK_DECLARATIONS.
60454         * m4/decl.m4: Remove now-unused file.
60455
60456         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
60457         geteuid.
60458
60459 2000-03-02  Jim Meyering  <meyering@lucent.com>
60460
60461         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
60462
60463 2000-03-01  Jim Meyering  <meyering@lucent.com>
60464
60465         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
60466         * lib/unicodeio.c: Likewise.
60467
60468 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
60469
60470         * lib/config.charset: New file.
60471         * lib/localcharset.c: New file.
60472         * lib/unicodeio.h, lib/unicodeio.c: New files.
60473         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
60474         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
60475         (noinst_HEADERS): Add unicodeio.h.
60476         (all-local, install-exec-local, charset.alias): New targets.
60477
60478 2000-02-28  Paul Eggert  <eggert@twinsun.com>
60479
60480         * lib/quotearg.c (ALERT_CHAR): New macro.
60481         (quotearg_buffer_restyled): Use it.
60482
60483 2000-02-27  Jim Meyering  <meyering@lucent.com>
60484
60485         * m4/check-decl.m4: Add getenv to the list.
60486
60487 2000-02-27  Jim Meyering  <meyering@lucent.com>
60488
60489         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
60490         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
60491
60492         * lib/backupfile.c: Guard inclusion of stdlib.h with
60493         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
60494         Declare malloc if needed.
60495
60496         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
60497         `#ifndef HAVE_DECL..'
60498         now that autoconf always defines the HAVE_DECL_ symbols.
60499         * lib/human.c: Likewise.
60500         * lib/same.c: Likewise.
60501         * lib/strtoumax.c: Likewise.
60502
60503         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
60504         declaration check was not run.
60505         * lib/hash.c: Likewise.
60506         * lib/human.c: Likewise.
60507         * lib/same.c: Likewise.
60508         * lib/strtoumax.c: Likewise.
60509
60510         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
60511         `.', then first look up the entire `.'-containing string as a login
60512         name.
60513
60514 2000-02-23  Jim Meyering  <meyering@lucent.com>
60515
60516         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
60517         in place of my hack.
60518
60519 2000-02-18  Paul Eggert  <eggert@twinsun.com>
60520
60521         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
60522         (textint): New typedef.
60523         (parser_control): Member year changed from int to textint.
60524         All uses changed.
60525         (YYSTYPE): Removed; replaced by %union with int and textint members.
60526         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
60527         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
60528         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
60529         (tSNUMBER, tUNUMBER): Now of type <textintval>.
60530         (date, number, to_year): Use width of number in digits, not its value,
60531         to determine whether it's a 2-digit year, or a 2-digit time.
60532         (yylex): Store number of digits of numeric tokens.
60533         Reported by John Kendall.
60534
60535         (parser_control): Changed from struct parser_control to typedef (for
60536         consistency).  All uses changed.
60537
60538         (tID): Removed; not used.
60539         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
60540
60541 2000-02-14  Paul Eggert  <eggert@twinsun.com>
60542
60543         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
60544         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
60545
60546 2000-02-12  Jim Meyering  <meyering@lucent.com>
60547
60548         * lib/userspec.c (ISDIGIT): Define it.
60549         (isdigit): Remove definition.
60550         (is_number): Use ISDIGIT, not isdigit.
60551         <libintl.h>: Include.
60552         (_ and N_): Define.
60553         (parse_user_spec): Mark translatable strings.
60554
60555 2000-02-10  Jim Meyering  <meyering@lucent.com>
60556
60557         With these changes, nanosleep.[ch] are finally enough like the other
60558         lib/* replacement files to compile on a few more losing systems.
60559
60560         * lib/nanosleep.h: Don't include config.h.
60561         Remove prototype from declaration of nanosleep.
60562         (PARAMS): Remove now-unneeded definition.
60563         * lib/nanosleep.c: #undef nanosleep.
60564         (rpl_nanosleep): Rename from nanosleep.
60565
60566 2000-02-10  Jim Meyering  <meyering@lucent.com>
60567
60568         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
60569         gnu_nanosleep to rpl_nanosleep.
60570
60571 2000-02-09  Jim Meyering  <meyering@lucent.com>
60572
60573         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
60574         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
60575
60576 2000-02-08  Akim Demaille  <akim@epita.fr>
60577
60578         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
60579         `[' and `]' and remove uses of `changequote'.
60580         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
60581         (AC_SYS_LARGEFILE): Likewise.
60582         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
60583         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
60584         of changequote.
60585         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
60586         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
60587         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
60588         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
60589
60590 2000-02-05  Jim Meyering  <meyering@lucent.com>
60591
60592         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
60593         Remove explicit use of AC_HEADER_TIME.  It is required by
60594         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
60595         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
60596         in autoconf whereby the expansion of the latter ended up preceding
60597         the expansion of its prerequisite, AC_HEADER_TIME.
60598         Reported by Volker Borchert.
60599
60600 2000-02-03  Jim Meyering  <meyering@lucent.com>
60601
60602         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
60603
60604 2000-02-03  Jim Meyering  <meyering@lucent.com>
60605
60606         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
60607         rather than with `#if HAVE_UTMPNAME'.
60608
60609 2000-02-02  Jim Meyering  <meyering@lucent.com>
60610
60611         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
60612         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
60613         Reported by Eli Zaretskii.
60614
60615 2000-02-01  Jim Meyering  <meyering@lucent.com>
60616
60617         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
60618
60619 2000-01-31  Jim Meyering  <meyering@lucent.com>
60620
60621         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
60622         functions.  Add the time.h and sys/time.h headers along with the
60623         AC_REQUIRE'ment of AC_HEADER_TIME.
60624
60625 2000-01-31  Jim Meyering  <meyering@lucent.com>
60626
60627         * lib/nanosleep.h (nanosleep): Guard declaration with
60628         `#if ! HAVE_DECL_NANOSLEEP'.
60629         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
60630         the declaration in that vendor's sys/timers.h.
60631         Reported by Christian Krackowizer.
60632
60633         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
60634         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
60635         (ISPRINT): Likewise.
60636         Reported by Tom Tromey.
60637
60638 2000-01-30  Jim Meyering  <meyering@lucent.com>
60639
60640         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
60641
60642         * m4/prereq.m4 (utmp_includes): Define.
60643         Check for ut_user and ut_name members in both struct utmpx
60644         and struct utmp.
60645
60646 2000-01-30  Jim Meyering  <meyering@lucent.com>
60647
60648         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
60649         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
60650         header files where only utmpx.ut_user is declared.
60651
60652         * lib/readutmp.h (UT_USER): Define.
60653
60654 2000-01-29  Jim Meyering  <meyering@lucent.com>
60655
60656         * m4/lib-check.m4: New file containing library-related checks from
60657         fileutils and sh-utils (textutils had none).
60658
60659 2000-01-28  Jim Meyering  <meyering@lucent.com>
60660
60661         * m4/perl.m4: Change format of warning message to look more like that
60662         from the missing script.  Suggestion from François Pinard.
60663
60664 2000-01-25  Jim Meyering  <meyering@lucent.com>
60665
60666         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
60667         well as time.h in the compile check.
60668         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
60669         Fix typo in cross-compiling case: s/yes/no/.
60670
60671 2000-01-23  Jim Meyering  <meyering@lucent.com>
60672
60673         * m4/jm-macros.m4: Move df-related tests here from
60674         fileutils/configure.in
60675
60676         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
60677         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
60678
60679         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
60680         s/space/ac_fsusage_space/.
60681         (jm_FILE_SYSTEM_USAGE): Take two parameters.
60682
60683         * m4/ftruncate.m4: New file (derived from part of
60684         fileutils/configure.in).
60685         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
60686         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
60687
60688         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
60689         AC_SUBST these here, rather than just in sh-util/configure.in, so
60690         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
60691         all the same.
60692         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
60693         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
60694         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
60695         (AC_SUBST(POW_LIBM)): Likewise.
60696         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
60697
60698 2000-01-23  Jim Meyering  <meyering@lucent.com>
60699
60700         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
60701         obstack.c.
60702
60703 2000-01-22  Jim Meyering  <meyering@lucent.com>
60704
60705         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
60706
60707         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
60708
60709         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
60710         configure.in
60711         (AC_CHECK_HEADERS): Likewise for sh-utils.
60712         (AC_CHECK_HEADERS): Likewise for textutils.
60713         Merge the three lists of headers.
60714
60715         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
60716         from fileutils' configure.in.
60717
60718         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
60719         code. Moved tests into their own function (_jm_DECL_HEADERS) in
60720         check-decl.m4.
60721
60722         * m4/check-decl.m4: Use #if rather than #ifdef.
60723         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
60724         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
60725         (_jm_DECL_HEADERS): Define new function.
60726         (jm_CHECK_DECLARATIONS): Require it.
60727
60728 2000-01-22  Jim Meyering  <meyering@lucent.com>
60729
60730         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
60731         [! HAVE_DECL_STRTOULL]: Declare strtoull.
60732         Required for some AIX systems.  Reported by Christian Krackowizer.
60733         [TESTING] (main): New function.
60734
60735         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
60736         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
60737         letters.
60738
60739         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
60740         iswprint.
60741
60742         * lib/strverscmp.c (ISDIGIT): Define.
60743         (strverscmp): Use ISDIGIT, not isdigit.
60744
60745 2000-01-19  Jim Meyering  <meyering@lucent.com>
60746
60747         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
60748         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
60749         defines `struct timespec' in <sys/time.h>
60750
60751         * m4/c-bs-a.m4: Remove uses of changequote altogether.
60752         Thanks to Akim for explaining.
60753
60754 2000-01-17  Paul Eggert  <eggert@twinsun.com>
60755
60756         * lib/nanosleep.c (nanosleep):
60757         Don't use SA_INTERRUPT to decide whether to call sigaction, as
60758         POSIX.1 doesn't require SA_INTERRUPT and some systems
60759         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
60760         it's been part of POSIX.1 since day 1 (in 1988).
60761
60762 2000-01-17  Jim Meyering  <meyering@lucent.com>
60763
60764         * lib/interlock: Remove unused file.  Reported by François Pinard.
60765
60766 2000-01-16  Paul Eggert  <eggert@twinsun.com>
60767
60768         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
60769         alert, backslash, formfeed, and vertical tab unnecessarily in
60770         shell quoting style.
60771
60772 2000-01-16  Jim Meyering  <meyering@lucent.com>
60773
60774         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
60775         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
60776         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
60777         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
60778
60779 2000-01-16  Jim Meyering  <meyering@lucent.com>
60780
60781         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
60782         because the latter didn't work.
60783
60784 2000-01-15  Jim Meyering  <meyering@lucent.com>
60785
60786         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
60787         (AC_REPLACE_FUNCS): Add memcpy and memset.
60788         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
60789         Add strpbrk.
60790         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
60791
60792 2000-01-12  Jim Meyering  <meyering@lucent.com>
60793
60794         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
60795         (jm_PREREQ): Use it.
60796         (jm_PREREQ_READUTMP): New macro.
60797         (jm_PREREQ): Use it.
60798
60799 2000-01-11  Paul Eggert  <eggert@twinsun.com>
60800
60801         Quote multibyte characters correctly.
60802         * m4/c-bs-a.m4: New file.
60803         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
60804         (jm_PREREQ): Use it.
60805
60806 2000-01-11  Paul Eggert  <eggert@twinsun.com>
60807
60808         * m4/uintmax_t.m4: Port to autoconf 2.13.
60809
60810 2000-01-08  Jim Meyering  <meyering@ascend.com>
60811
60812         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
60813         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
60814
60815 2000-01-04  Jim Meyering  <meyering@ascend.com>
60816
60817         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
60818         jm_STRUCT_DIRENT_D_TYPE.
60819         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
60820         jm_STRUCT_DIRENT_D_INO.
60821         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
60822         jm_STRUCT_UTIMBUF.
60823         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
60824         renamings.
60825         * m4/utime.m4: Likewise.
60826
60827         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
60828         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
60829
60830 2000-01-03  Paul Eggert  <eggert@twinsun.com>
60831
60832         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
60833         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
60834
60835 2000-01-02  Jim Meyering  <meyering@ascend.com>
60836
60837         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
60838         remember if this is necessary.
60839
60840 1999-12-26  Jim Meyering  <meyering@ascend.com>
60841
60842         * m4/jm-macros.m4: Use it here.
60843         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
60844
60845 1999-12-23  Jim Meyering  <meyering@ascend.com>
60846
60847         * m4/jm-macros.m4: Check for clock_gettime (moved from
60848         fileutils/configure.in)
60849         Check for gettimeofday.
60850
60851 1999-12-20  Jim Meyering  <meyering@ascend.com>
60852
60853         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
60854         autoconf-2.14a-1999-12-20.
60855
60856 1999-12-19  Jim Meyering  <meyering@ascend.com>
60857
60858         * m4/lstat-slash.m4: New file.
60859         * m4/jm-macros.m4: Use the new macro:
60860         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60861
60862 1999-12-07  Jim Meyering  <meyering@ascend.com>
60863
60864         * m4/perl.m4: Require that File::Compare be available, too.
60865         Too many systems seem to lack it.
60866
60867         * m4/strftime.m4: Add checks for most of the cpp macros tested in
60868         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
60869
60870 1999-11-18  Paul Eggert  <eggert@twinsun.com>
60871
60872         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
60873         problem with the QNX 4.25 shell, which doesn't propagate exit
60874         status of failed commands inside shell assignments.
60875
60876 1999-11-17  Jim Meyering  <meyering@ascend.com>
60877
60878         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
60879
60880 1999-11-07  Jim Meyering  <meyering@ascend.com>
60881
60882         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
60883
60884 1999-11-06  Jim Meyering  <meyering@ascend.com>
60885
60886         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
60887         * m4/jm-macros.m4 (jm_MACROS): Use it here.
60888
60889 1999-11-05  Jim Meyering  <meyering@ascend.com>
60890
60891         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
60892         configure.in of textutils, fileutils, and sh-utils into this one
60893         (shared between those packages) file.
60894         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
60895         AC_STRUCT_ST_BLKSIZE.
60896
60897 1999-11-03  Jim Meyering  <meyering@ascend.com>
60898
60899         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
60900         of AC_CHECK_TYPE checks includes unistd.h.
60901         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
60902         Suggestion from Akim Demaille.
60903
60904 1999-10-30  Jim Meyering  <meyering@ascend.com>
60905
60906         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
60907         m4-quoted string.
60908         * m4/ls-mntd-fs.m4: Likewise.
60909         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
60910         * m4/jm-winsz1.m4: Likewise.
60911
60912         * m4/const.m4: Remove file, since the fix made it into the experimental
60913         version of autoconf.
60914         * m4/mktime.m4: Likewise.
60915
60916         * m4/check-type.m4: Remove file, now that the latest version of
60917         AC_CHECK_TYPE takes a third arg to specify additional #includes.
60918
60919         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
60920         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
60921         AC_CHECK_TYPE.
60922
60923 1999-10-04  Jim Meyering  <meyering@ascend.com>
60924
60925         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
60926
60927 1999-09-22  Paul Eggert  <eggert@twinsun.com>
60928
60929         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
60930         2.95.1 bug with HP-UX 10.20.
60931
60932 1999-09-17  Jim Meyering  <meyering@ascend.com>
60933
60934         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
60935         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
60936         due to missing strdup (against sh-utils-2.0).
60937
60938 1999-08-29  Jim Meyering  <meyering@ascend.com>
60939
60940         * m4/jm-macros.m4: Require jm_BISON.
60941         * m4/bison.m4: New file.
60942
60943 1999-08-17  Paul Eggert  <eggert@twinsun.com>
60944
60945         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
60946         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
60947
60948 1999-08-05  Jim Meyering  <meyering@ascend.com>
60949
60950         * m4/getline.m4: Rename test file from conftestdata to conftest.data
60951         to avoid conflicts with `conftest' on 8+3 filesystems.
60952         Suggestion from Eli Zaretskii.
60953
60954 1999-08-04  Jim Meyering  <meyering@ascend.com>
60955
60956         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
60957         fileutils and sh-utils (textutils's getline test was inadequate).
60958         (AM_FUNC_GETLINE): Run this test.
60959         (AC_CHECK_FUNCS): Check for getdelim.
60960         Reported by Bob Proulx.
60961
60962 1999-08-02  Jim Meyering  <meyering@ascend.com>
60963
60964         * m4/jm-macros.m4: Add a comment.
60965
60966 1999-08-01  Paul Eggert  <eggert@twinsun.com>
60967
60968         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
60969         <inttypes.h> defines strtoumax as a macro (and not as a
60970         function).
60971
60972 1999-08-01  Paul Eggert  <eggert@twinsun.com>
60973
60974         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
60975         that we can shift, multiply and divide unsigned long long
60976         values; Ultrix cc can't do it.
60977
60978 1999-08-01  Paul Eggert  <eggert@twinsun.com>
60979
60980         * m4/mktime.m4: New file, which is a preview of what should appear
60981         in the next public autoconf release.
60982
60983 1999-08-01  Paul Eggert  <eggert@twinsun.com>
60984
60985         * m4/lfs.m4: Remove this file.
60986         * m4/largefile.m4: New file.  It contains the old contents of
60987         lfs.m4, except that all names with prefix AC_LFS have been
60988         changed to use the prefix AC_SYS_LARGEFILE instead, to be
60989         compatible with future autoconf versions.  Also, some minor m4
60990         quoting problems have been fixed.
60991
60992 1999-08-01  Paul Eggert  <eggert@twinsun.com>
60993
60994         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
60995         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
60996         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
60997         and simplify the shell code.
60998
60999 1999-08-01  Jim Meyering  <meyering@ascend.com>
61000
61001         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
61002         m4.
61003
61004 1999-07-20  Jim Meyering  <meyering@ascend.com>
61005
61006         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
61007
61008 1999-07-15  Jim Meyering  <meyering@ascend.com>
61009
61010         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
61011
61012 1999-05-22  Jim Meyering  <meyering@ascend.com>
61013
61014         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
61015
61016 1999-05-20  Jim Meyering  <meyering@ascend.com>
61017
61018         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
61019         Add a colon after each `then' in case $4 is empty.
61020
61021 1999-05-16  Jim Meyering  <meyering@ascend.com>
61022
61023         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
61024
61025 1999-05-10  Jim Meyering  <meyering@ascend.com>
61026
61027         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
61028
61029         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
61030         AC_FUNC_MKTIME.
61031
61032 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
61033
61034         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
61035
61036 1999-05-04  Paul Eggert  <eggert@twinsun.com>
61037
61038         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
61039         not CPPFLAGS, so that linking works correctly in IRIX.
61040
61041 1999-04-30  Paul Eggert  <eggert@twinsun.com>
61042
61043         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
61044
61045 1999-04-20  Paul Eggert  <eggert@twinsun.com>
61046
61047         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
61048         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
61049         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
61050         jm_AC_TYPE_UNSIGNED_LONG_LONG.
61051         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
61052
61053         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
61054
61055 1999-04-20  Jim Meyering  <meyering@ascend.com>
61056
61057         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
61058         AC_REPLACE xstroull if necessary.  From Paul Eggert.
61059         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
61060
61061 1999-04-18  Jim Meyering  <meyering@ascend.com>
61062
61063         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
61064         * m4/jm-macros.m4: Use it.
61065
61066 1999-04-06  Jim Meyering  <meyering@ascend.com>
61067
61068         * m4/strftime.m4: Remove test for %f.
61069
61070 1999-03-29  Jim Meyering  <meyering@ascend.com>
61071
61072         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
61073         superset of the AC_TYPE_* checks in the textutils, fileutils,
61074         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
61075         AC_TYPE_PID_T.
61076
61077 1999-03-28  Jim Meyering  <meyering@ascend.com>
61078
61079         * m4/jm-macros.m4: Define GNU_PACKAGE here.
61080         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
61081         replaced e.g., in the *.sh files of the sh-utils.
61082
61083 1999-03-20  Jim Meyering  <meyering@ascend.com>
61084
61085         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
61086         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
61087         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
61088
61089 1999-03-19  Jim Meyering  <meyering@ascend.com>
61090
61091         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
61092
61093 1999-03-12  Jim Meyering  <meyering@ascend.com>
61094
61095         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
61096
61097 1999-03-07  Jim Meyering  <meyering@ascend.com>
61098
61099         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
61100         declared.
61101
61102 1999-02-17  Jim Meyering  <meyering@ascend.com>
61103
61104         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
61105         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
61106
61107 1999-02-07  Jim Meyering  <meyering@ascend.com>
61108
61109         * m4/group-member.m4: New file -- extracted from sh-utils'
61110         configure.in.
61111
61112         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
61113         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
61114
61115 1999-02-06  Jim Meyering  <meyering@ascend.com>
61116
61117         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
61118         * m4/fnmatch.m4: Likewise.
61119         * m4/getgroups.m4: Likewise.
61120         * m4/lstat.m4: Likewise.
61121         * m4/malloc.m4: Likewise.
61122         * m4/putenv.m4: Likewise.
61123         * m4/realloc.m4: Likewise.
61124         * m4/regex.m4: Likewise.
61125         * m4/stat.m4: Likewise.
61126         * m4/strftime.m4: Likewise.
61127         Suggestion from Alain Magloire.
61128
61129         * m4/chown.m4: Use `.$ac_objext', not `.o'.
61130         * m4/fnmatch.m4: Likewise.
61131         * m4/getgroups.m4: Likewise.
61132         * m4/getline.m4: Likewise.
61133         * m4/lstat.m4: Likewise.
61134         * m4/malloc.m4: Likewise.
61135         * m4/memcmp.m4: Likewise.
61136         * m4/putenv.m4: Likewise.
61137         * m4/realloc.m4: Likewise.
61138         * m4/regex.m4: Likewise.
61139         * m4/stat.m4: Likewise.
61140         * m4/strftime.m4: Likewise.
61141         Suggestion from Alain Magloire.
61142
61143         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
61144         an argument.
61145
61146         * m4/regex.m4: Add a run-time Test for proper operation of
61147         re_compile_pattern.
61148
61149 1999-01-31  Jim Meyering  <meyering@ascend.com>
61150
61151         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
61152
61153 1999-01-30  Jim Meyering  <meyering@ascend.com>
61154
61155         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
61156
61157         * m4/jm-mktime.m4: Make this a wrapper around the official
61158         AM_FUNC_MKTIME rather than my private copy, now that the official one
61159         is up to date.
61160         * m4/mktime.m4: Remove file.
61161
61162         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
61163         * m4/uptime.m4: Likewise.
61164         * m4/uintmax_t.m4: Likewise.
61165
61166 1999-01-28  Jim Meyering  <meyering@ascend.com>
61167
61168         * m4/jm-macros.m4: Use jm_AFS.
61169         * m4/afs.m4: New file (from fileutils' configure.in).
61170
61171         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
61172         * m4/chown.m4: Likewise.
61173         * m4/d-ino.m4: Likewise.
61174         * m4/d-type.m4: Likewise.
61175         * m4/fnmatch.m4: Likewise.
61176         * m4/getgroups.m4: Likewise.
61177         * m4/gettext.m4: Likewise.
61178         * m4/jm-mktime.m4: Likewise.
61179         * m4/jm-winsz2.m4: Likewise.
61180         * m4/lcmessage.m4: Likewise.
61181         * m4/ls-mntd-fs.m4: Likewise.
61182         * m4/malloc.m4: Likewise.
61183         * m4/memcmp.m4: Likewise.
61184         * m4/putenv.m4: Likewise.
61185         * m4/realloc.m4: Likewise.
61186         * m4/st_mtim.m4: Likewise.
61187         * m4/strftime.m4: Likewise.
61188
61189 1999-01-16  Jim Meyering  <meyering@ascend.com>
61190
61191         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
61192         (ARGMATCH_DIE_DECL): Define.
61193
61194 1999-01-12  Jim Meyering  <meyering@ascend.com>
61195
61196         * m4/Makefile.am.in: Rewrite to avoid using fmt.
61197         Reported by Lars Hecking.
61198
61199 1999-01-10  Jim Meyering  <meyering@ascend.com>
61200
61201         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
61202         gross kludge.
61203         * m4/inttypes_h.m4: Likewise.
61204         * m4/lstat.m4: Likewise.
61205         * m4/malloc.m4: Likewise.
61206         * m4/readdir.m4: Likewise.
61207         * m4/realloc.m4: Likewise.
61208         * m4/st_dm_mode.m4: Likewise.
61209         * m4/stat.m4: Likewise.
61210         * m4/utimbuf.m4: Likewise.
61211         * m4/utimes.m4: Likewise.
61212
61213         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
61214         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
61215         comments in config.h.in are meaningful.
61216
61217         * m4/jm-macros.m4: Require autoconf-2.13 here.
61218
61219         * m4/regex.m4: By default, don't use the included regex.c on systems
61220         with glibc 2.  Suggestion from Uli Drepper.
61221
61222 1999-01-02  Jim Meyering  <meyering@ascend.com>
61223
61224         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
61225
61226 1998-12-18  Jim Meyering  <meyering@ascend.com>
61227
61228         * m4/Makefile.am.in (Makefile.am): Simplify rule.
61229         Based on a suggestion from Lars Hecking.
61230
61231 1998-11-16  Paul Eggert  <eggert@twinsun.com>
61232
61233         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
61234
61235 1998-11-16  Jim Meyering  <meyering@ascend.com>
61236
61237         * m4/lfs.m4: Double-quote the `uname...` expression.
61238
61239 1998-11-14  Jim Meyering  <meyering@ascend.com>
61240
61241         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
61242         * m4/stat.m4: Likewise.
61243
61244 1998-11-03  Jim Meyering  <meyering@ascend.com>
61245
61246         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
61247         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
61248
61249 1998-10-18  Jim Meyering  <meyering@ascend.com>
61250
61251         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
61252
61253 1998-10-17  Jim Meyering  <meyering@ascend.com>
61254
61255         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
61256         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
61257         calls for those previously hard-coded headers.  Instead, take a new
61258         parameter.
61259         (jm_CHECK_DECLARATIONS): Reflect interface change.
61260         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
61261         (jm_CHECK_DECL_LOCALTIME_R): New macro.
61262
61263         * m4/mktime.m4: Test for spring-forward gap before long-running test.
61264
61265 1998-10-14  Jim Meyering  <meyering@ascend.com>
61266
61267         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
61268         instead of "TZ=America/Vancouver".  From Paul Eggert.
61269
61270 1998-10-11  Jim Meyering  <meyering@ascend.com>
61271
61272         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
61273         This adds a test for a recently added compatibility fix for mktime.c.
61274         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
61275
61276 1998-09-27  Jim Meyering  <meyering@ascend.com>
61277
61278         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
61279
61280         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
61281         ../configure.in, including a change from Gordon Matzigkeit to allow
61282         cross-compiling for the Hurd.
61283
61284         * m4/glibc.m4: New file/macro to test for the GNU C Library
61285         versions 1 and 2.  From Gordon Matzigkeit.
61286         Indent.
61287
61288 1998-09-21  Jim Meyering  <meyering@ascend.com>
61289
61290         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
61291
61292 1998-08-18  Paul Eggert  <eggert@twinsun.com>
61293
61294         Port nanosecond-resolution times to UnixWare 2.1.2 and
61295         pedantic Solaris 2.6.
61296
61297         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
61298         AC_STRUCT_ST_MTIM.
61299         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
61300         Generate name of ns member, instead of just 1 or undef.
61301         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
61302
61303 1998-08-15  Jim Meyering  <meyering@ascend.com>
61304
61305         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
61306         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
61307         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
61308         instead of jm_TYPE_SSIZE_T.
61309
61310 1998-08-12  Jim Meyering  <meyering@ascend.com>
61311
61312         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
61313
61314 1998-08-02  Jim Meyering  <meyering@ascend.com>
61315
61316         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
61317         in acconfig.h manually.
61318
61319 1998-07-31  Paul Eggert  <eggert@twinsun.com>
61320
61321         * m4/st_mtim.m4: New file.
61322
61323 1998-07-28  Jim Meyering  <meyering@ascend.com>
61324
61325         * m4/utimes.m4: Undef stat.
61326
61327 1998-07-25  Jim Meyering  <meyering@ascend.com>
61328
61329         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
61330         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
61331
61332 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
61333
61334         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
61335         uid and gid actually remain unchanged.
61336
61337 1998-07-07  Jim Meyering  <meyering@ascend.com>
61338
61339         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
61340
61341 1998-07-04  Jim Meyering  <meyering@ascend.com>
61342
61343         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
61344         to prove that this macro can be used in packages without regex.c.
61345
61346 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
61347
61348         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
61349         is to be used.
61350
61351 1998-07-03  Jim Meyering  <meyering@ascend.com>
61352
61353         * m4/gettext.m4: Add -lintl if it's found to be necessary.
61354
61355         * m4/gettext.m4: New file -- from gettext-0.10.35.
61356         * m4/lcmessage.m4: Likewise.
61357         * m4/progtest.m4: Likewise.
61358
61359         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
61360         * m4/jm-macros.m4: Require the new macro.
61361
61362 1998-06-29  Jim Meyering  <meyering@ascend.com>
61363
61364         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
61365         for the definition of NGROUPS (used in a system header included
61366         by sys/mount.h).
61367
61368 1998-06-28  Jim Meyering  <meyering@ascend.com>
61369
61370         * m4/ls-mntd-fs.m4: New file.
61371         * m4/fstypename.m4: New file.
61372
61373         * m4/jm-macros.m4: Require the new macro.
61374         * m4/jm-glibc-io.m4: New file.
61375
61376 1998-05-19  Jim Meyering  <meyering@ascend.com>
61377
61378         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
61379         * m4/lchown.m4: New file.
61380
61381         * m4/Makefile.am.in: New file.
61382         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
61383
61384 1998-05-14  Jim Meyering  <meyering@ascend.com>
61385
61386         * m4/Makefile.am (EXTRA_DIST): Add them.
61387         * m4/jm-macros.m4: New file.
61388         * m4/utimbuf.m4: New file.
61389
61390 1998-05-12  Jim Meyering  <meyering@ascend.com>
61391
61392         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
61393
61394 1998-05-11  Jim Meyering  <meyering@ascend.com>
61395
61396         * m4/isc-posix.m4: New file.
61397
61398 1998-05-10  Jim Meyering  <meyering@ascend.com>
61399
61400         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
61401
61402 1998-05-09  Jim Meyering  <meyering@ascend.com>
61403
61404         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
61405         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
61406         with automake.
61407
61408         * m4/ssize_t.m4: New file.
61409         * m4/mktime.m4: Remove file -- the new automake has this now.
61410
61411 1998-04-26  Jim Meyering  <meyering@ascend.com>
61412
61413         * m4/assert.m4: New file.
61414         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
61415
61416 1998-04-05  Jim Meyering  <meyering@ascend.com>
61417
61418         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
61419         (jm_PREREQ): Use it here.
61420
61421 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
61422
61423         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
61424         in acconfig.h.
61425
61426 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
61427
61428         * m4/prereq.m4: New file.
61429         * m4/error.m4: New file.
61430         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
61431
61432 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
61433
61434         * m4/getline.m4: Don't set am_cv_func_working_getline before the
61435         cache-check for the same variable -- that defeated the purpose of
61436         the test; the test program was never run.  This was a problem only
61437         on systems with losing getline functions -- HP-UX 10.20 is one.
61438         Reported by Bjorn Helgaas.
61439
61440 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
61441
61442         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
61443
61444 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
61445
61446         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
61447
61448         * m4/const.m4: New file.  Use an initializer in this declaration
61449         typedef int charset[2]; const charset x;
61450         Reported by Bob Glickstein.
61451
61452 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
61453
61454         * m4/chown.m4: Fix reversed types on -1 args to chown.
61455         From Kaveh Ghazi.
61456
61457 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
61458
61459         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
61460         Add lseek and memchr.
61461
61462         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
61463         T.E.Dickey <dickey@clark.net> said that some older preprocessors
61464         have a 20-character limit on names.
61465
61466 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
61467
61468         * m4/inttypes_h.m4: New file.
61469         * m4/uintmax_t.m4: New file.
61470         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
61471
61472
61473         -----
61474
61475         Local Variables:
61476         coding: utf-8
61477         End:
61478
61479         Copyright (C) 1997-2010 Free Software Foundation, Inc.
61480
61481         Copying and distribution of this file, with or without
61482         modification, are permitted provided the copyright notice
61483         and this notice are preserved.