1 2010-01-10 Bruno Haible <bruno@clisp.org>
3 Tests for module 'unistr/u8-chr'.
4 * modules/unistr/u8-chr-tests: New file.
5 * tests/unistr/test-u8-chr.c: New file.
6 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
8 Tests for module 'unistr/u32-cmp2'.
9 * modules/unistr/u32-cmp2-tests: New file.
10 * tests/unistr/test-u32-cmp2.c: New file.
12 Tests for module 'unistr/u16-cmp2'.
13 * modules/unistr/u16-cmp2-tests: New file.
14 * tests/unistr/test-u16-cmp2.c: New file.
16 Tests for module 'unistr/u8-cmp2'.
17 * modules/unistr/u8-cmp2-tests: New file.
18 * tests/unistr/test-u8-cmp2.c: New file.
19 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
21 Tests for module 'unistr/u32-cmp'.
22 * modules/unistr/u32-cmp-tests: New file.
23 * tests/unistr/test-u32-cmp.c: New file.
25 Tests for module 'unistr/u16-cmp'.
26 * modules/unistr/u16-cmp-tests: New file.
27 * tests/unistr/test-u16-cmp.c: New file.
29 Tests for module 'unistr/u8-cmp'.
30 * modules/unistr/u8-cmp-tests: New file.
31 * tests/unistr/test-u8-cmp.c: New file.
32 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34 Tests for module 'unistr/u32-set'.
35 * modules/unistr/u32-set-tests: New file.
36 * tests/unistr/test-u32-set.c: New file.
38 Tests for module 'unistr/u16-set'.
39 * modules/unistr/u16-set-tests: New file.
40 * tests/unistr/test-u16-set.c: New file.
42 Tests for module 'unistr/u8-set'.
43 * modules/unistr/u8-set-tests: New file.
44 * tests/unistr/test-u8-set.c: New file.
45 * tests/unistr/test-set.h: New file.
47 Tests for module 'unistr/u32-move'.
48 * modules/unistr/u32-move-tests: New file.
49 * tests/unistr/test-u32-move.c: New file.
51 Tests for module 'unistr/u16-move'.
52 * modules/unistr/u16-move-tests: New file.
53 * tests/unistr/test-u16-move.c: New file.
55 Tests for module 'unistr/u8-move'.
56 * modules/unistr/u8-move-tests: New file.
57 * tests/unistr/test-u8-move.c: New file.
58 * tests/unistr/test-move.h: New file.
60 Tests for module 'unistr/u32-cpy'.
61 * modules/unistr/u32-cpy-tests: New file.
62 * tests/unistr/test-u32-cpy.c: New file.
64 Tests for module 'unistr/u16-cpy'.
65 * modules/unistr/u16-cpy-tests: New file.
66 * tests/unistr/test-u16-cpy.c: New file.
68 Tests for module 'unistr/u8-cpy'.
69 * modules/unistr/u8-cpy-tests: New file.
70 * tests/unistr/test-u8-cpy.c: New file.
71 * tests/unistr/test-cpy.h: New file.
73 2010-01-09 Bruno Haible <bruno@clisp.org>
75 Tests for module 'unistr/u32-uctomb'.
76 * modules/unistr/u32-uctomb-tests: New file.
77 * tests/unistr/test-u32-uctomb.c: New file.
79 Tests for module 'unistr/u16-uctomb'.
80 * modules/unistr/u16-uctomb-tests: New file.
81 * tests/unistr/test-u16-uctomb.c: New file.
83 Tests for module 'unistr/u8-uctomb'.
84 * modules/unistr/u8-uctomb-tests: New file.
85 * tests/unistr/test-u8-uctomb.c: New file.
87 Tests for module 'unistr/u32-mbtoucr'.
88 * modules/unistr/u32-mbtoucr-tests: New file.
89 * tests/unistr/test-u32-mbtoucr.c: New file.
91 Tests for module 'unistr/u16-mbtoucr'.
92 * modules/unistr/u16-mbtoucr-tests: New file.
93 * tests/unistr/test-u16-mbtoucr.c: New file.
95 Tests for module 'unistr/u8-mbtoucr'.
96 * modules/unistr/u8-mbtoucr-tests: New file.
97 * tests/unistr/test-u8-mbtoucr.c: New file.
99 Tests for module 'unistr/u32-mbtouc'.
100 * modules/unistr/u32-mbtouc-tests: New file.
101 * tests/unistr/test-u32-mbtouc.c: New file.
103 Tests for module 'unistr/u16-mbtouc'.
104 * modules/unistr/u16-mbtouc-tests: New file.
105 * tests/unistr/test-u16-mbtouc.c: New file.
107 Tests for module 'unistr/u8-mbtouc'.
108 * modules/unistr/u8-mbtouc-tests: New file.
109 * tests/unistr/test-u8-mbtouc.c: New file.
111 Tests for module 'unistr/u32-mbtouc-unsafe'.
112 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
113 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
114 * tests/unistr/test-u32-mbtouc.h: New file.
116 Tests for module 'unistr/u16-mbtouc-unsafe'.
117 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
118 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
119 * tests/unistr/test-u16-mbtouc.h: New file.
121 Tests for module 'unistr/u8-mbtouc-unsafe'.
122 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
123 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
124 * tests/unistr/test-u8-mbtouc.h: New file.
126 Tests for module 'unistr/u32-mblen'.
127 * modules/unistr/u32-mblen-tests: New file.
128 * tests/unistr/test-u32-mblen.c: New file.
130 Tests for module 'unistr/u16-mblen'.
131 * modules/unistr/u16-mblen-tests: New file.
132 * tests/unistr/test-u16-mblen.c: New file.
134 Tests for module 'unistr/u8-mblen'.
135 * modules/unistr/u8-mblen-tests: New file.
136 * tests/unistr/test-u8-mblen.c: New file.
138 Tests for module 'unistr/u32-to-u16'.
139 * modules/unistr/u32-to-u16-tests: New file.
140 * tests/unistr/test-u32-to-u16.c: New file.
142 Tests for module 'unistr/u32-to-u8'.
143 * modules/unistr/u32-to-u8-tests: New file.
144 * tests/unistr/test-u32-to-u8.c: New file.
146 Tests for module 'unistr/u16-to-u32'.
147 * modules/unistr/u16-to-u32-tests: New file.
148 * tests/unistr/test-u16-to-u32.c: New file.
150 Tests for module 'unistr/u16-to-u8'.
151 * modules/unistr/u16-to-u8-tests: New file.
152 * tests/unistr/test-u16-to-u8.c: New file.
154 Tests for module 'unistr/u8-to-u32'.
155 * modules/unistr/u8-to-u32-tests: New file.
156 * tests/unistr/test-u8-to-u32.c: New file.
158 Tests for module 'unistr/u8-to-u16'.
159 * modules/unistr/u8-to-u16-tests: New file.
160 * tests/unistr/test-u8-to-u16.c: New file.
162 Tests for module 'unistr/u32-check'.
163 * modules/unistr/u32-check-tests: New file.
164 * tests/unistr/test-u32-check.c: New file.
166 Tests for module 'unistr/u16-check'.
167 * modules/unistr/u16-check-tests: New file.
168 * tests/unistr/test-u16-check.c: New file.
170 Tests for module 'unistr/u8-check'.
171 * modules/unistr/u8-check-tests: New file.
172 * tests/unistr/test-u8-check.c: New file.
174 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
175 (category_equals): New function.
176 (main): Add more tests.
177 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
179 * tests/unictype/test-bidi_byname.c (main): Add more tests.
181 2010-01-10 Bruno Haible <bruno@clisp.org>
183 unistr/u*-strcoll: Try harder to distinguish different strings.
184 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
185 compare s1 and s2 to see if they are different.
187 2010-01-10 Bruno Haible <bruno@clisp.org>
189 unistr/u*-stpncpy: Fix the return value.
190 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
191 description of the return value consistent with stpncpy in glibc.
192 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
193 written non-NUL unit.
195 2010-01-10 Bruno Haible <bruno@clisp.org>
197 unistr/u*-next: Add missing dependencies.
198 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
199 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
200 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
202 2010-01-10 Bruno Haible <bruno@clisp.org>
204 unistr/u8-mbsnlen: Fix return value for incomplete character.
205 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
207 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
208 Remove unistr/u8-mblen.
209 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
211 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
212 Remove unistr/u16-mblen.
214 2010-01-10 Bruno Haible <bruno@clisp.org>
216 wchar: Fix compilation error when <wchar.h> is used from coreutils.
217 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
218 Reported by Brian Gough <bjg@gnu.org> and
219 Chris Clayton <chris2553@googlemail.com> via
220 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
222 2010-01-09 Bruno Haible <bruno@clisp.org>
224 unistr/u16-to-u32: Reject invalid input.
225 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
227 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
228 Remove unistr/u16-mbtouc.
230 unistr/u16-to-u8: Reject invalid input.
231 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
233 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
234 Remove unistr/u16-mbtouc.
236 unistr/u8-to-u32: Reject invalid input.
237 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
239 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
240 Remove unistr/u8-mbtouc.
242 unistr/u8-to-u16: Reject invalid input.
243 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
245 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
246 Remove unistr/u8-mbtouc.
248 2010-01-09 Bruno Haible <bruno@clisp.org>
250 Tests for module 'getlogin'.
251 * modules/getlogin-tests: New file.
252 * tests/test-getlogin.c: New file.
254 New module 'getlogin'.
255 * lib/unistd.in.h (getlogin): New declaration.
256 * lib/getlogin.c: New file.
257 * m4/getlogin.m4: New file.
258 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
260 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
262 * modules/getlogin: New file.
263 * doc/posix-functions/getlogin.texi: Mention the new module.
264 Reported by John W. Eaton <jwe@gnu.org>.
266 2010-01-09 Bruno Haible <bruno@clisp.org>
268 getlogin_r: Support for native Windows.
269 * lib/getlogin_r.c: Include <windows.h>
270 (getlogin_r): Implement for native Windows.
271 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
272 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
273 via John W. Eaton <jwe@gnu.org>.
275 2010-01-09 Bruno Haible <bruno@clisp.org>
277 getlogin_r: Small fixes.
278 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
280 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
281 before testing whether getlogin_r is declared. No need to set
282 HAVE_DECL_GETLOGIN_R to 1.
283 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
285 2010-01-09 Bruno Haible <bruno@clisp.org>
287 * lib/unistd.in.h (getlogin_r): Add comment.
289 2010-01-09 Bruno Haible <bruno@clisp.org>
291 Tests for module 'getlogin_r'.
292 * modules/getlogin_r-tests: New file.
293 * tests/test-getlogin_r.c: New file.
295 2010-01-09 Jim Meyering <meyering@redhat.com>
297 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
298 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
299 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
301 2010-01-08 Simon Josefsson <simon@josefsson.org>
303 * lib/dup2.c (rpl_dup2): Improve comment.
305 2010-01-08 Eric Blake <ebb9@byu.net>
307 maint.mk: allow packages to add makefile @@ exceptions
308 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
309 (sc_makefile_check): Rename...
310 (sc_makefile_at_at_check): ...to this, and use hook.
312 dup2: work around mingw bug
313 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
314 Reported by Simon Josefsson.
316 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
318 glob: Fix C++ compilation.
319 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
322 2010-01-07 Bruno Haible <bruno@clisp.org>
324 Fix indentation of wctype.in.h, broken since 2007-01-06.
325 * lib/wctype.in.h: Fix indentation of preprocessor directives.
327 2010-01-07 Bruno Haible <bruno@clisp.org>
329 mbslen: Avoid collision with system function.
330 * lib/string.in.h [MirBSD]: Include <wchar.h>.
331 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
332 * m4/mbslen.m4: New file.
333 * modules/mbslen (Files): Add it.
334 (configure.ac): Invoke gl_MBSLEN.
335 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
336 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
337 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
338 via Ian Beckwith <ianb@erislabs.net>.
340 2010-01-07 Bruno Haible <bruno@clisp.org>
342 dirent: Document the last fix.
343 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
345 2010-01-07 Bruno Haible <bruno@clisp.org>
347 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
348 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
349 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
351 * doc/posix-headers/stdio.texi: Document the bug of missing types.
352 Reported by Eric Blake.
354 2010-01-07 Bruno Haible <bruno@clisp.org>
356 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
357 * modules/xlist (Depends-on): Add 'list',
358 * modules/xoset (Depends-on): Add 'oset'.
359 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
361 2010-01-07 Bruno Haible <bruno@clisp.org>
363 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
364 * doc/posix-functions/strncasecmp.texi: Likewise.
366 2010-01-07 Bruno Haible <bruno@clisp.org>
368 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
370 2010-01-07 John W. Eaton <jwe@octave.org>
372 wctype: allow C++ use
373 * lib/wctype.in.h: Add extern "C" block for C++.
375 2010-01-06 Eric Blake <ebb9@byu.net>
377 maint.mk: detect incorrect GFDL usage
378 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
380 2010-01-06 Jim Meyering <meyering@redhat.com>
381 and Eric Blake <ebb9@byu.net>
383 maint.mk: ignore multi-line copyright in NEWS
384 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
386 2010-01-06 Eric Blake <ebb9@byu.net>
388 select: add missing dependency
389 * modules/select-tests (Depends-on): Move sockets dependency...
390 * modules/select (Depends-on): ...here.
391 Reported by Ian Beckwith.
393 doc: regenerate INSTALL
394 * doc/INSTALL: Reflect recent autoconf update.
395 * doc/INSTALL.ISO: Likewise.
396 * doc/INSTALL.UTF-8: Likewise.
398 pread: fix compilation on glibc
399 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
400 Reported by Ralf Wildenhues.
402 dirent: fix test failure
403 * lib/dirent.in.h (includes): Guarantee ino_t.
404 Reported by Ralf Wildenhues.
406 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
408 linkat, renameat: avoid bad free
409 * lib/at-func2.c (at_func2): Fix typo.
410 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
412 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
414 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
415 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
416 to avoid failure of symlink test later.
418 2010-01-06 Eric Blake <ebb9@byu.net>
420 stdio, unistd: guarantee ssize_t
421 * lib/unistd.in.h (includes): Ensure that types required by POSIX
422 2008 are exposed when needed.
423 * lib/stdio.in.h (includes): Likewise.
424 Reported by Ralf Wildenhues.
426 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
428 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
429 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
430 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
432 2010-01-06 Jim Meyering <meyering@redhat.com>
434 readtokens: this module *does* require xalloc.h
435 It uses only functions that were omitted by the old syntax-check rule.
436 * lib/readtokens.c: Include "xalloc.h" once again.
437 * modules/readtokens (Depends-on): Add xalloc.
438 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
440 2010-01-05 Eric Blake <ebb9@byu.net>
442 maint: support 'make announcement' from a VPATH build
443 * top/maint.mk (announcement): Look for correct NEWS file.
445 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
447 utimens (fdutimens): ignore a negative FD, per contract
448 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
449 when we have a valid file descriptor. Otherwise, using a brand
450 new glibc (with just-patched futimens that now fails with EBADF)
451 would cause this function to fail with ENOSYS.
452 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
453 See also http://bugzilla.redhat.com/552320.
455 2010-01-05 Eric Blake <ebb9@byu.net>
457 strcase: document what it provides
458 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
460 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
461 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
463 2010-01-05 Jim Meyering <meyering@redhat.com>
465 maint: remove useless inclusions of "xalloc.h"
466 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
467 * lib/readtokens.c: Likewise.
468 * lib/same.c: Likewise.
469 * modules/getloadavg (Depends-on): Remove xalloc.
470 * modules/readtokens: Likewise.
471 * modules/same: Likewise.
473 maint.mk: include 4 more function names in alloca.h-checking regexp
474 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
475 regexp. Before, we would give a false-positive (saying alloca.h
476 is included unnecessarily) when the only uses involved omitted symbols.
478 xalloc.h: use consistent formatting
479 * lib/xalloc.h: Move declarations to start in the first column.
481 2010-01-05 Eric Blake <ebb9@byu.net>
484 * lib/mkdir.c (includes): Drop unused header.
485 Reported by John W. Eaton.
487 2010-01-04 Jim Meyering <meyering@redhat.com>
489 nl_langinfo: avoid configure-time syntax error
490 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
491 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
492 the empty string. Don't let that provoke a shell syntax error.
494 regcomp, regexec, fnmatch: avoid array bounds read error
495 * lib/regcomp.c (build_equiv_class): From glibc:
496 Use only the low 24 bits of a findidx return value as an index
497 into the weights array. Patch by Ulrich Drepper:
498 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
499 * lib/regexec.c (check_node_accept_bytes): Likewise.
500 * lib/fnmatch_loop.c (FCT): Likewise.
502 regcomp: skip collseq lookup when there are no rules
503 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
504 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
506 regcomp: recognize ill-formed { } expressions
507 * lib/regcomp.c (parse_dup_op): From glibc:
508 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
510 regcomp: fix typo in comment
511 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
512 s/satisfy/satisfies/.
514 regcomp: sync from glibc: remove dead store
515 * lib/regcomp.c (duplicate_node_closure): Remove useless
516 search_duplicated_node call and dead store.
518 regcomp: sync from glibc; always use nl_langinfo
519 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
520 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
521 * modules/regex (Depends-on): Add nl_langinfo.
523 2010-01-04 Eric Blake <ebb9@byu.net>
525 fdopendir: fix configure test
526 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
528 2010-01-01 Bruno Haible <bruno@clisp.org>
530 wchar: Remove unused configure check.
531 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
533 2010-01-01 Eric Blake <ebb9@byu.net>
535 headers: make check of system header explicit
536 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
537 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
539 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
540 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
541 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
542 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
544 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
546 Suggested by Bruno Haible.
548 2010-01-01 Jim Meyering <meyering@redhat.com>
550 ChangeLog: tweak to eliminate unnecessary copyright line
551 * ChangeLog: Remove a copyright line that was mistakenly updated
552 by today's update-copyright run. Reported by Eric Blake.
554 test-update-copyright: don't let envvar setting cause test failure
555 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
557 2010-01-01 Bruno Haible <bruno@clisp.org>
559 localename: Avoid gcc warning.
560 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
561 function if it is not used.
563 2010-01-01 Jim Meyering <meyering@redhat.com>
565 update nearly all FSF copyright year lists to include 2010
566 Use the same procedure as for 2009, outlined in
567 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
569 version-etc: set COPYRIGHT_YEAR to 2010
570 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
572 2009-12-31 Eric Blake <ebb9@byu.net>
574 doc: correct availability of cygwin 1.5.x getopt
575 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
577 * doc/posix-functions/opterr.texi (opterr): Likewise.
578 * doc/posix-functions/optind.texi (optind): Likewise.
579 * doc/posix-functions/optopt.texi (optopt): Likewise.
580 * doc/posix-functions/tzname.texi (tzname): Likewise.
582 openat: update maintainer
583 * modules/openat (Maintainer): Add myself.
585 utimens: avoid shadowing warning
586 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
587 buffers into one, to avoid shadowing, as well as avoiding a
589 Reported by Jim Meyering.
591 test-dup2: avoid compiler warning
592 * tests/test-dup2.c (is_inheritable): Only define if used.
594 2010-01-01 Bruno Haible <bruno@clisp.org>
596 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
597 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
598 defined, use wctomb instead of wcrtomb.
600 2010-01-01 Bruno Haible <bruno@clisp.org>
602 iconv: Reject native Solaris iconv.
603 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
604 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
606 2009-12-31 Bruno Haible <bruno@clisp.org>
608 * tests/test-signal.c (main): Remove test of 'SIG'.
610 2009-12-31 Bruno Haible <bruno@clisp.org>
612 spawn: Fix incomplete fix.
613 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
614 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
615 warnings for GNULIB_POSIXCHECK again.
616 Reported by Eric Blake.
618 2009-12-31 Bruno Haible <bruno@clisp.org>
620 Avoid namespace pollution on glibc systems.
621 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
622 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
623 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
626 2009-12-31 Bruno Haible <bruno@clisp.org>
628 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
629 (gl_REPLACE_WCHAR_H): Turn into a no-op.
630 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
631 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
632 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
633 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
634 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
636 2009-12-31 Bruno Haible <bruno@clisp.org>
638 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
639 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
642 2009-12-31 Bruno Haible <bruno@clisp.org>
644 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
647 2009-12-31 Bruno Haible <bruno@clisp.org>
649 spawn: Fix misapplied patch.
650 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
651 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
652 warnings for GNULIB_POSIXCHECK.
654 2009-12-31 Bruno Haible <bruno@clisp.org>
656 times: Update after sys_times changed.
657 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
658 * modules/times (Files): Add it.
659 (configure.ac): Invoke gl_FUNC_TIMES.
661 2009-12-31 Bruno Haible <bruno@clisp.org>
663 Use AC_C_INLINE where necessary.
664 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
665 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
666 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
667 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
668 * m4/mbfile.m4 (gl_MBFILE): Likewise.
669 * m4/mbiter.m4 (gl_MBITER): Likewise.
670 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
671 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
672 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
673 * modules/u64 (configure.ac): Likewise.
675 2009-12-31 Bruno Haible <bruno@clisp.org>
677 Use AC_C_INLINE instead of module 'inline' where possible.
678 * modules/inline (Description): Clarify purpose.
679 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
680 * modules/count-one-bits (Depends-on): Remove inline.
681 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
682 * modules/openat (Depends-on): Remove inline.
683 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
684 instead of depending on module 'inline'.
685 * modules/filevercmp (Depends-on, configure.ac): Likewise.
686 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
687 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
688 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
689 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
690 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
691 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
692 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
693 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
694 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
695 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
696 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
697 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
698 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
699 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
700 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
701 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
702 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
704 * modules/unictype/property-ascii-hex-digit (Depends-on,
705 configure.ac): Likewise.
706 * modules/unictype/property-bidi-arabic-digit (Depends-on,
707 configure.ac): Likewise.
708 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
709 configure.ac): Likewise.
710 * modules/unictype/property-bidi-block-separator (Depends-on,
711 configure.ac): Likewise.
712 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
713 configure.ac): Likewise.
714 * modules/unictype/property-bidi-common-separator (Depends-on,
715 configure.ac): Likewise.
716 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
718 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
719 configure.ac): Likewise.
720 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
721 configure.ac): Likewise.
722 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
723 configure.ac): Likewise.
724 * modules/unictype/property-bidi-european-digit (Depends-on,
725 configure.ac): Likewise.
726 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
727 configure.ac): Likewise.
728 * modules/unictype/property-bidi-left-to-right (Depends-on,
729 configure.ac): Likewise.
730 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
731 configure.ac): Likewise.
732 * modules/unictype/property-bidi-other-neutral (Depends-on,
733 configure.ac): Likewise.
734 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
736 * modules/unictype/property-bidi-segment-separator (Depends-on,
737 configure.ac): Likewise.
738 * modules/unictype/property-bidi-whitespace (Depends-on,
739 configure.ac): Likewise.
740 * modules/unictype/property-combining (Depends-on, configure.ac):
742 * modules/unictype/property-composite (Depends-on, configure.ac):
744 * modules/unictype/property-currency-symbol (Depends-on,
745 configure.ac): Likewise.
746 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
747 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
749 * modules/unictype/property-default-ignorable-code-point (Depends-on,
750 configure.ac): Likewise.
751 * modules/unictype/property-deprecated (Depends-on, configure.ac):
753 * modules/unictype/property-diacritic (Depends-on, configure.ac):
755 * modules/unictype/property-extender (Depends-on, configure.ac):
757 * modules/unictype/property-format-control (Depends-on, configure.ac):
759 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
761 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
763 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
765 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
767 * modules/unictype/property-hyphen (Depends-on, configure.ac):
769 * modules/unictype/property-id-continue (Depends-on, configure.ac):
771 * modules/unictype/property-id-start (Depends-on, configure.ac):
773 * modules/unictype/property-ideographic (Depends-on, configure.ac):
775 * modules/unictype/property-ids-binary-operator (Depends-on,
776 configure.ac): Likewise.
777 * modules/unictype/property-ids-trinary-operator (Depends-on,
778 configure.ac): Likewise.
779 * modules/unictype/property-ignorable-control (Depends-on,
780 configure.ac): Likewise.
781 * modules/unictype/property-iso-control (Depends-on, configure.ac):
783 * modules/unictype/property-join-control (Depends-on, configure.ac):
785 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
787 * modules/unictype/property-line-separator (Depends-on, configure.ac):
789 * modules/unictype/property-logical-order-exception (Depends-on,
790 configure.ac): Likewise.
791 * modules/unictype/property-lowercase (Depends-on, configure.ac):
793 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
794 * modules/unictype/property-non-break (Depends-on, configure.ac):
796 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
798 * modules/unictype/property-numeric (Depends-on, configure.ac):
800 * modules/unictype/property-other-alphabetic (Depends-on,
801 configure.ac): Likewise.
802 * modules/unictype/property-other-default-ignorable-code-point
803 (Depends-on, configure.ac): Likewise.
804 * modules/unictype/property-other-grapheme-extend (Depends-on,
805 configure.ac): Likewise.
806 * modules/unictype/property-other-id-continue (Depends-on,
807 configure.ac): Likewise.
808 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
810 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
812 * modules/unictype/property-other-math (Depends-on, configure.ac):
814 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
816 * modules/unictype/property-paired-punctuation (Depends-on,
817 configure.ac): Likewise.
818 * modules/unictype/property-paragraph-separator (Depends-on,
819 configure.ac): Likewise.
820 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
822 * modules/unictype/property-pattern-white-space (Depends-on,
823 configure.ac): Likewise.
824 * modules/unictype/property-private-use (Depends-on, configure.ac):
826 * modules/unictype/property-punctuation (Depends-on, configure.ac):
828 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
830 * modules/unictype/property-radical (Depends-on, configure.ac):
832 * modules/unictype/property-sentence-terminal (Depends-on,
833 configure.ac): Likewise.
834 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
836 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
837 * modules/unictype/property-terminal-punctuation (Depends-on,
838 configure.ac): Likewise.
839 * modules/unictype/property-titlecase (Depends-on, configure.ac):
841 * modules/unictype/property-unassigned-code-value (Depends-on,
842 configure.ac): Likewise.
843 * modules/unictype/property-unified-ideograph (Depends-on,
844 configure.ac): Likewise.
845 * modules/unictype/property-uppercase (Depends-on, configure.ac):
847 * modules/unictype/property-variation-selector (Depends-on,
848 configure.ac): Likewise.
849 * modules/unictype/property-white-space (Depends-on, configure.ac):
851 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
853 * modules/unictype/property-xid-start (Depends-on, configure.ac):
855 * modules/unictype/property-zero-width (Depends-on, configure.ac):
857 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
858 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
861 2009-12-31 Bruno Haible <bruno@clisp.org>
863 Remove unnecessary AC_C_INLINE invocation.
864 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
867 2009-12-31 Jim Meyering <meyering@redhat.com>
869 maint.mk: don't require explicit gpg_key_ID in cfg.mk
870 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
871 With this change, we can all remove the gpg_key_ID = ... definition
872 from our respective cfg.mk files.
874 maint.mk: create announcement template in ~/, not in /tmp
875 * top/maint.mk (emit_upload_commands): Adjust.
876 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
877 Remove temporary file, .ci-msg.
879 2009-12-31 Eric Blake <ebb9@byu.net>
881 link-warning: always build headers with link warnings
882 * modules/arpa_inet (Makefile.am): Always build replacement
884 * modules/ctype (Makefile.am): Likewise.
885 * modules/dirent (Makefile.am): Likewise.
886 * modules/inttypes (Makefile.am): Likewise.
887 * modules/langinfo (Makefile.am): Likewise.
888 * modules/locale (Makefile.am): Likewise.
889 * modules/spawn (Makefile.am): Likewise.
890 * modules/sys_file (Makefile.am): Likewise.
891 * modules/sys_ioctl (Makefile.am): Likewise.
892 * modules/sys_select (Makefile.am): Likewise.
893 * modules/sys_socket (Makefile.am): Likewise.
894 * modules/sys_times (Makefile.am): Likewise.
895 * modules/sys_utsname (Makefile.am): Likewise.
896 * modules/sys_wait (Makefile.am): Likewise.
897 * modules/wchar (Makefile.am): Likewise.
898 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
899 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
900 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
901 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
902 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
904 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
905 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
906 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
908 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
910 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
911 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
912 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
913 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
914 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
915 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
916 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
917 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
918 (gl_WCHAR_H_DEFAULTS): Likewise.
920 2009-12-31 Eric Blake <ebb9@byu.net>
922 signal, spawn: use link warnings
923 * lib/signal.in.h (sigset_t): Make unconditional.
924 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
925 (sigpending, sigprocmask, sigaction): Add link warnings.
926 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
927 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
928 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
929 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
930 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
931 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
932 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
933 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
934 (posix_spawn_file_actions_destroy)
935 (posix_spawn_file_actions_addopen)
936 (posix_spawn_file_actions_addclose)
937 (posix_spawwn_file_actions_adddup2): Likewise.
938 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
939 * tests/test-signal.c (main): Enhance test.
941 spawn: improve wrapper support
942 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
943 (gl_SPAWN_H_DEFAULTS): New defaults.
944 * modules/spawn (Makefile.am): Substitute them.
945 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
946 Only declare if missing or broken.
948 sys_times, sys_utsname: use include_next
949 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
951 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
952 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
953 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
954 * modules/sys_times (Depends-on): Add include_next.
955 (Makefile.am): Substitute additional values.
956 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
957 * lib/sys_times.in.h (includes): Include native header, if
959 * lib/sys_utsname.in.h (includes): Likewise.
960 * tests/test-sys_times.c (main): Enhance test.
962 fdutimensat: revert prior patch
963 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
965 Reported by Bruno Haible.
967 2009-12-30 Eric Blake <ebb9@byu.net>
969 sys_wait: drop link-warning dependency
970 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
971 link-warning efforts.
972 * lib/sys_wait.in.h: Likewise.
974 fdutimensat: remove bogus dependency
975 * modules/fdutimensat (Depends-on): Drop inline.
978 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
980 2009-12-30 Bruno Haible <bruno@clisp.org>
982 Fix compilation error with Solaris cc.
983 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
984 * lib/unicase/u16-is-invariant.c: Likewise.
985 * lib/unicase/u32-is-invariant.c: Likewise.
986 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
988 2009-12-30 Bruno Haible <bruno@clisp.org>
991 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
993 Reported by Simon Josefsson <simon@josefsson.org>.
995 2009-12-30 Bruno Haible <bruno@clisp.org>
997 Fix compilation error on most platforms.
998 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
999 Reported by Simon Josefsson <simon@josefsson.org>
1000 and Nelson H. F. Beebe <beebe@math.utah.edu>.
1002 2009-12-30 Eric Blake <ebb9@byu.net>
1004 futimens, utimensat: work around ntfs-3g bug
1005 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
1006 a ctime bug is present, and expand workaround to cover ntfs-3g.
1007 * lib/utimens.c (fdutimens, lutimens): Likewise.
1008 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
1009 (validate_timespec): Adjust return value.
1010 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
1011 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1012 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
1014 2009-12-29 Eric Blake <ebb9@byu.net>
1016 link-warning: make usage consistent
1017 * modules/ctype (Depends-on): Add link-warning.
1018 (Makefile.am): Update rules accordingly.
1019 * modules/langinfo (Depends-on, Makefile.am): Likewise.
1020 * modules/locale (Depends-on, Makefile.am): Likewise.
1021 * modules/sys_file (Makefile.am): Likewise.
1022 * modules/getopt-posix (Makefile.am): Delete unused link warning
1024 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
1025 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
1026 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
1027 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
1029 stdio: remove unused variables
1030 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
1031 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
1032 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1034 tests: test more substitute headers
1035 * modules/ctype-tests: New file.
1036 * modules/dirent-tests: Likewise.
1037 * modules/spawn-tests: Likewise.
1038 * modules/sys_file-tests: Likewise.
1039 * modules/sys_ioctl-tests: Likewise.
1040 * modules/sys_wait-tests: Likewise.
1041 * tests/test-ctype.c: Likewise.
1042 * tests/test-dirent.c: Likewise.
1043 * tests/test-spawn.c: Likewise.
1044 * tests/test-sys_file.c: Likewise.
1045 * tests/test-sys_ioctl.c: Likewise.
1046 * tests/test-sys_wait.c: Likewise.
1047 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
1048 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
1049 whether or not flock is in use.
1051 tests: remove License section from module
1052 * modules/arpa_inet-tests: Remove unneeded section.
1053 * modules/byteswap-tests: Likewise.
1054 * modules/ceilf-tests: Likewise.
1055 * modules/ceill-tests: Likewise.
1056 * modules/crypto/des-tests: Likewise.
1057 * modules/crypto/gc-arcfour-tests: Likewise.
1058 * modules/crypto/gc-arctwo-tests: Likewise.
1059 * modules/crypto/gc-des-tests: Likewise.
1060 * modules/crypto/gc-hmac-md5-tests: Likewise.
1061 * modules/crypto/gc-hmac-sha1-tests: Likewise.
1062 * modules/crypto/gc-md2-tests: Likewise.
1063 * modules/crypto/gc-md4-tests: Likewise.
1064 * modules/crypto/gc-md5-tests: Likewise.
1065 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
1066 * modules/crypto/gc-rijndael-tests: Likewise.
1067 * modules/crypto/gc-sha1-tests: Likewise.
1068 * modules/crypto/gc-tests: Likewise.
1069 * modules/crypto/md2-tests: Likewise.
1070 * modules/crypto/md4-tests: Likewise.
1071 * modules/fcntl-h-tests: Likewise.
1072 * modules/floorf-tests: Likewise.
1073 * modules/floorl-tests: Likewise.
1074 * modules/frexp-nolibm-tests: Likewise.
1075 * modules/frexp-tests: Likewise.
1076 * modules/frexpl-nolibm-tests: Likewise.
1077 * modules/frexpl-tests: Likewise.
1078 * modules/getaddrinfo-tests: Likewise.
1079 * modules/inttypes-tests: Likewise.
1080 * modules/isfinite-tests: Likewise.
1081 * modules/isinf-tests: Likewise.
1082 * modules/ldexpl-tests: Likewise.
1083 * modules/locale-tests: Likewise.
1084 * modules/math-tests: Likewise.
1085 * modules/netdb-tests: Likewise.
1086 * modules/netinet_in-tests: Likewise.
1087 * modules/printf-frexp-tests: Likewise.
1088 * modules/printf-frexpl-tests: Likewise.
1089 * modules/priv-set-tests: Likewise.
1090 * modules/random_r-tests: Likewise.
1091 * modules/round-tests: Likewise.
1092 * modules/roundf-tests: Likewise.
1093 * modules/roundl-tests: Likewise.
1094 * modules/search-tests: Likewise.
1095 * modules/select-tests: Likewise.
1096 * modules/signal-tests: Likewise.
1097 * modules/stdbool-tests: Likewise.
1098 * modules/stddef-tests: Likewise.
1099 * modules/stdint-tests: Likewise.
1100 * modules/stdio-tests: Likewise.
1101 * modules/stdlib-tests: Likewise.
1102 * modules/string-tests: Likewise.
1103 * modules/strings-tests: Likewise.
1104 * modules/sys_select-tests: Likewise.
1105 * modules/sys_socket-tests: Likewise.
1106 * modules/sys_stat-tests: Likewise.
1107 * modules/sys_time-tests: Likewise.
1108 * modules/sys_utsname-tests: Likewise.
1109 * modules/sysexits-tests: Likewise.
1110 * modules/time-tests: Likewise.
1111 * modules/trunc-tests: Likewise.
1112 * modules/truncf-tests: Likewise.
1113 * modules/truncl-tests: Likewise.
1114 * modules/tsearch-tests: Likewise.
1115 * modules/unistd-tests: Likewise.
1116 * modules/wchar-tests: Likewise.
1117 * modules/wctype-tests: Likewise.
1119 tests: fix license on several tests
1120 * tests/test-des.c: Update to GPLv3+.
1121 * tests/test-flock.c: Likewise.
1122 * tests/test-fsync.c: Likewise.
1123 * tests/test-futimens.h: Likewise.
1124 * tests/test-gc-arcfour.c: Likewise.
1125 * tests/test-gc-arctwo.c: Likewise.
1126 * tests/test-gc-des.c: Likewise.
1127 * tests/test-gc-hmac-md5.c: Likewise.
1128 * tests/test-gc-hmac-sha1.c: Likewise.
1129 * tests/test-gc-md2.c: Likewise.
1130 * tests/test-gc-md4.c: Likewise.
1131 * tests/test-gc-md5.c: Likewise.
1132 * tests/test-gc-pbkdf2-sha1.c: Likewise.
1133 * tests/test-gc-rijndael.c: Likewise.
1134 * tests/test-gc-sha1.c: Likewise.
1135 * tests/test-gc.c: Likewise.
1136 * tests/test-getcwd.c: Likewise.
1137 * tests/test-link.c: Likewise.
1138 * tests/test-link.h: Likewise.
1139 * tests/test-lutimens.h: Likewise.
1140 * tests/test-md2.c: Likewise.
1141 * tests/test-md4.c: Likewise.
1142 * tests/test-mkdir.h: Likewise.
1143 * tests/test-rename.c: Likewise.
1144 * tests/test-rename.h: Likewise.
1145 * tests/test-safe-alloc.c: Likewise.
1146 * tests/test-utimens-common.h: Likewise.
1147 * tests/test-utimens.h: Likewise.
1149 maint: sync license texts
1150 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
1151 * doc/gpl-3.0.texi: Revert copyright year update.
1152 * doc/lgpl-3.0.texi: Likewise.
1154 2009-12-29 Jim Meyering <meyering@redhat.com>
1156 update nearly all FSF copyright year lists to include 2009
1157 The files named by the following are exempted:
1158 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
1159 test -f "$dst" && { echo "$dst"; continue; }
1160 test -d "$dst" || continue
1161 echo "$dst"/$(basename "$src")
1163 git ls-files tests/unictype >> exempt
1164 In the remaining files, convert to all-interval notation if
1165 - there is already at least one year interval like 2000-2003
1166 - the file is maintained by me
1167 - the file is in lib/uni*/, where that style already prevails
1168 Otherwise, use update-copyright's default.
1170 2009-12-29 Simon Josefsson <simon@josefsson.org>
1171 and Eric Blake <ebb9@byu.net>
1173 tests: don't require debug system() to pass
1174 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
1175 * tests/test-rmdir.h (test_rmdir_func): Likewise.
1176 * tests/test-unlink.h (test_unlink_func): Likewise.
1177 * tests/test-fstatat.c (main): ...into callers.
1178 * tests/test-lstat.c (main): Likewise.
1179 * tests/test-rmdir.c (main): Likewise.
1180 * tests/test-unlink.c (main): Likewise.
1181 * tests/test-unlinkat.c (main): Likewise.
1182 * tests/test-areadlink-with-size.c (main): Don't require a
1183 debug-only system call to pass, aiding cross-testing to mingw.
1184 * tests/test-areadlink.c (main): Likewise.
1185 * tests/test-areadlinkat-with-size.c (main): Likewise.
1186 * tests/test-areadlinkat.c (main): Likewise.
1187 * tests/test-canonicalize-lgpl.c (main): Likewise.
1188 * tests/test-canonicalize.c (main): Likewise.
1189 * tests/test-chown.c (main): Likewise.
1190 * tests/test-fchownat.c (main): Likewise.
1191 * tests/test-lchown.c (main): Likewise.
1192 * tests/test-fdutimensat.c (main): Likewise.
1193 * tests/test-futimens.c (main): Likewise.
1194 * tests/test-link.c (main): Likewise.
1195 * tests/test-linkat.c (main): Likewise.
1196 * tests/test-mkdir.c (main): Likewise.
1197 * tests/test-mkdirat.c (main): Likewise.
1198 * tests/test-mkfifo.c (main): Likewise.
1199 * tests/test-mkfifoat.c (main): Likewise.
1200 * tests/test-mknod.c (main): Likewise.
1201 * tests/test-readlink.c (main): Likewise.
1202 * tests/test-remove.c (main): Likewise.
1203 * tests/test-rename.c (main): Likewise.
1204 * tests/test-renameat.c (main): Likewise.
1205 * tests/test-symlink.c (main): Likewise.
1206 * tests/test-symlinkat.c (main): Likewise.
1207 * tests/test-utimens.c (main): Likewise.
1208 * tests/test-utimensat.c (main): Likewise.
1210 2009-12-29 Simon Josefsson <simon@josefsson.org>
1212 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
1213 on $(UNUSED_PARAMETER_H) to avoid build failure.
1215 2009-12-28 Jim Meyering <meyering@redhat.com>
1217 update-copyright: you may specify a max. line length other than 72
1218 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
1220 maint: use consistent FSF copyright line syntax
1221 * lib/posixtm.c: Add missing comma in FSF copyright line.
1222 * lib/posixtm.h: Likewise.
1223 * lib/getugroups.c: Add missing ", Inc.".
1225 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
1226 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
1227 FSF copyright line. Remove trailing blanks.
1229 2009-12-28 Eric Blake <ebb9@byu.net>
1231 test-dup2: reduce dependencies
1232 * modules/cloexec (Configure.ac): Set witness.
1233 * modules/dup2-tests (Depends-on): Drop cloexec.
1234 * tests/test-dup2.c (main): Skip portion of test if cloexec module
1236 Suggested by Bruno Haible.
1238 2009-12-26 Bruno Haible <bruno@clisp.org>
1240 Remove an unneeded dependency.
1241 * modules/fseterr (Depends-on): Remove dup2.
1243 2009-12-26 Eric Blake <ebb9@byu.net>
1245 tests: use macros.h in more places
1246 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
1247 (ASSERT_STREAM): Provide default of stderr.
1248 * tests/test-dirent-safer.c: Include macros.h, using alternate
1249 stream for assertions.
1250 * tests/test-dup-safer.c: Likewise.
1251 * tests/test-freopen-safer.c: Likewise.
1252 * tests/test-getopt.c: Likewise.
1253 * tests/test-openat-safer.c: Likewise.
1254 * tests/test-pipe.c: Likewise.
1255 * tests/test-popen-safer.c: Likewise.
1256 * modules/dirent-safer-tests (Files): Include macros.h.
1257 * modules/unistd-safer-tests (Files): Likewise.
1258 * modules/freopen-safer-tests (Files): Likewise.
1259 * modules/getopt-posix-tests (Files): Likewise.
1260 * modules/openat-safer-tests (Files): Likewise.
1261 * modules/pipe-tests (Files): Likewise.
1263 2009-12-26 Bruno Haible <bruno@clisp.org>
1265 javacomp: Portability fix.
1266 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
1267 that it also works on Solaris.
1269 2009-12-26 Bruno Haible <bruno@clisp.org>
1271 localename: Fix storage allocation of gl_locale_name_thread's result.
1272 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
1273 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
1274 all platforms that have 'uselocale'.
1275 (gl_locale_name_thread_unsafe): New function, extracted from
1276 gl_locale_name_thread.
1277 (gl_locale_name_thread): Call struniq on all platforms that have
1279 * tests/test-localename.c (test_locale_name_thread): Check that the
1280 resulting strings are permanently allocated.
1281 * modules/localename-tests (Depends-on): Add strdup.
1283 2009-12-26 Bruno Haible <bruno@clisp.org>
1285 * tests/test-localename.c (categories): Fill in the strings.
1287 2009-12-26 Jim Meyering <meyering@redhat.com>
1289 isdir: complete the removal of m4/isdir.m4
1290 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
1292 isdir: clean up, since at least grep still uses it
1293 * lib/isdir.c: Include "isdir.h".
1294 (S_ISDIR): Remove now-unneeded definition.
1295 * modules/isdir (Files): Add lib/isdir.h.
1296 * lib/isdir.h: New file, with declaration.
1297 * m4/isdir.m4: Remove file -- unneeded.
1299 2009-12-25 Bruno Haible <bruno@clisp.org>
1301 selinux-h: Make generated .h files standalone.
1302 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
1303 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
1304 * lib/se-selinux.in.h: Likewise.
1305 * modules/selinux-h (Depends-on): Add unused-parameter.
1306 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
1307 selinux/selinux.h and selinux/context.h.
1308 Suggested by Eric Blake.
1310 2009-12-25 Bruno Haible <bruno@clisp.org>
1312 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
1313 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
1314 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
1315 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
1316 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
1318 2009-12-24 Bruno Haible <bruno@clisp.org>
1320 openat: Fix warning.
1321 * lib/openat-proc.c: Include <unistd.h>.
1323 2009-12-24 Bruno Haible <bruno@clisp.org>
1325 New module 'unused-parameter'.
1326 * build-aux/unused-parameter.h: New file, extracted from earlier
1328 * modules/unused-parameter: New file.
1329 * lib/unistr.h: Include unused-parameter.h.
1330 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
1332 * modules/unistr/base (Depends-on): Add unused-parameter.
1334 2009-12-24 Bruno Haible <bruno@clisp.org>
1336 Add missing dependencies to 'extensions' module.
1337 * m4/extensions.m4: Add comment.
1338 * modules/accept4 (Depends-on): Add extensions.
1339 * modules/dup3 (Depends-on): Likewise.
1340 * modules/fcntl (Depends-on): Likewise.
1341 * modules/futimens (Depends-on): Likewise.
1342 * modules/mknod (Depends-on): Likewise.
1343 * modules/pipe2 (Depends-on): Likewise.
1344 * modules/stat-time (Depends-on): Likewise.
1345 * modules/strcasestr-simple (Depends-on): Likewise.
1346 * modules/strsignal (Depends-on): Likewise.
1347 * modules/utimensat (Depends-on): Likewise.
1348 * modules/localcharset (Depends-on): Likewise. Needed because of
1350 * modules/wcrtomb (Depends-on): Likewise. Needed because of
1352 * modules/wcsnrtombs (Depends-on): Likewise.
1353 * modules/wcsrtombs (Depends-on): Likewise.
1355 2009-12-24 Bruno Haible <bruno@clisp.org>
1357 binary-io: Avoid gcc warning due to SET_BINARY.
1358 * lib/binary-io.h (SET_BINARY): Cast the result to void.
1359 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
1361 2009-12-24 Bruno Haible <bruno@clisp.org>
1363 Avoid future namespace pollution on glibc systems.
1364 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
1365 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
1366 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
1369 2009-12-24 Bruno Haible <bruno@clisp.org>
1371 Refactor common macros used in tests.
1372 * tests/macros.h: New file.
1373 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
1374 and/or <stdlib.h>, if appropriate.
1375 (ASSERT, SIZEOF): Remove macros.
1376 * tests/test-areadlink-with-size.c: Likewise.
1377 * tests/test-areadlinkat.c: Likewise.
1378 * tests/test-areadlinkat-with-size.c: Likewise.
1379 * tests/test-argmatch.c: Likewise.
1380 * tests/test-argv-iter.c: Likewise.
1381 * tests/test-array-mergesort.c: Likewise.
1382 * tests/test-array_list.c: Likewise.
1383 * tests/test-array_oset.c: Likewise.
1384 * tests/test-avltree_list.c: Likewise.
1385 * tests/test-avltree_oset.c: Likewise.
1386 * tests/test-avltreehash_list.c: Likewise.
1387 * tests/test-base64.c: Likewise.
1388 * tests/test-binary-io.c: Likewise.
1389 * tests/test-bitrotate.c: Likewise.
1390 * tests/test-btowc.c: Likewise.
1391 * tests/test-byteswap.c: Likewise.
1392 * tests/test-c-ctype.c: Likewise.
1393 * tests/test-c-stack.c: Likewise.
1394 * tests/test-c-strcasecmp.c: Likewise.
1395 * tests/test-c-strcasestr.c: Likewise.
1396 * tests/test-c-strncasecmp.c: Likewise.
1397 * tests/test-c-strstr.c: Likewise.
1398 * tests/test-canonicalize-lgpl.c: Likewise.
1399 * tests/test-canonicalize.c: Likewise.
1400 * tests/test-carray_list.c: Likewise.
1401 * tests/test-ceilf1.c: Likewise.
1402 * tests/test-ceilf2.c: Likewise.
1403 * tests/test-ceill.c: Likewise.
1404 * tests/test-chown.c: Likewise.
1405 * tests/test-cloexec.c: Likewise.
1406 * tests/test-copy-acl.c: Likewise.
1407 * tests/test-copy-file.c: Likewise.
1408 * tests/test-count-one-bits.c: Likewise.
1409 * tests/test-dprintf-posix.c: Likewise.
1410 * tests/test-dup2.c: Likewise.
1411 * tests/test-dup3.c: Likewise.
1412 * tests/test-duplocale.c: Likewise.
1413 * tests/test-fbufmode.c: Likewise.
1414 * tests/test-fchdir.c: Likewise.
1415 * tests/test-fchownat.c: Likewise.
1416 * tests/test-fcntl-safer.c: Likewise.
1417 * tests/test-fcntl.c: Likewise.
1418 * tests/test-fdopendir.c: Likewise.
1419 * tests/test-fdutimensat.c: Likewise.
1420 * tests/test-fflush2.c: Likewise.
1421 * tests/test-file-has-acl.c: Likewise.
1422 * tests/test-filevercmp.c: Likewise.
1423 * tests/test-flock.c: Likewise.
1424 * tests/test-floorf1.c: Likewise.
1425 * tests/test-floorf2.c: Likewise.
1426 * tests/test-floorl.c: Likewise.
1427 * tests/test-fnmatch.c: Likewise.
1428 * tests/test-fopen.h: Likewise.
1429 * tests/test-fpending.c: Likewise.
1430 * tests/test-fprintf-posix.c: Likewise.
1431 * tests/test-fpurge.c: Likewise.
1432 * tests/test-freadable.c: Likewise.
1433 * tests/test-freadahead.c: Likewise.
1434 * tests/test-freading.c: Likewise.
1435 * tests/test-freadptr.c: Likewise.
1436 * tests/test-freadptr2.c: Likewise.
1437 * tests/test-freadseek.c: Likewise.
1438 * tests/test-freopen.c: Likewise.
1439 * tests/test-frexp.c: Likewise.
1440 * tests/test-frexpl.c: Likewise.
1441 * tests/test-fseek.c: Likewise.
1442 * tests/test-fseeko.c: Likewise.
1443 * tests/test-fstatat.c: Likewise.
1444 * tests/test-fstrcmp.c: Likewise.
1445 * tests/test-fsync.c: Likewise.
1446 * tests/test-ftell.c: Likewise.
1447 * tests/test-ftello.c: Likewise.
1448 * tests/test-func.c: Likewise.
1449 * tests/test-futimens.c: Likewise.
1450 * tests/test-fwritable.c: Likewise.
1451 * tests/test-fwriting.c: Likewise.
1452 * tests/test-getcwd.c: Likewise.
1453 * tests/test-getdate.c: Likewise.
1454 * tests/test-getdelim.c: Likewise.
1455 * tests/test-getdtablesize.c: Likewise.
1456 * tests/test-getgroups.c: Likewise.
1457 * tests/test-getline.c: Likewise.
1458 * tests/test-getndelim2.c: Likewise.
1459 * tests/test-glob.c: Likewise.
1460 * tests/test-hash.c: Likewise.
1461 * tests/test-i-ring.c: Likewise.
1462 * tests/test-iconv-utf.c: Likewise.
1463 * tests/test-iconv.c: Likewise.
1464 * tests/test-idpriv-drop.c: Likewise.
1465 * tests/test-idpriv-droptemp.c: Likewise.
1466 * tests/test-inet_ntop.c: Likewise.
1467 * tests/test-inet_pton.c: Likewise.
1468 * tests/test-isblank.c: Likewise.
1469 * tests/test-isfinite.c: Likewise.
1470 * tests/test-isinf.c: Likewise.
1471 * tests/test-isnan.c: Likewise.
1472 * tests/test-isnand.h: Likewise.
1473 * tests/test-isnanf.h: Likewise.
1474 * tests/test-isnanl.h: Likewise.
1475 * tests/test-lchown.c: Likewise.
1476 * tests/test-ldexpl.c: Likewise.
1477 * tests/test-link.c: Likewise.
1478 * tests/test-linkat.c: Likewise.
1479 * tests/test-linked_list.c: Likewise.
1480 * tests/test-linkedhash_list.c: Likewise.
1481 * tests/test-localename.c: Likewise.
1482 * tests/test-lseek.c: Likewise.
1483 * tests/test-lstat.c: Likewise.
1484 * tests/test-mbmemcasecmp.c: Likewise.
1485 * tests/test-mbmemcasecoll.c: Likewise.
1486 * tests/test-mbrtowc.c: Likewise.
1487 * tests/test-mbscasecmp.c: Likewise.
1488 * tests/test-mbscasestr1.c: Likewise.
1489 * tests/test-mbscasestr2.c: Likewise.
1490 * tests/test-mbscasestr3.c: Likewise.
1491 * tests/test-mbscasestr4.c: Likewise.
1492 * tests/test-mbschr.c: Likewise.
1493 * tests/test-mbscspn.c: Likewise.
1494 * tests/test-mbsinit.c: Likewise.
1495 * tests/test-mbsncasecmp.c: Likewise.
1496 * tests/test-mbsnrtowcs.c: Likewise.
1497 * tests/test-mbspbrk.c: Likewise.
1498 * tests/test-mbspcasecmp.c: Likewise.
1499 * tests/test-mbsrchr.c: Likewise.
1500 * tests/test-mbsrtowcs.c: Likewise.
1501 * tests/test-mbsspn.c: Likewise.
1502 * tests/test-mbsstr1.c: Likewise.
1503 * tests/test-mbsstr2.c: Likewise.
1504 * tests/test-mbsstr3.c: Likewise.
1505 * tests/test-memchr.c: Likewise.
1506 * tests/test-memchr2.c: Likewise.
1507 * tests/test-memcmp.c: Likewise.
1508 * tests/test-memmem.c: Likewise.
1509 * tests/test-memrchr.c: Likewise.
1510 * tests/test-mkdir.c: Likewise.
1511 * tests/test-mkdirat.c: Likewise.
1512 * tests/test-mkfifo.c: Likewise.
1513 * tests/test-mkfifoat.c: Likewise.
1514 * tests/test-mknod.c: Likewise.
1515 * tests/test-nanosleep.c: Likewise.
1516 * tests/test-nl_langinfo.c: Likewise.
1517 * tests/test-obstack-printf.c: Likewise.
1518 * tests/test-open.c: Likewise.
1519 * tests/test-openat.c: Likewise.
1520 * tests/test-pipe-filter-gi1.c: Likewise.
1521 * tests/test-pipe-filter-gi2-main.c: Likewise.
1522 * tests/test-pipe-filter-ii1.c: Likewise.
1523 * tests/test-pipe-filter-ii2-main.c: Likewise.
1524 * tests/test-pipe2.c: Likewise.
1525 * tests/test-popen.h: Likewise.
1526 * tests/test-posixtm.c: Likewise.
1527 * tests/test-pread.c: Likewise.
1528 * tests/test-printf-frexp.c: Likewise.
1529 * tests/test-printf-frexpl.c: Likewise.
1530 * tests/test-printf-posix.c: Likewise.
1531 * tests/test-priv-set.c: Likewise.
1532 * tests/test-quotearg.c: Likewise.
1533 * tests/test-random_r.c: Likewise.
1534 * tests/test-rawmemchr.c: Likewise.
1535 * tests/test-rbtree_list.c: Likewise.
1536 * tests/test-rbtree_oset.c: Likewise.
1537 * tests/test-rbtreehash_list.c: Likewise.
1538 * tests/test-readlink.c: Likewise.
1539 * tests/test-remove.c: Likewise.
1540 * tests/test-rename.c: Likewise.
1541 * tests/test-renameat.c: Likewise.
1542 * tests/test-rmdir.c: Likewise.
1543 * tests/test-round1.c: Likewise.
1544 * tests/test-roundf1.c: Likewise.
1545 * tests/test-roundl.c: Likewise.
1546 * tests/test-safe-alloc.c: Likewise.
1547 * tests/test-sameacls.c: Likewise.
1548 * tests/test-set-mode-acl.c: Likewise.
1549 * tests/test-setenv.c: Likewise.
1550 * tests/test-sigaction.c: Likewise.
1551 * tests/test-signbit.c: Likewise.
1552 * tests/test-sleep.c: Likewise.
1553 * tests/test-snprintf-posix.c: Likewise.
1554 * tests/test-snprintf.c: Likewise.
1555 * tests/test-sprintf-posix.c: Likewise.
1556 * tests/test-stat-time.c: Likewise.
1557 * tests/test-stat.c: Likewise.
1558 * tests/test-strcasestr.c: Likewise.
1559 * tests/test-strchrnul.c: Likewise.
1560 * tests/test-strerror.c: Likewise.
1561 * tests/test-striconv.c: Likewise.
1562 * tests/test-striconveh.c: Likewise.
1563 * tests/test-striconveha.c: Likewise.
1564 * tests/test-strsignal.c: Likewise.
1565 * tests/test-strstr.c: Likewise.
1566 * tests/test-strtod.c: Likewise.
1567 * tests/test-strverscmp.c: Likewise.
1568 * tests/test-symlink.c: Likewise.
1569 * tests/test-symlinkat.c: Likewise.
1570 * tests/test-trunc1.c: Likewise.
1571 * tests/test-trunc2.c: Likewise.
1572 * tests/test-truncf1.c: Likewise.
1573 * tests/test-truncf2.c: Likewise.
1574 * tests/test-truncl.c: Likewise.
1575 * tests/test-uname.c: Likewise.
1576 * tests/test-unlink.c: Likewise.
1577 * tests/test-unlinkat.c: Likewise.
1578 * tests/test-unsetenv.c: Likewise.
1579 * tests/test-usleep.c: Likewise.
1580 * tests/test-utimens.c: Likewise.
1581 * tests/test-utimensat.c: Likewise.
1582 * tests/test-vasnprintf-posix.c: Likewise.
1583 * tests/test-vasnprintf-posix2.c: Likewise.
1584 * tests/test-vasnprintf.c: Likewise.
1585 * tests/test-vasprintf-posix.c: Likewise.
1586 * tests/test-vasprintf.c: Likewise.
1587 * tests/test-vdprintf-posix.c: Likewise.
1588 * tests/test-vfprintf-posix.c: Likewise.
1589 * tests/test-vprintf-posix.c: Likewise.
1590 * tests/test-vsnprintf-posix.c: Likewise.
1591 * tests/test-vsnprintf.c: Likewise.
1592 * tests/test-vsprintf-posix.c: Likewise.
1593 * tests/test-wcrtomb.c: Likewise.
1594 * tests/test-wcsnrtombs.c: Likewise.
1595 * tests/test-wcsrtombs.c: Likewise.
1596 * tests/test-wctype.c: Likewise.
1597 * tests/test-wcwidth.c: Likewise.
1598 * tests/test-xfprintf-posix.c: Likewise.
1599 * tests/test-xmemdup0.c: Likewise.
1600 * tests/test-xprintf-posix.c: Likewise.
1601 * tests/test-xvasprintf.c: Likewise.
1602 * tests/unicase/test-locale-language.c: Likewise.
1603 * tests/unicase/test-mapping-part1.h: Likewise.
1604 * tests/unicase/test-predicate-part1.h: Likewise.
1605 * tests/unicase/test-u8-casecmp.c: Likewise.
1606 * tests/unicase/test-u8-casecoll.c: Likewise.
1607 * tests/unicase/test-u8-casefold.c: Likewise.
1608 * tests/unicase/test-u8-is-cased.c: Likewise.
1609 * tests/unicase/test-u8-is-casefolded.c: Likewise.
1610 * tests/unicase/test-u8-is-lowercase.c: Likewise.
1611 * tests/unicase/test-u8-is-titlecase.c: Likewise.
1612 * tests/unicase/test-u8-is-uppercase.c: Likewise.
1613 * tests/unicase/test-u8-tolower.c: Likewise.
1614 * tests/unicase/test-u8-totitle.c: Likewise.
1615 * tests/unicase/test-u8-toupper.c: Likewise.
1616 * tests/unicase/test-u16-casecmp.c: Likewise.
1617 * tests/unicase/test-u16-casecoll.c: Likewise.
1618 * tests/unicase/test-u16-casefold.c: Likewise.
1619 * tests/unicase/test-u16-is-cased.c: Likewise.
1620 * tests/unicase/test-u16-is-casefolded.c: Likewise.
1621 * tests/unicase/test-u16-is-lowercase.c: Likewise.
1622 * tests/unicase/test-u16-is-titlecase.c: Likewise.
1623 * tests/unicase/test-u16-is-uppercase.c: Likewise.
1624 * tests/unicase/test-u16-tolower.c: Likewise.
1625 * tests/unicase/test-u16-totitle.c: Likewise.
1626 * tests/unicase/test-u16-toupper.c: Likewise.
1627 * tests/unicase/test-u32-casecmp.c: Likewise.
1628 * tests/unicase/test-u32-casecoll.c: Likewise.
1629 * tests/unicase/test-u32-casefold.c: Likewise.
1630 * tests/unicase/test-u32-is-cased.c: Likewise.
1631 * tests/unicase/test-u32-is-casefolded.c: Likewise.
1632 * tests/unicase/test-u32-is-lowercase.c: Likewise.
1633 * tests/unicase/test-u32-is-titlecase.c: Likewise.
1634 * tests/unicase/test-u32-is-uppercase.c: Likewise.
1635 * tests/unicase/test-u32-tolower.c: Likewise.
1636 * tests/unicase/test-u32-totitle.c: Likewise.
1637 * tests/unicase/test-u32-toupper.c: Likewise.
1638 * tests/unicase/test-ulc-casecmp.c: Likewise.
1639 * tests/unicase/test-ulc-casecoll.c: Likewise.
1640 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
1641 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
1642 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
1643 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
1644 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
1645 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
1646 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
1647 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
1648 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
1649 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
1650 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
1651 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
1652 * tests/unictype/test-bidi_byname.c: Likewise.
1653 * tests/unictype/test-bidi_name.c: Likewise.
1654 * tests/unictype/test-bidi_of.c: Likewise.
1655 * tests/unictype/test-bidi_test.c: Likewise.
1656 * tests/unictype/test-block_list.c: Likewise.
1657 * tests/unictype/test-block_of.c: Likewise.
1658 * tests/unictype/test-block_test.c: Likewise.
1659 * tests/unictype/test-categ_and.c: Likewise.
1660 * tests/unictype/test-categ_and_not.c: Likewise.
1661 * tests/unictype/test-categ_byname.c: Likewise.
1662 * tests/unictype/test-categ_name.c: Likewise.
1663 * tests/unictype/test-categ_none.c: Likewise.
1664 * tests/unictype/test-categ_of.c: Likewise.
1665 * tests/unictype/test-categ_or.c: Likewise.
1666 * tests/unictype/test-categ_test_withtable.c: Likewise.
1667 * tests/unictype/test-combining.c: Likewise.
1668 * tests/unictype/test-decdigit.c: Likewise.
1669 * tests/unictype/test-digit.c: Likewise.
1670 * tests/unictype/test-mirror.c: Likewise.
1671 * tests/unictype/test-numeric.c: Likewise.
1672 * tests/unictype/test-pr_byname.c: Likewise.
1673 * tests/unictype/test-pr_test.c: Likewise.
1674 * tests/unictype/test-predicate-part1.h: Likewise.
1675 * tests/unictype/test-scripts.c: Likewise.
1676 * tests/unictype/test-sy_c_ident.c: Likewise.
1677 * tests/unictype/test-sy_java_ident.c: Likewise.
1678 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
1679 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
1680 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
1681 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
1682 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
1683 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
1684 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
1685 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
1686 * tests/uninorm/test-canonical-decomposition.c: Likewise.
1687 * tests/uninorm/test-compat-decomposition.c: Likewise.
1688 * tests/uninorm/test-composition.c: Likewise.
1689 * tests/uninorm/test-decomposing-form.c: Likewise.
1690 * tests/uninorm/test-decomposition.c: Likewise.
1691 * tests/uninorm/test-u8-nfc.c: Likewise.
1692 * tests/uninorm/test-u8-nfd.c: Likewise.
1693 * tests/uninorm/test-u8-nfkc.c: Likewise.
1694 * tests/uninorm/test-u8-nfkd.c: Likewise.
1695 * tests/uninorm/test-u8-normcmp.c: Likewise.
1696 * tests/uninorm/test-u8-normcoll.c: Likewise.
1697 * tests/uninorm/test-u16-nfc.c: Likewise.
1698 * tests/uninorm/test-u16-nfd.c: Likewise.
1699 * tests/uninorm/test-u16-nfkc.c: Likewise.
1700 * tests/uninorm/test-u16-nfkd.c: Likewise.
1701 * tests/uninorm/test-u16-normcmp.c: Likewise.
1702 * tests/uninorm/test-u16-normcoll.c: Likewise.
1703 * tests/uninorm/test-u32-nfc.c: Likewise.
1704 * tests/uninorm/test-u32-nfd.c: Likewise.
1705 * tests/uninorm/test-u32-nfkc.c: Likewise.
1706 * tests/uninorm/test-u32-nfkd.c: Likewise.
1707 * tests/uninorm/test-u32-normalize-big.c: Likewise.
1708 * tests/uninorm/test-u32-normcmp.c: Likewise.
1709 * tests/uninorm/test-u32-normcoll.c: Likewise.
1710 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
1711 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
1712 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
1713 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
1714 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
1715 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
1716 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
1717 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
1718 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
1719 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
1720 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
1721 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
1722 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
1723 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
1724 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
1725 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
1726 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
1727 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
1728 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
1729 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
1730 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
1731 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
1732 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
1733 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
1734 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
1735 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
1736 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
1737 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
1738 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
1739 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
1740 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
1741 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
1742 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
1743 * tests/uniwidth/test-u8-strwidth.c: Likewise.
1744 * tests/uniwidth/test-u8-width.c: Likewise.
1745 * tests/uniwidth/test-u16-strwidth.c: Likewise.
1746 * tests/uniwidth/test-u16-width.c: Likewise.
1747 * tests/uniwidth/test-u32-strwidth.c: Likewise.
1748 * tests/uniwidth/test-u32-width.c: Likewise.
1749 * tests/uniwidth/test-uc_width.c: Likewise.
1750 * tests/uniwidth/test-uc_width2.c: Likewise.
1751 * modules/acl-tests (Files): Add tests/macros.h.
1752 * modules/areadlink-tests (Files): Likewise.
1753 * modules/areadlink-with-size-tests (Files): Likewise.
1754 * modules/areadlinkat-tests (Files): Likewise.
1755 * modules/areadlinkat-with-size-tests (Files): Likewise.
1756 * modules/argmatch-tests (Files): Likewise.
1757 * modules/argv-iter-tests (Files): Likewise.
1758 * modules/array-list-tests (Files): Likewise.
1759 * modules/array-mergesort-tests (Files): Likewise.
1760 * modules/array-oset-tests (Files): Likewise.
1761 * modules/avltree-list-tests (Files): Likewise.
1762 * modules/avltree-oset-tests (Files): Likewise.
1763 * modules/avltreehash-list-tests (Files): Likewise.
1764 * modules/base64-tests (Files): Likewise.
1765 * modules/binary-io-tests (Files): Likewise.
1766 * modules/bitrotate-tests (Files): Likewise.
1767 * modules/btowc-tests (Files): Likewise.
1768 * modules/byteswap-tests (Files): Likewise.
1769 * modules/c-ctype-tests (Files): Likewise.
1770 * modules/c-stack-tests (Files): Likewise.
1771 * modules/c-strcase-tests (Files): Likewise.
1772 * modules/c-strcasestr-tests (Files): Likewise.
1773 * modules/c-strstr-tests (Files): Likewise.
1774 * modules/canonicalize-lgpl-tests (Files): Likewise.
1775 * modules/canonicalize-tests (Files): Likewise.
1776 * modules/carray-list-tests (Files): Likewise.
1777 * modules/ceilf-tests (Files): Likewise.
1778 * modules/ceill-tests (Files): Likewise.
1779 * modules/chown-tests (Files): Likewise.
1780 * modules/cloexec-tests (Files): Likewise.
1781 * modules/copy-file-tests (Files): Likewise.
1782 * modules/count-one-bits-tests (Files): Likewise.
1783 * modules/dprintf-posix-tests (Files): Likewise.
1784 * modules/dup2-tests (Files): Likewise.
1785 * modules/dup3-tests (Files): Likewise.
1786 * modules/duplocale-tests (Files): Likewise.
1787 * modules/fbufmode-tests (Files): Likewise.
1788 * modules/fchdir-tests (Files): Likewise.
1789 * modules/fcntl-safer-tests (Files): Likewise.
1790 * modules/fcntl-tests (Files): Likewise.
1791 * modules/fdopendir-tests (Files): Likewise.
1792 * modules/fdutimensat-tests (Files): Likewise.
1793 * modules/fflush-tests (Files): Likewise.
1794 * modules/filevercmp-tests (Files): Likewise.
1795 * modules/flock-tests (Files): Likewise.
1796 * modules/floorf-tests (Files): Likewise.
1797 * modules/floorl-tests (Files): Likewise.
1798 * modules/fnmatch-tests (Files): Likewise.
1799 * modules/fopen-safer-tests (Files): Likewise.
1800 * modules/fopen-tests (Files): Likewise.
1801 * modules/fpending-tests (Files): Likewise.
1802 * modules/fprintf-posix-tests (Files): Likewise.
1803 * modules/fpurge-tests (Files): Likewise.
1804 * modules/freadable-tests (Files): Likewise.
1805 * modules/freadahead-tests (Files): Likewise.
1806 * modules/freading-tests (Files): Likewise.
1807 * modules/freadptr-tests (Files): Likewise.
1808 * modules/freadseek-tests (Files): Likewise.
1809 * modules/freopen-tests (Files): Likewise.
1810 * modules/frexp-nolibm-tests (Files): Likewise.
1811 * modules/frexp-tests (Files): Likewise.
1812 * modules/frexpl-nolibm-tests (Files): Likewise.
1813 * modules/frexpl-tests (Files): Likewise.
1814 * modules/fseek-tests (Files): Likewise.
1815 * modules/fseeko-tests (Files): Likewise.
1816 * modules/fstrcmp-tests (Files): Likewise.
1817 * modules/fsync-tests (Files): Likewise.
1818 * modules/ftell-tests (Files): Likewise.
1819 * modules/ftello-tests (Files): Likewise.
1820 * modules/func-tests (Files): Likewise.
1821 * modules/futimens-tests (Files): Likewise.
1822 * modules/fwritable-tests (Files): Likewise.
1823 * modules/fwriting-tests (Files): Likewise.
1824 * modules/getcwd-tests (Files): Likewise.
1825 * modules/getdate-tests (Files): Likewise.
1826 * modules/getdelim-tests (Files): Likewise.
1827 * modules/getdtablesize-tests (Files): Likewise.
1828 * modules/getgroups-tests (Files): Likewise.
1829 * modules/getline-tests (Files): Likewise.
1830 * modules/getndelim2-tests (Files): Likewise.
1831 * modules/glob-tests (Files): Likewise.
1832 * modules/hash-tests (Files): Likewise.
1833 * modules/i-ring-tests (Files): Likewise.
1834 * modules/iconv-tests (Files): Likewise.
1835 * modules/iconv_open-utf-tests (Files): Likewise.
1836 * modules/idpriv-drop-tests (Files): Likewise.
1837 * modules/idpriv-droptemp-tests (Files): Likewise.
1838 * modules/inet_ntop-tests (Files): Likewise.
1839 * modules/inet_pton-tests (Files): Likewise.
1840 * modules/isblank-tests (Files): Likewise.
1841 * modules/isfinite-tests (Files): Likewise.
1842 * modules/isinf-tests (Files): Likewise.
1843 * modules/isnan-tests (Files): Likewise.
1844 * modules/isnand-nolibm-tests (Files): Likewise.
1845 * modules/isnand-tests (Files): Likewise.
1846 * modules/isnanf-nolibm-tests (Files): Likewise.
1847 * modules/isnanf-tests (Files): Likewise.
1848 * modules/isnanl-nolibm-tests (Files): Likewise.
1849 * modules/isnanl-tests (Files): Likewise.
1850 * modules/lchown-tests (Files): Likewise.
1851 * modules/ldexpl-tests (Files): Likewise.
1852 * modules/link-tests (Files): Likewise.
1853 * modules/linkat-tests (Files): Likewise.
1854 * modules/linked-list-tests (Files): Likewise.
1855 * modules/linkedhash-list-tests (Files): Likewise.
1856 * modules/localename-tests (Files): Likewise.
1857 * modules/lseek-tests (Files): Likewise.
1858 * modules/lstat-tests (Files): Likewise.
1859 * modules/mbmemcasecmp-tests (Files): Likewise.
1860 * modules/mbmemcasecoll-tests (Files): Likewise.
1861 * modules/mbrtowc-tests (Files): Likewise.
1862 * modules/mbscasecmp-tests (Files): Likewise.
1863 * modules/mbscasestr-tests (Files): Likewise.
1864 * modules/mbschr-tests (Files): Likewise.
1865 * modules/mbscspn-tests (Files): Likewise.
1866 * modules/mbsinit-tests (Files): Likewise.
1867 * modules/mbsncasecmp-tests (Files): Likewise.
1868 * modules/mbsnrtowcs-tests (Files): Likewise.
1869 * modules/mbspbrk-tests (Files): Likewise.
1870 * modules/mbspcasecmp-tests (Files): Likewise.
1871 * modules/mbsrchr-tests (Files): Likewise.
1872 * modules/mbsrtowcs-tests (Files): Likewise.
1873 * modules/mbsspn-tests (Files): Likewise.
1874 * modules/mbsstr-tests (Files): Likewise.
1875 * modules/memchr-tests (Files): Likewise.
1876 * modules/memchr2-tests (Files): Likewise.
1877 * modules/memcmp-tests (Files): Likewise.
1878 * modules/memmem-tests (Files): Likewise.
1879 * modules/memrchr-tests (Files): Likewise.
1880 * modules/mkdir-tests (Files): Likewise.
1881 * modules/mkfifo-tests (Files): Likewise.
1882 * modules/mkfifoat-tests (Files): Likewise.
1883 * modules/mknod-tests (Files): Likewise.
1884 * modules/nanosleep-tests (Files): Likewise.
1885 * modules/nl_langinfo-tests (Files): Likewise.
1886 * modules/obstack-printf-tests (Files): Likewise.
1887 * modules/open-tests (Files): Likewise.
1888 * modules/openat-tests (Files): Likewise.
1889 * modules/pipe-filter-gi-tests (Files): Likewise.
1890 * modules/pipe-filter-ii-tests (Files): Likewise.
1891 * modules/pipe2-tests (Files): Likewise.
1892 * modules/popen-safer-tests (Files): Likewise.
1893 * modules/popen-tests (Files): Likewise.
1894 * modules/posixtm-tests (Files): Likewise.
1895 * modules/pread-tests (Files): Likewise.
1896 * modules/printf-frexp-tests (Files): Likewise.
1897 * modules/printf-frexpl-tests (Files): Likewise.
1898 * modules/printf-posix-tests (Files): Likewise.
1899 * modules/priv-set-tests (Files): Likewise.
1900 * modules/quotearg-tests (Files): Likewise.
1901 * modules/random_r-tests (Files): Likewise.
1902 * modules/rawmemchr-tests (Files): Likewise.
1903 * modules/rbtree-list-tests (Files): Likewise.
1904 * modules/rbtree-oset-tests (Files): Likewise.
1905 * modules/rbtreehash-list-tests (Files): Likewise.
1906 * modules/readlink-tests (Files): Likewise.
1907 * modules/remove-tests (Files): Likewise.
1908 * modules/rename-tests (Files): Likewise.
1909 * modules/renameat-tests (Files): Likewise.
1910 * modules/rmdir-tests (Files): Likewise.
1911 * modules/round-tests (Files): Likewise.
1912 * modules/roundf-tests (Files): Likewise.
1913 * modules/roundl-tests (Files): Likewise.
1914 * modules/safe-alloc-tests (Files): Likewise.
1915 * modules/setenv-tests (Files): Likewise.
1916 * modules/sigaction-tests (Files): Likewise.
1917 * modules/signbit-tests (Files): Likewise.
1918 * modules/sleep-tests (Files): Likewise.
1919 * modules/snprintf-posix-tests (Files): Likewise.
1920 * modules/snprintf-tests (Files): Likewise.
1921 * modules/sprintf-posix-tests (Files): Likewise.
1922 * modules/stat-tests (Files): Likewise.
1923 * modules/stat-time-tests (Files): Likewise.
1924 * modules/strcasestr-tests (Files): Likewise.
1925 * modules/strchrnul-tests (Files): Likewise.
1926 * modules/strerror-tests (Files): Likewise.
1927 * modules/striconv-tests (Files): Likewise.
1928 * modules/striconveh-tests (Files): Likewise.
1929 * modules/striconveha-tests (Files): Likewise.
1930 * modules/strsignal-tests (Files): Likewise.
1931 * modules/strstr-tests (Files): Likewise.
1932 * modules/strtod-tests (Files): Likewise.
1933 * modules/strverscmp-tests (Files): Likewise.
1934 * modules/symlink-tests (Files): Likewise.
1935 * modules/symlinkat-tests (Files): Likewise.
1936 * modules/trunc-tests (Files): Likewise.
1937 * modules/truncf-tests (Files): Likewise.
1938 * modules/truncl-tests (Files): Likewise.
1939 * modules/uname-tests (Files): Likewise.
1940 * modules/unicase/cased-tests (Files): Likewise.
1941 * modules/unicase/ignorable-tests (Files): Likewise.
1942 * modules/unicase/locale-language-tests (Files): Likewise.
1943 * modules/unicase/tolower-tests (Files): Likewise.
1944 * modules/unicase/totitle-tests (Files): Likewise.
1945 * modules/unicase/toupper-tests (Files): Likewise.
1946 * modules/unicase/u8-casecmp-tests (Files): Likewise.
1947 * modules/unicase/u8-casecoll-tests (Files): Likewise.
1948 * modules/unicase/u8-casefold-tests (Files): Likewise.
1949 * modules/unicase/u8-is-cased-tests (Files): Likewise.
1950 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
1951 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
1952 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
1953 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
1954 * modules/unicase/u8-tolower-tests (Files): Likewise.
1955 * modules/unicase/u8-totitle-tests (Files): Likewise.
1956 * modules/unicase/u8-toupper-tests (Files): Likewise.
1957 * modules/unicase/u16-casecmp-tests (Files): Likewise.
1958 * modules/unicase/u16-casecoll-tests (Files): Likewise.
1959 * modules/unicase/u16-casefold-tests (Files): Likewise.
1960 * modules/unicase/u16-is-cased-tests (Files): Likewise.
1961 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
1962 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
1963 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
1964 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
1965 * modules/unicase/u16-tolower-tests (Files): Likewise.
1966 * modules/unicase/u16-totitle-tests (Files): Likewise.
1967 * modules/unicase/u16-toupper-tests (Files): Likewise.
1968 * modules/unicase/u32-casecmp-tests (Files): Likewise.
1969 * modules/unicase/u32-casecoll-tests (Files): Likewise.
1970 * modules/unicase/u32-casefold-tests (Files): Likewise.
1971 * modules/unicase/u32-is-cased-tests (Files): Likewise.
1972 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
1973 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
1974 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
1975 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
1976 * modules/unicase/u32-tolower-tests (Files): Likewise.
1977 * modules/unicase/u32-totitle-tests (Files): Likewise.
1978 * modules/unicase/u32-toupper-tests (Files): Likewise.
1979 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
1980 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
1981 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
1982 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
1983 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
1984 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
1985 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
1986 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
1987 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
1988 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
1989 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
1990 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
1991 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
1992 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
1993 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
1994 * modules/unictype/bidicategory-name-tests (Files): Likewise.
1995 * modules/unictype/bidicategory-of-tests (Files): Likewise.
1996 * modules/unictype/bidicategory-test-tests (Files): Likewise.
1997 * modules/unictype/block-list-tests (Files): Likewise.
1998 * modules/unictype/block-of-tests (Files): Likewise.
1999 * modules/unictype/block-test-tests (Files): Likewise.
2000 * modules/unictype/category-C-tests (Files): Likewise.
2001 * modules/unictype/category-Cc-tests (Files): Likewise.
2002 * modules/unictype/category-Cf-tests (Files): Likewise.
2003 * modules/unictype/category-Cn-tests (Files): Likewise.
2004 * modules/unictype/category-Co-tests (Files): Likewise.
2005 * modules/unictype/category-Cs-tests (Files): Likewise.
2006 * modules/unictype/category-L-tests (Files): Likewise.
2007 * modules/unictype/category-Ll-tests (Files): Likewise.
2008 * modules/unictype/category-Lm-tests (Files): Likewise.
2009 * modules/unictype/category-Lo-tests (Files): Likewise.
2010 * modules/unictype/category-Lt-tests (Files): Likewise.
2011 * modules/unictype/category-Lu-tests (Files): Likewise.
2012 * modules/unictype/category-M-tests (Files): Likewise.
2013 * modules/unictype/category-Mc-tests (Files): Likewise.
2014 * modules/unictype/category-Me-tests (Files): Likewise.
2015 * modules/unictype/category-Mn-tests (Files): Likewise.
2016 * modules/unictype/category-N-tests (Files): Likewise.
2017 * modules/unictype/category-Nd-tests (Files): Likewise.
2018 * modules/unictype/category-Nl-tests (Files): Likewise.
2019 * modules/unictype/category-No-tests (Files): Likewise.
2020 * modules/unictype/category-P-tests (Files): Likewise.
2021 * modules/unictype/category-Pc-tests (Files): Likewise.
2022 * modules/unictype/category-Pd-tests (Files): Likewise.
2023 * modules/unictype/category-Pe-tests (Files): Likewise.
2024 * modules/unictype/category-Pf-tests (Files): Likewise.
2025 * modules/unictype/category-Pi-tests (Files): Likewise.
2026 * modules/unictype/category-Po-tests (Files): Likewise.
2027 * modules/unictype/category-Ps-tests (Files): Likewise.
2028 * modules/unictype/category-S-tests (Files): Likewise.
2029 * modules/unictype/category-Sc-tests (Files): Likewise.
2030 * modules/unictype/category-Sk-tests (Files): Likewise.
2031 * modules/unictype/category-Sm-tests (Files): Likewise.
2032 * modules/unictype/category-So-tests (Files): Likewise.
2033 * modules/unictype/category-Z-tests (Files): Likewise.
2034 * modules/unictype/category-Zl-tests (Files): Likewise.
2035 * modules/unictype/category-Zp-tests (Files): Likewise.
2036 * modules/unictype/category-Zs-tests (Files): Likewise.
2037 * modules/unictype/category-and-not-tests (Files): Likewise.
2038 * modules/unictype/category-and-tests (Files): Likewise.
2039 * modules/unictype/category-byname-tests (Files): Likewise.
2040 * modules/unictype/category-name-tests (Files): Likewise.
2041 * modules/unictype/category-none-tests (Files): Likewise.
2042 * modules/unictype/category-of-tests (Files): Likewise.
2043 * modules/unictype/category-or-tests (Files): Likewise.
2044 * modules/unictype/category-test-withtable-tests (Files): Likewise.
2045 * modules/unictype/combining-class-tests (Files): Likewise.
2046 * modules/unictype/ctype-alnum-tests (Files): Likewise.
2047 * modules/unictype/ctype-alpha-tests (Files): Likewise.
2048 * modules/unictype/ctype-blank-tests (Files): Likewise.
2049 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
2050 * modules/unictype/ctype-digit-tests (Files): Likewise.
2051 * modules/unictype/ctype-graph-tests (Files): Likewise.
2052 * modules/unictype/ctype-lower-tests (Files): Likewise.
2053 * modules/unictype/ctype-print-tests (Files): Likewise.
2054 * modules/unictype/ctype-punct-tests (Files): Likewise.
2055 * modules/unictype/ctype-space-tests (Files): Likewise.
2056 * modules/unictype/ctype-upper-tests (Files): Likewise.
2057 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
2058 * modules/unictype/decimal-digit-tests (Files): Likewise.
2059 * modules/unictype/digit-tests (Files): Likewise.
2060 * modules/unictype/mirror-tests (Files): Likewise.
2061 * modules/unictype/numeric-tests (Files): Likewise.
2062 * modules/unictype/property-alphabetic-tests (Files): Likewise.
2063 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
2064 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
2065 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
2067 * modules/unictype/property-bidi-block-separator-tests (Files):
2069 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
2071 * modules/unictype/property-bidi-common-separator-tests (Files):
2073 * modules/unictype/property-bidi-control-tests (Files): Likewise.
2074 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
2076 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
2078 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
2080 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
2081 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
2083 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
2084 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
2086 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
2087 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
2088 * modules/unictype/property-bidi-segment-separator-tests (Files):
2090 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
2091 * modules/unictype/property-byname-tests (Files): Likewise.
2092 * modules/unictype/property-combining-tests (Files): Likewise.
2093 * modules/unictype/property-composite-tests (Files): Likewise.
2094 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
2095 * modules/unictype/property-dash-tests (Files): Likewise.
2096 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
2097 * modules/unictype/property-default-ignorable-code-point-tests (Files):
2099 * modules/unictype/property-deprecated-tests (Files): Likewise.
2100 * modules/unictype/property-diacritic-tests (Files): Likewise.
2101 * modules/unictype/property-extender-tests (Files): Likewise.
2102 * modules/unictype/property-format-control-tests (Files): Likewise.
2103 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
2104 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
2105 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
2106 * modules/unictype/property-hex-digit-tests (Files): Likewise.
2107 * modules/unictype/property-hyphen-tests (Files): Likewise.
2108 * modules/unictype/property-id-continue-tests (Files): Likewise.
2109 * modules/unictype/property-id-start-tests (Files): Likewise.
2110 * modules/unictype/property-ideographic-tests (Files): Likewise.
2111 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
2112 * modules/unictype/property-ids-trinary-operator-tests (Files):
2114 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
2115 * modules/unictype/property-iso-control-tests (Files): Likewise.
2116 * modules/unictype/property-join-control-tests (Files): Likewise.
2117 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
2118 * modules/unictype/property-line-separator-tests (Files): Likewise.
2119 * modules/unictype/property-logical-order-exception-tests (Files):
2121 * modules/unictype/property-lowercase-tests (Files): Likewise.
2122 * modules/unictype/property-math-tests (Files): Likewise.
2123 * modules/unictype/property-non-break-tests (Files): Likewise.
2124 * modules/unictype/property-not-a-character-tests (Files): Likewise.
2125 * modules/unictype/property-numeric-tests (Files): Likewise.
2126 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
2127 * modules/unictype/property-other-default-ignorable-code-point-tests
2129 * modules/unictype/property-other-grapheme-extend-tests (Files):
2131 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
2132 * modules/unictype/property-other-id-start-tests (Files): Likewise.
2133 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
2134 * modules/unictype/property-other-math-tests (Files): Likewise.
2135 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
2136 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
2137 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
2138 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
2139 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
2140 * modules/unictype/property-private-use-tests (Files): Likewise.
2141 * modules/unictype/property-punctuation-tests (Files): Likewise.
2142 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
2143 * modules/unictype/property-radical-tests (Files): Likewise.
2144 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
2145 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
2146 * modules/unictype/property-space-tests (Files): Likewise.
2147 * modules/unictype/property-terminal-punctuation-tests (Files):
2149 * modules/unictype/property-test-tests (Files): Likewise.
2150 * modules/unictype/property-titlecase-tests (Files): Likewise.
2151 * modules/unictype/property-unassigned-code-value-tests (Files):
2153 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
2154 * modules/unictype/property-uppercase-tests (Files): Likewise.
2155 * modules/unictype/property-variation-selector-tests (Files): Likewise.
2156 * modules/unictype/property-white-space-tests (Files): Likewise.
2157 * modules/unictype/property-xid-continue-tests (Files): Likewise.
2158 * modules/unictype/property-xid-start-tests (Files): Likewise.
2159 * modules/unictype/property-zero-width-tests (Files): Likewise.
2160 * modules/unictype/scripts-tests (Files): Likewise.
2161 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
2162 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
2163 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
2164 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
2165 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
2166 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
2167 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
2168 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
2169 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
2170 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
2171 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
2172 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
2173 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
2174 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
2175 * modules/uninorm/composition-tests (Files): Likewise.
2176 * modules/uninorm/decomposing-form-tests (Files): Likewise.
2177 * modules/uninorm/decomposition-tests (Files): Likewise.
2178 * modules/uninorm/filter-tests (Files): Likewise.
2179 * modules/uninorm/nfc-tests (Files): Likewise.
2180 * modules/uninorm/nfd-tests (Files): Likewise.
2181 * modules/uninorm/nfkc-tests (Files): Likewise.
2182 * modules/uninorm/nfkd-tests (Files): Likewise.
2183 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
2184 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
2185 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
2186 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
2187 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
2188 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
2189 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
2190 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
2191 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
2192 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
2193 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
2194 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
2195 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
2196 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
2197 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
2198 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
2199 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
2200 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
2201 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
2202 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
2203 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
2204 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
2205 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
2206 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
2207 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
2208 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
2209 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
2210 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
2211 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
2212 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
2213 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
2214 * modules/uniwidth/u8-width-tests (Files): Likewise.
2215 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
2216 * modules/uniwidth/u16-width-tests (Files): Likewise.
2217 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
2218 * modules/uniwidth/u32-width-tests (Files): Likewise.
2219 * modules/uniwidth/width-tests (Files): Likewise.
2220 * modules/unlink-tests (Files): Likewise.
2221 * modules/unsetenv-tests (Files): Likewise.
2222 * modules/usleep-tests (Files): Likewise.
2223 * modules/utimens-tests (Files): Likewise.
2224 * modules/utimensat-tests (Files): Likewise.
2225 * modules/vasnprintf-posix-tests (Files): Likewise.
2226 * modules/vasnprintf-tests (Files): Likewise.
2227 * modules/vasprintf-posix-tests (Files): Likewise.
2228 * modules/vasprintf-tests (Files): Likewise.
2229 * modules/vdprintf-posix-tests (Files): Likewise.
2230 * modules/vfprintf-posix-tests (Files): Likewise.
2231 * modules/vprintf-posix-tests (Files): Likewise.
2232 * modules/vsnprintf-posix-tests (Files): Likewise.
2233 * modules/vsnprintf-tests (Files): Likewise.
2234 * modules/vsprintf-posix-tests (Files): Likewise.
2235 * modules/wcrtomb-tests (Files): Likewise.
2236 * modules/wcsnrtombs-tests (Files): Likewise.
2237 * modules/wcsrtombs-tests (Files): Likewise.
2238 * modules/wctype-tests (Files): Likewise.
2239 * modules/wcwidth-tests (Files): Likewise.
2240 * modules/xmemdup0-tests (Files): Likewise.
2241 * modules/xprintf-posix-tests (Files): Likewise.
2242 * modules/xvasprintf-tests (Files): Likewise.
2244 2009-12-24 Eric Blake <ebb9@byu.net>
2246 test-nanosleep: fix typo
2247 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
2249 Reported by Bruno Haible.
2251 2009-12-24 Bruno Haible <bruno@clisp.org>
2253 Reduce namespace pollution on glibc systems.
2254 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
2255 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
2257 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
2258 <getopt.h> on glibc systems.
2259 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
2261 * lib/fcntl.c: Include <unistd.h> here instead.
2263 2009-12-24 Bruno Haible <bruno@clisp.org>
2265 * lib/stdlib.in.h (includes): Fix typo in today's commit.
2267 2009-12-24 Eric Blake <ebb9@byu.net>
2269 tests: add signature checks
2270 * tests/signature.h (SIGNATURE_CHECK): New file.
2271 * modules/atexit-tests (Files): Use it.
2272 * modules/btowc-tests (Files): Likewise.
2273 * modules/canonicalize-lgpl-tests (Files): Likewise.
2274 * modules/ceilf-tests (Files): Likewise.
2275 * modules/ceill-tests (Files): Likewise.
2276 * modules/chown-tests (Files): Likewise.
2277 * modules/dprintf-posix-tests (Files): Likewise.
2278 * modules/dup2-tests (Files): Likewise.
2279 * modules/dup3-tests (Files): Likewise.
2280 * modules/duplocale-tests (Files): Likewise.
2281 * modules/fchdir-tests (Files): Likewise.
2282 * modules/fcntl-tests (Files): Likewise.
2283 * modules/fdopendir-tests (Files): Likewise.
2284 * modules/fflush-tests (Files): Likewise.
2285 * modules/flock-tests (Files): Likewise.
2286 * modules/floorf-tests (Files): Likewise.
2287 * modules/floorl-tests (Files): Likewise.
2288 * modules/fnmatch-tests (Files): Likewise.
2289 * modules/fopen-tests (Files): Likewise.
2290 * modules/fprintf-posix-tests (Files): Likewise.
2291 * modules/freopen-tests (Files): Likewise.
2292 * modules/frexp-nolibm-tests (Files): Likewise.
2293 * modules/frexp-tests (Files): Likewise.
2294 * modules/frexpl-nolibm-tests (Files): Likewise.
2295 * modules/frexpl-tests (Files): Likewise.
2296 * modules/fseek-tests (Files): Likewise.
2297 * modules/fseeko-tests (Files): Likewise.
2298 * modules/fsync-tests (Files): Likewise.
2299 * modules/ftell-tests (Files): Likewise.
2300 * modules/ftello-tests (Files): Likewise.
2301 * modules/futimens-tests (Files): Likewise.
2302 * modules/getaddrinfo-tests (Files): Likewise.
2303 * modules/getcwd-tests (Files): Likewise.
2304 * modules/getdelim-tests (Files): Likewise.
2305 * modules/getdtablesize-tests (Files): Likewise.
2306 * modules/getgroups-tests (Files): Likewise.
2307 * modules/gethostname-tests (Files): Likewise.
2308 * modules/getline-tests (Files): Likewise.
2309 * modules/getopt-posix-tests (Files): Likewise.
2310 * modules/gettimeofday-tests (Files): Likewise.
2311 * modules/glob-tests (Files): Likewise.
2312 * modules/iconv-tests (Files): Likewise.
2313 * modules/inet_ntop-tests (Files): Likewise.
2314 * modules/inet_pton-tests (Files): Likewise.
2315 * modules/isblank-tests (Files): Likewise.
2316 * modules/lchown-tests (Files): Likewise.
2317 * modules/ldexpl-tests (Files): Likewise.
2318 * modules/link-tests (Files): Likewise.
2319 * modules/linkat-tests (Files): Likewise.
2320 * modules/lseek-tests (Files): Likewise.
2321 * modules/lstat-tests (Files): Likewise.
2322 * modules/mbrtowc-tests (Files): Likewise.
2323 * modules/mbsinit-tests (Files): Likewise.
2324 * modules/mbsnrtowcs-tests (Files): Likewise.
2325 * modules/mbsrtowcs-tests (Files): Likewise.
2326 * modules/memchr-tests (Files): Likewise.
2327 * modules/memcmp-tests (Files): Likewise.
2328 * modules/memmem-tests (Files): Likewise.
2329 * modules/memrchr-tests (Files): Likewise.
2330 * modules/mkdir-tests (Files): Likewise.
2331 * modules/mkfifo-tests (Files): Likewise.
2332 * modules/mkfifoat-tests (Files): Likewise.
2333 * modules/mknod-tests (Files): Likewise.
2334 * modules/nanosleep-tests (Files): Likewise.
2335 * modules/nl_langinfo-tests (Files): Likewise.
2336 * modules/obstack-printf-tests (Files): Likewise.
2337 * modules/open-tests (Files): Likewise.
2338 * modules/openat-tests (Files): Likewise.
2339 * modules/perror-tests (Files): Likewise.
2340 * modules/pipe2-tests (Files): Likewise.
2341 * modules/poll-tests (Files): Likewise.
2342 * modules/popen-tests (Files): Likewise.
2343 * modules/posix_spawn-tests (Files): Likewise.
2344 * modules/posix_spawnp-tests (Files): Likewise.
2345 * modules/pread-tests (Files): Likewise.
2346 * modules/printf-posix-tests (Files): Likewise.
2347 * modules/pty-tests (Files): Likewise.
2348 * modules/random_r-tests (Files): Likewise.
2349 * modules/rawmemchr-tests (Files): Likewise.
2350 * modules/readlink-tests (Files): Likewise.
2351 * modules/remove-tests (Files): Likewise.
2352 * modules/rename-tests (Files): Likewise.
2353 * modules/renameat-tests (Files): Likewise.
2354 * modules/rmdir-tests (Files): Likewise.
2355 * modules/round-tests (Files): Likewise.
2356 * modules/roundf-tests (Files): Likewise.
2357 * modules/roundl-tests (Files): Likewise.
2358 * modules/select-tests (Files): Likewise.
2359 * modules/setenv-tests (Files): Likewise.
2360 * modules/sigaction-tests (Files): Likewise.
2361 * modules/sleep-tests (Files): Likewise.
2362 * modules/snprintf-posix-tests (Files): Likewise.
2363 * modules/snprintf-tests (Files): Likewise.
2364 * modules/sprintf-posix-tests (Files): Likewise.
2365 * modules/stat-tests (Files): Likewise.
2366 * modules/strcasestr-tests (Files): Likewise.
2367 * modules/strchrnul-tests (Files): Likewise.
2368 * modules/strerror-tests (Files): Likewise.
2369 * modules/strsignal-tests (Files): Likewise.
2370 * modules/strstr-tests (Files): Likewise.
2371 * modules/strtod-tests (Files): Likewise.
2372 * modules/strverscmp-tests (Files): Likewise.
2373 * modules/symlink-tests (Files): Likewise.
2374 * modules/symlinkat-tests (Files): Likewise.
2375 * modules/times-tests (Files): Likewise.
2376 * modules/trunc-tests (Files): Likewise.
2377 * modules/truncf-tests (Files): Likewise.
2378 * modules/truncl-tests (Files): Likewise.
2379 * modules/tsearch-tests (Files): Likewise.
2380 * modules/uname-tests (Files): Likewise.
2381 * modules/unlink-tests (Files): Likewise.
2382 * modules/unsetenv-tests (Files): Likewise.
2383 * modules/usleep-tests (Files): Likewise.
2384 * modules/utimensat-tests (Files): Likewise.
2385 * modules/vasprintf-tests (Files): Likewise.
2386 * modules/vdprintf-posix-tests (Files): Likewise.
2387 * modules/vfprintf-posix-tests (Files): Likewise.
2388 * modules/vprintf-posix-tests (Files): Likewise.
2389 * modules/vsnprintf-posix-tests (Files): Likewise.
2390 * modules/vsnprintf-tests (Files): Likewise.
2391 * modules/vsprintf-posix-tests (Files): Likewise.
2392 * modules/wcrtomb-tests (Files): Likewise.
2393 * modules/wcsnrtombs-tests (Files): Likewise.
2394 * modules/wcsrtombs-tests (Files): Likewise.
2395 * modules/wcwidth-tests (Files): Likewise.
2396 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
2397 * tests/test-isinf.c (isinf): Likewise.
2398 * tests/test-isnan.c (isnan): Likewise.
2399 * tests/test-signbit.c (signbit): Likewise.
2400 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
2401 declaration, either as macro or with correct signature.
2402 (select): Ensure function under test is declared with correct
2403 signature in correct header.
2404 * tests/test-atexit.c (atexit): Likewise.
2405 * tests/test-btowc.c (btowc): Likewise.
2406 * tests/test-canonicalize-lgpl.c (realpath)
2407 (canonicalize_file_name): Likewise.
2408 * tests/test-ceilf1.c (ceilf): Likewise.
2409 * tests/test-ceill.c (ceill): Likewise.
2410 * tests/test-chown.c (chown): Likewise.
2411 * tests/test-dprintf-posix.c (dprintf): Likewise.
2412 * tests/test-dup2.c (dup2): Likewise.
2413 * tests/test-dup3.c (dup3): Likewise.
2414 * tests/test-duplocale.c (duplocale): Likewise.
2415 * tests/test-fchdir.c (fchdir): Likewise.
2416 * tests/test-fchownat.c (fchownat): Likewise.
2417 * tests/test-fcntl.c (fcntl): Likewise.
2418 * tests/test-fdopendir.c (fdopendir): Likewise.
2419 * tests/test-fflush.c (fflush): Likewise.
2420 * tests/test-flock.c (flock): Likewise.
2421 * tests/test-floorf1.c (floorf): Likewise.
2422 * tests/test-floorl.c (floorl): Likewise.
2423 * tests/test-fnmatch.c (fnmatch): Likewise.
2424 * tests/test-fopen.c (fopen): Likewise.
2425 * tests/test-fprintf-posix.c (fprintf): Likewise.
2426 * tests/test-freopen.c (freopen): Likewise.
2427 * tests/test-frexp.c (frexp): Likewise.
2428 * tests/test-frexpl.c (frexpl): Likewise.
2429 * tests/test-fseek.c (fseek): Likewise.
2430 * tests/test-fseeko.c (fseeko): Likewise.
2431 * tests/test-fstatat.c (fstatat): Likewise.
2432 * tests/test-fsync.c (fsync): Likewise.
2433 * tests/test-ftell.c (ftell): Likewise.
2434 * tests/test-ftello.c (ftello): Likewise.
2435 * tests/test-futimens.c (futimens): Likewise.
2436 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
2437 (gai_strerror): Likewise.
2438 * tests/test-getcwd.c (getcwd): Likewise.
2439 * tests/test-getdelim.c (getdelim): Likewise.
2440 * tests/test-getdtablesize.c (getdtablesize): Likewise.
2441 * tests/test-getgroups.c (getgroups): Likewise.
2442 * tests/test-gethostname.c (gethostname): Likewise.
2443 * tests/test-getline.c (getline): Likewise.
2444 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
2446 * tests/test-gettimeofday.c (gettimeofday): Likewise.
2447 * tests/test-glob.c (glob, globfree): Likewise.
2448 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
2449 * tests/test-inet_ntop.c (inet_ntop): Likewise.
2450 * tests/test-inet_pton.c (inet_pton): Likewise.
2451 * tests/test-isblank.c (isblank): Likewise.
2452 * tests/test-lchown.c (lchown): Likewise.
2453 * tests/test-ldexpl.c (ldexpl): Likewise.
2454 * tests/test-link.c (link): Likewise.
2455 * tests/test-linkat.c (linkat): Likewise.
2456 * tests/test-lseek.c (lseek): Likewise.
2457 * tests/test-lstat.c (lstat): Likewise.
2458 * tests/test-mbrtowc.c (mbrtowc): Likewise.
2459 * tests/test-mbsinit.c (mbsinit): Likewise.
2460 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
2461 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
2462 * tests/test-memchr.c (memchr): Likewise.
2463 * tests/test-memcmp.c (memcmp): Likewise.
2464 * tests/test-memmem.c (memmem): Likewise.
2465 * tests/test-memrchr.c (memrchr): Likewise.
2466 * tests/test-mkdir.c (mkdir): Likewise.
2467 * tests/test-mkdirat.c (mkdirat): Likewise.
2468 * tests/test-mkfifo.c (mkfifo): Likewise.
2469 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
2470 * tests/test-mknod.c (mknod): Likewise.
2471 * tests/test-nanosleep.c (nanosleep): Likewise.
2472 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
2473 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
2475 * tests/test-open.c (open): Likewise.
2476 * tests/test-openat.c (openat): Likewise.
2477 * tests/test-perror.c (perror): Likewise.
2478 * tests/test-pipe2.c (pipe2): Likewise.
2479 * tests/test-poll.c (poll): Likewise.
2480 * tests/test-popen.c (popen, pclose): Likewise.
2481 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
2482 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
2483 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
2484 (posix_spawn_file_actions_destroy)
2485 (posix_spawn_file_actions_addclose)
2486 (posix_spawn_file_actions_addopen)
2487 (posix_spawn_file_actions_adddup2): Likewise.
2488 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
2489 * tests/test-pread.c (pread): Likewise.
2490 * tests/test-printf-posix.c (printf): Likewise.
2491 * tests/test-pty.c (openpty, forkpty): Likewise.
2492 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
2493 (random_r): Likewise.
2494 * tests/test-rawmemchr.c (rawmemchr): Likewise.
2495 * tests/test-readlink.c (readlink): Likewise.
2496 * tests/test-remove.c (remove): Likewise.
2497 * tests/test-rename.c (rename): Likewise.
2498 * tests/test-renameat.c (renameat): Likewise.
2499 * tests/test-rmdir.c (rmdir): Likewise.
2500 * tests/test-round1.c (round): Likewise.
2501 * tests/test-roundf1.c (roundf): Likewise.
2502 * tests/test-roundl.c (roundl): Likewise.
2503 * tests/test-setenv.c (setenv): Likewise.
2504 * tests/test-sigaction.c (sigaction): Likewise.
2505 * tests/test-sleep.c (sleep): Likewise.
2506 * tests/test-snprintf.c (snprintf): Likewise.
2507 * tests/test-sprintf-posix.c (sprintf): Likewise.
2508 * tests/test-stat.c (stat): Likewise.
2509 * tests/test-stpncpy.c (stpncpy): Likewise.
2510 * tests/test-strcasestr.c (strcasestr): Likewise.
2511 * tests/test-strchrnul.c (strchrnul): Likewise.
2512 * tests/test-strerror.c (strerror): Likewise.
2513 * tests/test-strsignal.c (strsignal): Likewise.
2514 * tests/test-strstr.c (strstr): Likewise.
2515 * tests/test-strtod.c (strtod): Likewise.
2516 * tests/test-strverscmp.c (strverscmp): Likewise.
2517 * tests/test-symlink.c (symlink): Likewise.
2518 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
2519 * tests/test-times.c (times): Likewise.
2520 * tests/test-trunc1.c (trunc): Likewise.
2521 * tests/test-truncf1.c (truncf): Likewise.
2522 * tests/test-truncl.c (truncl): Likewise.
2523 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
2525 * tests/test-uname.c (uname): Likewise.
2526 * tests/test-unlink.c (unlink): Likewise.
2527 * tests/test-unlinkat.c (unlinkat): Likewise.
2528 * tests/test-unsetenv.c (unsetenv): Likewise.
2529 * tests/test-usleep.c (usleep): Likewise.
2530 * tests/test-utimensat.c (utimensat): Likewise.
2531 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
2532 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
2533 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
2534 * tests/test-vprintf-posix.c (vprintf): Likewise.
2535 * tests/test-vsnprintf.c (vsnprintf): Likewise.
2536 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
2537 * tests/test-wcrtomb.c (wcrtomb): Likewise.
2538 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
2539 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
2540 * tests/test-wcwidth.c (wcwidth): Likewise.
2542 build: pull in conditional headers during GNULIB_POSIXCHECK
2543 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
2544 definitions from any conditionally-included headers.
2545 * lib/stdlib.in.h (includes): Likewise.
2546 * lib/unistd.in.h (includes): Likewise.
2548 2009-12-24 Bruno Haible <bruno@clisp.org>
2550 * tests/test-argv-iter.c: Include header file being tested immediately
2552 * tests/test-base64.c: Likewise.
2553 * tests/test-flock.c: Likewise.
2554 * tests/test-fsync.c: Likewise.
2555 * tests/test-getdate.c: Likewise.
2556 * tests/test-getndelim2.c: Likewise.
2557 * tests/test-isfinite.c: Likewise.
2558 * tests/test-isinf.c: Likewise.
2559 * tests/test-strerror.c: Likewise.
2560 * tests/test-strsignal.c: Likewise.
2562 2009-12-23 Eric Blake <ebb9@byu.net>
2564 unistd: work around cygwin bug
2565 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
2566 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
2567 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
2569 2009-12-23 Bruno Haible <bruno@clisp.org>
2571 localename: More tests.
2572 * tests/test-localename.c (SIZEOF): New macro.
2573 (categories): New variable.
2574 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
2575 test_locale_name_default): Add test w.r.t. thread locale.
2576 (test_locale_name_thread): New function.
2579 localename: Make aware of thread locale.
2580 * lib/localename.h (gl_locale_name_thread): New declaration.
2581 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
2582 behaviour with respect to thread locale.
2583 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
2584 <langinfo.h>, glthread/lock.h.
2585 (SIZE_BITS): New macro.
2586 (string_hash): New function.
2587 (struct hash_node): New type.
2588 (HASH_TABLE_SIZE): New macro.
2589 (struniq_hash_table, struniq_lock): New variables.
2590 (struniq): New function.
2591 (gl_locale_name_thread): New function.
2592 (gl_locale_name): Invoke it.
2593 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
2594 * modules/localename (Depends-on): Add lock.
2595 Reported by Mike Gran <spk121@yahoo.com>.
2597 2009-12-23 Eric Blake <ebb9@byu.net>
2600 * modules/va-args: New file.
2601 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
2602 * MODULES.html.sh (Core language properties): Mention it.
2604 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
2605 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
2606 named alias for __attribute__((__unused__)).
2607 * lib/chown.c: Update client.
2608 * lib/fchmodat.c: Likewise.
2609 * lib/fts.c: Likewise.
2610 * lib/getdate.y: Likewise.
2611 * lib/getgroups.c: Likewise.
2612 * lib/getopt.c: Likewise.
2613 * lib/getugroups.c: Likewise.
2614 * lib/mkdir.c: Likewise.
2615 * lib/mkfifo.c: Likewise.
2616 * lib/mkfifoat.c: Likewise.
2617 * lib/mknod.c: Likewise.
2618 * lib/mknodat.c: Likewise.
2619 * lib/readlink.c: Likewise.
2620 * lib/se-context.in.h: Likewise.
2621 * lib/se-selinux.in.h: Likewise.
2622 * lib/sockets.c: Likewise.
2623 * lib/symlink.c: Likewise.
2624 * lib/symlinkat.c: Likewise.
2625 * lib/unicodeio.c: Likewise.
2626 * lib/unistr.h: Likewise.
2627 * tests/test-areadlink.c: Likewise.
2628 * tests/test-areadlinkat.c: Likewise.
2629 * tests/test-filenamecat.c: Likewise.
2630 * tests/test-fseeko.c: Likewise.
2631 * tests/test-ftello.c: Likewise.
2632 * tests/test-getdate.c: Likewise.
2633 * tests/test-getgroups.c: Likewise.
2634 * tests/test-gethostname.c: Likewise.
2635 * tests/test-quotearg.c: Likewise.
2636 * tests/test-version-etc.c: Likewise.
2637 * tests/test-xalloc-die.c: Likewise.
2638 * tests/test-xfprintf-posix.c: Likewise.
2639 * tests/test-xprintf-posix.c: Likewise.
2640 * tests/test-xvasprintf.c: Likewise.
2642 tests: avoid compiler warnings
2643 * tests/test-fcntl.c (main): Delete unused parameters.
2644 * tests/test-freopen-safer.c (main): Likewise.
2645 * tests/test-xalloc-die.c (main): Mark unused parameters.
2646 * tests/test-fseeko.c (main): Likewise.
2647 * tests/test-ftello.c (main): Likewise.
2648 * tests/test-nanosleep.c (main): Avoid declaration warning.
2649 * tests/test-sleep.c (main): Likewise.
2650 * tests/test-unsetenv.c (main): Silence warning about string
2652 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
2654 2009-12-23 Bruno Haible <bruno@clisp.org>
2656 * tests/test-localename.c (test_locale_name): New function, extracted
2657 from main. Also test mixed situations.
2658 (test_locale_name_posix, test_locale_name_environ,
2659 test_locale_name_default): New functions.
2660 (main): Invoke them all.
2661 * modules/localename-tests (configure.ac): Test for newlocale.
2663 2009-12-23 Bruno Haible <bruno@clisp.org>
2665 unistd: Ensure getcwd gets declared before being overridden.
2666 * lib/unistd.in.h: Conditionally include <io.h>.
2668 2009-12-22 Bruno Haible <bruno@clisp.org>
2670 wchar: Diagnose broken combination of glibc and gcc versions and flags.
2671 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
2672 (gl_WCHAR_H): Invoke it.
2673 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
2674 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
2675 Reported by Karl Berry <karl@freefriends.org>.
2677 2009-12-22 Eric Blake <ebb9@byu.net>
2679 math, unistd: avoid redundant includes
2680 * lib/math.in.h (isnan): No need to re-include <math.h>.
2681 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
2683 getsubopt: work around cygwin bug
2684 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
2685 avoid conflicting with system getsubopt.
2686 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
2689 getopt: synchronize from glibc
2690 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
2691 parameter order. Adjust all callers.
2692 (_getopt_internal_r, main): Adjust quoting in error messages.
2693 Drop considerations for outdated POSIX 1003.2 error message.
2694 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
2696 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
2698 test-getopt: test stderr behavior
2699 * modules/getopt-posix-tests (Depends-on): Add dup2.
2700 * tests/test-getopt.c (ASSERT): Avoid stderr.
2701 (main): Move stderr to a temporary file.
2702 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
2703 Instead, add parameter to inform caller if output occurred.
2704 (test_getopt): Adjust all existing tests to expect silence, and
2705 add new tests of leading ":".
2706 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
2707 glibc shortcomings with leading "-:" or "+:" in optstring.
2708 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2710 * doc/posix-functions/getopt.texi (getopt): Likewise.
2712 test-getopt: enhance test
2713 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
2715 * tests/test-getopt.c (OPTIND_MIN): Move...
2716 * tests/test-getopt.h (OPTIND_MIN): ...here.
2717 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
2718 Require that optind=0 works, since modern BSD supports it in
2719 addition to optreset, and since coreutils expects it.
2720 (test_getopt_long_only): New test.
2721 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
2722 glibc shortcomings with 'W;', and enforcement of optind=0.
2723 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2726 2009-12-21 Bruno Haible <bruno@clisp.org>
2728 localename: Improvements for MacOS X and Cygwin.
2729 * lib/localename.h (gl_locale_name_environ): New declaration.
2730 * lib/localename.c (gl_locale_name_environ): New function, extracted from
2731 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
2732 (gl_locale_name_posix): Invoke it.
2733 (gl_locale_name_default): Add comments. Use Windows native API also on
2736 2009-12-21 Bruno Haible <bruno@clisp.org>
2738 Update list of Win32 locale ids.
2739 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
2740 (LANG_SAMI): Renamed from LANG_SAAMI.
2741 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
2742 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
2743 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
2744 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
2745 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
2746 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
2747 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
2748 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
2749 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
2750 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
2751 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
2752 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
2753 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
2754 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
2755 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
2756 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
2757 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
2758 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
2759 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
2760 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
2761 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
2762 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
2763 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
2764 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
2765 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
2766 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
2767 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
2768 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
2769 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
2770 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
2771 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
2772 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
2773 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
2774 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
2775 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
2776 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
2777 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
2778 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
2779 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
2780 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
2781 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
2782 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
2783 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
2784 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
2785 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
2786 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
2787 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
2788 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
2789 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
2790 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
2791 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
2792 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
2793 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
2794 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
2795 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
2796 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
2797 Add more languages and countries for Sami, Sorbian. Add more countries
2798 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
2799 for Pashto. Change country for Syriac, Tswana.
2801 2009-12-21 Eric Blake <ebb9@byu.net>
2803 test-utimens: avoid spurious failure
2804 * tests/test-chown.h (nap): Factor...
2805 * tests/nap.h: ...into new file.
2806 * tests/test-lchown.h (nap): Avoid duplication.
2807 * tests/test-utimens-common.h (nap): Use shared implementation,
2808 necessary on file systems with 1-second resolution.
2809 * modules/chown-tests (Files): Include new file.
2810 * modules/fdutimensat-tests (Files): Likewise.
2811 * modules/futimens-tests (Files): Likewise.
2812 * modules/lchown-tests (Files): Likewise.
2813 * modules/openat-tests (Files): Likewise.
2814 * modules/utimens-tests (Files): Likewise.
2815 * modules/utimensat-tests (Files): Likewise.
2817 2009-12-19 Eric Blake <ebb9@byu.net>
2819 futimens, utimensat: work around Linux bug
2820 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
2821 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2822 * lib/utimensat.c (rpl_utimensat): Work around it.
2823 * lib/futimens.c (rpl_futimens): Adjust comment.
2825 utimens: work around Linux ctime bug
2826 * lib/utimens.c (detect_ctime_bug): New helper function.
2827 (update_timespec): Differentiate between workaround needed for
2828 this bug vs. what is needed for systems that lack utimensat.
2829 (fdutimens, lutimens): Work around bug.
2831 utimens: check for ctime update
2832 * tests/test-utimens-common.h (check_ctime): Define.
2833 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
2834 * tests/test-futimens.h (test_futimens): Likewise.
2835 * tests/test-lutimens.h (test_lutimens): Likewise.
2836 * doc/posix-functions/futimens.texi (futimens): Document the bug.
2837 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
2839 2009-12-19 Bruno Haible <bruno@clisp.org>
2841 dprintf-posix: Check against memory leak fixed on 2009-12-15.
2842 * tests/test-dprintf-posix2.sh: New file.
2843 * tests/test-dprintf-posix2.c: New file.
2844 * modules/dprintf-posix-tests (Files): Add them.
2845 (configure.ac): Check for getrlimit and setrlimit.
2846 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
2848 2009-12-19 Bruno Haible <bruno@clisp.org>
2850 fprintf-posix: Check against memory leak fixed on 2009-12-15.
2851 * tests/test-fprintf-posix3.sh: New file.
2852 * tests/test-fprintf-posix3.c: New file.
2853 * modules/fprintf-posix-tests (Files): Add them.
2854 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
2856 2009-12-19 Eric Blake <ebb9@byu.net>
2858 dirfd: fix prototype
2859 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
2860 * lib/dirfd.c (dirfd): Likewise.
2862 canonicalize: reduce memory usage
2863 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
2865 Reported by Solar Designer <solar@openwall.com>.
2867 2009-12-19 Bruno Haible <bruno@clisp.org>
2869 New module attribute 'Applicability'.
2870 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
2871 * gnulib-tool: New option --extract-applicability.
2872 (func_usage): Document it.
2873 (sed_extract_prog): Recognize it.
2874 (func_get_applicability): New function.
2875 (func_import): Generalize handling of 'link-warning' module.
2876 * modules/link-warning (Applicability): New section.
2877 * modules/arg-nonnull (Applicability): New section.
2878 Repoted by Simon Josefsson <simon@josefsson.org>.
2880 2009-12-19 Bruno Haible <bruno@clisp.org>
2883 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
2884 * lib/fseeko.c (rpl_fseeko): Likewise.
2886 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
2888 * lib/gl_list.h: Fix typo in comment.
2890 2009-12-16 Eric Blake <ebb9@byu.net>
2892 fcntl: use to simplify other modules
2893 * modules/cloexec (Depends-on): Add fcntl.
2894 * modules/fchdir (Depends-on): Likewise.
2895 * modules/fd-safer-flag (Depends-on): Likewise.
2896 * modules/unistd-safer (Depends-on): Likewise.
2897 * modules/dup3 (configure.ac): Set module indicator.
2898 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
2900 * lib/fchdir.c (_gl_register_dup): Fix comment.
2901 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
2902 * lib/dup-safer.c (dup_safer): Likewise.
2903 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
2904 * lib/dup3.c (dup3): Likewise.
2905 * tests/test-fchdir.c (main): Enhance test.
2906 Fixes a dup_cloexec bug reported by OndÅ™ej VaÅ¡Ãk.
2908 fcntl: port portions of fcntl to mingw
2909 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
2910 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
2911 replacement for mingw.
2912 * modules/fcntl (Description): Update.
2913 (Depends-on): Add dup2.
2914 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
2915 * modules/fcntl-h (Makefile.am): Substitute it.
2916 * lib/fcntl.in.h (fcntl): Update declaration.
2917 (F_DUPFD, F_GETFD): New macros, when needed.
2918 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
2919 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
2920 * tests/test-fcntl.c (check_flags, main): Enhance test for items
2923 fcntl: work around cygwin bug in F_DUPFD
2924 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
2925 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
2926 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
2927 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
2928 * doc/posix-functions/fcntl.texi (fcntl): Document it.
2930 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
2931 * modules/fcntl (Files): List new files.
2932 (configure.ac): Run a test.
2933 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
2934 * lib/fcntl.c (rpl_fcntl): Likewise.
2935 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
2936 (gl_FCNTL_H): Always replace fcntl.h.
2937 * modules/fcntl-h (Makefile.am): Substitute witnesses.
2938 * lib/fcntl.in.h (fcntl): Declare replacement.
2939 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
2940 needed, plus a witness.
2941 * doc/posix-functions/fcntl.texi (fcntl): Document this.
2942 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
2943 * tests/test-fcntl.c: New file.
2944 * modules/fcntl-tests: Likewise.
2946 binary-io: avoid potential compilation warning
2947 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
2950 fflush: avoid compilation error on NetBSD
2951 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
2952 between off_t and fpos_t, since the latter is sometimes a struct.
2953 * lib/fseeko.c (rpl_fseeko): Likewise.
2954 Reported by Alexander Nasonov <alnsn@yandex.ru>.
2956 2009-12-15 Eric Blake <ebb9@byu.net>
2958 fcntl-h, stdio, sys_ioctl: fix declarations
2959 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
2960 function must not take arguments.
2961 * lib/sys_ioctl.in.h (ioctl): Likewise.
2962 * lib/fcntl.in.h (openat): Likewise. Declare extern.
2963 (open): Add a link warning.
2965 2009-12-15 Jim Meyering <meyering@redhat.com>
2967 areadlink, areadlink-with-size: relax license to LGPLv2+
2968 * modules/areadlink (License): Relax to LGPLv2+.
2969 * modules/areadlink-with-size (License): Likewise.
2971 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
2972 Bruno Haible <bruno@clisp.org>
2974 *printf: Fix memory leak.
2975 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
2976 * lib/vfprintf.c (vfprintf): Likewise.
2977 * lib/dprintf.c (dprintf): Likewise.
2978 * lib/vdprintf.c (vdprintf): Likewise.
2980 2009-12-14 Eric Blake <ebb9@byu.net>
2982 accept4: adjust module dependencies
2983 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
2985 utimens: one more try at avoiding compiler warning
2986 * lib/utimens.c (lutimens): Lower scope of result.
2988 2009-12-13 Bruno Haible <bruno@clisp.org>
2990 Move the malloc checking from module 'list' to new module 'xlist'.
2991 * modules/xlist: New file.
2992 * lib/gl_xlist.h: New file.
2993 * lib/gl_xlist.c: New file.
2994 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
2995 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
2996 gl_list_add_last, gl_list_add_before, gl_list_add_after,
2997 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
2998 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
2999 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
3000 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
3001 gl_sortedlist_nx_add): New declarations.
3002 (struct gl_list_implementation): Rename and change methods accordingly.
3003 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
3004 (gl_list_nx_create): Renamed from gl_list_create.
3005 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
3006 (gl_list_nx_set_at): Renamed from gl_list_set_at.
3007 (gl_list_nx_add_first): Renamed from gl_list_add_first.
3008 (gl_list_nx_add_last): Renamed from gl_list_add_last.
3009 (gl_list_nx_add_before): Renamed from gl_list_add_before.
3010 (gl_list_nx_add_after): Renamed from gl_list_add_after.
3011 (gl_list_nx_add_at): Renamed from gl_list_add_at.
3012 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
3013 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
3014 gl_list_create_empty.
3015 (gl_list_nx_create): Renamed from gl_list_create.
3016 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
3017 (gl_list_nx_set_at): Renamed from gl_list_set_at.
3018 (gl_list_nx_add_first): Renamed from gl_list_add_first.
3019 (gl_list_nx_add_last): Renamed from gl_list_add_last.
3020 (gl_list_nx_add_before): Renamed from gl_list_add_before.
3021 (gl_list_nx_add_after): Renamed from gl_list_add_after.
3022 (gl_list_nx_add_at): Renamed from gl_list_add_at.
3023 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
3024 * lib/gl_array_list.c: Don't include xalloc.h.
3025 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
3026 NULL upon out-of-memory.
3027 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
3029 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
3030 Change return type to 'int'.
3031 (gl_array_nx_set_at): Renamed from gl_array_set_at.
3032 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
3033 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
3035 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
3037 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
3039 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
3041 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
3043 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
3045 (gl_array_list_implementation): Update.
3046 * lib/gl_carray_list.c: Don't include xalloc.h.
3047 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
3048 Return NULL upon out-of-memory.
3049 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
3051 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
3052 Change return type to 'int'.
3053 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
3054 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
3055 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
3057 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
3059 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
3061 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
3062 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
3063 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
3065 (gl_carray_list_implementation): Update.
3066 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
3067 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
3068 gl_linked_create_empty. Return NULL upon out-of-memory.
3069 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
3071 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
3072 Change return type to 'int'. Return -1 upon out-of-memory.
3073 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
3075 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
3077 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
3079 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
3080 NULL upon out-of-memory.
3081 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
3083 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
3085 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
3087 * lib/gl_linked_list.c: Don't include xalloc.h.
3088 (gl_linked_list_implementation): Update.
3089 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
3090 (add_to_bucket): Change return type to 'int'.
3091 (gl_linkedhash_list_implementation): Update.
3092 * lib/gl_anytree_list1.h (free_subtree): New function.
3093 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
3094 gl_tree_create_empty. Return NULL upon out-of-memory.
3095 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
3096 Change return type to 'int'. Return -1 upon out-of-memory.
3097 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
3099 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
3100 (gl_tree_remove_node): New function, moved here from
3101 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
3102 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
3104 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
3105 malloc, not xmalloc. Return NULL upon out-of-memory.
3106 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
3108 (gl_tree_remove_node_from_tree): New function, extracted from
3109 gl_tree_remove_node.
3110 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
3112 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
3114 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
3116 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
3118 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
3119 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
3120 not xmalloc. Return NULL upon out-of-memory.
3121 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
3123 (gl_tree_remove_node_from_tree): New function, extracted from
3124 gl_tree_remove_node.
3125 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
3127 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
3129 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
3131 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
3133 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
3134 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
3135 gl_anytree_list1.h before gl_anyavltree_list2.h.
3136 (gl_avltree_list_implementation): Update.
3137 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
3138 gl_anytree_list1.h before gl_anyavltree_list2.h.
3139 (gl_rbtree_list_implementation): Update.
3140 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
3141 Change return type to 'int'. Return -1 upon out-of-memory. Use
3143 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
3144 (gl_avltreehash_list_implementation): Update.
3145 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
3146 (gl_rbtreehash_list_implementation): Update.
3147 * modules/array-list (Depends-on): Remove xalloc.
3148 * modules/carray-list (Depends-on): Likewise.
3149 * modules/linked-list (Depends-on): Likewise.
3150 * modules/linkedhash-list (Depends-on): Likewise.
3151 * modules/avltree-list (Depends-on): Likewise.
3152 * modules/rbtree-list (Depends-on): Likewise.
3153 * modules/avltreehash-list (Depends-on): Likewise.
3154 * modules/rbtreehash-list (Depends-on): Likewise.
3156 * modules/xsublist: New file.
3157 * lib/gl_xsublist.h: New file.
3158 * lib/gl_xsublist.c: New file.
3159 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
3160 (gl_sublist_nx_create): New declaration.
3161 * lib/gl_sublist.c: Don't include xalloc.h.
3162 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
3163 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
3164 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
3165 Change return type to 'int'. Return -1 upon out-of-memory.
3166 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
3168 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
3169 NULL upon out-of-memory.
3170 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
3172 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
3173 NULL upon out-of-memory.
3174 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
3175 NULL upon out-of-memory.
3176 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
3178 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
3179 (gl_sublist_list_implementation): Update.
3180 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
3182 * modules/sublist (Depends-on): Remove xalloc.
3184 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
3185 * tests/test-carray_list.c: Likewise.
3186 * tests/test-linked_list.c: Likewise.
3187 * tests/test-linkedhash_list.c: Likewise.
3188 * tests/test-avltree_list.c: Likewise.
3189 * tests/test-rbtree_list.c: Likewise.
3190 * tests/test-avltreehash_list.c: Likewise.
3191 * tests/test-rbtreehash_list.c: Likewise.
3192 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
3193 * modules/carray-list-tests (Makefile.am): Likewise.
3194 * modules/linked-list-tests (Makefile.am): Likewise.
3195 * modules/linkedhash-list-tests (Makefile.am): Likewise.
3196 * modules/avltree-list-tests (Makefile.am): Likewise.
3197 * modules/rbtree-list-tests (Makefile.am): Likewise.
3198 * modules/avltreehash-list-tests (Makefile.am): Likewise.
3199 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
3201 * NEWS: Mention the changes.
3203 * lib/clean-temp.c: Include gl_xlist.h.
3204 * modules/clean-temp (Depends-on): Add xlist.
3206 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
3207 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
3209 * tests/test-array_oset.c: Include gl_xlist.h.
3210 * modules/array-oset-tests (Depends-on): Add xlist.
3212 Reported by José E. Marchesi <jemarch@gnu.org>.
3214 2009-12-13 Bruno Haible <bruno@clisp.org>
3216 Move the malloc checking from module 'oset' to new module 'xoset'.
3217 * modules/xoset: New file.
3218 * lib/gl_xoset.h: New file.
3219 * lib/gl_xoset.c: New file.
3220 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
3222 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
3223 (struct gl_oset_implementation): Rename and change methods accordingly.
3224 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
3225 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3226 'int'. Mark as __warn_unused_result__.
3227 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
3228 gl_oset_create_empty.
3229 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
3231 * lib/gl_array_oset.c: Don't include xalloc.h.
3232 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
3233 malloc, not xmalloc.
3234 (grow): Change return type to 'int'. Don't call xalloc_die.
3235 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
3237 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
3239 (gl_array_oset_implementation): Update.
3240 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
3241 gl_tree_create_empty.
3242 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
3244 * lib/gl_avltree_oset.c: Don't include xalloc.h.
3245 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3247 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3249 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3251 (gl_avltree_oset_implementation): Update.
3252 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
3253 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
3255 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
3257 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
3259 (gl_rbtree_oset_implementation): Update.
3260 * modules/array-oset (Depends-on): Remove xalloc.
3261 * modules/avltree-oset (Depends-on): Likewise.
3262 * modules/rbtree-oset (Depends-on): Likewise.
3263 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
3264 * tests/test-avltree_oset.c: Likewise.
3265 * tests/test-rbtree_oset.c: Likewise.
3266 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
3267 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
3268 * modules/rbtree-oset-tests (Makefile.am): Likewise.
3269 * NEWS: Mention the change.
3271 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
3273 maint.mk: allow a project to override release-prep commands
3274 * top/maint.mk (alpha, beta, stable): Move release-preparatory
3275 commands into a new rule.
3276 (release-prep): New rule.
3277 (release-prep-hook): New overridable variable.
3279 2009-12-13 Bruno Haible <bruno@clisp.org>
3281 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
3283 2009-12-13 Jim Meyering <meyering@redhat.com>
3285 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
3286 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
3288 2009-12-12 Bruno Haible <bruno@clisp.org>
3291 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
3293 2009-12-12 Karl Berry <karl@gnu.org>
3295 * config/srclist.txt (strtoll.c): tab changes, no more sync.
3297 2009-12-12 Bruno Haible <bruno@clisp.org>
3299 * m4/po.m4: Undo incorrect untabification.
3301 2009-12-12 Bruno Haible <bruno@clisp.org>
3303 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
3304 * modules/c-strtod (Depends-on): Add locale.
3305 * modules/c-strtold (Depends-on): Likewise.
3307 2009-12-12 Bruno Haible <bruno@clisp.org>
3309 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
3311 2009-12-11 Eric Blake <ebb9@byu.net>
3313 setenv: relax requirement in light of POSIX ruling
3314 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
3316 * tests/test-setenv.c (main): Relax test.
3317 * tests/test-unsetenv.c (main): Likewise.
3318 * doc/posix-functions/setenv.texi (setenv): Document this.
3319 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
3321 2009-12-11 Bruno Haible <bruno@clisp.org>
3323 New module 'fd-safer-flag'.
3324 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
3325 * lib/dup-safer.c (dup_safer_flag): Remove function.
3326 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
3327 * lib/fd-safer.c (fd_safer_flag): Remove function.
3328 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
3329 * modules/cloexec (configure.ac): Drop indicator macro.
3330 * modules/fd-safer-flag: New file.
3331 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
3332 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
3333 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
3335 2009-12-11 Bruno Haible <bruno@clisp.org>
3337 Tests for module 'nl_langinfo'.
3338 * modules/nl_langinfo-tests: New file.
3339 * tests/test-nl_langinfo.sh: New file.
3340 * tests/test-nl_langinfo.c: New file.
3342 New module 'nl_langinfo'.
3343 * lib/nl_langinfo.c: New file.
3344 * m4/nl_langinfo.m4: New file.
3345 * modules/nl_langinfo: New file.
3346 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
3348 2009-12-11 Bruno Haible <bruno@clisp.org>
3350 Tests for module 'langinfo'.
3351 * modules/langinfo-tests: New file.
3352 * tests/test-langinfo.c: New file.
3354 New module 'langinfo'.
3355 * lib/langinfo.in.h: New file.
3356 * m4/langinfo_h.m4: New file.
3357 * modules/langinfo: New file.
3358 * doc/posix-headers/langinfo.texi: Mention the new module.
3360 2009-12-11 Bruno Haible <bruno@clisp.org>
3362 * lib/config.charset: Untabify.
3364 2009-12-11 Bruno Haible <bruno@clisp.org>
3366 * modules/unistd-safer (configure.ac): Drop indicator macro.
3368 2009-12-11 Bruno Haible <bruno@clisp.org>
3370 Move pipe2-safer code to its own file.
3371 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
3372 * lib/pipe-safer.c (pipe2_safer): Remove function.
3373 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
3374 (Makefile.am): Add it to lib_SOURCES.
3376 2009-12-10 Bruno Haible <bruno@clisp.org>
3378 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
3380 2009-12-10 Bruno Haible <bruno@clisp.org>
3382 Declare which arguments expect non-NULL values, for GCC and clang.
3383 * build-aux/arg-nonnull.h: New file.
3384 * modules/arg-nonnull: New file.
3385 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
3386 (inet_ntop, inet_pton): Use it.
3387 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
3388 (closedir, dirfd, opendir, scandir, alphasort): Use it.
3389 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
3390 (open, openat): Use it.
3391 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
3393 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
3394 (getopt, getopt_long, getopt_long_only): Use it.
3395 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
3396 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
3398 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
3399 (iconv_open): Use it.
3400 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
3401 (strtoimax, strtoumax): Use it.
3402 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
3403 (duplocale): Use it.
3404 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
3405 (frexp, frexpl): Use it.
3406 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
3407 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
3408 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
3409 (tsearch, tfind, tdelete, twalk): Use it.
3410 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
3411 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
3412 sigpending): Use it.
3413 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
3414 (posix_spawn, posix_spawnp, posix_spawnattr_init,
3415 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
3416 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
3417 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
3418 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
3419 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
3420 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
3421 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
3422 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
3423 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
3425 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
3426 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
3427 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
3428 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
3429 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
3430 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
3431 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
3432 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
3433 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
3434 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
3435 strtoull, unsetenv): Use it.
3436 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
3437 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
3438 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
3439 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3440 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3441 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
3442 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
3443 (strcasecmp, strncasecmp): Use it.
3444 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
3445 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
3446 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
3447 rpl_setsockopt): Use it.
3448 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
3449 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
3450 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
3451 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
3452 (gettimeofday): Use it.
3453 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
3455 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
3457 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
3458 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
3459 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
3460 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
3461 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
3462 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
3463 unlinkat, write): Use it.
3464 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
3465 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
3466 * lib/argv-iter.h: Include arg-nonnull.h.
3467 (_ATTRIBUTE_NONNULL_): Remove macro.
3468 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
3469 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
3470 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
3472 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
3473 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
3474 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
3475 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
3476 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
3477 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
3478 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
3479 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
3480 * modules/arpa_inet (Depends-on): Add arg-nonnull.
3481 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
3482 * modules/dirent (Depends-on): Add arg-nonnull.
3483 (Makefile.am): Insert arg-nonnull.h into dirent.h.
3484 * modules/fcntl-h (Depends-on): Add arg-nonnull.
3485 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
3486 * modules/fnmatch (Depends-on): Add arg-nonnull.
3487 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
3488 * modules/getopt-posix (Depends-on): Add arg-nonnull.
3489 (Makefile.am): Insert arg-nonnull.h into getopt.h.
3490 * modules/glob (Depends-on): Add arg-nonnull.
3491 (Makefile.am): Insert arg-nonnull.h into glob.h.
3492 * modules/iconv_open (Depends-on): Add arg-nonnull.
3493 (Makefile.am): Insert arg-nonnull.h into iconv.h.
3494 * modules/inttypes (Depends-on): Add arg-nonnull.
3495 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
3496 * modules/locale (Depends-on): Add arg-nonnull.
3497 (Makefile.am): Insert arg-nonnull.h into locale.h.
3498 * modules/math (Depends-on): Add arg-nonnull.
3499 (Makefile.am): Insert arg-nonnull.h into math.h.
3500 * modules/netdb (Depends-on): Add arg-nonnull.
3501 (Makefile.am): Insert arg-nonnull.h into netdb.h.
3502 * modules/search (Depends-on): Add arg-nonnull.
3503 (Makefile.am): Insert arg-nonnull.h into search.h.
3504 * modules/signal (Depends-on): Add arg-nonnull.
3505 (Makefile.am): Insert arg-nonnull.h into signal.h.
3506 * modules/spawn (Depends-on): Add arg-nonnull.
3507 (Makefile.am): Insert arg-nonnull.h into spawn.h.
3508 * modules/stdio (Depends-on): Add arg-nonnull.
3509 (Makefile.am): Insert arg-nonnull.h into stdio.h.
3510 * modules/stdlib (Depends-on): Add arg-nonnull.
3511 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
3512 * modules/string (Depends-on): Add arg-nonnull.
3513 (Makefile.am): Insert arg-nonnull.h into string.h.
3514 * modules/strings (Depends-on): Add arg-nonnull.
3515 (Makefile.am): Insert arg-nonnull.h into strings.h.
3516 * modules/sys_socket (Depends-on): Add arg-nonnull.
3517 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
3518 * modules/sys_stat (Depends-on): Add arg-nonnull.
3519 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
3520 * modules/sys_time (Depends-on): Add arg-nonnull.
3521 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
3522 * modules/sys_times (Depends-on): Add arg-nonnull.
3523 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
3524 * modules/sys_utsname (Depends-on): Add arg-nonnull.
3525 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
3526 * modules/time (Depends-on): Add arg-nonnull.
3527 (Makefile.am): Insert arg-nonnull.h into time.h.
3528 * modules/unistd (Depends-on): Add arg-nonnull.
3529 (Makefile.am): Insert arg-nonnull.h into unistd.h.
3530 * modules/wchar (Depends-on): Add arg-nonnull.
3531 (Makefile.am): Insert arg-nonnull.h into wchar.h.
3532 * modules/argv-iter (Depends-on): Add arg-nonnull.
3533 * tests/test-canonicalize.c (null_ptr): New function.
3535 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
3537 * tests/test-memmem.c (null_ptr): New function.
3539 Reported by Jim Meyering.
3541 2009-12-10 Bruno Haible <bruno@clisp.org>
3543 Use spaces for indentation, not tabs.
3544 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
3545 * m4/*.m4: Untabify.
3546 * build-aux/*.h: Untabify.
3547 * tests/**/*.[hc]: Untabify.
3548 * README: New section "Indent with spaces, not TABs", based on
3549 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
3550 * NEWS: Mention the change.
3552 2009-12-10 Bruno Haible <bruno@clisp.org>
3554 pty test: Fix link error.
3555 * modules/pty-tests (Makefile.am): Add the default LDADD value to
3558 2009-12-07 Simon Josefsson <simon@josefsson.org>
3560 * modules/pty: New file.
3561 * modules/pty-tests: New file.
3562 * m4/pty.m4: New file.
3563 * tests/test-pty.c: New file.
3564 * doc/glibc-headers/pty.texi: Modified.
3565 * doc/glibc-functions/forkpty.texi: Modified.
3566 * doc/glibc-functions/openpty.texi: Modified.
3568 2009-12-10 Bruno Haible <bruno@clisp.org>
3570 Avoid syntax error in C++ mode.
3571 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
3573 2009-12-10 Bruno Haible <bruno@clisp.org>
3575 Use sed with option -e.
3576 * gnulib-tool (func_version, func_emit_copyright_notice,
3577 func_emit_initmacro_end, func_import, func_create_testdir): Pass
3579 * modules/link-warning (Makefile.am): Likewise.
3581 2009-12-10 Jim Meyering <meyering@redhat.com>
3583 mgetgroups: do not write bytes beyond end of malloc'd buffer
3584 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
3585 username, we call getgroups with a one-element-shorter buffer,
3586 but still told it the length was original, max_n_groups.
3588 2009-12-09 Eric Blake <ebb9@byu.net>
3590 cloexec: relax license
3591 * modules/cloexec (Maintainer): Add myself.
3592 (License): Use LGPL, not GPL.
3594 link-warning: optimize generation
3595 * modules/link-warning (Makefile.am): Reduce process usage.
3597 2009-12-09 Bruno Haible <bruno@clisp.org>
3599 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
3600 workaround was added on 2009-11-17.
3602 2009-12-09 Jim Meyering <meyering@redhat.com>
3603 Bruno Haible <bruno@clisp.org>
3605 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
3606 * modules/link-warning (Makefile.am): Make the comment-removing sed
3607 command more robust in the face of bootstrap-prepended comment lines.
3609 2009-12-09 Bruno Haible <bruno@clisp.org>
3611 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
3614 2009-12-09 Simon Josefsson <simon@josefsson.org>
3615 Bruno Haible <bruno@clisp.org>
3617 * build-aux/link-warning.h: Add copyright notice.
3618 * modules/link-warning (Makefile.am): Generate link-warning.h from
3619 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
3620 * NEWS: Mention change in link-warning module.
3621 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
3622 * modules/dirent (Makefile.am): Add dependency to dirent.h.
3623 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
3624 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
3625 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
3626 * modules/math (Makefile.am): Add dependency to math.h.
3627 * modules/search (Makefile.am): Add dependency to search.h.
3628 * modules/signal (Makefile.am): Add dependency to signal.h.
3629 * modules/spawn (Makefile.am): Add dependency to spawn.h.
3630 * modules/stdio (Makefile.am): Add dependency to stdio.h.
3631 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
3632 * modules/string (Makefile.am): Add dependency to string.h.
3633 * modules/strings (Makefile.am): Add dependency to strings.h.
3634 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
3635 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
3636 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
3637 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
3638 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
3639 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
3640 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
3641 * modules/unistd (Makefile.am): Add dependency to unistd.h.
3642 * modules/wchar (Makefile.am): Add dependency to wchar.h.
3644 2009-12-09 Bruno Haible <bruno@clisp.org>
3646 fchdir: Optimize away rpl_fstat when possible.
3647 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
3648 REPLACE_OPEN_DIRECTORY.
3649 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
3651 2009-12-09 Bruno Haible <bruno@clisp.org>
3653 * lib/fchdir.c: Update comment.
3655 2009-12-09 Bruno Haible <bruno@clisp.org>
3657 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
3659 2009-12-08 Eric Blake <ebb9@byu.net>
3661 fchdir: avoid memory leak on re-registration.
3662 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
3664 2009-12-08 Jim Meyering <meyering@redhat.com>
3666 init.sh: avoid Solaris 10 /bin/sh portability problem
3667 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
3669 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
3670 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
3672 tests/init.sh relied on that, accepting a --set-path=DIR argument,
3673 and two tests used that idiom.
3674 * tests/init.sh: Update suggested usage comments.
3675 (path_prepend_): New function, to be used in place
3676 of the --src-path=DIR option.
3677 (setup_): Move PATH-prepending code into path_prepend_.
3678 * tests/test-pread.sh: Adapt to new usage.
3679 * tests/test-xalloc-die.sh: Likewise.
3681 2009-12-08 Simon Josefsson <simon@josefsson.org>
3683 * doc/gnulib.texi (Glibc pty.h): Add.
3684 * doc/glibc-functions/forkpty.texi: Add.
3685 * doc/glibc-functions/openpty.texi: Add.
3686 Suggested by Bruno Haible.
3688 2009-12-08 Eric Blake <ebb9@byu.net>
3690 fchdir: fix logic bugs
3691 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
3692 * tests/test-fchdir.c (main): Enhance test.
3693 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
3696 dup2: fix logic bugs
3697 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
3698 REPLACE_DUP2 to decide when rpl_dup2 is needed.
3699 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
3701 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
3703 2009-12-07 Eric Blake <ebb9@byu.net>
3705 unlink: fix m4 detection
3706 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
3708 unistd-safer: add unit test
3709 * modules/unistd-safer-tests: New file.
3710 * tests/test-dup-safer.c: Likewise.
3711 * tests/test-cloexec.c (setmode): Avoid compiler warning.
3712 * tests/test-dup2.c (setmode): Likewise.
3713 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
3715 cloexec: preserve text vs. binary across dup_cloexec
3716 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
3718 * modules/dup2-tests (Depends-on): Add binary-io.
3719 * modules/cloexec-tests (Depends-on): Likewise.
3720 * tests/test-dup2.c (setmode, is_mode): New helpers.
3721 (main): Add tests that translation mode is preserved.
3722 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
3723 Reported by Bruno Haible.
3725 mgetgroups: reduce duplicate listings
3726 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
3728 * tests/test-chown.h (test_chown): Simplify client.
3729 * tests/test-lchown.h (test_lchown): Likewise.
3731 2009-12-06 Bruno Haible <bruno@clisp.org>
3733 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
3736 2009-12-06 Bruno Haible <bruno@clisp.org>
3738 * lib/progname.c: Include stdio.h, stdlib.h.
3739 (set_program_name): Reject a NULL argument.
3741 2009-12-05 Eric Blake <ebb9@byu.net>
3743 pipe2-safer: new module
3744 * modules/pipe2-safer: New file.
3745 * lib/unistd-safer.h (pipe2_safer): New prototype.
3746 * lib/unistd--.h (pipe2): New wrapper.
3747 * lib/pipe-safer.c (pipe2_safer): New function.
3748 * modules/pipe (Depends-on): Add pipe2-safer.
3749 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
3751 stdlib-safer: preserve cloexec flag for mkostemp[s]
3752 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
3755 unistd-safer: allow preservation of cloexec status via flag
3756 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
3758 * lib/dup-safer.c (dup_safer_flag): New function.
3759 * lib/fd-safer.c (fd_safer_flag): Likewise.
3760 * modules/cloexec (configure.ac): Set witness.
3762 test-dup2: enhance test
3763 * modules/dup2-tests (Depends-on): Add cloexec.
3764 * tests/test-dup2.c (main): Enhance test.
3766 cloexec: add dup_cloexec
3767 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
3768 header and comments.
3769 * lib/cloexec.c (set_cloexec_flag): Add comments.
3770 (dup_cloexec): New function, with mingw implementation borrowed
3772 * lib/w32spawn.h (dup_noinherit): ...here.
3773 * modules/execute (Depends-on): Add cloexec.
3774 * modules/pipe (Depends-on): Likewise.
3775 * modules/cloexec (Depends-on): Add dup2.
3776 * modules/cloexec-tests (Files): New file.
3777 * tests/test-cloexec.c: Likewise.
3779 test-xalloc-die: fix test for mingw
3780 * modules/xalloc-die-tests (Files): Add tests/init.sh.
3781 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
3782 directory and .exe suffix off argv[0] output.
3784 test-fseeko: fix test for mingw
3785 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
3786 than undefining fseek, so test will pass on mingw.
3788 2009-12-05 Bruno Haible <bruno@clisp.org>
3790 * lib/progname.h (set_program_name): Clarify specification.
3791 * lib/progname.c (set_program_name): Likewise.
3792 Reported by Jim Meyering.
3794 2009-12-05 Jim Meyering <meyering@redhat.com>
3796 maint.mk: backslash-escape parens in default regexp
3797 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
3798 backslash-escape the literal parentheses.
3800 maint.mk: news-date-check: use grep -E
3801 * top/maint.mk (today): Define a Make variable, not a...
3802 (news-date-check): ...shell variable.
3803 (news-date-regexp): Use the Make variable.
3804 Use grep's -E option. Change the failing diagnostic to mention
3805 the variable, $(news-date-regexp).
3807 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
3809 maintainer-makefile: allow customization of NEWS entry format
3810 * top/maint.mk (news-date-regexp): New overridable variable.
3811 (news-date-check): Use it.
3813 2009-12-04 Eric Blake <ebb9@byu.net>
3815 mgetgroups: add xgetgroups, and avoid ENOSYS failures
3816 * lib/mgetgroups.h (xgetgroups): New prototype.
3817 * lib/mgetgroups.c (xgetgroups): New wrapper.
3818 (mgetgroups): Handle ENOSYS.
3819 * modules/mgetgroups (Depends-on): Add realloc.
3820 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
3822 mgetgroups: avoid argument promotion issues with -1
3823 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
3825 * tests/test-chown.h (getegid, test_chown): Likewise.
3826 * tests/test-lchown.h (getegid, test_lchown): Likewise.
3828 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
3830 exclude: Fix header file problems.
3831 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
3833 2009-12-01 Jim Meyering <meyering@redhat.com>
3835 fts: fts_open: do not let an empty string cause immediate failure
3836 This is required in support of GNU rm, for which the command
3837 "rm A '' B" must process and remove both A and B, in spite of
3838 the empty string argument.
3839 * lib/fts.c (fts_open): Do not let the presence of an empty string
3840 cause fts_open to fail immediately. Most fts-using tools must be
3841 able to process all arguments, in order, and can be expected to
3842 diagnose such arguments themselves.
3844 2009-11-30 Eric Blake <ebb9@byu.net>
3846 utimens: fix compilation error
3847 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
3848 Declare variable at right scope.
3850 2009-11-29 Jim Meyering <meyering@redhat.com>
3852 bootstrap: handle perl-5.11's changed --version output
3853 * build-aux/bootstrap (get_version): Handle perl separately,
3854 since perl-5.11's --version output is different.
3856 2009-11-28 Jim Meyering <meyering@redhat.com>
3858 userspec: depend on the inttostr module, too
3859 * modules/userspec (Depends-on): Add inttostr.
3861 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
3862 * lib/userspec.c (parse_with_separator): Do not accept a user ID
3863 number of MAXUID when it evaluates to (uid_t) -1.
3864 Likewise for group ID. Reported by Matt McCutchen in
3865 <http://savannah.gnu.org/bugs/?28113>
3867 userspec: reformat to use spaces, not TABs
3868 * lib/userspec.c: Expand TABs to spaces.
3869 Add Emacs' "indent-tabs-mode: nil" hint.
3871 2009-11-27 Eric Blake <ebb9@byu.net>
3873 getopt-gnu: flush out another BSD bug
3874 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
3875 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
3877 * tests/test-getopt.h (test_getopt): End lists with NULL.
3878 * tests/test-getopt_long.h (test_getopt_long): Likewise.
3879 (test_getopt_long_posix): Enhance test.
3880 * modules/getopt-posix-tests (Depends-on): Add stdbool.
3881 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
3883 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
3886 2009-11-27 Simon Josefsson <simon@josefsson.org>
3888 * modules/idpriv-droptemp-tests (Notice): Fix text.
3890 2009-11-27 Jim Meyering <meyering@redhat.com>
3892 test-xalloc-die: avoid spurious failure due to libtool argv difference
3893 In a libtool-enabled project, this test would fail due to a difference
3894 in the emitted program name, e.g.,
3895 -test-xalloc-die: memory exhausted
3896 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
3897 Use program to avoid that.
3898 * modules/xalloc-die-tests (Depends-on): Add progname.
3899 * tests/test-xalloc-die.c: Include progname.h".
3900 (program_name): Remove decl.
3901 (main): Call set_program_name.
3902 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
3904 2009-11-26 Richard Jones <rjones@redhat.com>
3906 w32sock: leave win32 error in place.
3907 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
3909 2009-11-26 Eric Blake <ebb9@byu.net>
3911 init.sh: suggest to use skip_ and fail_ functions in comments
3912 * tests/init.sh: Add a sentence.
3914 2009-11-25 Bruno Haible <bruno@clisp.org>
3916 init.sh: add documentation in comments
3917 * tests/init.sh: Add some developer and user documentation.
3919 2009-11-26 Jim Meyering <meyering@redhat.com>
3921 init.sh: accommodate even those who specify bogus srcdir manually
3922 * tests/init.sh: Normally, srcdir is guaranteed by automake and
3923 configure-time tests to be sanitized, so that there is no need to
3924 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
3925 (with no double quotes) suffices. However, since tests may be
3926 invoked manually, and since you may explicitly set srcdir to the
3927 name of a directory containing spaces, do quote its uses here.
3928 * tests/test-pread.sh: Likewise.
3929 Suggested by Bruno Haible.
3931 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
3932 * tests/test-pread.sh: Write no data into the pipe, because
3933 test-pread actually reads none. This avoids a diagnostic,
3934 "bash: echo: write error: Broken pipe", that arises in the unusual
3935 event something is ignoring SIGPIPE, and might be interpreted
3936 as some sort of failure. Reported by Bruno Haible.
3938 2009-11-25 Jim Meyering <meyering@redhat.com>
3940 test-pread: cover failure with ESPIPE and EINVAL
3941 * tests/test-pread.c (main): Test for failure, too.
3942 * tests/test-pread.sh: Invoke with stdin on a pipe.
3943 Suggested by Eric Blake.
3945 pread: improvement and fix
3946 * modules/pread (Depends-on): Depend on lseek, for portability to
3947 e.g., mingw. Suggested by Eric Blake.
3948 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
3950 unistd.in.h: correct declaration of pread
3951 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
3952 Reported by Richard W.M. Jones.
3954 test-pread.sh: distribute the test script
3955 * modules/pread-tests (Files): Include test-pread.sh.
3957 test-pread.sh: clean up
3958 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
3959 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
3960 That is unnecessary, since it's always ".".
3961 Suggestion from Eric Blake.
3963 test-pread.sh: make executable
3964 * tests/test-pread.sh: Set executable bit.
3965 Reported by Eric Blake.
3967 correct typo in test-pread.sh
3968 * tests/test-pread.sh: Add #! line.
3971 * tests/test-pread.c: New file.
3972 * tests/test-pread.sh: Likewise.
3973 * modules/pread-tests: Likewise.
3976 * modules/pread: New file.
3977 * lib/unistd.in.h (pread): Define/declare.
3978 * lib/pread.c (pread): New file.
3979 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
3980 * modules/unistd (Makefile.am): Substitute witnesses.
3981 * doc/posix-functions/pread.texi (pread): Update.
3982 * MODULES.html.sh: Add pread.
3984 2009-11-25 Jim Meyering <meyering@redhat.com>
3986 tests/init.sh: new file to be used via most *.sh tests
3987 * tests/init.sh: New file.
3989 2009-11-25 Eric Blake <ebb9@byu.net>
3991 utimens: work around older Linux failure with symlinks
3992 * lib/utimens.c (lutimensat_works_really): New variable.
3993 (fdutimens, lutimens): Use it to manage kernels that support
3994 nanosecond times on files, but not on symlinks.
3995 Reported by OndÅ™ej VaÅ¡Ãk.
3997 utimes: fix configure grammar
3998 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
4000 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
4002 regex: Fix fastmap for multibyte character ranges.
4003 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
4004 characters when a multibyte character range is included.
4006 2009-11-22 Andy Wingo <wingo@pobox.com>
4008 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
4009 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
4011 2009-11-24 Bruno Haible <bruno@clisp.org>
4013 doc: Most *_l functions exist in MacOS X 10.5.
4014 * doc/posix-functions/duplocale.texi: Update platforms list.
4015 * doc/posix-functions/freelocale.texi: Likewise.
4016 * doc/posix-functions/newlocale.texi: Likewise.
4017 * doc/posix-functions/uselocale.texi: Likewise.
4018 * doc/posix-functions/isalnum_l.texi: Likewise.
4019 * doc/posix-functions/isalpha_l.texi: Likewise.
4020 * doc/posix-functions/isblank_l.texi: Likewise.
4021 * doc/posix-functions/iscntrl_l.texi: Likewise.
4022 * doc/posix-functions/isdigit_l.texi: Likewise.
4023 * doc/posix-functions/isgraph_l.texi: Likewise.
4024 * doc/posix-functions/islower_l.texi: Likewise.
4025 * doc/posix-functions/isprint_l.texi: Likewise.
4026 * doc/posix-functions/ispunct_l.texi: Likewise.
4027 * doc/posix-functions/isspace_l.texi: Likewise.
4028 * doc/posix-functions/isupper_l.texi: Likewise.
4029 * doc/posix-functions/iswalnum_l.texi: Likewise.
4030 * doc/posix-functions/iswalpha_l.texi: Likewise.
4031 * doc/posix-functions/iswblank_l.texi: Likewise.
4032 * doc/posix-functions/iswcntrl_l.texi: Likewise.
4033 * doc/posix-functions/iswctype_l.texi: Likewise.
4034 * doc/posix-functions/iswdigit_l.texi: Likewise.
4035 * doc/posix-functions/iswgraph_l.texi: Likewise.
4036 * doc/posix-functions/iswlower_l.texi: Likewise.
4037 * doc/posix-functions/iswprint_l.texi: Likewise.
4038 * doc/posix-functions/iswpunct_l.texi: Likewise.
4039 * doc/posix-functions/iswspace_l.texi: Likewise.
4040 * doc/posix-functions/iswupper_l.texi: Likewise.
4041 * doc/posix-functions/iswxdigit_l.texi: Likewise.
4042 * doc/posix-functions/isxdigit_l.texi: Likewise.
4043 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
4044 * doc/posix-functions/strcasecmp_l.texi: Likewise.
4045 * doc/posix-functions/strcoll_l.texi: Likewise.
4046 * doc/posix-functions/strfmon_l.texi: Likewise.
4047 * doc/posix-functions/strftime_l.texi: Likewise.
4048 * doc/posix-functions/strncasecmp_l.texi: Likewise.
4049 * doc/posix-functions/strxfrm_l.texi: Likewise.
4050 * doc/posix-functions/tolower_l.texi: Likewise.
4051 * doc/posix-functions/toupper_l.texi: Likewise.
4052 * doc/posix-functions/towctrans_l.texi: Likewise.
4053 * doc/posix-functions/towlower_l.texi: Likewise.
4054 * doc/posix-functions/towupper_l.texi: Likewise.
4055 * doc/posix-functions/wcscoll_l.texi: Likewise.
4056 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
4057 * doc/posix-functions/wctrans_l.texi: Likewise.
4058 * doc/posix-functions/wctype_l.texi: Likewise.
4059 * doc/glibc-functions/strptime_l.texi: Likewise.
4060 * doc/glibc-functions/strtod_l.texi: Likewise.
4061 * doc/glibc-functions/strtof_l.texi: Likewise.
4062 * doc/glibc-functions/strtol_l.texi: Likewise.
4063 * doc/glibc-functions/strtold_l.texi: Likewise.
4064 * doc/glibc-functions/strtoll_l.texi: Likewise.
4065 * doc/glibc-functions/strtoul_l.texi: Likewise.
4066 * doc/glibc-functions/strtoull_l.texi: Likewise.
4067 * doc/glibc-functions/wcsftime_l.texi: Likewise.
4068 * doc/glibc-functions/wcstod_l.texi: Likewise.
4069 * doc/glibc-functions/wcstof_l.texi: Likewise.
4070 * doc/glibc-functions/wcstol_l.texi: Likewise.
4071 * doc/glibc-functions/wcstold_l.texi: Likewise.
4072 * doc/glibc-functions/wcstoll_l.texi: Likewise.
4073 * doc/glibc-functions/wcstoul_l.texi: Likewise.
4074 * doc/glibc-functions/wcstoull_l.texi: Likewise.
4076 2009-11-24 Bruno Haible <bruno@clisp.org>
4078 duplocale: Fix logic bug.
4079 * lib/duplocale.c: Don't include <langinfo.h>.
4080 (_NL_LOCALE_NAME): Remove macro.
4081 (rpl_duplocale): Use setlocale instead of nl_langinfo.
4082 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
4084 2009-11-23 Jim Meyering <meyering@redhat.com>
4086 test-update-copyright: don't hard-code /usr/bin/perl
4087 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
4088 perl to print the current year. Gilles Espinasse reported that
4089 the replaced use of perl was hard-coded as /usr/bin/perl.
4091 2009-11-23 Bruno Haible <bruno@clisp.org>
4093 duplocale: Add support for glibc 2.3.x.
4094 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
4096 2009-11-22 Bruno Haible <bruno@clisp.org>
4098 vasnprintf: Tiny optimization.
4099 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
4102 2009-11-22 Bruno Haible <bruno@clisp.org>
4104 Tests for module 'duplocale'.
4105 * modules/duplocale-tests: New file.
4106 * tests/test-duplocale.c: New file.
4108 New module 'duplocale'.
4109 * m4/duplocale.m4: New file.
4110 * lib/locale.in.h (duplocale): New declaration.
4111 * lib/duplocale.c: New file.
4112 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
4113 gl_LOCALE_H_DEFAULTS): New macros.
4114 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
4115 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
4116 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
4118 * modules/duplocale: New file.
4119 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
4121 2009-11-22 Bruno Haible <bruno@clisp.org>
4123 * modules/locale-tests (configure.ac): Test for newlocale function.
4124 * tests/test-locale.c: When the system has extended locale functions,
4125 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
4127 locale: Make locale_t available when possible.
4128 * lib/locale.in.h: Include <xlocale.h> when it exists.
4129 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
4130 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
4131 * modules/locale (Depends-on): Add extensions.
4132 (Makefile.am): Also substitute HAVE_XLOCALE_H.
4133 * doc/posix-headers/locale.texi: Document the problem with locale_t.
4135 2009-11-22 Bruno Haible <bruno@clisp.org>
4138 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
4140 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
4141 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4142 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
4144 2009-11-22 Bruno Haible <bruno@clisp.org>
4146 error: account for the possibility of freopen (stdout).
4147 * lib/error.c: Include <unistd.h>.
4148 (flush_stdout): New function, extracted from error and error_at_line.
4149 Determine stdout's fd dynamically.
4150 (error, error_at_line): Invoke flush_stdout.
4151 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
4152 * modules/error (Depends-on): Add unistd.
4154 2009-11-22 Bruno Haible <bruno@clisp.org>
4156 diffseq: Add comment.
4157 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
4159 2009-11-22 Jim Meyering <meyering@redhat.com>
4161 c-stack: avoid defining an unused static function
4162 * lib/c-stack.c (find_stack_direction): Do not define this function
4163 when it will not be used.
4165 diffseq: avoid spurious gcc warnings
4166 * lib/diffseq.h (IF_LINT2): Define.
4167 (compareseq): Use it to initialize two members of "part".
4168 This avoids two used-uninitialized warnings.
4170 2009-11-21 Jim Meyering <meyering@redhat.com>
4172 c-stack: avoid "ignoring return value of `write'" warning
4173 * lib/c-stack.c: Include "ignore-value.h".
4174 (die): Explicitly ignore each write return value.
4175 * modules/c-stack (Depends-on): Add ignore-value.
4177 2009-11-21 Bruno Haible <bruno@clisp.org>
4179 diffseq: reduce scope of variable 'best'.
4180 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
4181 variable, earlier used for two different purposes.
4183 2009-11-21 Jim Meyering <meyering@redhat.com>
4185 diffseq: remove useless assignment to "best"
4186 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
4187 assignment. At that point "best" is already guaranteed to be zero.
4189 2009-11-20 Eric Blake <ebb9@byu.net>
4191 build: mention ftp redirector in release announcements
4192 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
4193 values that used to come from cfg.mk; mention FTP redirect URL.
4194 * build-aux/announce-gen: Mention the mirror list.
4195 Suggested by Karl Berry.
4197 nanosleep: improve port to mingw
4198 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
4199 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
4200 LIB_NANOSLEEP, but only when needed.
4201 * modules/select (Link): Document LIBSOCKET.
4202 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
4205 nanosleep: work around cygwin bug
4206 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
4207 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
4209 (getnow): Delete, not needed.
4210 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
4212 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
4213 clock-time, gettime.
4214 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
4216 * modules/nanosleep-tests: New test.
4217 * tests/test-nanosleep.c: New file.
4219 sleep: work around cygwin bug
4220 * lib/sleep.c (rpl_sleep): Work around the bug.
4221 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
4222 (gl_PREREQ_SLEEP): Delete unused macro.
4223 * modules/sleep (Depends-on): Add verify.
4224 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
4225 * modules/unistd (Makefile.am): Substitute witness.
4226 * lib/unistd.in.h (sleep): Update prototype.
4227 * doc/posix-functions/sleep.texi (sleep): Document the bug.
4228 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
4229 * modules/sleep-tests (Depends-on): Check for alarm.
4231 2009-11-20 Jim Meyering <meyering@redhat.com>
4233 maint.mk: improve sc_prohibit_magic_number_exit
4234 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
4235 so it does not match uses like System.exit(1).
4236 Add comments showing how to correct all offenders.
4238 2009-11-19 Eric Blake <ebb9@byu.net>
4240 xalloc-die-tests: add missing library
4241 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
4243 test-xvasprintf: silence compiler warnings
4244 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
4245 empty string from gcc.
4247 2009-11-19 Jim Meyering <meyering@redhat.com>
4249 xfreopen: new module, from coreutils
4250 * modules/xfreopen: New module.
4251 * lib/xfreopen.c: New file.
4252 * lib/xfreopen.h: New file.
4253 * MODULES.html.sh (File stream based Input/Output"): Add it.
4255 2009-11-19 Eric Blake <ebb9@byu.net>
4257 manywarnings: depend on warnings
4258 * modules/manywarnings (Depends-on): Add warnings.
4260 build: avoid compiler warnings
4261 * lib/select.c (rpl_select): Delete unused variable.
4262 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
4264 2009-11-18 Eric Blake <ebb9@byu.net>
4266 tests: avoid false negative with --with-packager
4267 * tests/test-version-etc.sh: Discard packager information.
4268 * tests/test-argp-version-etc-1.sh: Likewise.
4269 Reported by Mike Frysinger.
4271 utimens: fix regression on Solaris
4272 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
4273 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
4274 can only change fd timestamps via futimesat. Instead, use an
4275 additional witness macro to avoid BSD bug.
4276 Reported by Jim Meyering.
4278 2009-11-17 Eric Blake <ebb9@byu.net>
4280 usleep: use it to simplify tests
4281 * modules/stat-time-tests (Depends-on): Add usleep.
4282 (configure.ac): Drop usleep check.
4283 * modules/chown-tests (Depends-on, configure.ac): Likewise.
4284 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
4285 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
4286 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
4287 * modules/openat-tests (Depends-on, configure.ac): Likewise.
4288 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
4289 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
4290 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
4292 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
4293 * tests/test-lchown.h (nap): Likewise.
4294 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
4295 * tests/test-stat-time.c (nap): Likewise.
4296 * tests/test-utimens-common.h (nap): Update comments.
4299 * modules/usleep: New file.
4300 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
4301 * lib/usleep.c (usleep): Likewise.
4302 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
4303 * modules/unistd (Makefile.am): Substitute witnesses.
4304 * lib/unistd.in.h (usleep): Add declaration.
4305 * doc/pastposix-functions/usleep.texi (usleep): Document this.
4306 * MODULES.html.sh (Date and time): Likewise.
4307 * modules/usleep-tests (Depends-on): New test.
4308 * tests/test-usleep.c: New file.
4310 chown: work around OpenBSD bug
4311 * lib/chown.c (rpl_chown): Work around the bug.
4312 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
4313 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
4314 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
4315 * modules/chown (Depends-on): Add stdbool.
4316 * modules/lchown (Depends-on): Likewise.
4317 * doc/posix-functions/chown.texi (chown): Document the bug.
4318 * doc/posix-functions/lchown.texi (lchown): Likewise.
4319 * tests/test-lchown.h (test_chown): Relax test.
4321 mkstemp: avoid conflict with C++ keyword template
4322 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
4323 * lib/mkostemp.c (mkostemp): Likewise.
4324 * lib/mkostemps.c (mkostemps): Likewise.
4325 * lib/mkstemp.c (mkstemp): Likewise.
4326 * lib/mkstemps.c (mkstemps): Likewise.
4328 xalloc-die-tests: optimize
4329 * tests/test-xalloc-die.sh: Reduce number of processes.
4331 2009-11-17 Simon Josefsson <simon@josefsson.org>
4333 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
4334 patch from ludo@gnu.org (Ludovic Courtès).
4336 2009-11-17 Jim Meyering <meyering@redhat.com>
4338 version-etc: use proper license string
4339 * modules/version-etc (License): Use LGPL, not LGPLv3+.
4340 * modules/version-etc-fsf: Likewise.
4342 2009-11-17 Simon Josefsson <simon@josefsson.org>
4344 * tests/test-xalloc-die.sh: Add license. Check that nothing is
4345 printed to stdout. Deal with EOL differences.
4347 2009-11-17 Eric Blake <ebb9@byu.net>
4349 unsetenv: work around Solaris bug
4350 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
4351 * lib/unsetenv.c (rpl_unsetenv): Work around it.
4352 Reported by Jim Meyering.
4354 vasnprintf: avoid compiler warnings
4355 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
4357 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
4359 2009-11-17 Simon Josefsson <simon@josefsson.org>
4361 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
4362 settings since xalloc-die is no longer the self test,
4365 2009-11-17 Jim Meyering <meyering@redhat.com>
4367 test-xalloc-die.sh: make the code agree with the commit log
4368 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
4369 at the end, just in case you happen to have a test-xalloc-die
4370 program in some other PATH directory.
4372 test-xalloc-die.sh: fix a portability bug
4373 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
4374 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
4375 Otherwise, argv[0] (as often seen in diagnostics) would be too
4376 system-dependent, sometimes with, and sometimes without the leading "./".
4378 version-etc-fsf: relax license to LGPLv3+
4379 * modules/version-etc-fsf (License): Relax license.
4381 2009-11-16 Eric Blake <ebb9@byu.net>
4383 xalloc-die-tests: avoid printing null pointer
4384 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
4386 * tests/test-xalloc-die.c (program_name): Declare.
4387 * tests/test-xalloc-die.sh (tmpfiles): New file.
4389 setenv, unsetenv: work around various bugs
4390 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
4391 (setenv) [HAVE_SETENV]: Work around bugs.
4392 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
4393 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
4395 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
4396 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
4397 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
4398 * modules/stdlib (Makefile.am): Update substitutions.
4399 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
4400 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
4401 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
4402 * modules/setenv-tests: New test.
4403 * modules/unsetenv-tests: Likewise.
4404 * tests/test-setenv.c: New file.
4405 * tests/test-unsetenv.c: Likewise.
4407 2009-11-16 Jim Meyering <meyering@redhat.com>
4409 version-etc: relax license to LGPLv3+
4410 * modules/version-etc (License): Relax license.
4412 better AC_REQUIRE expanded-before-required-warning avoidance
4413 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
4414 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
4415 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
4416 which is no longer needed.
4418 2009-11-16 Eric Blake <ebb9@byu.net>
4420 test-freading: clean up temporary file
4421 * tests/test-freading.c (main): Remove file on success, and use
4422 ASSERT more liberally.
4423 Reported by Jim Meyering.
4425 2009-11-16 Jim Meyering <meyering@redhat.com>
4427 avoid new AC_REQUIRE expanded-before-required warnings
4428 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
4430 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
4431 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
4433 2009-11-15 Simon Josefsson <simon@josefsson.org>
4435 * tests/test-xalloc-die.c: New file.
4436 * modules/xalloc-die-tests: New file.
4437 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
4438 XFAIL_TESTS so it can be appended by modules.
4440 2009-11-15 Simon Josefsson <simon@josefsson.org>
4442 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
4443 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
4445 2009-11-14 Eric Blake <ebb9@byu.net>
4447 fnmatch: avoid compiler warning
4448 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
4449 to silence compiler warning about mismatch signedness in ?:.
4450 Reported by Robert Millan.
4452 intprops: add double-inclusion guard
4453 * lib/intprops.h: Allow idempotent includes.
4454 Suggested by Bruce Korb.
4456 openat: detect Solaris fchownat bug
4457 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
4458 penalizing glibc chownat when only lchownat is broken.
4459 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
4460 trailing slash bugs.
4461 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
4462 * modules/openat-tests (Files): Include more files.
4463 (Depends-on): Add mgetgroups, sleep, stat-time.
4464 (configure.ac): Add additional checks.
4465 (Makefile.am): Build new test.
4466 * tests/test-fchownat.c: New file.
4468 lchown: detect Solaris and FreeBSD bug
4469 * lib/lchown.c (rpl_lchown): Work around bug.
4470 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
4471 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4472 * modules/unistd (Makefile.am): Populate it.
4473 * lib/unistd.in.h (lchown): Update declaration.
4474 * doc/posix-functions/lchown.texi (lchown): Document the bug.
4475 * modules/lchown-tests: New file.
4476 * tests/test-lchown.h (test_lchown): Likewise.
4477 * tests/test-lchown.c (main): Likewise.
4479 chown: detect Solaris and FreeBSD bug
4480 * lib/chown.c (rpl_chown): Work around bug.
4481 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
4482 (gl_PREREQ_CHOWN): Delete.
4483 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4484 * modules/unistd (Makefile.am): Populate it.
4485 * lib/unistd.in.h (chown): Update declaration.
4486 * lib/lchown.c (chown): Update client.
4487 * modules/lchown (Depends-on): Add lstat.
4488 * doc/posix-functions/chown.texi (chown): Document the bug.
4489 * doc/posix-functions/getgroups.texi (getgroups): Document
4491 * modules/chown-tests: New file.
4492 * tests/test-chown.h (test_chown): Likewise.
4493 * tests/test-chown.c (main): Likewise.
4495 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
4497 gnulib-tool: correctly detect absence of m4 directories
4498 * gnulib-tool: Avoid extra newline on data passed to wc -l.
4500 2009-11-14 Jim Meyering <meyering@redhat.com>
4502 maint.mk: Prohibit inclusion of "xalloc.h" without use.
4503 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
4505 2009-11-14 John W. Eaton <jwe@gnu.org>
4507 strftime.h: wrap funtion declaration in extern "C" block
4508 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
4510 2009-11-13 Eric Blake <ebb9@byu.net>
4512 getgroups: avoid compiler warning
4513 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
4515 getgroups: work around FreeBSD bug
4516 * lib/getgroups.c (rpl_getgroups): Work around the bug.
4517 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
4518 * doc/posix-functions/getgroups.texi (getgroups): Document it.
4519 * tests/test-getgroups.c (main): Fix buffer overrun.
4521 getgroups: avoid compilation failure
4522 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
4523 * modules/getgroups (Depends-on): Add stdint.
4525 2009-11-13 Jim Meyering <meyering@redhat.com>
4527 test-getgroups: avoid compilation failure
4528 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
4530 2009-11-13 Eric Blake <ebb9@byu.net>
4532 mgetgroups: new module, taken from coreutils
4533 * modules/mgetgroups: New file.
4534 * lib/mgetgroups.h: Likewise.
4535 * lib/mgetgroups.c (mgetgroups): Likewise.
4536 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
4537 * MODULES.html.sh (Users and groups): Mention it.
4539 getgroups: don't expose GETGROUPS_T to user
4540 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
4541 an element at a time if GETGROUPS_T is wrong size.
4542 * lib/getugroups.h (getugroups): Change signature.
4543 * lib/unistd.in.h (getgroups): Likewise.
4544 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
4545 signature needs fixing.
4546 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
4548 * modules/group-member (Depends-on): Add getgroups.
4549 * lib/group-member.c (group_info, get_group_info): Use gid_t.
4550 (group_member): Rely on getgroups replacement.
4551 * lib/getugroups.c (getugroups): Use gid_t.
4552 * tests/test-getgroups.c (main): Likewise.
4553 * NEWS: Mention the signature change.
4554 * doc/posix-functions/getgroups.texi (getgroups): Mention the
4555 problem with signature.
4556 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
4557 GETGROUPS_T is still useful for setgroups.
4559 getgroups, getugroups: provide stubs for mingw
4560 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
4561 * lib/getugroups.c (getugroups): Likewise.
4562 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
4563 function. Modernize replacement scheme.
4564 (gl_PREREQ_GETGROUPS): Delete.
4565 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
4566 * modules/getgroups (configure.ac): Declare witness.
4567 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
4568 * modules/unistd (Depends-on): Substitute witness.
4569 * lib/unistd.in.h (getgroups): Declare replacement.
4571 getgroups: avoid calling exit
4572 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
4574 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
4576 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
4577 exiting, in the rare case of malloc failure.
4579 getgroups: fix logic error
4580 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
4581 has more than 20 groups.
4582 * modules/getgroups-tests: New test.
4583 * tests/test-getgroups.c: New file.
4585 2009-11-13 Simon Josefsson <simon@josefsson.org>
4587 * tests/test-base64.c: Improve.
4589 2009-11-13 Simon Josefsson <simon@josefsson.org>
4591 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
4592 Blake <ebb9@byu.net>.
4594 2009-11-13 Simon Josefsson <simon@josefsson.org>
4596 * tests/test-xvasprintf.c: Add %s%s related checks.
4598 2009-11-12 Eric Blake <ebb9@byu.net>
4600 version-etc: match standards.texi style
4601 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
4602 and use <> only for URLs.
4604 2009-11-10 Kamil Dudka <kdudka@redhat.com>
4606 fts: do not fail on a submount during traversal
4607 * lib/fts.c (fts_build): Read the stat info again after opening
4608 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
4609 Original report at http://bugzilla.redhat.com/501848.
4611 2009-11-12 Jim Meyering <meyering@redhat.com>
4613 bootstrap: sync from coreutils
4614 * build-aux/bootstrap (bootstrap_epilogue): New function.
4615 Use git_modules_config in one more place. This make bootstrap's
4616 --gnulib-srcdir option more useful for testing.
4618 bootstrap: generalize autoheader check
4619 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
4622 2009-11-11 Eric Blake <ebb9@byu.net>
4624 mkfifoat: use new modules for Solaris and BSD bugs
4625 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
4626 * lib/mkfifoat.c (mknodat): Split...
4627 * lib/mknodat.c (mknodat): ...into new file.
4628 * modules/mkfifoat (Files): Ship new file.
4629 (Depends-on): Add mkfifo, mknod.
4630 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
4631 (Depends-on): Add symlink.
4632 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
4633 redundant with test_mkfifo.h.
4634 (do_mkfifoat, do_mknodat): New helpers.
4637 * modules/mknod: New file.
4638 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
4639 * lib/mknod.c (mknod): Likewise.
4640 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
4642 * modules/sys_stat (Makefile.am): Substitute them.
4643 * lib/sys_stat.in.h (mknod): Declare replacement.
4644 * MODULES.html.sh (Support for systems lacking POSIX:2008):
4646 * doc/posix-functions/mknod.texi (mknod): Likewise.
4647 * modules/mknod-tests: New test.
4648 * tests/test-mknod.c: Likewise.
4651 * modules/mkfifo: New file.
4652 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
4653 * lib/mkfifo.c (mkfifo): Likewise.
4654 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
4656 * modules/sys_stat (Makefile.am): Substitute them.
4657 * lib/sys_stat.in.h (mkfifo): Declare replacement.
4658 * MODULES.html.sh (Support for systems lacking POSIX:2008):
4660 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
4661 * modules/mkfifo-tests: New test.
4662 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
4663 from test-mkfifoat.c.
4664 * tests/test-mkfifo.c: New file.
4666 readlink: detect FreeBSD bug
4667 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
4669 * doc/posix-functions/readlink.texi (readlink): Document the bug.
4670 * tests/test-readlink.h (test_readlink): Enhance test.
4672 symlink: detect FreeBSD bug
4673 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
4675 * doc/posix-functions/symlink.texi (symlink): Document the bug.
4676 * tests/test-symlink.h (test_symlink): Enhance test.
4678 2009-11-10 Eric Blake <ebb9@byu.net>
4680 link: detect FreeBSD bug
4681 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
4683 * doc/posix-functions/link.texi (link): Document the bug.
4684 * tests/test-link.h (test_link): Enhance test.
4685 * tests/test-linkat.c (main): Update caller.
4687 unlink, remove: detect FreeBSD bug
4688 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
4690 * doc/posix-functions/unlink.texi (unlink): Document the bug.
4691 * doc/posix-functions/remove.texi (remove): Likewise.
4692 * tests/test-unlink.h (test_unlink): Enhance test.
4693 * tests/test-remove.c (main): Likewise.
4695 2009-11-09 Eric Blake <ebb9@byu.net>
4697 rename: detect FreeBSD bug
4698 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
4700 * modules/renameat-tests (Depends-on): Add filenamecat.
4701 * tests/test-rename.h (test_rename): Allow one more errno.
4702 * tests/test-renameat.c (main): Likewise.
4703 * doc/posix-functions/rename.texi (rename): Document the bug.
4705 open: detect FreeBSD bug
4706 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
4708 * doc/posix-functions/open.texi (open): Document the bug.
4709 * doc/posix-functions/utimes.texi (utimes): Likewise.
4710 * tests/test-open.h (test_open): Add parameters, and test symlink
4712 * tests/test-open.c (main): Adjust caller.
4713 * tests/test-fcntl-safer.c (main): Likewise.
4714 * modules/open-tests (Depends-on): Add stdbool, symlink.
4715 * modules/fcntl-safer-tests (Depends-on): Likewise.
4716 * tests/test-openat.c (main): Add test-open tests.
4718 stat: detect FreeBSD bug
4719 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
4721 * doc/posix-functions/stat.texi (stat): Document the bug.
4722 * tests/test-stat.h (test_stat_func): Add argument.
4723 * tests/test-stat.c (main): Adjust caller.
4724 * tests/test-fstatat.c (main): Likewise.
4725 * modules/stat-tests (Depends-on): Add stdbool, symlink.
4726 Reported by Jim Meyering.
4728 2009-11-09 James Youngman <jay@gnu.org>
4730 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
4731 * lib/strftime.c: Correct placement of #include "ignore-value.h".
4733 2009-11-08 Jim Meyering <meyering@redhat.com>
4735 utimens: remove invalid futimesat call
4736 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
4737 It used the file descriptor of the target file as the DIR_FD
4738 parameter and NULL as the file name. That caused failure with
4739 errno == EFAULT on FreeBSD-8.0-rc2
4741 2009-11-07 Eric Blake <ebb9@byu.net>
4743 fflush, freadseek: use fseeko, not fseek
4744 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4745 (clear_ungetc_buffer): Avoid potential problems on large files.
4746 * lib/freadseek.c (freadseek): Likewise.
4747 * modules/freadseek (Depends-on): Add fseeko.
4748 * modules/fseek (configure.ac): Set a witness.
4749 * tests/test-fflush.c (main): Use fseeko.
4750 * tests/test-fpurge.c (fseek): Disable link warning.
4751 * tests/test-freadable.c (fseek): Likewise.
4752 * tests/test-freading.c (fseek): Likewise.
4753 * tests/test-fseeko.c (fseek): Likewise.
4754 * tests/test-ftell.c (fseek): Likewise.
4755 * tests/test-ftello.c (fseek): Likewise.
4756 * tests/test-fwritable.c (fseek): Likewise.
4757 * tests/test-fwriting.c (fseek): Likewise.
4759 2009-11-06 Simon Josefsson <simon@josefsson.org>
4761 * modules/memchr (Depends-on): Drop getpagesize dependency.
4763 2009-11-06 Simon Josefsson <simon@josefsson.org>
4765 * build-aux/pmccabe2html: Disable execute bit. Suggested by
4766 Reported by Ludovic Courtès.
4767 * build-aux/pmccabe2html: Improve example usage.
4768 * build-aux/pmccabe2html: Drop #! header. Doc fix.
4770 2009-11-06 Jim Meyering <meyering@redhat.com>
4772 do-release-commit-and-tag: New module.
4773 Automate the release-commit and tag process.
4774 * build-aux/do-release-commit-and-tag: New script, from coreutils.
4775 * modules/do-release-commit-and-tag: New file.
4776 * MODULES.html.sh (Support for maintaining and releasing): Add it.
4778 2009-11-06 Simon Josefsson <simon@josefsson.org>
4780 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
4781 because test-select.c uses inet_pton.
4783 2009-11-06 Simon Josefsson <simon@josefsson.org>
4785 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
4786 GETADDRINFO_LIB. Bump serial number.
4787 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
4788 Suggested by Eric Blake <ebb9@byu.net>.
4790 2009-11-05 Eric Blake <ebb9@byu.net>
4792 strtod: detect darwin bug
4793 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
4794 Reported by Leo Davis.
4796 freopen-safer: new module
4797 * modules/freopen-safer: New module.
4798 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
4799 * lib/freopen-safer.c (freopen_safer): New file.
4800 * lib/stdio-safer.h (freopen_safer): New declaration.
4801 * lib/stdio--.h (freopen): New override.
4802 * MODULES.html.sh (File stream based Input/Output): Mention it.
4803 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
4804 freopen-safer module.
4805 * doc/posix-functions/stderr.texi (stderr): Likewise.
4806 * doc/posix-functions/stdin.texi (stdin): Likewise.
4807 * doc/posix-functions/stdout.texi (stdout): Likewise.
4808 * modules/freopen-safer-tests: New test.
4809 * tests/test-reopen-safer.c: New file.
4811 2009-11-05 Jim Meyering <meyering@redhat.com>
4813 maint.mk: Prohibit inclusion of "close-stream.h" without use.
4814 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
4816 2009-11-05 Simon Josefsson <simon@josefsson.org>
4818 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
4820 2009-11-05 Simon Josefsson <simon@josefsson.org>
4822 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
4824 2009-11-05 Simon Josefsson <simon@josefsson.org>
4827 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
4828 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4830 2009-11-05 Simon Josefsson <simon@josefsson.org>
4832 * tests/test-func.c: Also test value of __func__.
4834 2009-11-05 Simon Josefsson <simon@josefsson.org>
4836 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
4837 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
4839 2009-11-05 Bruno Haible <bruno@clisp.org>
4842 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
4843 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
4844 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
4846 2009-11-05 Bruno Haible <bruno@clisp.org>
4848 Tests for module 'inet_pton'.
4849 * modules/inet_pton-tests: New file.
4850 * tests/test-inet_pton.c: New file.
4852 2009-11-05 Bruno Haible <bruno@clisp.org>
4854 Tests for module 'inet_ntop'.
4855 * modules/inet_ntop-tests: New file.
4856 * tests/test-inet_ntop.c: New file.
4858 2009-11-04 Eric Blake <ebb9@byu.net>
4860 stdlib-safer: wrap all mkstemp variants
4861 * modules/mkostemp (configure.ac): Set witness.
4862 * modules/mkostemps (configure.ac): Likewise.
4863 * modules/mkstemps (configure.ac): Likewise.
4864 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
4865 (mkstemps_safer): Wrap more functions.
4866 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
4868 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
4869 (mkstemps_safer): Implement the wrappers.
4871 mkstemps, mkostemps: new modules
4872 * modules/mkostemps: New module.
4873 * modules/mkstemps: Likewise.
4874 * lib/mkostemps.c (mkostemps): New file.
4875 * lib/mkstemps.c (mkstemps): Likewise.
4876 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
4877 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
4878 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
4879 * modules/stdlib (Makefile.am): Substitute them.
4880 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
4881 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
4882 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
4883 * doc/gnulib.texi (Glibc stdlib.h): Include them.
4884 * MODULES.html.sh (File system functions): Mention them.
4886 tempname: resync from glibc
4887 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
4888 same values for __GT_FILE as glibc. Abort even when assertions
4890 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
4891 match its value otherwise. Allow idempotent inclusion.
4892 * lib/mkdtemp.c (mkdtemp): Adjust caller.
4893 * lib/mkostemp.c (mkostemp): Likewise.
4894 * lib/mkstemp.c (mkstemp): Likewise.
4895 * lib/tmpfile.c (tmpfile): Likewise.
4896 * NEWS: Document this.
4898 utimens: fix use of futimens on older Linux
4899 * lib/utimens.c (fdutimens): Use updated, rather than original,
4900 timespec to avoid bug in older Linux kernel.
4901 Reported by Simon Josefsson.
4903 2009-11-04 Bruno Haible <bruno@clisp.org>
4905 Make num_processors more flexible and consistent.
4906 * lib/nproc.h (enum nproc_query): New type.
4907 (num_processors): Add a 'query' argument.
4908 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
4909 (num_processors): Add a 'query' argument. Test the value of the
4910 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
4911 mingw, count the number of CPUs available for the current process.
4912 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
4913 Check for sched_getaffinity and sched_getaffinity_np.
4914 * modules/nproc (Depends-on): Add c-ctype, extensions.
4915 * NEWS: Mention the change.
4917 2009-11-03 Bruno Haible <bruno@clisp.org>
4919 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
4921 2009-11-03 Jim Meyering <meyering@redhat.com>
4923 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
4924 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
4927 2009-11-02 Eric Blake <ebb9@byu.net>
4929 mktime, timegm: share common declaration
4930 * lib/mktime-internal.h: New file.
4931 * lib/mktime.c: Use it rather than open-coding a declaration.
4932 * lib/timegm.c: Likewise.
4933 * modules/mktime (Files): Ship it.
4934 * modules/timegm (Files): Likewise.
4935 Suggested by Bruno Haible.
4937 test-update-copyright: update test to match script changes
4938 * tests/test-update-copyright.sh: Avoid hard-coding perl
4939 location. Don't update *.bak created by earlier runs.
4941 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
4942 Simon Josefsson <simon@josefsson.org>
4943 Bruno Haible <bruno@clisp.org>
4945 Fix link error on Solaris 8.
4946 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
4947 also in libnsl. Define also INET_PTON_LIB.
4948 * modules/inet_pton (Link): New section.
4950 2009-11-02 Simon Josefsson <simon@josefsson.org>
4951 Bruno Haible <bruno@clisp.org>
4953 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
4954 * modules/inet_ntop (Link): New section.
4955 Reported by Boyan Kasarov <bkasarov@gmail.com>.
4957 2009-11-02 Eric Blake <ebb9@byu.net>
4959 maint: avoid compiler warnings in m4 macros
4960 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
4961 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
4963 2009-11-02 Simon Josefsson <simon@josefsson.org>
4965 * m4/pmccabe2html.m4: Remove file.
4966 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
4967 function. Change maintainer.
4968 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
4969 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
4972 2009-10-31 Eric Blake <ebb9@byu.net>
4974 fseeko: fix m4 regression
4975 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
4976 regression from 2009-10-27.
4977 Reported by Ralf Wildenhues.
4979 2009-10-31 Jim Meyering <meyering@redhat.com>
4981 inttostr: aesthetics and improved (compile-time) safety
4982 Define inttype_is_signed rather than inttype_is_unsigned,
4983 since the sole use is via "#if inttype_is_signed".
4984 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
4985 inttype_is_unsigned.
4986 * lib/offtostr.c (inttype_is_signed): Likewise.
4987 * lib/uinttostr.c (inttype_is_signed): Likewise.
4988 * lib/umaxtostr.c (inttype_is_signed): Likewise.
4989 * lib/inttostr.c (inttostr): Use verify to cross-check the
4990 inttype_is_signed value and the signedness of the actual type.
4991 * modules/inttostr (Depends-on): Add verify.
4993 2009-10-30 Eric Blake <ebb9@byu.net>
4995 build: avoid compiler warnings
4996 * lib/fchmodat.c (lchmod): Mark unused variables.
4997 * lib/getopt.c (_getopt_initialize): Likewise.
4998 * lib/mktime.c (__mktime_internal): Provide prototype.
4999 * lib/inttostr.c (inttostr): Avoid compiler warning even with
5000 older gcc that do not understand #pragma GCC diagnostic.
5001 * lib/uinttostr.c (inttype_is_unsigned): Define.
5002 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
5004 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
5006 stat: fix compilation on AIX
5007 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
5008 only see struct stat64.
5010 2009-10-30 Eric Blake <ebb9@byu.net>
5012 exclude: make more robust
5013 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
5014 rather than masking a coding bug.
5015 Suggested by Bruno Haible.
5017 2009-10-30 Jim Meyering <meyering@redhat.com>
5019 perl scripts: remove #!/usr/bin/perl in favor of more portable...
5020 Rather than putting #!/usr/bin/perl on the first line,
5021 start with a variant of what's recommended by "man perlrun" that
5022 invokes the first "perl" program from your shell's search path.
5023 * build-aux/gitlog-to-changelog: Replace #!... as above.
5024 Add a "Local Variables" perl mode setting.
5025 Prompted by a patch from Ludovic Courtès.
5026 Improved by Eric Blake.
5027 * build-aux/useless-if-before-free: Likewise.
5028 * build-aux/announce-gen: Likewise.
5029 * build-aux/update-copyright: Likewise.
5031 2009-10-29 Eric Blake <ebb9@byu.net>
5033 filenamecat-lgpl: adjust clients
5034 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
5036 * modules/renameat (Depends-on): Likewise.
5038 filenamecat: split into filenamecat-lgpl
5039 * modules/filenamecat-lgpl: New module.
5040 * modules/filenamecat (Files): Move library-safe files into
5042 (Depends-on): Add filenamecat-lgpl.
5043 (configure.ac): Declare witness.
5044 * lib/filenamecat.h (file_name_concat): Only declare when using
5046 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
5048 * lib/filenamecat-lgpl.c: ...into new file.
5049 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
5050 (gl_FILE_NAME_CONCAT): Use it.
5051 * MODULES.html.sh (File system functions): Mention new module.
5053 argp: avoid memory leak
5054 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
5055 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
5056 base_name, since the latter malloc()s and can call exit().
5057 Leak introduced 2006-07-03.
5059 dirname-lgpl: adjust clients that don't need full dirname
5060 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
5061 * modules/filenamecat (Depends-on): Likewise.
5062 * modules/linkat (Depends-on): Likewise.
5063 * modules/mkancesdirs (Depends-on): Likewise.
5064 * modules/mkdir (Depends-on): Likewise.
5065 * modules/openat (Depends-on): Likewise.
5066 * modules/savewd (Depends-on): Likewise.
5067 * modules/rename (Depends-on): Likewise.
5068 (License): Relax license.
5069 * modules/mkdir-tests (Depends-on): Drop progname.
5070 (Makefile.am): Delete unneeded LDADD.
5071 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
5073 dirname: split into dirname-lgpl
5074 * modules/dirname-lgpl: New module.
5075 * modules/dirname (Files): Move library-safe files into
5077 (Depends-on): Add dirname-lgpl.
5078 (configure.ac): Declare witness.
5079 * modules/double-slash-root (License): Relax license.
5080 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
5082 * lib/dirname.c (dir_len, mdir_name): Move...
5083 * lib/dirname-lgpl.c: ...into new file.
5084 * lib/basename.c (last_component, base_len): Move...
5085 * lib/basename-lgpl.c: ...into new file.
5086 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
5087 (gl_DIRNAME): Use it.
5088 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
5090 * modules/dirname-tests (Depends-on): Add progname.
5091 * tests/test-dirname.c (program_name): Delete.
5093 mkdir: make safe for libraries
5094 * modules/mkdir (Depends-on): Drop xalloc.
5095 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
5098 tests: avoid some compiler warnings
5099 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
5101 * tests/test-memchr.c (main): Avoid type mismatch.
5102 * tests/test-arpa_inet.c (main): Avoid unused parameters.
5103 * tests/test-base64.c (main): Likewise.
5104 * tests/test-getdelim.c (main): Likewise.
5105 * tests/test-gethostname.c (main): Likewise.
5106 * tests/test-getline.c (main): Likewise.
5107 * tests/test-netinet_in.c (main): Likewise.
5108 * tests/test-select.c (open_server_socket, main): Likewise.
5109 * tests/test-select-stdin.c (main): Likewise.
5110 * tests/test-sockets.c (main): Likewise.
5111 * tests/test-strsignal.c (main): Likewise.
5112 * tests/test-sys_select.c (main): Likewise.
5113 * tests/test-sys_socket.c (main): Likewise.
5114 * tests/test-u64.c (main): Likewise.
5115 * tests/test-xfprintf-posix.c (main): Likewise.
5116 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
5118 sockets: avoid compiler warning
5119 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
5121 maint: detect usage(1) and other suspicious exits
5122 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
5124 2009-10-29 Jim Meyering <meyering@redhat.com>
5126 timespec: long-to-int truncation could make timespec_cmp malfunction
5127 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
5128 a multiple of 2^32 nanoseconds as no difference.
5130 2009-10-28 Jim Meyering <meyering@redhat.com>
5132 fprintftime: wrap macro code argument in "do {...} while(0)"
5133 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
5134 cpy macro must be a statement that can be followed by a semicolon.
5135 Now that the else clause contains a comment and is hence longer
5136 than one line, I require curly braces. That in turn requires
5137 that we wrap this code block in the standard do...while(0).
5139 fprintftime: remove stray semicolon from previous change
5140 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
5142 fprintftime: avoid a warning about ignored fwrite return value
5143 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
5144 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
5146 * modules/fprintftime (Depends-on): Add ignore-value.
5148 exclude: avoid an unwarranted warning
5149 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
5151 2009-10-27 Eric Blake <ebb9@byu.net>
5153 fseek: avoid compilation failure when fflush is replaced
5154 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
5155 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
5157 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
5158 module is not in use; since REPLACE_FSEEK worked otherwise.
5159 (GNULIB_FTELLO): Likewise for ftell.
5160 Reported by Ian Beckwith and others.
5162 2009-10-27 Bruno Haible <bruno@clisp.org>
5164 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
5165 Reported by Jim Meyering.
5167 2009-10-27 Jim Meyering <jim@meyering.net>
5168 Bruno Haible <bruno@clisp.org>
5170 Avoid warning despite dropping the return value of fwrite.
5171 * lib/unicodeio.c: Include ignore-value.h.
5172 (fwrite_success_callback): Explicitly ignore fwrite's return value.
5173 * modules/unicodeio (Depends-on): Add ignore-value.
5175 2009-10-26 Eric Blake <ebb9@byu.net>
5177 areadlinkat: fix fallback path
5178 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
5181 2009-10-22 Pádraig Brady <P@draigBrady.com>
5183 Use a better IO block size for modern systems
5184 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
5185 * lib/md2.c: Likewise.
5186 * lib/md4.c: Likewise.
5187 * lib/md5.c: Likewise.
5188 * lib/sha1.c: Likewise.
5189 * lib/sha256.c: Likewise.
5190 * lib/sha512.c: Likewise.
5192 2009-10-22 Eric Blake <ebb9@byu.net>
5194 tests: avoid several compiler warnings
5195 * tests/test-getcwd.c (main): Avoid buffer underflow.
5196 * tests/test-getdate.c (main): String literals are not safe with
5197 putenv, so use setenv. Declare unused argument.
5198 * modules/getdate-tests (Depends-on): Add setenv.
5199 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
5200 problems with string literals in char *.
5201 * tests/test-hash.c (main): Avoid shadowing declaration.
5202 (insert_new): Treat string literals as char const *.
5203 * tests/test-getopt.h (test_getopt): Likewise.
5204 (getopt_loop): Alter types to minimize casting elsewhere.
5205 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
5206 (test_getopt_long_posix): Likewise.
5207 (do_getopt_long): Add wrapper to minimize casting.
5208 * tests/test-atexit.c (clear_temp_file): Use void.
5209 * tests/test-areadlink-with-size.c (main): Declare unused
5211 * tests/test-areadlink.c (main): Likewise.
5212 * tests/test-areadlinkat-with-size.c (main): Likewise.
5213 * tests/test-areadlinkat.c (main): Likewise.
5214 * tests/test-canonicalize-lgpl.c (main): Likewise.
5215 * tests/test-canonicalize.c (main): Likewise.
5216 * tests/test-dirent-safer.c (main): Likewise.
5217 * tests/test-dirname.c (main): Likewise.
5218 * tests/test-dup2.c (main): Likewise.
5219 * tests/test-fchdir.c (main): Likewise.
5220 * tests/test-fcntl-h.c (main): Likewise.
5221 * tests/test-fcntl-safer.c (main): Likewise.
5222 * tests/test-fdopendir.c (main): Likewise.
5223 * tests/test-fdutimensat.c (main): Likewise.
5224 * tests/test-fflush.c (main): Likewise.
5225 * tests/test-filenamecat.c (main): Likewise.
5226 * tests/test-filevercmp.c (main): Likewise.
5227 * tests/test-fopen-safer.c (main): Likewise.
5228 * tests/test-fopen.c (main): Likewise.
5229 * tests/test-fpending.c (main): Likewise.
5230 * tests/test-fpurge.c (main): Likewise.
5231 * tests/test-freading.c (main): Likewise.
5232 * tests/test-fstatat.c (main): Likewise.
5233 * tests/test-fsync.c (main): Likewise.
5234 * tests/test-futimens.c (main): Likewise.
5235 * tests/test-getndelim2.c (main): Likewise.
5236 * tests/test-gettimeofday.c (main): Likewise.
5237 * tests/test-getopt.c (main): Likewise.
5238 * tests/test-i-ring.c (main): Likewise.
5239 * tests/test-inttypes.c (main): Likewise.
5240 * tests/test-link.c (main): Likewise.
5241 * tests/test-lstat.c (main): Likewise.
5242 * tests/test-math.c (main): Likewise.
5243 * tests/test-md5.c (main): Likewise.
5244 * tests/test-memchr2.c (main): Likewise.
5245 * tests/test-memrchr.c (main): Likewise.
5246 * tests/test-mkdir.c (main): Likewise.
5247 * tests/test-mkdirat.c (main): Likewise.
5248 * tests/test-mkfifoat.c (main): Likewise.
5249 * tests/test-open.c (main): Likewise.
5250 * tests/test-openat-safer.c (main): Likewise.
5251 * tests/test-openat.c (main): Likewise.
5252 * tests/test-quotearg.c (main): Likewise.
5253 * tests/test-rawmemchr.c (main): Likewise.
5254 * tests/test-readlink.c (main): Likewise.
5255 * tests/test-remove.c (main): Likewise.
5256 * tests/test-rename.c (main): Likewise.
5257 * tests/test-renameat.c (main): Likewise.
5258 * tests/test-rmdir.c (main): Likewise.
5259 * tests/test-sha1.c (main): Likewise.
5260 * tests/test-signal.c (main): Likewise.
5261 * tests/test-sigaction.c (main): Likewise.
5262 * tests/test-stat.c (main): Likewise.
5263 * tests/test-stat-time.c (main): Likewise.
5264 * tests/test-stddef.c (main): Likewise.
5265 * tests/test-stdint.c (main): Likewise.
5266 * tests/test-stdio.c (main): Likewise.
5267 * tests/test-stdlib.c (main): Likewise.
5268 * tests/test-strchrnul.c (main): Likewise.
5269 * tests/test-strerror.c (main): Likewise.
5270 * tests/test-string.c (main): Likewise.
5271 * tests/test-strtod.c (main): Likewise.
5272 * tests/test-strverscmp.c (main): Likewise.
5273 * tests/test-symlink.c (main): Likewise.
5274 * tests/test-symlinkat.c (main): Likewise.
5275 * tests/test-sys_stat.c (main): Likewise.
5276 * tests/test-sys_time.c (main): Likewise.
5277 * tests/test-time.c (main): Likewise.
5278 * tests/test-unistd.c (main): Likewise.
5279 * tests/test-unlink.c (main): Likewise.
5280 * tests/test-unlinkat.c (main): Likewise.
5281 * tests/test-utimens.c (main): Likewise.
5282 * tests/test-utimensat.c (main): Likewise.
5283 * tests/test-version-etc.c (main): Likewise.
5284 * tests/test-wchar.c (main): Likewise.
5285 * tests/test-wctype.c (main): Likewise.
5286 * tests/test-xprintf-posix.c (main): Likewise.
5287 * tests/test-posixtm.c (main): Likewise.
5288 (STREQ): Delete unused macro.
5289 * tests/test-linkat.c (main): Declare unused arguments. Avoid
5291 * tests/test-memchr.c (main): Likewise.
5293 2009-10-21 Eric Blake <ebb9@byu.net>
5295 areadlinkat: avoid failure on older glibc
5296 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
5297 rather than mis-comparing 0 against FUNC_RESULT of char*.
5299 2009-10-21 Bruno Haible <bruno@clisp.org>
5301 * modules/stpncpy (License): Relicense under LGPLv2+.
5302 Reported by David Lutterkort <lutter@redhat.com>.
5304 2009-10-20 Eric Blake <ebb9@byu.net>
5306 utimensat: work around Solaris 9 bug
5307 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
5308 has trailing slash bugs.
5309 * tests/test-lutimens.h (test_lutimens): Enhance test.
5310 * tests/test-utimens.h (test_utimens): Likewise.
5311 * doc/posix-functions/utime.texi (utime): Enhance documentation.
5312 * doc/posix-functions/utimes.texi (utimes): Likewise.
5313 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5314 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
5315 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
5316 * doc/posix-functions/futimens.texi (futimens): Likewise.
5318 fdutimensat: new module
5319 * modules/fdutimensat: New file.
5320 * lib/fdutimensat.c (fdutimensat): Likewise.
5321 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
5322 * MODULES.html.sh (File system functions): Mention module.
5323 * modules/fdutimensat-tests: New test.
5324 * tests/test-fdutimensat.c: Likewise.
5326 doc: regenerate INSTALL
5327 * doc/INSTALL: Reflect recent autoconf update.
5328 * doc/INSTALL.ISO: Likewise.
5329 * doc/INSTALL.UTF-8: Likewise.
5331 2009-10-20 Pádraig Brady <P@draigBrady.com>
5333 acl: warn if ACL support is not detected
5334 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
5336 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
5338 * lib/nproc.h: Add extern "C" block for C++.
5340 2009-10-18 Reuben Thomas <rrt@sc3d.org>
5341 Bruno Haible <bruno@clisp.org>
5343 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
5344 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
5345 * doc/posix-functions/isalpha.texi: Likewise.
5346 * doc/posix-functions/isblank.texi: Likewise.
5347 * doc/posix-functions/iscntrl.texi: Likewise.
5348 * doc/posix-functions/isdigit.texi: Likewise.
5349 * doc/posix-functions/isgraph.texi: Likewise.
5350 * doc/posix-functions/islower.texi: Likewise.
5351 * doc/posix-functions/isprint.texi: Likewise.
5352 * doc/posix-functions/ispunct.texi: Likewise.
5353 * doc/posix-functions/isspace.texi: Likewise.
5354 * doc/posix-functions/isupper.texi: Likewise.
5355 * doc/posix-functions/isxdigit.texi: Likewise.
5357 2009-10-18 Bruno Haible <bruno@clisp.org>
5359 Tests for module 'isblank'.
5360 * modules/isblank-tests: New file.
5361 * tests/test-isblank.c: New file.
5363 New module 'isblank'.
5364 * lib/isblank.c: New file.
5365 * m4/isblank.m4: New file.
5366 * modules/isblank: New file.
5367 * doc/posix-functions/isblank.texi: Mention the new module.
5369 2009-10-18 Bruno Haible <bruno@clisp.org>
5372 * lib/ctype.in.h: New file.
5373 * m4/ctype.m4: New file.
5374 * modules/ctype: New file.
5375 * doc/posix-headers/ctype.texi: Mention the new module.
5377 2009-10-18 Jim Meyering <meyering@redhat.com>
5379 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
5380 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
5381 right after its initialization, rather than farther down.
5382 Keeping these in close proximity makes it easier to ensure
5383 that each such variable is initialized. E.g.,
5386 AC_SUBST([LIB_CLOCK_GETTIME])
5388 This change also increments these serial numbers.
5389 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
5390 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5391 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5393 2009-10-18 Bruno Haible <bruno@clisp.org>
5395 Don't let environment variables perturb build.
5396 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
5397 (gl_PREREQ_GETHRXTIME): ... not here.
5399 2009-10-18 Bruno Haible <bruno@clisp.org>
5401 Avoid symlink attack in localcharset module.
5402 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
5403 (O_NOFOLLOW): Define fallback.
5404 (get_charset_aliases): Don't open the file if it is a symbolic link.
5405 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
5407 (gl_FCNTL_H): Require it.
5408 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
5409 * modules/localcharset (Files): Add m4/fcntl_h.m4.
5410 Reported by Fergal Glynn <fglynn@veracode.com>.
5412 2009-10-18 Bruno Haible <bruno@clisp.org>
5414 Implement nproc for mingw.
5415 * lib/nproc.c: Include <windows.h>
5416 (num_processors): On native Windows platforms, try GetSystemInfo.
5418 2009-10-18 Bruno Haible <bruno@clisp.org>
5420 Implement nproc for IRIX.
5421 * lib/nproc.c: Include <sys/sysmp.h>.
5422 (num_processors): On IRIX systems, try sysmp.
5423 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
5425 2009-10-18 Bruno Haible <bruno@clisp.org>
5427 Implement nproc for HP-UX.
5428 * lib/nproc.c: Include <sys/pstat.h>
5429 (num_processors): On HP-UX systems, try pstat_getdynamic.
5430 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
5433 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
5434 Bruno Haible <bruno@clisp.org>
5436 Implement nproc for NetBSD, OpenBSD.
5437 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
5438 (ARRAY_SIZE): New macro.
5439 (num_processors): On BSD systems, try sysctl of HW_NCPU.
5440 * m4/nproc.m4: New file.
5441 * modules/nproc (Files): Add m4/nproc.m4.
5442 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
5443 (Makefile.am): Instead, augment lib_SOURCES.
5445 2009-10-18 Bruno Haible <bruno@clisp.org>
5447 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
5448 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
5451 2009-10-16 Eric Blake <ebb9@byu.net>
5453 utimensat: new module
5454 * modules/utimensat: New file.
5455 * lib/utimensat.c (utimensat): Likewise.
5456 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
5457 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
5458 so we can work around Linux bugs.
5459 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5460 * modules/sys_stat (Makefile.am): Substitute them.
5461 * lib/sys_stat.in.h (utimensat): Declare it.
5462 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5463 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5464 * modules/utimensat-tests: New test.
5465 * tests/test-utimensat.c: Likewise.
5467 utimens: let lutimens work on non-symlinks
5468 * lib/utimens.c (lutimens): Fall back to utimens rather than
5469 failing with ENOSYS, when file is not a symlink.
5470 (utimens): Reduce redirection.
5471 * tests/test-lutimens.h (test_lutimens): Update test to cover
5473 * tests/test-utimens.h (test_utimens): Update test to cover
5475 * tests/test-utimens.c (main): Update caller.
5477 utimens: cache whether utimensat syscall works
5478 * lib/utimens.c (utimensat_works_really): New cache variable.
5479 (fdutimens, lutimens): Use it to avoid failing syscall.
5481 test-stat-time, test-utimens: improve portability
5482 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
5483 ext4 on alpha, and for cygwin.
5484 * tests/test-utimens-common.h: New file.
5485 (nap): Factor delays into single function.
5486 * tests/test-lutimens.h (test_lutimens): Use new header.
5487 * tests/test-futimens.h (test_futimens): Likewise.
5488 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
5489 timestamps to occur from same machine, as was done previously for
5491 * modules/utimens-tests (Files): Ship new file.
5492 * modules/futimens-tests (Files): Likewise.
5493 Reported in part by Jim Meyering.
5495 sys_stat: sort replacement declarations
5496 * lib/sys_stat.in.h: Sort declarations.
5497 * lib/futimens.c (futimens): Fix typo.
5499 2009-10-15 Jim Meyering <meyering@redhat.com>
5501 don't let environment settings perturb build
5502 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
5503 could cause a configure-time and/or build-time malfunction.
5504 Typically, a configure-time function-in-library test is performed
5509 prefix_saved_LIBS=$LIBS
5510 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
5511 [test "$ac_cv_search_FUNC" = "none required" ||
5512 LIB_VAR=$ac_cv_search_FUNC])
5513 LIBS=$prefix_saved_LIBS
5515 However, in each of the files affected by this change, the LIB_VAR=
5516 initialization was omitted. Thus, when set in the environment, its
5517 value would propagate into generated Makefiles when FUNC is not found
5519 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
5520 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
5521 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5523 2009-10-14 Eric Blake <ebb9@byu.net>
5525 fchdir: avoid infinite recursion in mingw
5526 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
5529 test-stat-time: port to mingw
5530 * tests/test-stat-time.c (force_unlink): Return a value.
5531 (test_ctime) [W32]: Fix compilation error.
5532 (nap): Don't call usleep with too large an argument. Use
5534 * doc/pastposix-functions/usleep.texi (usleep): Document the
5537 2009-10-13 Jim Meyering <meyering@redhat.com>
5539 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
5540 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
5541 * modules/pipe-filter-ii: Likewise.
5542 * modules/sys_socket-tests: Likewise.
5543 * modules/tsearch-tests: Likewise.
5544 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
5545 (check): Depend on it.
5547 2009-10-12 Eric Blake <ebb9@byu.net>
5549 utimens-tests: port to NFS file systems
5550 * tests/test-utimens.h (test_utimens): Refactor utimecmp
5551 comparisons to avoid spurious failures from timestamp drift
5552 between NFS machines.
5554 2009-10-12 Eric Blake <ebb9@byu.net>
5556 stat-time-tests: minor cleanups
5557 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
5558 * tests/test-stat-time.c (nap): Separate assignment from call.
5559 Suggested by Paolo Bonzini and Bruno Haible.
5561 sys_stat: guarantee struct timespec
5562 * lib/sys_stat.in.h (includes): Always include <time.h>
5563 * modules/sys_stat (Depends-on): Add time.
5564 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
5565 mode_t permission values.
5566 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
5567 get at subsecond timestamps.
5569 2009-10-10 Eric Blake <ebb9@byu.net>
5571 futimens: new module
5572 * modules/futimens: New file.
5573 * lib/futimens.c (futimens): Likewise.
5574 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
5575 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
5576 we can work around Linux bugs.
5577 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5578 * modules/sys_stat (Makefile.am): Substitute them.
5579 * lib/sys_stat.in.h (futimens): Declare it.
5580 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5581 * doc/posix-functions/futimens.texi (futimens): Likewise.
5582 * modules/futimens-tests: New test.
5583 * tests/test-futimens.c: Likewise.
5585 utimens: introduce fdutimens
5586 * lib/utimens.h (fdutimens): New prototype.
5587 * lib/utimens.c (gl_futimens): Move guts...
5588 (fdutimens): ...to new interface.
5589 * tests/test-utimens.c (do_fdutimens): Use it.
5591 utimens: add UTIME_NOW and UTIME_OMIT support
5592 * lib/utimens.c (validate_timespec, update_timespec): New helper
5594 (gl_futimens, lutimens): Use them.
5595 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
5597 (Link): Mention resulting library dependency.
5598 * modules/utimecmp (Link): Likewise.
5599 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
5600 (Makefile.am): Pick up library dependency.
5601 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
5603 * tests/test-sys_stat.c: Test the definitions.
5604 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
5605 * NEWS: Document library dependency.
5607 utimecmp: support symlink timestamps
5608 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
5609 hashing when possible. Use pathconf when available.
5610 (SYSCALL_RESOLUTION): Recognize tighter resolution.
5611 * modules/utimecmp (Depends-on): Add lstat.
5613 utimens: add lutimens interface
5614 * lib/utimens.c (lutimens): New function.
5615 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
5616 * lib/utimens.h (lutimens): Declare new interface.
5617 * tests/test-utimens.c (main): Enhance test.
5618 * tests/test-lutimens.h (test_lutimens): New file.
5619 * modules/utimens-tests (Files): Distribute it.
5620 (Depends-on): Add symlink.
5621 (configure.ac): Check for usleep.
5623 utimens: validate futimens usage
5624 * lib/utimens.c (gl_futimens): Require valid fd up front, using
5625 fewer syscalls on failure later on. Avoid compiler warning on
5627 * modules/utimens (Depends-on): Add dup2.
5630 * modules/utimens-tests: New test.
5631 * tests/test-utimens.h: New file.
5632 * tests/test-futimens.h: Likewise.
5633 * tests/test-utimens.c: Likewise.
5635 doc: mention timestamp portability issues
5636 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
5638 * doc/posix-functions/utime.texi (utime): Likewise.
5639 * doc/posix-functions/utimes.texi (utimes): Likewise.
5640 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
5642 * doc/posix-functions/futimens.texi (futimens): Mention utimens
5644 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
5645 Mention weakness with symlink timestamps.
5646 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
5647 to utimensat/futimens instead.
5648 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
5650 test-dup2: enhance test
5651 * tests/test-dup2.c (main): Also check AT_FDCWD.
5653 test-stat-time: avoid more spurious failures
5654 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
5655 xfs; and avoid race if the two timestamps cross quantization edge.
5657 relocatable: prefer 'file system' over 'filesystem'
5658 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
5659 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
5660 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
5661 * doc/relocatable.texi (Enabling Relocatability): Likewise.
5662 * lib/relocatable.c (compute_curr_prefix): Likewise.
5664 2009-10-10 Jim Meyering <meyering@redhat.com>
5666 stat-time-tests: check for the usleep function
5667 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
5669 2009-10-10 Bruno Haible <bruno@clisp.org>
5671 * modules/xnanosleep: Put the Link section after the Include section.
5673 2009-10-09 Eric Blake <ebb9@byu.net>
5675 dup2: work around FreeBSD 6.1 bug
5676 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
5677 * doc/posix-functions/dup2.texi (dup2): Document it.
5678 Reported by Nelson H. F. Beebe and Jim Meyering.
5680 test-stat-time: port to buggy NFS clients
5681 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
5682 (test_ctime): Also skip test if mtime and ctime are skewed.
5684 maint: prefer 'file system' over 'filesystem'
5685 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
5686 * doc/posix-functions/lstat.texi (lstat): Likewise.
5687 * lib/file-has-acl.c (file_has_acl): Likewise.
5688 * lib/fwriteerror.c [TEST]: Likewise.
5689 * tests/test-areadlink.h (test_areadlink): Likewise.
5690 * tests/test-areadlinkat-with-size.c (main): Likewise.
5691 * tests/test-areadlinkat.c (main): Likewise.
5692 * tests/test-canonicalize-lgpl.c (main): Likewise.
5693 * tests/test-canonicalize.c (main): Likewise.
5694 * tests/test-fstatat.c (main): Likewise.
5695 * tests/test-linkat.c (main): Likewise.
5696 * tests/test-lstat.h (test_lstat_func): Likewise.
5697 * tests/test-mkdir.h (test_mkdir): Likewise.
5698 * tests/test-readlink.h (test_readlink): Likewise.
5699 * tests/test-remove.c (main): Likewise.
5700 * tests/test-rename.h (test_rename): Likewise.
5701 * tests/test-renameat.c (main): Likewise.
5702 * tests/test-rmdir.h (test_rmdir_func): Likewise.
5703 * tests/test-symlink.h (test_symlink): Likewise.
5704 * tests/test-symlinkat.c (main): Likewise.
5705 * tests/test-unlink.h (test_unlink_func): Likewise.
5706 * tests/test-unlinkat.c (main): Likewise.
5708 maint: make realtime library usage explicit
5709 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
5710 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
5711 * modules/settime (Link): Likewise.
5712 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
5714 test-stat-time: speed up execution
5715 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
5717 (nap): New helper function.
5718 (prepare_test): Use it to reduce sleep time.
5719 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
5721 * modules/stat-time-tests (configure.ac): Check for usleep.
5723 2009-10-09 Jim Meyering <meyering@redhat.com>
5725 selinux-h: always use getfilecon wrappers
5726 * lib/getfilecon.c: New file.
5727 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
5728 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
5729 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
5730 (fgetfilecon): Provide a stub.
5731 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
5732 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
5733 file unconditionally.
5734 When <selinux/selinux.h> is found, arrange to use wrappers.
5735 * modules/selinux-h (Files): Add getfilecon.c.
5736 (Makefile.am): Substitute include-next-related bits
5737 into the now-always-generated selinux/selinux.h file.
5738 * doc/glibc-functions/lgetfilecon.texi: New file.
5739 * doc/glibc-functions/fgetfilecon.texi: New file.
5740 * doc/glibc-functions/getfilecon.texi: New file.
5741 * doc/glibc-functions/getfilecon-desc.texi: New file.
5742 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
5743 which to pull in the new files.
5744 * MODULES.html.sh (Misc): Add selinux-h.
5746 2009-10-08 Jim Meyering <meyering@redhat.com>
5748 unistd: fix comment typo
5749 * lib/unistd.in.h (euidaccess): Fix a comment typo.
5751 2009-10-08 Eric Blake <ebb9@byu.net>
5753 areadlink: use SIZE_MAX consistently
5754 * modules/areadlink (Depends-on): Add stdint.
5755 * modules/areadlink-with-size (Depends-on): Likewise.
5756 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
5757 gives NULL; drop sys/types, since unistd gives size_t; and add
5758 stdint for SIZE_MAX.
5759 (SIZE_MAX): Rely on headers.
5760 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
5762 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
5763 (SIZE_MAX): Likewise.
5764 (INITIAL_BUF_SIZE): Turn into enum.
5765 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
5767 2009-10-08 Jim Meyering <meyering@redhat.com>
5769 areadlinkat: avoid compilation failure
5770 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
5771 Fix typo in comment.
5773 2009-10-07 Eric Blake <ebb9@byu.net>
5775 areadlinkat-with-size: new module
5776 * modules/areadlinkat-with-size: New module.
5777 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
5778 * lib/areadlink.h (areadlinkat): Declare it.
5779 * MODULES.html.sh (File system functions): Mention it.
5780 * modules/areadlinkat-with-size-tests: New test.
5781 * tests/test-areadlinkat-with-size.c: New file.
5783 xreadlinkat: new module
5784 * modules/xreadlinkat: New module.
5785 * lib/xreadlinkat.c (xreadlinkat): New file.
5786 * lib/xreadlink.h (xreadlinkat): Declare it.
5787 * MODULES.html.sh (File system functions): Mention it.
5789 areadlinkat: new module
5790 * lib/at-func.c (FUNC_FAIL): New define.
5791 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
5792 * modules/areadlinkat: New module.
5793 * lib/linkat.c (areadlinkat): Move...
5794 * lib/areadlinkat.c (areadlinkat): ...to new file.
5795 * lib/areadlink.h (areadlinkat): Declare it.
5796 * modules/linkat (Depends-on): Add areadlinkat.
5797 * MODULES.html.sh (File system functions): Mention it.
5798 * modules/areadlinkat-tests: New test.
5799 * tests/test-areadlinkat.c: New file.
5801 areadlink, areadlink-with-size: add tests
5802 * modules/areadlink-tests: New test.
5803 * modules/areadlink-with-size-tests: Likewise.
5804 * tests/test-areadlink.h: New file.
5805 * tests/test-areadlink.c: Likewise.
5806 * tests/test-areadlink-with-size.c: Likewise.
5808 maint: minor cleanups
5809 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
5810 _UNUSED_PARAMETER_ instead.
5811 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
5812 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
5813 * modules/linkat-tests (Files): Distribute test-link.h.
5815 openat, utimens: whitespace cleanup
5816 * lib/openat.c: Prefer space throughout, rather than mix of 8
5818 * lib/at-func.c: Likewise.
5819 * lib/utimens.c: Likewise.
5821 openat: avoid using wrong fd
5822 * lib/openat.c (openat_permissive): Reject user's fd if saving the
5823 working directory chooses same fd.
5824 * lib/at-func.c (AT_FUNC_NAME): Likewise.
5826 mkdir, mkdirat: fix cygwin 1.5.x bug
5827 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
5828 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
5829 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
5831 (gl_PREREQ_MKDIR): Delete unused macro.
5832 * modules/mkdir (Files): Track file rename.
5833 (configure.ac): Update macro name.
5834 * modules/openat (Depends-on): Add mkdir.
5835 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
5837 mkdir, mkdirat: add tests
5838 * modules/mkdir-tests: New test.
5839 * tests/test-mkdir.h: New file.
5840 * tests/test-mkdir.c: Likewise.
5841 * tests/test-mkdirat.c: Likewise.
5842 * modules/openat-tests (Files): Add new files.
5843 (Makefile.am): Run new test.
5845 2009-10-06 Eric Blake <ebb9@byu.net>
5847 doc: tweak *at function documentation
5848 * doc/posix-functions/faccessat.texi (faccessat): Mention
5849 known issue with replacement.
5850 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
5851 * doc/posix-functions/linkat.texi (linkat): Likewise.
5852 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
5853 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
5854 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5855 * doc/posix-functions/renameat.texi (renameat): Likewise.
5856 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5858 openat: fix GNU/Hurd bug in unlinkat
5859 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
5861 * doc/posix-functions/unlink.texi (unlink): Document this.
5862 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
5864 fdopendir: fix GNU/Hurd bug
5865 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
5866 allowing non-directory fds.
5867 * lib/fdopendir.c (rpl_fdopendir): Work around it.
5868 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5869 * modules/dirent (Makefile.am): Substitute it.
5870 * lib/dirent.in.h (fdopendir): Declare replacement.
5871 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
5872 * tests/test-fdopendir.c (main): Test something other than
5873 /dev/null, since on Hurd that behaves like a directory.
5875 test-symlink: port to GNU/Hurd
5876 * tests/test-symlink.h (test_symlink): Relax expected errno.
5878 doc: tweak more cygwin information
5879 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
5880 now compatible with glibc.
5881 * doc/posix-functions/getopt.texi (getopt): Likewise.
5883 getopt-gnu: add another test
5884 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
5885 guarantee behavior relied on by m4.
5886 * tests/test-getopt.c (main): Use it.
5887 * modules/getopt-posix-tests (Depends-on): Add setenv.
5888 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
5890 getopt: fix compilation on darwin
5891 * lib/getopt.in.h (includes): Leave breadcrumbs during system
5893 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
5894 Reported by Ludovic Courtès.
5896 2009-10-06 Bruno Haible <bruno@clisp.org>
5898 * modules/size_max (Description): Discourage its use.
5899 Reported by Simon Josefsson.
5901 2009-10-06 Jim Meyering <meyering@redhat.com>
5903 linkat: avoid compilation failure
5904 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
5906 2009-10-05 Eric Blake <ebb9@byu.net>
5908 linkat: support Linux 2.6.17
5909 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
5910 linkat on Linux, but allow cache variable override.
5911 * lib/linkat.c (rpl_linkat): Define override.
5912 * modules/linkat (Depends-on): Add symlinkat.
5913 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
5914 * modules/unistd (Makefile.am): Substitute it.
5915 * lib/unistd.in.h (linkat): Declare replacement.
5916 Reported by Pádraig Brady.
5918 quotearg: port test to systems with C.UTF-8 locale
5919 * tests/test-quotearg.c (struct result_strings): Add another
5920 member, differentiating between C.ASCII and C.UTF-8 handling.
5921 (compare_strings): Add parameter.
5922 (main): Adjust all callers.
5924 getopt: avoid clash with FreeBSD _getopt_internal
5925 * lib/getopt.in.h (_getopt_internal): Override the name.
5926 * lib/getopt_int.h (includes): Pick up any overrides.
5927 Reported by Reuben Thomas.
5929 hash: allow C89 compilation
5930 * lib/hash.c (check_tuning): Move declaration before statement.
5931 Reported by Reuben Thomas.
5933 2009-10-05 Karl Berry <karl@gnu.org>
5935 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
5937 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
5938 Bruno Haible <bruno@clisp.org>
5940 * lib/uname.c (uname): Use a table-driven algorithm to compute
5941 Windows NT versions.
5943 2009-10-04 Bruno Haible <bruno@clisp.org>
5945 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
5946 program_invocation_short_name.
5947 * modules/progname (configure.ac): Test for presence of
5948 program_invocation_short_name.
5949 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
5951 2009-10-04 Bruno Haible <bruno@clisp.org>
5953 * lib/progname.c (set_program_name): Fix comment.
5954 Reported by Jim Meyering.
5956 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
5957 Bruno Haible <bruno@clisp.org>
5959 * lib/uname.c: Include <string.h>.
5960 (uname): Do only one call to GetVersionEx in the common case.
5962 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
5963 Bruno Haible <bruno@clisp.org>
5965 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
5966 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
5967 (uname): Add support for Windows CE and various non-x86 CPU types.
5969 2009-10-03 Bruno Haible <bruno@clisp.org>
5971 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
5972 invocation to tests/configure.ac.
5973 Reported by Ian Beckwith <ianb@erislabs.net>.
5975 2009-10-02 Eric Blake <ebb9@byu.net>
5977 fchdir: avoid compiler warning
5978 * lib/fchdir.c (canonicalize_file_name)
5979 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
5981 test-open: support mingw errno values
5982 * tests/test-open.h (test_open): Relax test.
5983 * tests/test-fopen.h (test_fopen): Likewise.
5984 * tests/test-openat-safer.c (main): Likewise.
5986 open: fix opening directory on mingw
5987 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
5989 test-open: on GNU/Hurd, /dev/null is a directory
5990 * tests/test-fopen.h (main): Rename...
5991 (test_fopen): ...to this. Use a guaranteed non-directory when
5992 confirming open behavior on trailing slash.
5993 * tests/test-openat-safer.c (main): Likewise.
5994 * tests/test-open.h (main): Likewise....
5995 (test_open): ...to this.
5996 * tests/test-fopen.c (main): Adjust caller.
5997 * tests/test-fopen-safer.c (main): Likewise.
5998 * tests/test-open.c (main): Likewise.
5999 * tests/test-fcntl-safer.c (main): Likewise.
6000 Reported by Samuel Thibault.
6002 rename, fchdir: don't ignore chdir failure
6003 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
6004 * lib/rename.c (rpl_rename) [W32]: Likewise.
6005 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
6006 an empty destination directory if source cannot be renamed,
6007 although there is still possibility for failure.
6008 * doc/posix-functions/rename.texi (rename): Document the race.
6009 Reported by Jim Meyering.
6011 maint: cleanup whitespace in recent commits
6012 * lib/rename.c (rpl_rename): Remove tabs.
6013 * tests/test-link.h (test_link): Likewise.
6014 * lib/fchdir.c (get_name): Likewise.
6015 Reported by Jim Meyering.
6017 2009-10-02 Ben Pfaff <blp@gnu.org>
6019 relocatable-prog-wrapper: Add missing dependency on
6021 * modules/relocatable-prog-wrapper: Add dependency.
6022 Reported by Ian Beckwith <ianb@erislabs.net>.
6024 2009-10-02 Eric Blake <ebb9@byu.net>
6026 renameat: fix Solaris bugs
6027 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
6029 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
6030 * modules/stdio (Makefile.am): Substitute it.
6031 * lib/stdio.in.h (renameat): Declare replacement.
6032 * lib/renameat.c (rpl_renameat): Implement fix.
6034 renameat: new module
6035 * modules/renameat: New file.
6036 * lib/renameat.c (renameat): Likewise.
6037 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
6038 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
6039 * modules/stdio (Makefile.am): Substitute them.
6040 * lib/stdio.in.h (renameat): Declare it.
6041 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6042 * doc/posix-functions/renameat.texi (renameat): Likewise.
6043 * modules/renameat-tests: New test.
6044 * tests/test-renameat.c: Likewise.
6046 rename: fix mingw bugs
6047 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
6048 directory overwrite bugs.
6050 rename: fix another cygwin 1.5 bug
6051 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
6053 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
6054 unnecessary cygwin workarounds. Also work around bug with moving
6055 full directory onto an empty one.
6056 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
6058 rename-dest-slash: merge into rename module
6059 * modules/rename-dest-slash (Status): Mark obsolete.
6060 (Depends-on): Add rename.
6061 (Files): Let rename do it all.
6062 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
6063 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
6064 * m4/rename-dest-slash.m4: ...so this file can be deleted.
6065 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
6066 * lib/rename.c (rpl_rename): Update comments.
6068 rename: fix cygwin 1.5.x bugs
6069 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
6070 * lib/rename.c (rpl_rename): Work around them.
6071 * modules/rename (Depends-on): Add same-inode.
6073 rename: fix Solaris 10 bug
6074 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
6075 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
6078 rename: fix Solaris 9 bug
6079 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
6080 on non-directory. Avoid calling exit.
6081 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
6083 * modules/rename-tests (Depends-on): Drop lstat.
6084 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
6085 (gl_PREREQ_RENAME): Delete unused macro.
6087 rename-dest-slash: fix NetBSD bug
6088 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
6090 * modules/rename-dest-slash (Depends-on): Add same-inode.
6092 rename-tests: new test, exposes several platform bugs
6093 * modules/rename-tests: New file.
6094 * tests/test-rename.h: Likewise.
6095 * tests/test-rename.c: Likewise.
6096 * doc/posix-functions/rename.texi (rename): Improve documentation,
6097 including bugs that will eventually be fixed in gnulib.
6099 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
6101 * lib/uname.c: Include <stdlib.h>
6102 (uname): Assume version info is available.
6104 2009-10-02 Jim Meyering <meyering@redhat.com>
6106 gnu-web-doc-update: correct --help output
6107 * build-aux/gnu-web-doc-update: Make --help output relevant.
6109 gnu-web-doc-update: add standard options
6110 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
6112 gnu-web-doc-update: New module.
6113 Use this script to automatically update the on-line web documentation
6114 for your GNU project at http://www.gnu.org/software/$pkg/manual/
6115 * modules/gnu-web-doc-update: New file, from coreutils.
6116 * build-aux/gnu-web-doc-update: New script.
6118 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
6120 link: LoadLibrary is not needed.
6121 * lib/link.c: Use GetModuleHandle.
6123 2009-10-01 Eric Blake <ebb9@byu.net>
6125 getopt: bump serial number
6126 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
6129 tests: tighten link, rmdir, and remove tests
6130 * tests/test-link.h (includes): No need to use <config.h> here.
6131 Clean up if directory hard link was created, otherwise test for
6133 * tests/test-linkat.c (main): Simplify.
6134 * tests/test-remove.c (main): Enhance test for trailing '.'.
6135 * tests/test-rmdir.h (test_rmdir_func): Likewise.
6137 2009-10-01 Jim Meyering <meyering@redhat.com>
6139 maint.mk: requiring "make major" was annoying, for a "minor" release.
6140 What is intended is "stable", to contrast with alpha and beta,
6141 so require "make stable", not "make major".
6142 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
6143 (get_tool_versions): Likewise.
6144 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
6146 2009-09-30 Ben Pfaff <blp@gnu.org>
6148 Fix broken build of replacement for Windows tmpfile().
6149 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
6150 flags argument added along with the 'mkostemp' module.
6152 2009-09-28 Bruno Haible <bruno@clisp.org>
6154 Avoid identifier clash with POSIX function 'remove' defined as a macro.
6155 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
6157 (gl_list_remove): Update.
6158 * lib/gl_list.c (gl_list_remove): Update.
6159 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
6161 (gl_oset_remove): Update.
6162 * lib/gl_list.c (gl_oset_remove): Update.
6163 Reported by Eric Blake.
6165 2009-09-28 Eric Blake <ebb9@byu.net>
6167 doc: mention yet more cygwin 1.7 status
6168 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
6170 * doc/glibc-functions/execvpe.texi (execvpe): New file.
6171 * doc/gnulib.texi (Glibc unistd.h): Mention it.
6173 argp: fix test failure
6174 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
6175 that are not upper-case. Pass correct range to tolower.
6177 2009-09-27 Jim Meyering <meyering@redhat.com>
6179 test-yesno: work around sparc-dash here-document infelicity
6180 Without this change, the literal \177 byte in a here document
6181 would make dash 0.5.5.1-3 access uninitialized memory.
6182 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
6183 Instead, use a marker, "@", and filter through tr to create the desired
6184 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
6186 2009-09-27 Bruno Haible <bruno@clisp.org>
6188 Disable untested support for new flavours of ACLs on AIX.
6189 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
6191 * lib/set-mode-acl.c (qset_acl): Likewise.
6193 2008-12-07 Bruno Haible <bruno@clisp.org>
6195 Add support for new flavours of ACLs on AIX. (Untested.)
6196 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
6197 (file_has_acl): Add support for newer AIX.
6198 * lib/set-mode-acl.c (qset_acl): Likewise.
6199 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
6200 Rainer Tammer <tammer@tammer.net>.
6202 2009-09-26 Eric Blake <ebb9@byu.net>
6204 argp: fix compilation of getopt
6205 * lib/getopt.in.h (includes): Use different guard than glibc.
6206 Reported by Sergey Poznyakoff.
6208 doc: mention more cygwin 1.7 status
6209 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
6211 * doc/posix-functions/execl.texi (execl): Likewise.
6212 * doc/posix-functions/execle.texi (execle): Likewise.
6213 * doc/posix-functions/execlp.texi (execlp): Likewise.
6214 * doc/posix-functions/execv.texi (execv): Likewise.
6215 * doc/posix-functions/execve.texi (execve): Likewise.
6216 * doc/posix-functions/execvp.texi (execvp): Likewise.
6217 * doc/glibc-functions/canonicalize_file_name.texi
6218 (canonicalize_file_name): Cygwin 1.7 now provides this.
6219 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
6220 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
6221 on AT_SYMLINK_NOFOLLOW.
6223 2009-09-24 Eric Blake <ebb9@byu.net>
6225 test-linkat: make test more robust
6226 * tests/test-linkat.c (main): Avoid collision with EEXIST.
6228 getopt: fix inclusion guards for cygwin
6229 * modules/getopt-posix (Depends-on): Add include-next.
6230 (Makefile.am): Substitute more items in replacement header.
6231 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
6233 * lib/getopt.in.h (includes): Use split inclusion guard, and
6234 prefer <getopt.h> over include <unistd.h> when one is present.
6235 (option): Also override name of 'struct option'.
6237 same-inode: revert prior change; it is not yet ready
6238 * NEWS: Undo mention of this change.
6239 * lib/same-inode.h (same-inode.h): Undo tri-state change.
6240 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6241 * lib/cycle-check.c (cycle_check): Likewise.
6242 * lib/same.c (same_name): Likewise.
6243 * lib/at-func2.c (at_func2): Likewise.
6245 2009-09-23 Eric Blake <ebb9@byu.net>
6248 * modules/linkat: New file.
6249 * lib/at-func2.c (at_func2): Likewise.
6250 * lib/linkat.c (linkat): Likewise.
6251 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
6252 * lib/openat-priv.h (at_func2): Add declaration.
6253 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6254 * modules/unistd (Makefile.am): Substitute them.
6255 * lib/unistd.in.h (linkat): Declare it.
6256 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6257 * doc/posix-functions/linkat.texi (linkat): Likewise.
6258 * doc/posix-functions/link.texi (link): Tweak wording.
6259 * tests/test-link.c (main): Move guts...
6260 * tests/test-link.h (test_link): ...into new file.
6261 * modules/linkat-tests: New test.
6262 * tests/test-linkat.c: Likewise.
6263 * modules/link-tests (Files): Ship new file.
6264 (Depends-on): Add stdbool.
6266 dirname: add library-safe mdir_name
6267 * lib/dirname.h (mdir_name): New prototype.
6268 * lib/dirname.c (dir_name): Move guts...
6269 (mdir_name): ...to new function that avoids xalloc_die.
6271 fchdir: another mingw fix
6272 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
6273 * lib/fchdir.c (get_name): New helper method; skips canonicalize
6274 on mingw (where it has not yet been ported), and make it optional
6276 (_gl_register_fd): Use it.
6278 same-inode: make SAME_INODE tri-state, to port to mingw
6279 * NEWS: Mention this change.
6280 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
6281 st_ino always being 0.
6282 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
6283 * lib/cycle-check.c (cycle_check): Likewise.
6284 * lib/same.c (same_name): Likewise.
6286 lstat: avoid mingw compilation error
6287 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
6288 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
6290 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
6292 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
6293 the checks for lstat.
6294 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
6296 link: fix test failure on Solaris 9
6297 * lib/link.c (rpl_link): Don't assume link will catch bogus
6298 trailing slash on source.
6300 test-symlinkat: enhance test
6301 * tests/test-readlink.c (main): Move guts...
6302 * tests/test-readlink.h (test_readlink): ...into new file.
6303 * tests/test-symlink.c (main): Move guts...
6304 * tests/test-symlink.h (test_symlink): ...into new file.
6305 * tests/test-symlinkat.c (main): Use new files for further
6307 (do_symlink, do_readlink): New helper functions.
6308 * modules/symlink-tests (Files): Ship new file.
6309 (Depends-on): Add stdbool.
6310 * modules/readlink-tests (Files): Ship new file.
6311 (Depends-on): Add stdbool.
6312 * modules/symlinkat-tests (Files): Use new files.
6314 2009-09-23 Eric Blake <ebb9@byu.net>
6316 readlink: document portability issue with symlink length
6317 * doc/posix-functions/lstat.texi (lstat): Mention that some file
6318 systems have bogus st_size on symlinks, and mention the
6319 areadlink-with-size module.
6320 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
6321 * doc/posix-functions/readlink.texi (readlink): Mention the
6322 areadlink module, and ERANGE failure.
6323 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
6324 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
6326 readlink: fix Solaris 9 bug with trailing slash
6327 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
6328 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
6329 * doc/posix-functions/readlink.texi (readlink): Document this.
6330 * modules/readlink-tests: New test.
6331 * tests/test-readlink.c: Likewise.
6333 readlink: fix cygwin 1.5.x bug with return type
6334 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
6335 * lib/unistd.in.h (readlink): Use ssize_t.
6336 * lib/readlink.c (readlink): Likewise.
6337 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6338 * modules/unistd (Makefile.am): Substitute it.
6339 * lib/unistd.in.h (readlink): Declare replacement.
6340 * doc/posix-functions/readlink.texi (readlink): Document this.
6342 symlink: use throughout gnulib
6343 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
6344 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
6345 symlink is not used.
6346 * modules/symlinkat (Depends-on): Add symlink.
6347 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6348 * modules/canonicalize-tests (Depends-on): Likewise.
6349 * modules/lstat-tests (Depends-on): Likewise.
6350 * modules/openat-tests (Depends-on): Likewise.
6351 * modules/remove-tests (Depends-on): Likewise.
6352 * modules/rmdir-tests (Depends-on): Likewise.
6353 * modules/unlink-tests (Depends-on): Likewise.
6354 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
6355 * tests/test-canonicalize.c (symlink): Likewise.
6356 * tests/test-fstatat.c (symlink): Likewise.
6357 * tests/test-lstat.c (symlink): Likewise.
6358 * tests/test-remove.c (symlink): Likewise.
6359 * tests/test-rmdir.c (symlink): Likewise.
6360 * tests/test-unlink.c (symlink): Likewise.
6361 * tests/test-unlinkat.c (symlink): Likewise.
6363 symlink: new module, for Solaris 9 bug
6364 * modules/symlink: New file.
6365 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
6366 * lib/symlink.c: Likewise.
6367 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6368 * modules/unistd (Makefile.am): Substitute them.
6369 * lib/unistd.in.h (symlink): Declare replacement.
6370 * MODULES.html.sh (File system functions): Mention it.
6371 * doc/posix-functions/symlink.texi (symlink): Likewise.
6372 * modules/symlink-tests: New test.
6373 * tests/test-symlink.c: Likewise.
6375 2009-09-23 Bruno Haible <bruno@clisp.org>
6377 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
6379 Test case: gnulib-tool --import --with-tests atexit inttypes.
6380 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
6382 2009-09-23 Bruno Haible <bruno@clisp.org>
6384 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
6385 subcommand, not in a subshell.
6387 2009-09-22 Eric Blake <ebb9@byu.net>
6389 unistd: sort replacement declarations
6390 * lib/unistd.in.h: Sort declarations.
6392 open, openat: minor optimization
6393 * lib/open.c (open): If open succeeded, len is non-zero.
6394 * lib/openat.c (rpl_openat): Likewise.
6396 link-follow: ensure correct result
6397 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
6398 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
6399 distinguish between possible failures.
6401 2009-09-21 Eric Blake <ebb9@byu.net>
6403 fts: avoid compiler warning
6404 * lib/fts.c (dirent_inode_sort_may_be_useful)
6405 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
6407 2009-09-19 Bruno Haible <bruno@clisp.org>
6409 * lib/progreloc.c (canonicalize_file_name): New declaration.
6411 2009-09-19 Eric Blake <ebb9@byu.net>
6414 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
6416 openat: fix openat bugs on Solaris 9
6417 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
6418 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
6419 * modules/openat (Depends-on): Add open.
6420 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
6421 * modules/fcntl-h (Makefile.am): Substitute it.
6422 * lib/fcntl.in.h (openat): Declare replacement.
6423 * doc/posix-functions/openat.texi (openat): Document this.
6425 openat: move fstatat and unlinkat into correct files
6426 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
6428 * lib/openat.c (fstatat, unlinkat): Move...
6429 * lib/fstatat.c (fstatat): ...into correct files.
6430 * lib/unlinkat.c (unlinkat): Likewise.
6432 openat: fix unlinkat bugs on Solaris 9
6433 * lib/unlinkat.c (unlinkat): New file.
6434 * modules/openat (Depends-on): Add unlink.
6435 (Files): Distribute it.
6436 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
6437 trailing slash behavior is broken.
6438 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6439 * modules/unistd (Makefile.am): Substitute it.
6440 * lib/unistd.in.h (unlinkat): Declare replacement.
6441 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
6443 openat: fix fstatat bugs on Solaris 9
6444 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
6446 * doc/posix-functions/fstatat.texi (fstatat): Document this.
6448 test-unlinkat: enhance test, to expose Solaris 9 bug
6449 * tests/test-unlink.c (main): Factor guts...
6450 * tests/test-unlink.h (test_rmdir_func): ...into new file.
6451 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
6452 * tests/test-rmdir.c (main): Adjust caller.
6453 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
6454 (unlinker): New helper function.
6455 (rmdirat): Enhance check.
6456 * modules/rmdir-tests (Depends-on): Add stdbool.
6457 * modules/unlink-tests (Depends-on): Likewise.
6458 (Files): Add test-unlink.h.
6459 * modules/openat-tests (Files): Likewise.
6460 (Depends-on): Add unlinkdir.
6462 test-fstatat: new test, to expose Solaris 9 bugs
6463 * tests/test-stat.c (main): Factor guts...
6464 * tests/test-stat.h (test_stat_func): ...into new file.
6465 * tests/test-lstat.c (main): Factor guts...
6466 * tests/test-lstat.h (test_lstat_func): ...into new file.
6467 * tests/test-fstatat.c: New file.
6468 * modules/stat-tests (Files): Add test-stat.h.
6469 * modules/lstat-tests (Files): Add test-lstat.h.
6470 (Depends-on): Add stdbool.
6471 * modules/openat-tests (Depends-on): Add pathmax.
6472 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
6473 (Makefile.am): Run new test.
6475 remove: new module, for mingw and Solaris 9 bugs
6476 * modules/remove: New file.
6477 * lib/remove.c: Likewise.
6478 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
6479 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
6480 * modules/stdio (Makefile.am): Use them.
6481 * lib/stdio.in.h (remove): Declare replacement.
6482 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6483 * doc/posix-functions/remove.texi (remove): Likewise.
6484 * modules/remove-tests: New test.
6485 * tests/test-remove.c: Likewise.
6487 unlink: new module, for Solaris 9 bug
6488 * modules/unlink: New file.
6489 * lib/unlink.c: Likewise.
6490 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
6491 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
6492 * modules/unistd (Makefile.am): Use them.
6493 * lib/unistd.in.h (stat): Declare replacement.
6494 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6495 * doc/posix-functions/unlink.texi (unlink): Likewise.
6496 * modules/unlink-tests: New test.
6497 * tests/test-unlink.c: Likewise.
6499 lstat: fix Solaris 9 bug
6500 * lib/lstat.c (lstat): Also check for trailing slash on
6501 non-symlink, non-directories. Use stat module to simplify logic.
6502 * doc/posix-functions/lstat.texi (lstat): Document it.
6503 * modules/lstat-tests (Depends-on): Add errno, same-inode.
6504 (configure.ac): Check for symlink.
6505 * tests/test-lstat.c (main): Add more tests.
6507 stat: add as dependency to other modules
6508 * modules/chown (Depends-on): Add stat.
6509 * modules/euidaccess (Depends-on): Likewise.
6510 * modules/fchdir (Depends-on): Likewise.
6511 * modules/isdir (Depends-on): Likewise.
6512 * modules/link (Depends-on): Likewise.
6513 * modules/lstat (Depends-on): Likewise.
6514 * modules/mkdir-p (Depends-on): Likewise.
6515 * modules/modechange (Depends-on): Likewise.
6516 * modules/open (Depends-on): Likewise.
6517 * modules/readlink (Depends-on): Likewise.
6518 * modules/same (Depends-on): Likewise.
6520 stat: fix Solaris 9 bug
6521 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
6523 * lib/stat.c (rpl_stat): Work around it.
6524 * doc/posix-functions/stat.texi (stat): Update documentation.
6526 stat: new module, for mingw bug
6527 * modules/stat: New file.
6528 * lib/stat.c: Likewise.
6529 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
6530 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
6531 * modules/sys_stat (Makefile.am): Use them.
6532 * lib/sys_stat.in.h (stat): Declare replacement.
6533 * lib/openat.c (fstatat): Deal with lstat and stat being function
6535 * modules/openat (Depends-on): Add inline.
6536 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
6537 * doc/posix-functions/stat.texi (stat): Likewise.
6538 * modules/stat-tests: New test.
6539 * tests/test-stat.c: Likewise.
6541 2009-09-19 Jim Meyering <meyering@redhat.com>
6543 syntax-check: detect unnecessary inclusion of canonicalize.h
6544 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
6546 2009-09-19 Eric Blake <ebb9@byu.net>
6548 canonicalize-lgpl: adjust clients to use correct header
6549 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
6550 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
6551 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
6552 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
6553 * lib/progreloc.c (includes): Likewise.
6555 2009-09-19 Jim Meyering <meyering@redhat.com>
6557 test-posixtm.c: correct a comment
6558 * tests/test-posixtm.c: Correct first-line comment.
6559 Spotted by Eric Blake.
6561 2009-09-16 Jim Meyering <meyering@redhat.com>
6563 posixtm-tests: make T const-correct; add a test case
6564 * tests/test-posixtm.c (T): Declare const.
6565 Add a test for -(2^31+1).
6566 Remove useless can-succeed-only-in-2002 test.
6568 posixtm-tests: adjust the sole failing test
6569 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
6570 expected output matches what mktime now produces. Cross-checked via
6571 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
6573 posixtm: move #ifdef'd tests into a new module
6574 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
6575 * tests/test-posixtm.c: ... this new file.
6576 * modules/posixtm-tests: New module.
6578 2009-09-19 Eric Blake <ebb9@byu.net>
6580 openat: simplify use of at-func.c
6581 * lib/at-func.c (includes): Include prerequisites here, to
6582 simplify requirements on client files.
6583 * lib/openat-priv.h: Add double-inclusion guard.
6584 * lib/faccessat.c (includes): Simplify.
6585 * lib/fchmodat.c (includes): Likewise.
6586 * lib/fchownat.c (includes): Likewise.
6587 * lib/mkdirat.c (includes): Likewise.
6588 * lib/mkfifoat.c (includes): Likewise.
6589 * lib/symlinkat.c (includes): Likewise.
6591 openat: allow return of fd 0
6592 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
6593 * modules/save-cwd (Depends-on): Replace fcntl-safer with
6595 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
6596 <fcntl.h>; this module does not leak fds.
6597 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
6598 must be allowed to return 0, leaving openat_safer to add the
6600 (openat_permissive): Avoid writing to just-opened fd 2 if
6601 restoring the current directory fails.
6602 * lib/openat-die.c (openat_restore_fail): Add comment.
6603 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
6604 (save_cwd): Guarantee safe fd, but without use of open_safer.
6605 * tests/test-openat.c: New test.
6606 * modules/openat-tests (Files, Makefile.am): Distribute and build
6609 relocatable-prog-wrapper: fix build
6610 * modules/relocatable-prog-wrapper (Files): Update name of
6611 canonicalize m4 file, broken on 2009-09-17.
6612 Reported by emad hajjar <aleppos@hotmail.com>.
6614 2009-09-19 Bruno Haible <bruno@clisp.org>
6616 * lib/safe-alloc.h: Use the standard header with GPL copyright.
6617 * lib/safe-alloc.c: Likewise.
6618 Reported by Ian Beckwith <ianb@erislabs.net>.
6620 2009-09-18 Bruno Haible <bruno@clisp.org>
6622 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
6623 Reported by <erobles@sensacd.com.mx>.
6625 2009-09-17 Eric Blake <ebb9@byu.net>
6627 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
6628 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
6629 slashes when checking if last component is missing.
6630 * tests/test-canonicalize.c (main): Test this.
6632 canonicalize, canonicalize-lgpl: honor // if distinct from /
6633 * modules/canonicalize (Files): Add double-slash-root.m4.
6634 * modules/canonicalize-lgpl (Files): Likewise.
6635 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
6636 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
6637 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
6638 fallback definition.
6639 (canonicalize_filename_mode): Use it to protect //.
6640 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
6641 (__realpath): Likewise.
6642 * tests/test-canonicalize.c (main): Test this.
6643 * tests/test-canonicalize-lgpl.c (main): Likewise.
6644 * modules/canonicalize-tests (Depends-on): Add same-inode.
6645 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
6647 canonicalize-lgpl: fix glibc bug with trailing slash
6648 * m4/canonicalize-lgpl.m4: Move contents...
6649 * m4/canonicalize.m4: ...here.
6650 (gl_CANONICALIZE_LGPL): Factor realpath check...
6651 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
6652 glibc 2.3.5 bug, fixed 2005-04-27.
6653 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
6654 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
6655 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
6656 * modules/canonicalize-lgpl (Files): Manage file rename.
6657 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
6658 * modules/stdlib (Makefile.am): Substitute witness.
6659 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
6661 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
6662 replacement is required.
6663 * lib/canonicalize.c (canonicalize_file_name): Likewise.
6664 * doc/glibc-functions/canonicalize_file_name.texi
6665 (canonicalize_file_name): Document this.
6666 * doc/posix-functions/realpath.texi (realpath): Likewise.
6668 canonicalize-lgpl: reject non-directory with trailing slash
6669 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
6670 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
6671 catches failures in glibc 2.3.5.
6672 * tests/test-canonicalize.c (main): Likewise.
6674 canonicalize-lgpl: use native realpath if it works
6675 * lib/canonicalize-lgpl.c (realpath): Guard with
6676 FUNC_REALPATH_WORKS.
6677 * lib/stdlib.in.h (realpath): Make declaration optional based on
6679 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
6680 native realpath works.
6681 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
6682 * modules/stdlib (Makefile.am): Substitute witness.
6684 canonicalize, canonicalize-lgpl: use <stdlib.h>
6685 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
6686 (Include): Mention <stdlib.h>.
6687 (configure.ac): Mention functions we provide.
6688 * modules/canonicalize (configure.ac): Likewise.
6689 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
6690 realpath if canonicalize_file_name is missing.
6691 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
6692 * modules/stdlib (Makefile.am): Substitute witnesses.
6693 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
6694 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
6695 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
6696 * NEWS: Document this.
6697 * doc/glibc-functions/canonicalize_file_name.texi
6698 (canonicalize_file_name): Likewise.
6699 * doc/posix-functions/realpath.texi (realpath): Likewise.
6700 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
6702 test-canonicalize: consolidate into single C program
6703 * tests/test-canonicalize.sh: Delete; move setup into...
6704 * tests/test-canonicalize.c (main): ...the program, making it
6705 easier to run in debugger. Add some tests.
6706 * modules/canonicalize-tests (Files): Remove unused file.
6707 (Depends-on): Add progname.
6708 (configure.ac, Makefile.am): Simplify.
6710 test-canonicalize-lgpl: consolidate into single C program
6711 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
6712 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
6713 easier to run in debugger. Add some tests.
6714 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
6715 (configure.ac, Makefile.am): Simplify.
6717 canonicalize: avoid resolvepath
6718 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
6720 * lib/canonicalize.c (includes): Simplify.
6721 (canonicalize_file_name): Drop resolvepath implementation.
6722 * modules/canonicalize (Depends-on): Drop filenamecat.
6724 canonicalize: don't lose errno
6725 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
6728 canonicalize: simplify errno handling
6729 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
6732 canonicalize, canonicalize-lgpl: update module dependencies
6733 * modules/canonicalize (Depends-on): Add extensions, lstat,
6735 (Files): Drop pathmax.h.
6736 (configure.ac): Adjust macro name.
6737 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
6738 lstat, stdlib, sys_stat.
6739 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
6740 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
6742 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
6743 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
6744 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
6745 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
6746 declaration, if available.
6747 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
6748 we can rely on the readlink module.
6749 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
6750 (includes): Use <unistd.h> unconditionally.
6752 2009-09-17 Eric Blake <ebb9@byu.net>
6754 maint: make Include sections of modules consistent
6755 * modules/alloca: Use only header name; no need to list #include.
6756 * modules/alloca-opt: Likewise.
6757 * modules/arpa_inet: Likewise.
6758 * modules/canon-host: Likewise.
6759 * modules/configmake: Likewise.
6760 * modules/dirent: Likewise.
6761 * modules/eealloc: Likewise.
6762 * modules/environ: Likewise.
6763 * modules/fchdir: Likewise.
6764 * modules/fcntl: Likewise.
6765 * modules/fcntl-h: Likewise.
6766 * modules/gethrxtime: Likewise.
6767 * modules/gettime: Likewise.
6768 * modules/ignore-value: Likewise.
6769 * modules/inet_ntop: Likewise.
6770 * modules/inet_pton: Likewise.
6771 * modules/inttypes: Likewise.
6772 * modules/isnand-nolibm: Likewise.
6773 * modules/isnanf-nolibm: Likewise.
6774 * modules/mbchar: Likewise.
6775 * modules/mbfile: Likewise.
6776 * modules/mbiter: Likewise.
6777 * modules/mbuiter: Likewise.
6778 * modules/netdb: Likewise.
6779 * modules/netinet_in: Likewise.
6780 * modules/nproc: Likewise.
6781 * modules/pagealign_alloc: Likewise.
6782 * modules/poll: Likewise.
6783 * modules/printf-frexp: Likewise.
6784 * modules/pthread: Likewise.
6785 * modules/putenv: Likewise.
6786 * modules/random_r: Likewise.
6787 * modules/relocatable-prog: Likewise.
6788 * modules/search: Likewise.
6789 * modules/select: Likewise.
6790 * modules/selinux-h: Likewise.
6791 * modules/settime: Likewise.
6792 * modules/signal: Likewise.
6793 * modules/size_max: Likewise.
6794 * modules/socklen: Likewise.
6795 * modules/ssize_t: Likewise.
6796 * modules/stdarg: Likewise.
6797 * modules/stdbool: Likewise.
6798 * modules/stddef: Likewise.
6799 * modules/stdint: Likewise.
6800 * modules/stdio: Likewise.
6801 * modules/stdlib: Likewise.
6802 * modules/string: Likewise.
6803 * modules/strings: Likewise.
6804 * modules/sys_file: Likewise.
6805 * modules/sys_ioctl: Likewise.
6806 * modules/sys_select: Likewise.
6807 * modules/sys_socket: Likewise.
6808 * modules/sys_stat: Likewise.
6809 * modules/sys_time: Likewise.
6810 * modules/sys_times: Likewise.
6811 * modules/sys_utsname: Likewise.
6812 * modules/sys_wait: Likewise.
6813 * modules/sysexits: Likewise.
6814 * modules/time: Likewise.
6815 * modules/times: Likewise.
6816 * modules/tmpfile: Likewise.
6817 * modules/trim: Likewise.
6818 * modules/unistd: Likewise.
6819 * modules/wchar: Likewise.
6820 * modules/wctype: Likewise.
6822 2009-09-17 Bruno Haible <bruno@clisp.org>
6824 Make getdate.y compile on QNX and NetBSD 5 / i386.
6825 * m4/getdate.m4 (gl_GETDATE): Conditionally define
6826 TIME_T_FITS_IN_LONG_INT.
6827 * lib/getdate.y (long_time_t): New type.
6828 (relative_time): Change type of 'seconds' field to long_time_t.
6829 (get_date): Update types of local variables. Check against overflow
6830 during conversion from long_time_t to time_t.
6831 Reported by Matt Kraai <kraai@ftbfs.org>
6832 and Hasso Tepper <hasso@netbsd.org>.
6834 2009-09-17 Bruno Haible <bruno@clisp.org>
6836 * modules/COPYING: Update copyright years.
6837 * modules/README: Likeiwse.
6838 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
6839 Reported by Ian Beckwith <ianb@erislabs.net>.
6841 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
6843 * users.txt: Update references for gnuit package.
6845 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
6847 * m4/getdelim.m4: Fix typo in copyright line.
6849 2009-09-17 Bruno Haible <bruno@clisp.org>
6851 * lib/atoll.c: Use the standard header with GPL copyright.
6852 * lib/argz.in.h: Likewise.
6853 * lib/glob.c: Likewise.
6854 * lib/glob-libc.h: Likewise.
6855 * lib/random_r.c: Likewise.
6856 * lib/siglist.h: Likewise.
6857 * lib/strsignal.c: Likewise.
6858 Reported by Ian Beckwith <ianb@erislabs.net>.
6860 2009-09-17 Eric Blake <ebb9@byu.net>
6862 rmdir: ensure correct dependency order
6863 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
6865 2009-09-17 Bruno Haible <bruno@clisp.org>
6867 Disable assertion that fails on NetBSD 5 / i386.
6868 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
6869 Reported by Sam Steingold <sds@gnu.org>
6870 and Hasso Tepper <hasso@netbsd.org>.
6872 2009-09-16 Eric Blake <ebb9@byu.net>
6874 unlinkdir: port to mingw
6875 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
6876 on which no one can unlink a directory.
6878 stdlib: sort witness names
6879 * modules/stdlib (Makefile.am): Sort replacements.
6880 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
6881 * lib/stdlib.in.h: Likewise.
6883 parse-duration-tests: avoid link failure
6884 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
6886 Reported by Tom G. Christensen.
6888 openat-tests: ensure unlinkat behaves like rmdir
6889 * tests/test-rmdir.c (main): Factor guts...
6890 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
6891 * modules/rmdir-tests (Files): Ship new file.
6892 * modules/openat-tests: New test.
6893 * tests/test-unlinkat.c: Likewise.
6895 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
6896 * modules/rmdir-errno (Status, Notice): Now obsolete.
6898 rmdir: work around cygwin 1.5.x and mingw bugs
6899 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
6900 * lib/rmdir.c (rmdir): Work around it.
6901 * modules/rmdir (Status, Notice): No longer obsolete.
6902 (Files): Add dos.m4.
6903 (Depends-on): Add unistd.
6904 (configure.ac): Set witnesses.
6905 (License): Relax to LGPLv2+.
6906 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
6907 * modules/unistd (Makefile.am): Substitute witnesses.
6908 * lib/unistd.in.h (rmdir): Declare replacement.
6909 * doc/posix-functions/rmdir.texi (rmdir): Document this.
6910 * modules/rmdir-tests: New tests.
6911 * tests/test-rmdir.c: Likewise.
6913 2009-09-15 Eric Blake <ebb9@byu.net>
6915 fchdir: improve use of replacement functions
6916 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
6917 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
6918 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
6920 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
6921 * modules/sys_stat (Makefile.am): Substitute correct witness.
6922 * modules/dirent (Makefile.am): Likewise.
6923 * modules/unistd (Makefile.am): Likewise.
6924 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
6925 * lib/unistd.in.h (dup): Likewise.
6926 * lib/sys_stat.in.h (fstat): Likewise.
6928 maint: ignore gnulib-tool temp files
6929 * .gitignore: Ignore files created during gnulib-tool --test.
6931 2009-09-13 Jim Meyering <meyering@redhat.com>
6933 posixtm: don't reject a time that specify "60" as the number of seconds
6934 * lib/posixtm.c (posixtime): The code to reject invalid dates
6935 would also reject a time specified with the .60 suffix.
6936 But POSIX allows that, in order to accommodate leap seconds.
6938 (main): Adjust tests accordingly.
6939 * modules/posixtm (Depends-on): Add stpcpy.
6941 2009-09-11 Jim Meyering <meyering@redhat.com>
6943 announce-gen: include [$release_type] in emitted Subject:
6944 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
6945 e.g., [stable] in the emitted Subject: line.
6947 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6949 Remove obsolete macros from several modules.
6950 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
6951 obsolete Autoconf macros with their modern counterparts.
6952 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
6953 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
6954 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
6955 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
6956 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
6957 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
6958 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6959 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6960 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
6961 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
6962 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6963 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6964 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
6965 * m4/sockets.m4 (gl_SOCKETS): Likewise.
6966 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
6967 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
6968 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
6969 * m4/time_r.m4 (gl_TIME_R): Likewise.
6970 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
6971 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
6972 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
6974 Fix copyright header in build-aux scripts.
6975 * build-aux/git-version-gen: Fix copyright header to match GPLv3
6977 * build-aux/ncftpput-ftp: Likewise.
6978 * build-aux/update-copyright: Likewise.
6980 2009-09-09 Eric Blake <ebb9@byu.net>
6982 test-link: allow Linux choice of errno
6983 * tests/test-link.c (main): Relax test for alternate error.
6985 strndup: fix improper m4 caching
6986 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
6987 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
6988 (gl_PREREQ_STRNDUP): Delete.
6989 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
6990 * modules/string (Makefile.am): Substitute it.
6991 * lib/string.in.h (strndup): Modernize prototype.
6993 getcwd: port to mingw
6994 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
6995 different from the POSIX assumptions made throughout the getcwd
6996 module; fortunately, the mingw getcwd does not need replacement.
6997 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
6998 * modules/getcwd-tests: New test.
6999 * tests/test-getcwd.c: Likewise.
7001 link: fix platform bugs
7002 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
7003 * lib/link.c (link): Work around them. Fix related mingw bug.
7004 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
7005 * modules/unistd (Makefile.am): Substitute it.
7006 * lib/unistd.in.h (link): Declare replacement.
7007 * doc/posix-functions/link.texi (link): Document this.
7008 * modules/link (Depends-on): Add strdup-posix, sys_stat.
7010 test-link: consolidate into single C program, test more cases
7011 * tests/test-link.sh: Delete.
7012 * tests/test-link.c: Test more error conditions. Exposes bugs on
7013 at least Cygwin and Solaris.
7014 * modules/link-tests (Files): Remove unused file.
7015 (Depends-on): Add errno, sys_stat.
7016 (Makefile.am): Simplify.
7018 2009-09-08 Bruno Haible <bruno@clisp.org>
7020 Work around towlower, towupper bug on mingw.
7021 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
7022 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
7023 * doc/posix-functions/towlower.texi: Mention the mingw bug.
7024 * doc/posix-functions/towupper.texi: Likewise.
7025 Reported by Eric Blake.
7027 2009-09-08 Jim Meyering <meyering@redhat.com>
7029 build: don't try to run autoheader if we don't use it
7030 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
7031 is not used in configure.ac.
7033 2009-09-08 Eric Blake <ebb9@byu.net>
7035 euidaccess: fix compilation error
7036 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
7038 rawmemchr: relax license
7039 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
7041 Reported by Jim Meyering.
7043 mkfifoat: new module
7044 * modules/mkfifoat: New file.
7045 * lib/mkfifoat.c: Likewise.
7046 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
7047 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7048 * modules/sys_stat (Makefile.am): Use them.
7049 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
7050 * MODULES.html.sh (File system functions): Mention module.
7051 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
7052 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
7053 * modules/mkfifoat-tests: New test.
7054 * tests/test-mkfifoat.c: Likewise.
7056 strchrnul: relax license
7057 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
7059 Reported by Jim Meyering.
7061 2009-09-08 Eric Blake <ebb9@byu.net>
7063 fstatat: fix compilation on Solaris
7064 * lib/fstatat.c (includes): Add fcntl.h.
7065 Reported by Pádraig Brady.
7067 2009-09-07 Eric Blake <ebb9@byu.net>
7069 rename: modernize replacement
7070 * modules/rename (Depends-on): Add stdio.
7071 (configure.ac): Declare witness.
7072 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
7073 stdio take care of replacement.
7074 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
7075 * modules/stdio (Makefile.am): Substitute them.
7076 * lib/stdio.in.h (rename): Declare replacement.
7077 * lib/rename.c (includes): Allow cross-compilation to non-windows
7079 * doc/posix-functions/rename.texi (rename): Improve
7082 stdio: sort witness names
7083 * modules/stdio (Makefile.am): Sort replacements.
7084 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7085 * lib/stdio.in.h: Likewise.
7087 getcwd: minor cleanups
7088 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
7089 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
7091 openat: provide more convenience names
7092 * modules/faccessat (configure.ac): Add C witness.
7093 * lib/unistd.in.h (readlinkat): Fix typo.
7094 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
7095 convenience wrappers.
7096 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
7097 wrappers in syntax checks.
7099 2009-09-06 Eric Blake <ebb9@byu.net>
7101 doc: fix comments in recent patches
7102 * lib/faccessat.c: Mention correct function.
7103 * lib/fchmodat.c: Likewise.
7104 * lib/fchownat.c: Likewise.
7105 * lib/symlinkat.c: Likewise.
7106 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
7109 faccessat, symlinkat: continue cleanup of previous patch
7110 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
7111 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
7112 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
7113 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
7114 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
7115 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
7118 2009-09-06 Bruno Haible <bruno@clisp.org>
7120 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
7121 (fstatat): Declare if GNULIB_FSTATAT is set.
7122 (mkdirat): Declare if GNULIB_MKDIRAT is set.
7123 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
7124 (unlinkat): Declare if GNULIB_UNLINKAT is set.
7125 * modules/fcntl-h (Files): Remove m4/openat.m4.
7126 * modules/sys_stat (Files): Remove m4/openat.m4.
7127 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
7128 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
7129 * modules/unistd (Files): Remove m4/openat.m4.
7130 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
7132 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
7133 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
7134 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7135 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
7136 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
7138 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
7139 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
7140 Don't require gl_OPENAT_DEFAULTS.
7141 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
7142 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
7143 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
7144 (gl_OPENAT_DEFAULTS): Remove macro.
7146 2009-09-06 Bruno Haible <bruno@clisp.org>
7148 * modules/openat (configure.ac): Remove unneeded witness.
7150 2009-09-06 Bruno Haible <bruno@clisp.org>
7152 Set errno to ENOSYS when a function is entirely unsupported.
7153 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
7155 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
7156 * modules/chown (Depends-on): Remove errno.
7158 2009-09-06 Bruno Haible <bruno@clisp.org>
7160 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
7162 2009-09-06 Bruno Haible <bruno@clisp.org>
7164 * lib/sys_stat.in.h: Fix preprocessor command indentation.
7166 2009-09-06 Ben Pfaff <blp@gnu.org>
7167 Bruno Haible <bruno@clisp.org>
7169 Work around a glibc bug in strtok_r.
7170 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
7171 Undefine if UNDEFINE_STRTOK_R is set.
7172 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
7173 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7174 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
7175 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
7176 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
7178 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
7180 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
7183 * lib/exclude.c: Include wctype.h
7185 2009-09-06 Akim Demaille <demaille@gostai.com>
7187 bootstrap: improve error message
7188 * build-aux/bootstrap (find_tool): Upon failure, report the list
7190 Honor the initial value of the envvar.
7192 2009-09-05 Eric Blake <ebb9@byu.net>
7194 symlinkat: new module
7195 * modules/symlinkat: New file.
7196 * lib/symlinkat.c: Likewise.
7197 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
7198 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
7199 * modules/unistd (Makefile.am): Use them.
7200 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
7201 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
7202 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
7203 * MODULES.html.sh (File system functions): Mention module.
7204 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7205 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7206 * modules/symlinkat-tests: New test.
7207 * tests/test-symlinkat.c: Likewise.
7209 test-openat-safer: add more checks
7210 * tests/test-openat-safer.c (main): Check more code paths.
7212 2009-09-05 Jim Meyering <meyering@redhat.com>
7214 syntax-check: detect unnecessary inclusion of openat.h
7215 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
7217 2009-09-05 Bruno Haible <bruno@clisp.org>
7219 Support towlower, towupper.
7220 * doc/posix-functions/towlower.texi: Mention module wctype.
7221 * doc/posix-functions/towupper.texi: Likewise.
7222 * lib/wctype.in.h (towlower, towupper): New functions.
7223 * tests/test-wctype.c: Include stdio.h, stdlib.h.
7224 (ASSERT): New macro.
7226 (main): Test also towlower, towupper. Test WEOF argument.
7227 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
7229 2009-09-05 Bruno Haible <bruno@clisp.org>
7231 Fix conversion behaviour when the input is invalid.
7232 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
7233 mark occurring in first pass of indirect conversion.
7234 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
7236 Found by clang's static analyzer.
7238 2009-09-05 Bruno Haible <bruno@clisp.org>
7240 * tests/test-striconveh.c (main): Test indirect conversion on platforms
7241 where direct conversion is possible.
7243 2009-09-04 Eric Blake <ebb9@byu.net>
7245 openat: fail with ENOENT on empty name
7246 * lib/openat-proc.c (openat_proc_name): Special-case the empty
7249 link-follow: fix logic bug in prior patch
7250 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
7251 reversed sense of yes and no in prior patch. Avoid confusing
7252 compilation failure with desired semantics.
7254 link-follow: accomodate mingw and cross-compilation
7255 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
7256 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
7257 cross-compilation results to -1, to make linkat easier to
7258 implement when cross-compiling. Trivially support mingw.
7259 * modules/link-follow (configure.ac): Call new name.
7260 * NEWS: Mention this.
7262 2009-09-03 Eric Blake <ebb9@byu.net>
7264 faccessat: compile replacement
7265 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
7268 fts: fix compilation error
7269 * lib/fts.c (includes): Re-add "openat.h", for
7270 openat_needs_fchdir.
7272 faccessat: new module
7273 * modules/faccessat: New file.
7274 * lib/faccessat.c: Likewise.
7275 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
7276 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7277 * modules/unistd (Makefile.am): Use it.
7278 * lib/unistd.in.h (faccessat): Declare it.
7279 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
7280 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
7281 * MODULES.html.sh (File system functions): Mention it.
7282 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
7283 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
7285 euidaccess: prefer POSIX over non-standard implementation
7286 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
7287 * lib/euidaccess.c (euidaccess): Use it if available.
7289 openat: make template easier to use
7290 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
7291 AT_FUNC_F2 to be undefined.
7292 (VALIDATE_FLAG): New macro; use it to reject bad flags.
7293 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
7294 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
7295 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
7296 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
7298 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
7299 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
7300 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
7303 openat: declare in POSIX headers
7304 * NEWS: Mention this.
7305 * modules/openat (configure.ac): Declare witnesses.
7306 (Depends-on): Add fcntl-h, sys_stat, unistd.
7307 (Include): Mention correct headers.
7308 * modules/fcntl-h (Depends-on): Add link-warning.
7309 (Files): Add openat.m4.
7310 (Makefile.am): Substitute witnesses.
7311 * modules/sys_stat (Files, Makefile.am): Likewise.
7312 * modules/unistd (Files, Makefile.am): Likewise.
7313 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
7314 (gl_OPENAT_DEFAULTS): New macro.
7315 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
7316 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
7317 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
7318 (SYS_STAT_H): Remove unused variable.
7319 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
7320 * lib/fcntl--.h (includes): Remove unneeded header.
7321 * lib/openat-safer.c (includes): Likewise.
7322 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
7323 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
7324 appropriate headers.
7325 (__OPENAT_PREFIX): Delete.
7326 * lib/fcntl.in.h (openat): Provide declaration.
7327 (AT_FDCWD): Fix Solaris bug.
7328 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
7329 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
7330 * lib/fchmodat.c (includes): Adjust to find declaration.
7331 * lib/fchownat.c (includes): Likewise.
7332 * lib/mkdirat.c (includes): Likewise.
7333 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
7336 2009-09-02 Eric Blake <ebb9@byu.net>
7338 errno: use consistently
7339 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
7340 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
7341 * lib/canonicalize.c (ELOOP): Likewise.
7342 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
7343 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
7344 * lib/lchown.c (EOPNOTSUPP): Likewise.
7345 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
7346 * lib/savewd.c (ESTALE): Likewise.
7347 * lib/settime.c (ENOSYS): Likewise.
7348 * lib/utimens.c (ENOSYS): Likewise.
7349 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
7350 * lib/chdir-safer.c (ELOOP): Likewise.
7351 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
7352 * modules/c-stack (Depends-on): Add errno.
7353 * modules/canonicalize (Depends-on): Likewise.
7354 * modules/chdir-safer (Depends-on): Likewise.
7355 * modules/fdopendir (Depends-on): Likewise.
7356 * modules/inet_ntop (Depends-on): Likewise.
7357 * modules/inet_pton (Depends-on): Likewise.
7358 * modules/lchown (Depends-on): Likewise.
7359 * modules/openat (Depends-on): Likewise.
7360 * modules/savewd (Depends-on): Likewise.
7361 * modules/settime (Depends-on): Likewise.
7362 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
7364 fts: avoid leaking fds
7365 * modules/fts (Depends-on): Add cloexec.
7366 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
7369 fts: make directory fds more robust
7370 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
7371 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
7373 backupfile, chdir-long, fts, savedir: make safer
7374 * lib/backupfile.c (includes): Use "dirent--.h", since
7375 numbered_backup can write to stderr during readdir.
7376 * lib/savedir.c (includes): Likewise.
7377 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
7378 emulation can write to stderr on failure.
7379 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
7380 * lib/getcwd.c: Document why opendir_safer is unused.
7381 * lib/glob.c: Likewise.
7382 * lib/scandir.c: Likewise.
7383 * lib/openat-proc.c: Likewise, for open_safer.
7384 * modules/backupfile (Depends-on): Add dirent-safer.
7385 * modules/savedir (Depends-on): Likewise.
7386 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
7387 * modules/chdir-long (Depends-on): Add openat-safer.
7389 openat-safer: new module
7390 * modules/openat-safer: New file.
7391 * lib/openat-safer.c: Likewise.
7392 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
7393 * lib/fcntl-safer.h (openat_safer): Declare.
7394 * lib/fcntl--.h (openat): Override.
7395 * MODULES.html.sh (File descriptor based I/O): Mention it.
7396 * lib/openat.h: Add double-inclusion guards.
7397 * lib/openat.c (includes): Only include "fcntl-safer.h", not
7398 "fcntl--.h", so we can implement openat.
7399 * modules/openat-safer-tests: New test.
7400 * tests/test-openat-safer.c: New file.
7402 dirent-safer: new module
7403 * modules/dirent-safer: New file.
7404 * lib/dirent--.h: Likewise.
7405 * lib/dirent-safer.h: Likewise.
7406 * lib/opendir-safer.c: Likewise.
7407 * m4/dirent-safer.m4: Likewise.
7408 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
7409 * modules/dirent-safer-tests: New test.
7410 * tests/test-dirent-safer.c: New file.
7411 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
7413 fdopendir: optimize on mingw
7414 * lib/unistd.in.h (_gl_directory_name): New prototype.
7415 * lib/fchdir.c (_gl_directory_name): Implement it.
7416 (fchdir): Use it to simplify implementation.
7417 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
7418 fchdir, when available, to avoid calling [f]chdir().
7420 fdopendir: split into its own module
7421 * lib/openat.c (fdopendir): Move...
7422 * lib/fdopendir.c: ...into new file.
7423 * modules/fdopendir: New module.
7424 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
7425 * modules/openat (Depends-on): Add fdopendir.
7426 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
7428 * modules/savedir (Depends-on): Only need fdopendir, not full
7430 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
7431 * lib/openat.h (fdopendir): Drop prototype.
7432 * lib/dirent.in.h (fdopendir): Provide prototype.
7433 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
7434 * modules/dirent (Makefile.am): Substitute them.
7435 * MODULES.html.sh (File system functions): Mention it.
7436 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
7437 * modules/fdopendir-tests: New file.
7438 * tests/test-fdopendir.c: Likewise.
7440 fchdir: use more consistent macro convention
7441 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
7442 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
7443 REPLACE_FCHDIR, rather than relying on config.h macros.
7444 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
7445 inside a single make-time REPLACE_FCHDIR block, rather than using
7446 the config.h FCHDIR_REPLACEMENT.
7447 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
7448 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
7449 Manage fstat replacement.
7450 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
7452 * modules/sys_stat (Files): Add m4/unistd_h.m4.
7453 (Makefile.am): Substitute REPLACE_FCHDIR.
7454 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
7456 * lib/dup-safer.c (dup_safer): Likewise.
7457 * lib/dup2.c (rpl_dup2): Likewise.
7458 * lib/dup3.c (rpl_dup3): Likewise.
7459 * lib/open.c (rpl_open): Likewise.
7461 fchdir: simplify error handling, and support dup3
7462 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
7463 stdbool, malloc-posix, realloc-posix.
7464 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
7465 (ensure_dirs_slot): Return false on allocation failure.
7467 (_gl_register_dup): New function.
7468 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
7469 (_gl_register_fd): Close fd on allocation failure.
7470 * lib/fcntl.in.h (_gl_register_fd): Update signature.
7471 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
7473 (rpl_dup2_fchdir): Delete prototype.
7474 * lib/open.c (open): Update caller.
7475 * lib/dup2.c (dup2): Track fchdir metadata.
7476 * lib/dup3.c (dup3): Likewise.
7477 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
7478 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
7480 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7482 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
7483 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
7484 don't pass arguments to AC_OUTPUT.
7486 2009-09-02 Bruno Haible <bruno@clisp.org>
7488 * modules/mkdtemp (License): Relicense under LGPLv2+.
7489 Reported by Paolo Bonzini.
7491 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7493 Replace uses of obsolete autoconf macros in Jim's modules.
7494 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
7495 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
7496 can evoke a warning from autoconf when run with -Wobsolete
7497 enabled. They were declared obsolete for good reasons (see
7498 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
7499 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
7500 should not continue using the deprecated macros.
7501 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
7502 obsolete Autoconf macros with modern counterparts.
7503 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7504 * m4/dos.m4 (gl_AC_DOS): Likewise.
7505 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
7506 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
7507 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
7508 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
7509 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
7510 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
7511 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
7512 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
7513 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
7515 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
7516 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
7517 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
7518 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
7519 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
7520 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
7522 2009-09-01 Eric Blake <ebb9@byu.net>
7524 fchdir: fix off-by-one bug in previous patch
7525 * lib/fchdir.c (rpl_fstat): Use correct bounds.
7526 (_gl_unregister_fd): Delete useless if.
7528 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
7530 maint.mk: sort the list of syntax-check rules
7531 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
7532 easier to get a sense of progress when the rules are run sequentially
7533 and take a long time.
7535 2009-09-01 Simon Josefsson <simon@josefsson.org>
7537 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
7538 * modules/netinet_in: Likewise.
7539 * modules/sys_file: Likewise.
7540 * modules/sys_ioctl: Likewise.
7541 * modules/sys_select: Likewise.
7542 * modules/sys_socket: Likewise.
7543 * modules/sys_stat: Likewise.
7544 * modules/sys_time: Likewise.
7545 * modules/sys_times: Likewise.
7546 * modules/sys_utsname: Likewise.
7547 * modules/sys_wait: Likewise.
7549 2009-09-01 Jim Meyering <meyering@redhat.com>
7551 fts: help ensure that return values are not ignored
7552 * lib/fts_.h (__GNUC_PREREQ): Define.
7553 (__attribute_warn_unused_result__): Define.
7554 (fts_children, fts_close, fts_open, fts_read): Declare with
7555 __attribute_warn_unused_result__.
7557 fts: fts_close now fails also when closing a dir file descriptor fails
7558 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
7559 and propagate to caller, along with errno.
7561 announce-gen: correct formatting in --help output
7562 * build-aux/announce-gen (usage): Move the one-line description in
7563 --help output "up", to where it belongs, just after Usage:.
7565 2009-08-31 Eric Blake <ebb9@byu.net>
7567 fchdir: port to mingw
7568 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
7569 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
7570 opened, then use a substitute.
7571 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
7573 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
7574 (_gl_register_fd): No need to check stat if open already filters
7576 (fchdir): Fix error condition to match POSIX.
7577 * modules/fchdir (Depends-on): Add sys_stat.
7578 * doc/posix-functions/open.texi (open): Document the limitation.
7579 * modules/fchdir-tests: New file.
7580 * tests/test-fchdir.c: Likewise.
7582 canonicalize: allow cross-testing from cygwin to mingw
7583 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
7584 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
7585 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
7587 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
7588 target does not support symlinks.
7589 * tests/test-canonicalize-lgpl.sh: Likewise.
7591 chown: avoid compilation warning on mingw
7592 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
7593 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
7595 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
7596 * modules/chown (Depends-on): Add errno.
7598 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
7600 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
7603 2009-08-31 Jim Meyering <meyering@redhat.com>
7605 canonicalize: remove useless initialization
7606 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
7607 initialization of local, "end".
7609 2009-08-30 Bruno Haible <bruno@clisp.org>
7611 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
7612 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
7615 2009-08-30 Bruno Haible <bruno@clisp.org>
7617 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
7618 /usr/xpg4/bin/tr when it exists.
7619 * tests/test-pipe-filter-gi1.sh: Likewise.
7621 2009-08-30 Bruno Haible <bruno@clisp.org>
7623 Work around deficient /usr/bin/id program on Solaris.
7624 * tests/test-file-has-acl.sh (ID): New variable.
7625 * tests/test-set-mode-acl.sh (ID): Likewise.
7626 * tests/test-copy-acl.sh (ID): Likewise.
7627 * tests/test-copy-file.sh (ID): Likewise.
7629 2009-08-30 Bruno Haible <bruno@clisp.org>
7631 New module 'xstriconveh'.
7632 * lib/xstriconveh.h: New file.
7633 * lib/xstriconveh.c: New file.
7634 * modules/xstriconveh: New file.
7636 2009-08-30 Bruno Haible <bruno@clisp.org>
7638 Make it easier to use mem_cd_iconveh.
7639 * lib/striconveh.h (iconveh_t): New type.
7640 (iconveh_open, iconveh_close): New declarations.
7641 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
7642 with a single 'const iconveh_t *' argument.
7643 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
7644 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
7645 with a single 'const iconveh_t *' argument.
7646 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
7647 * tests/test-striconveh.c (main): Update.
7648 * NEWS: Mention the change.
7650 2009-08-30 Bruno Haible <bruno@clisp.org>
7652 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
7655 2009-08-30 Bruno Haible <bruno@clisp.org>
7657 Work around iconv_open problem on Solaris.
7658 * lib/iconv_open-solaris.gperf: New file.
7659 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
7660 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
7661 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
7662 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
7663 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
7664 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
7666 2009-08-29 Jim Meyering <meyering@redhat.com>
7668 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
7669 * top/maint.mk (cvs-check): Remove target; it was just an alias
7670 to the better-named vc-diff-check.
7671 (maintainer-distcheck): Remove rule. It was used only from
7672 the (alpha/beta/major) target, and all of its commands but one
7673 were coreutils-specific.
7674 (vc-dist): Remove rule.
7675 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
7676 Run vc-diff-check, not vc-dist.
7677 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
7679 2009-08-27 Bruno Haible <bruno@clisp.org>
7681 * tests/test-bitrotate.c (main): Remove test that uses a shift count
7684 2009-08-27 Bruno Haible <bruno@clisp.org>
7686 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
7688 * doc/func.texi: Document the SunPRO C bug.
7690 2009-08-27 Bruno Haible <bruno@clisp.org>
7692 Fix link error on Solaris.
7693 * tests/test-parse-duration.c (xstrdup): Remove function.
7695 2009-08-26 Pádraig Brady <P@draigbrady.com>
7697 ignore-value: handle pointer types, too
7698 * lib/ignore-value.h (__attribute__): Remove definition.
7699 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
7700 of a more concise and more-often effective "(void) i" statement.
7701 (ignore_ptr): New function to suppress warnings from functions that
7702 return pointers, and to make it explicit that one function doesn't
7705 2009-08-25 Bruno Haible <bruno@clisp.org>
7707 dup2: work around a Linux bug.
7708 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
7709 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
7710 * doc/posix-functions/dup2.texi: Mention the Linux bug.
7711 Reported by Simon Josefsson.
7713 2009-08-25 Jim Meyering <meyering@redhat.com>
7715 libguestfs uses gnulib
7716 * users.txt: Add libguestfs.
7718 2009-08-24 Eric Blake <ebb9@byu.net>
7720 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
7721 * lib/pipe2.c (includes): Add binary-io.h.
7722 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
7724 2009-08-24 Bruno Haible <bruno@clisp.org>
7726 Tolerate declared but missing accept4 syscall.
7727 * lib/accept4.c (accept4): Invoke original accept4 function first, if
7729 * lib/sys_socket.in.h (accept4): If the function is already present,
7731 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
7732 * modules/accept4 (Makefile.am): Compile accept4.c always.
7733 Reported by Paolo Bonzini and Eric Blake.
7735 2009-08-23 Bruno Haible <bruno@clisp.org>
7737 New module 'accept4'.
7738 * lib/sys_socket.in.h (accept4): New declaration.
7739 * lib/accept4.c: New file.
7740 * m4/accept4.m4: New file.
7741 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
7742 GNULIB_ACCEPT4, HAVE_ACCEPT4.
7743 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
7745 * modules/accept4: New file.
7746 * doc/glibc-functions/accept4.texi: Mention the new module.
7748 2009-08-24 Jim Meyering <meyering@redhat.com>
7750 progname: also set global program_invocation_name, when possible
7751 Before this change, a libtool-enabled program that calls glibc's
7752 error function would report the program name as
7753 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
7754 * modules/progname (configure.ac): Check for a declaration of
7755 program_invocation_name.
7756 * lib/progname.c: Include <errno.h>.
7757 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
7758 Set program_invocation_name.
7760 2009-08-23 Bruno Haible <bruno@clisp.org>
7762 * lib/dup3.c: Include <string.h>.
7764 2009-08-23 Bruno Haible <bruno@clisp.org>
7766 * lib/dup3.c (dup3): Test only once whether the system actually exists.
7767 * lib/pipe2.c (pipe2): Likewise.
7768 Suggested by Eric Blake.
7770 2009-08-23 Bruno Haible <bruno@clisp.org>
7772 Tolerate declared but missing dup3 syscall.
7773 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
7774 * lib/unistd.in.h (dup3): If the function is already present,
7776 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
7777 * modules/dup3 (Makefile.am): Compile dup3.c always.
7778 Reported by Paolo Bonzini.
7780 2009-08-23 Bruno Haible <bruno@clisp.org>
7782 Tolerate declared but missing pipe2 syscall.
7783 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
7785 * lib/unistd.in.h (pipe2): If the function is already present,
7787 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
7788 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
7789 Reported by Paolo Bonzini.
7791 2009-08-23 Bruno Haible <bruno@clisp.org>
7793 * lib/pipe2.c (pipe2): Move #ifs inside function.
7795 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
7797 quotearg: document limitations of quote_these_too
7798 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
7799 those limitations are created.
7800 * lib/quotearg.h (set_char_quoting): Document that digits and
7801 letters that are special after backslash are not permitted.
7802 (quotearg_char): Cross-reference set_char_quoting documentation.
7804 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
7806 quotearg: implement custom_quoting_style
7807 * lib/quotearg.c: (struct quoting_options): Add left_quote and
7809 (set_custom_quoting): New public function.
7810 (quotearg_buffer_restyled): Add left_quote and right_quote
7811 arguments, handle them very much like locale quoting, and update
7813 (quotearg_n_custom): New public function.
7814 (quotearg_n_custom_mem): New public function.
7815 (quotearg_custom): New public function.
7816 (quotearg_custom_mem): New public function.
7817 * lib/quotearg.h: Prototype and document new public functions.
7818 (enum quoting_style): For escape_quoting_style and
7819 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
7820 ignored even though they're otherwise like c_quoting_style.
7821 Add custom_quoting_style member and document with comparison to
7822 clocale_quoting_style.
7823 * tests/test-quotearg.c (custom_quotes): New array.
7824 (custom_results): New array.
7825 (main): Extend to test custom quoting.
7827 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
7829 quotearg: fix right quote escaping when it's in quote_these_too
7830 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
7831 quote, be sure to prepend only one backslash.
7832 * tests/test-quotearg.c (use_quote_double_quotes): New function.
7835 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
7837 quotearg-tests: test escaping of embedded locale quotes
7838 * tests/test-quotearg.c (struct result_strings): Add member for
7840 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
7841 (inputs): Add new input.
7842 (results_g): Add expected results.
7843 (flag_results): Likewise.
7844 (locale_results): Likewise.
7845 (compare_strings): Check those.
7847 2009-08-23 Bruno Haible <bruno@clisp.org>
7849 Tests for module 'dup3'.
7850 * modules/dup3-tests: New file.
7851 * tests/test-dup3.c: New file.
7854 * lib/unistd.in.h (dup3): New declaration.
7855 * lib/dup3.c: New file.
7856 * m4/dup3.m4: New file.
7857 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
7859 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
7860 * modules/dup3: New file.
7861 * doc/glibc-functions/dup3.texi: Mention the new module.
7863 2009-08-23 Bruno Haible <bruno@clisp.org>
7865 Tweak the dup2 test.
7866 * tests/test-dup2.c (main): Create the test file empty. Verify that an
7867 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
7868 the test file is still empty. Fix argument order of lseek.
7870 2009-08-23 Bruno Haible <bruno@clisp.org>
7872 Avoid test link errors when the modules getopt-gnu, gettext are used.
7873 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
7874 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7876 2009-08-23 Bruno Haible <bruno@clisp.org>
7878 Fix getdtablesize() on mingw.
7879 * lib/getdtablesize.c (getdtablesize): Implement differently.
7880 * lib/unistd.in.h (getdtablesize): Improve comment.
7882 2009-08-23 Bruno Haible <bruno@clisp.org>
7884 New module 'mkostemp'.
7885 Based on Ulrich Drepper's 2007-08-10 change in glibc.
7886 * lib/stdlib.in.h (mksotemp): New declaration.
7887 * lib/mkostemp.c: New file, from glibc with modifications.
7888 * lib/tempname.h (GT_FILE): Remove outdated comment.
7889 (gen_tempname): Add flags argument.
7890 * lib/tempname.c (__GT_BIGFILE): Remove macro.
7891 (__GT_FILE): Map to 1.
7892 (small_open, large_open): Remove macros.
7893 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
7894 * lib/mkstemp.c (mkstemp): Update.
7895 * lib/mkdtemp.c (mkdtemp): Likewise.
7896 * m4/mkostemp.m4: New file.
7897 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
7899 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
7901 * modules/mkostemp: New file, based on modules/mkstemp.
7902 * doc/glibc-functions/mkostemp.texi: Mention the new module.
7903 * NEWS: Mention the change.
7905 2009-08-23 Bruno Haible <bruno@clisp.org>
7907 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
7908 Reported by Eric Blake.
7910 2009-08-23 Bruno Haible <bruno@clisp.org>
7912 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
7913 Reported by Eric Blake.
7915 2009-08-23 Bruno Haible <bruno@clisp.org>
7917 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
7918 * modules/pipe2 (Depends-on): Likewise.
7920 2009-08-23 Eric Blake <ebb9@byu.net>
7922 fcntl-h: add O_TTY_INIT support
7923 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
7924 * tests/test-fcntl-h.c (o): Test it.
7925 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7927 fcntl-h: rename from fcntl, in preparation for fcntl(2)
7928 * modules/fcntl: Move <fcntl.h> header replacement...
7929 * modules/fcntl-h: ...to new name, so as not to collide with
7930 like-named function.
7931 * tests/test-fcntl.c: Rename...
7932 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
7933 * modules/fcntl-tests: Rename...
7934 * modules/fcntl-h-tests: ...to this. Update test file name.
7935 * modules/chdir-long (Depends-on): Update clients.
7936 * modules/chdir-safer (Depends-on): Likewise.
7937 * modules/fcntl-safer (Depends-on): Likewise.
7938 * modules/fts (Depends-on): Likewise.
7939 * modules/mkancesdirs (Depends-on): Likewise.
7940 * modules/mkdir-p (Depends-on): Likewise.
7941 * modules/open (Depends-on): Likewise.
7942 * modules/savewd (Depends-on): Likewise.
7943 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
7944 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
7946 2009-08-22 Bruno Haible <bruno@clisp.org>
7948 * modules/binary-io (License): Relicense under LGPL.
7949 * modules/pipe2 (License): Likewise.
7951 2009-08-22 Bruno Haible <bruno@clisp.org>
7953 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
7955 * lib/pipe-filter-gi.c (filter_init): Likewise.
7956 Reported by Eric Blake.
7958 2009-08-22 Bruno Haible <bruno@clisp.org>
7960 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
7961 * modules/pipe (Depends-on): Add pipe2.
7963 2009-08-22 Bruno Haible <bruno@clisp.org>
7965 Tests for module 'pipe2'.
7966 * modules/pipe2-tests: New file.
7967 * tests/test-pipe2.c: New file.
7970 * lib/unistd.in.h (pipe2): New declaration.
7971 * lib/pipe2.c: New file.
7972 * m4/pipe2.m4: New file.
7973 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
7975 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
7976 * modules/pipe2: New file.
7977 * doc/glibc-functions/pipe2.texi: Mention the new module.
7979 2009-08-22 Bruno Haible <bruno@clisp.org>
7981 Reference some new glibc functions.
7982 * doc/glibc-functions/accept4.texi: New file.
7983 * doc/glibc-functions/dup3.texi: New file.
7984 * doc/glibc-functions/mkostemp.texi: New file.
7985 * doc/glibc-functions/pipe2.texi: New file.
7986 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
7987 (Glibc sys/socket.h): Refer to accept4.
7988 (Glibc unistd.h): Refer to dup3, pipe2.
7989 Reported by Eric Blake.
7991 2009-08-22 Jim Meyering <meyering@redhat.com>
7992 Bruno Haible <bruno@clisp.org>
7994 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
7995 This makes it so packages using automake-1.11's silent-rules option
7996 can print e.g., a single "GEN configmake.h" line, rather than
7997 the 30+ statements that perform the job. If you want to see the
7998 actual commands, you can still run "make V=1".
7999 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
8000 so that make output is abbreviated when those variables are defined
8002 * modules/argz: Likewise.
8003 * modules/arpa_inet: Likewise.
8004 * modules/byteswap: Likewise.
8005 * modules/configmake: Likewise.
8006 * modules/dirent: Likewise.
8007 * modules/errno: Likewise.
8008 * modules/fcntl: Likewise.
8009 * modules/float: Likewise.
8010 * modules/fnmatch: Likewise.
8011 * modules/getopt-posix: Likewise.
8012 * modules/glob: Likewise.
8013 * modules/iconv_open: Likewise.
8014 * modules/inttypes: Likewise.
8015 * modules/localcharset: Likewise.
8016 * modules/locale: Likewise.
8017 * modules/math: Likewise.
8018 * modules/netdb: Likewise.
8019 * modules/netinet_in: Likewise.
8020 * modules/poll: Likewise.
8021 * modules/posix_spawnp-tests: Likewise.
8022 * modules/sched: Likewise.
8023 * modules/search: Likewise.
8024 * modules/selinux-h: Likewise.
8025 * modules/signal: Likewise.
8026 * modules/spawn: Likewise.
8027 * modules/stdarg: Likewise.
8028 * modules/stdbool: Likewise.
8029 * modules/stddef: Likewise.
8030 * modules/stdint: Likewise.
8031 * modules/stdio: Likewise.
8032 * modules/stdlib: Likewise.
8033 * modules/string: Likewise.
8034 * modules/strings: Likewise.
8035 * modules/sys_file: Likewise.
8036 * modules/sys_ioctl: Likewise.
8037 * modules/sys_select: Likewise.
8038 * modules/sys_socket: Likewise.
8039 * modules/sys_stat: Likewise.
8040 * modules/sys_time: Likewise.
8041 * modules/sys_times: Likewise.
8042 * modules/sys_utsname: Likewise.
8043 * modules/sys_wait: Likewise.
8044 * modules/sysexits: Likewise.
8045 * modules/time: Likewise.
8046 * modules/unistd: Likewise.
8047 * modules/wchar: Likewise.
8048 * modules/wctype: Likewise.
8050 2009-08-22 Jim Meyering <meyering@redhat.com>
8052 announce-gen: detect write failure
8053 * build-aux/announce-gen: Add Coda at end.
8054 Remove equivalent-but-more-verbose block at top.
8056 2009-08-19 Akim Demaille <demaille@gostai.com>
8058 bootstrap: --help to stdout.
8059 * bootstrap (usage): Don't send --help to stderr.
8060 Use a here doc instead of a long string.
8062 2009-08-21 Eric Blake <ebb9@byu.net>
8064 test-popen-safer: split from test-popen
8065 * tests/test-popen.c (main): Move...
8066 * tests/test-popen.h: ...into new file.
8067 * tests/test-popen-safer2.c: New file.
8068 * modules/popen-tests (Files): Add test-popen.h.
8069 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
8070 Suggested by Bruno Haible.
8072 test-fcntl-safer: split from test-open
8073 * tests/test-open.c (main): Move...
8074 * tests/test-open.h: ...into new file.
8075 * tests/test-fcntl-safer.c: New file.
8076 * modules/open-tests (Files): Add test-open.h.
8077 * modules/fcntl-safer-tests: New file.
8078 Suggested by Bruno Haible.
8080 test-fopen-safer: split from test-fopen
8081 * tests/test-fopen.c (main): Move...
8082 * tests/test-fopen.h: ...into new file.
8083 * tests/test-fopen-safer.c: New file.
8084 * modules/fopen-tests (Files): Add test-fopen.h.
8085 * modules/fopen-safer-tests: New file.
8086 Suggested by Bruno Haible.
8088 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
8090 popen-safer: test O_CLOEXEC at run-time.
8091 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
8093 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
8095 fcntl: move more flags to the header
8096 * lib/cloexec.c: Do not define FD_CLOEXEC here.
8097 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
8098 * lib/fcntl.in.h: Do both things here.
8100 2009-08-21 Jim Meyering <meyering@redhat.com>
8102 consistently remove $@-t before redirecting to it
8103 * modules/argz: Remove $@-t and $@ before redirecting to the former.
8104 * modules/alloca-opt: Likewise.
8105 * modules/byteswap: Likewise.
8106 * modules/fnmatch: Likewise.
8107 * modules/getopt-posix: Likewise.
8108 * modules/glob: Likewise.
8109 * modules/poll: Likewise.
8110 * modules/posix_spawnp-tests: Likewise.
8111 * modules/sys_socket: Likewise.
8112 * modules/sysexits: Likewise.
8114 2009-08-21 Eric Blake <ebb9@byu.net>
8116 popen: simplify access to original popen
8117 * lib/popen.c (rpl_popen): No need to worry about popen being a
8119 Reported by Bruno Haible.
8121 2009-08-20 Eric Blake <ebb9@byu.net>
8123 build: avoid some compiler warnings
8124 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
8125 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
8127 (new_exclude_segment, excluded_file_pattern_p)
8128 (excluded_file_name_p): Reduce scope.
8129 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
8130 old-style declaration.
8132 2009-08-20 Simon Josefsson <simon@josefsson.org>
8134 * tests/test-exclude1.sh: Handle Windows EOL.
8135 * tests/test-exclude2.sh: Likewise.
8136 * tests/test-exclude3.sh: Likewise.
8137 * tests/test-exclude4.sh: Likewise.
8138 * tests/test-exclude5.sh: Likewise.
8139 * tests/test-exclude6.sh: Likewise.
8140 * tests/test-exclude7.sh: Likewise.
8142 2009-08-19 Akim Demaille <demaille@gostai.com>
8144 bootstrap: find sha1sum when named gsha1sum.
8145 * bootstrap (find_tool): New.
8149 2009-08-20 Jim Meyering <meyering@redhat.com>
8151 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
8152 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
8153 expression that converts "." in a file name to "\." in the resulting
8154 regexp. Start with a dummy statement, so that prior shell variable
8155 definitions are expanded portably. Reported by Simon Josefsson.
8157 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
8159 Fix polling for writeability of a screen buffer.
8160 * lib/poll.c: Distinguish input and screen buffers for the
8161 Win32 implementation.
8162 * lib/select.c: Likewise.
8164 2009-08-19 Eric Blake <ebb9@byu.net>
8166 popen-safer: prevent popen from clobbering std descriptors
8167 * modules/popen-safer: New file.
8168 * lib/popen-safer.c: Likewise.
8169 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
8170 * lib/stdio--.h (popen): Provide override.
8171 * lib/stdio-safer.h (popen_safer): Provide declaration.
8172 * tests/test-popen.c (includes): Partially test this.
8173 * modules/popen-safer-tests: New file, for more tests.
8174 * tests/test-popen-safer.c: Likewise.
8175 * MODULES.html.sh (file stream based Input/Output): Mention it.
8177 tests: test some of the *-safer modules
8178 * modules/fopen-safer (Depends-on): Add fopen.
8179 * modules/fcntl-safer (Depends-on): Add fcntl.
8180 * modules/stdlib-safer (Depends-on): Add stdlib.
8181 (configure.ac): Set indicator.
8182 * modules/unistd-safer (configure.ac): Likewise.
8183 * modules/tmpfile-safer (configure.ac): Likewise.
8184 (Depends-on): Add tmpfile.
8185 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
8187 * tests/test-fopen.c (includes): Test safer versions when they are
8189 * tests/test-open.c (includes): Likewise.
8191 popen: fix cygwin 1.5 bug when stdin closed
8192 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
8193 * modules/popen: New file.
8194 * modules/popen-tests: Likewise.
8195 * tests/test-popen.c: Likewise.
8196 * m4/popen.m4: Likewise.
8197 * lib/popen.c: Likewise.
8198 * lib/stdio.in.h (popen): New declaration.
8199 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
8200 * modules/stdio (Makefile.am): Likewise.
8201 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
8203 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
8205 maint.mk: give full control over update-copyright exclusions
8206 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
8207 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
8208 (update-copyright): Don't force inclusion of top-level
8209 ChangeLog. Don't force exclusion of all COPYING files, but make
8210 them the default exclusion instead.
8212 2009-08-16 Bruno Haible <bruno@clisp.org>
8214 Fix test failures on Solaris 10.
8215 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
8216 tests when Solaris iconv() is used.
8217 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
8218 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
8219 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
8220 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
8221 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
8223 2009-08-16 Bruno Haible <bruno@clisp.org>
8225 Fix test failures on Solaris 10.
8226 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
8227 'tr' program and pass it as first argument.
8228 * tests/test-pipe-filter-gi1.sh: Likewise.
8229 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
8230 program as first argument.
8231 * tests/test-pipe-filter-gi1.c (main): Likewise.
8233 2009-08-16 Eric Blake <ebb9@byu.net>
8235 fpurge: fix previous commits
8236 * modules/fpurge (Makefile.am): Make replacement conditional,
8237 partially reverting 2007-04-29 change; missed in previous
8239 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
8242 2009-08-16 Bruno Haible <bruno@clisp.org>
8244 Clarify fpurge's effect on the file position.
8245 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
8246 * tests/test-fpurge.c (main): Make a second pass for checking the file
8249 2009-08-16 Bruno Haible <bruno@clisp.org>
8251 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
8252 declaration of fpurge is missing.
8253 * tests/test-fpurge.c (main): Check that the file has not more contents
8254 than expected. Close the file before removing it.
8256 2009-08-15 Eric Blake <ebb9@byu.net>
8258 fpurge: don't wrap working cygwin implementation
8259 * lib/fpurge.c (fpurge): Fix comment typo.
8260 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
8261 1.7 to avoid replacement.
8262 * tests/test-fpurge.c (main): Enhance test.
8264 2009-08-15 Eric Blake <ebb9@byu.net>
8265 and Jim Meyering <meyering@redhat.com>
8267 test-update-copyright: skip if perl is insufficient
8268 * tests/test-update-copyright.sh: Failure to run maintainer tool
8269 should not cause testsuite failure on cygwin 1.5.
8271 2009-08-14 Eric Blake <ebb9@byu.net>
8273 doc: mention more functions added in cygwin 1.7.0
8274 * doc/posix-headers/limits.texi (limits.h): Update for recent
8276 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
8277 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
8278 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
8279 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
8280 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
8282 2009-08-14 Eric Blake <ebb9@byu.net>
8284 maint.mk: simplify update-copyright rule
8285 * top/maint.mk (update-copyright-local): Delete, and document how
8286 to do it in cfg.mk instead.
8287 (update-copyright-exclude-regexp): Delete, and document how to do
8288 it in .x-update-copyright instead.
8289 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
8292 2009-08-14 Bruno Haible <bruno@clisp.org>
8294 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
8296 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
8298 maint.mk: support update-copyright-env
8299 * top/maint.mk (update-copyright-env): Define place-holder.
8300 (update-copyright): Expand $(update-copyright-env) before
8301 invoking update-copyright.
8303 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
8305 update-copyright: implement forced reformatting
8306 * build-aux/update-copyright: Implement and document
8307 UPDATE_COPYRIGHT_FORCE.
8308 * tests/test-update-copyright.sh: Test it.
8310 2009-08-14 Eric Blake <ebb9@byu.net>
8311 and Bruno Haible <bruno@clisp.org>
8313 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
8314 * tests/test-locale.c: Revert previous patch related to NULL.
8315 * tests/test-stdio.c: Likewise.
8316 * tests/test-stdlib.c: Likewise.
8317 * tests/test-string.c: Likewise.
8318 * tests/test-unistd.c: Likewise.
8319 * modules/time-tests (Depends-on): Add verify.
8320 * modules/wchar-tests (Depends-on): Likewise.
8321 * tests/test-time.c: Test for NULL compliance.
8322 * tests/test-wchar.c: Likewise.
8323 * modules/locale (Depends-on): Add stddef.
8324 * modules/stdio (Depends-on): Likewise.
8325 * modules/stdlib (Depends-on): Likewise.
8326 * modules/string (Depends-on): Likewise.
8327 * modules/time (Depends-on): Likewise.
8328 * modules/unistd (Depends-on): Likewise.
8329 * modules/wchar (Depends-on): Likewise.
8330 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
8331 * lib/stdlib.in.h (includes): Likewise.
8332 * lib/string.in.h (includes): Likewise.
8333 * lib/time.in.h (includes): Likewise.
8334 * lib/unistd.in.h (includes): Likewise.
8335 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
8337 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8338 * m4/stddef_h.m4: New file.
8339 * modules/stddef: Likewise.
8340 * lib/stddef.in.h: Likewise.
8341 * modules/stddef-tests: Likewise.
8342 * tests/test-stddef.c: Likewise.
8343 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
8344 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
8345 * doc/posix-headers/locale.texi (locale.h): Likewise.
8346 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
8347 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
8348 * doc/posix-headers/string.texi (string.h): Likewise.
8349 * doc/posix-headers/time.texi (time.h): Likewise.
8350 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
8351 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
8353 2009-08-14 Eric Blake <ebb9@byu.net>
8355 doc: improve git diff of texinfo files
8356 * .gitattributes: Add rule for *.texi files, with hint on how to
8358 Copied from m4, and based on a report by Bruno Haible.
8360 2009-08-14 Bruno Haible <bruno@clisp.org>
8362 Disable multithread support by default on Cygwin 1.5.x for real.
8363 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
8365 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
8367 update-copyright: much ado about intervals
8368 * build-aux/update-copyright: Implement and document
8369 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
8370 of copyright year intervals.
8371 Also, document UPDATE_COPYRIGHT_YEAR.
8372 * tests/test-update-copyright.sh: Test it.
8374 update-copyright: convert 2-digit to 4-digit years
8375 * build-aux/update-copyright: Implement and document.
8376 * tests/test-update-copyright.sh: Update.
8378 2009-08-14 Jim Meyering <meyering@redhat.com>
8380 test-exclude: avoid coreutils "make check" failure
8381 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
8382 just as in test-argmatch.c.
8384 2009-08-13 Eric Blake <ebb9@byu.net>
8386 test-dup2: fix bad assumption
8387 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
8388 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
8390 test-version-etc: fix CRLF portability issue
8391 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
8393 * tests/test-argp-version-etc-1.sh: Likewise.
8395 getopt: update client modules
8396 * modules/argp (Depends-on): Use getopt-gnu.
8397 * modules/git-merge-changelog (Depends-on): Likewise.
8398 * modules/long-options (Depends-on): Likewise.
8399 * modules/xstrtol (Depends-on): Likewise.
8401 2009-08-13 Simon Josefsson <simon@josefsson.org>
8403 * tests/test-version-etc.sh: Don't fail on different
8404 project/version. Don't fail on CRLF differences. Rewrite to use
8405 multiple -e instead of multiple sed forks, suggested by Eric Blake
8407 * tests/test-argp-version-etc-1.sh: Likewise.
8409 2009-08-13 Simon Josefsson <simon@josefsson.org>
8411 * tests/test-version-etc.sh: Don't fail on different
8414 2009-08-12 Bruno Haible <bruno@clisp.org>
8416 Tests for modules 'getopt-posix', 'getopt-gnu'.
8417 * modules/getopt-posix-tests: New file.
8418 * tests/test-getopt.c: New file.
8419 * tests/test-getopt.h: New file.
8420 * tests/test-getopt_long.h: New file.
8422 New modules 'getopt-posix', 'getopt-gnu'.
8423 * modules/getopt-gnu: New file, renamed from modules/getopt.
8424 * modules/getopt-posix: New file.
8425 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
8426 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
8427 (gl_GETOPT): Remove macro.
8428 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
8429 Disable the test against BSD systems that declare optreset. Test
8430 against mingw bug. Test against lack of support of optional arguments
8432 * doc/glibc-headers/getopt.texi: Update module name and list of
8434 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
8435 'getopt-gnu' and more portability problems.
8436 * NEWS: Mention the changes.
8438 2009-08-12 Bruno Haible <bruno@clisp.org>
8440 Ensure that optarg etc. get declared by <unistd.h>.
8441 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
8442 AC_USE_SYSTEM_EXTENSIONS.
8443 * modules/getopt (Depends-on): Add 'extensions'.
8445 2009-08-12 Bruno Haible <bruno@clisp.org>
8447 Avoid test link errors.
8448 * modules/pipe-filter-ii-tests (Makefile.am): Define
8449 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
8450 * modules/pipe-filter-gi-tests (Makefile.am): Define
8451 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
8452 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8454 2009-08-12 Bruno Haible <bruno@clisp.org>
8456 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
8457 gl_GETOPT_SUBSTITUTE before.
8458 (gl_GETOPT): Use it.
8459 * m4/argp.m4 (gl_ARGP): Update.
8460 Reported by Sergey Poznyakoff.
8462 * m4/getopt.m4: Reorder macros.
8463 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
8464 (gl_GETOPT_SUBSTITUTE): Remove macro.
8466 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
8468 Minor improvement in gitlog-to-changelog
8470 * build-aux/gitlog-to-changelog: New option `--format' makes
8471 output format string configurable.
8473 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
8475 Optimize exclude: use hash tables for non-wildcard patterns.
8477 * lib/exclude.c: Include hash.h and mbuiter.h
8478 (struct exclude_pattern, exclude_segment): New data types.
8479 (struct exclude): Rewrite.
8480 (fnmatch_pattern_has_wildcards): New function.
8481 (new_exclude_segment, free_exclude_segment): New functions.
8482 (excluded_file_pattern_p, excluded_file_name_p): New functions.
8483 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
8484 * lib/exclude.h (is_fnmatch_pattern): New prototype.
8485 * modules/exclude: Depend on hash and mbuiter.
8487 * modules/exclude-tests: New file.
8488 * tests/test-exclude.c: New file.
8489 * tests/test-exclude1.sh: New file.
8490 * tests/test-exclude2.sh: New file.
8491 * tests/test-exclude3.sh: New file.
8492 * tests/test-exclude4.sh: New file.
8493 * tests/test-exclude5.sh: New file.
8494 * tests/test-exclude6.sh: New file.
8495 * tests/test-exclude7.sh: New file.
8497 2009-08-12 Bruno Haible <bruno@clisp.org>
8499 Ensure that getopt() gets declared by <unistd.h>.
8500 * lib/unistd.in.h: Conditionally include getopt.h.
8501 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
8502 Set GNULIB_UNISTD_H_GETOPT.
8503 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8504 GNULIB_UNISTD_H_GETOPT.
8505 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
8507 2009-08-12 Bruno Haible <bruno@clisp.org>
8510 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
8511 gl_replace_getopt instead of GETOPT_H.
8513 2009-08-12 Bruno Haible <bruno@clisp.org>
8515 * m4/getopt.m4: Add comments.
8517 2009-08-12 Bruno Haible <bruno@clisp.org>
8519 Disable multithread support by default on Cygwin 1.5.x.
8520 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
8521 set gl_use_threads=no if not specified otherwise.
8523 2009-08-11 Bruno Haible <bruno@clisp.org>
8525 Avoid compilation error on NetBSD 5.0.
8526 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
8527 * tests/test-stdio.c: Likewise.
8528 * tests/test-stdlib.c: Likewise.
8529 * tests/test-string.c: Likewise.
8530 * tests/test-unistd.c: Likewise.
8531 Reported by Greg Troxel <gdt@ir.bbn.com>
8532 at <https://savannah.gnu.org/support/?106973>.
8534 2009-08-11 Bruno Haible <bruno@clisp.org>
8536 * modules/dup2-tests (Depends-on): Remove close.
8538 Undo 2009-07-19 commit.
8539 * modules/acl-tests (Depends-on): Remove close.
8540 * modules/binary-io-tests (Depends-on): Likewise.
8541 * modules/closein-tests (Depends-on): Likewise.
8542 * modules/flock-tests (Depends-on): Likewise.
8543 * modules/fsync-tests (Depends-on): Likewise.
8544 * modules/lseek-tests (Depends-on): Likewise.
8545 * modules/pipe-tests (Depends-on): Likewise.
8546 * modules/posix_spawn-tests (Depends-on): Likewise.
8547 * modules/posix_spawnp-tests (Depends-on): Likewise.
8548 * modules/stat-time-tests (Depends-on): Likewise.
8549 * modules/yesno-tests (Depends-on): Likewise.
8551 2009-08-10 Bruno Haible <bruno@clisp.org>
8553 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
8555 2009-08-10 Bruno Haible <bruno@clisp.org>
8558 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
8560 2009-08-10 Bruno Haible <bruno@clisp.org>
8562 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
8563 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
8564 not only the first time.
8565 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
8566 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
8567 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
8568 is 1, not only the the first time.
8570 2009-08-10 Bruno Haible <bruno@clisp.org>
8572 Make it possible to use module 'gethostname' without module 'close'.
8573 * lib/unistd.in.h (close): Evoke a link error only if
8574 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
8575 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8576 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8577 * modules/unistd (Makefile.am): Substitute
8578 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8579 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
8580 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
8581 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
8582 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8583 * modules/sys_ioctl (Makefile.am): Substitute
8584 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8585 * modules/socket (configure.ac): On native Windows, set
8586 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
8587 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
8588 Reported by Sam Steingold <sds@gnu.org>.
8590 2009-08-10 Bruno Haible <bruno@clisp.org>
8592 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
8593 * modules/ioctl (configure.ac): Likewise.
8595 2009-08-10 Bruno Haible <bruno@clisp.org>
8597 Avoid collision between gnulib wrapper and libintl wrapper.
8598 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
8599 already defined in intl/printf.c.
8600 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
8601 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
8603 2009-08-09 Bruno Haible <bruno@clisp.org>
8605 Make <sys/select.h> really self-contained, also on Solaris 10.
8606 * lib/sys_select.in.h: Include <string.h>.
8607 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
8609 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
8610 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
8611 Reported by Jim Meyering.
8613 2009-08-09 Bruno Haible <bruno@clisp.org>
8615 Avoid warnings from 'aclocal' that are due to a use of macro name
8616 AM_XGETTEXT_OPTION that is not defined in automake.
8617 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
8619 * modules/error (configure.ac): Likewise.
8620 * modules/propername (configure.ac): Likewise.
8621 * modules/vasprintf (configure.ac): Likewise.
8622 * modules/verror (configure.ac): Likewise.
8623 * modules/xprintf (configure.ac): Likewise.
8624 * modules/xvasprintf (configure.ac): Likewise.
8626 2009-08-08 Bruno Haible <bruno@clisp.org>
8628 Avoid compilation error in C++ mode.
8629 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
8630 Reported by Sam Steingold <sds@gnu.org>.
8632 2009-08-08 Bruno Haible <bruno@clisp.org>
8634 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
8635 for the various Unix platforms.
8636 * doc/posix-headers/limits.texi: Update platforms list regarding
8638 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8640 2009-08-07 Jim Meyering <meyering@redhat.com>
8642 selinux-at: fix typo in a comment
8643 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
8644 Spotted by Paolo Bonzini.
8646 selinux-at: remove redundant m4 code, add documentation
8647 * modules/selinux-at (configure.ac): Remove redundant code.
8648 LIB_SELINUX is already set via the dependent module, selinux-h.
8649 (Include): Add quotes around selinux-at.h.
8650 * lib/selinux-at.h: Add documentation.
8651 Reported by Bruno Haible in
8652 http://marc.info/?l=gnulib-bug&m=124958988300749
8654 2009-08-07 Bruno Haible <bruno@clisp.org>
8656 Avoid link error on MacOS X 10.3 and 10.4.
8657 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
8659 * lib/argp-pv.c (argp_program_version): Likewise.
8660 Reported by Simon Josefsson.
8662 2009-08-07 Simon Josefsson <simon@josefsson.org>
8664 * tests/test-version-etc.sh: Use $EXEEXT.
8666 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
8668 update-copyright: update documentation to point to maint.mk
8669 * build-aux/update-copyright: Here.
8671 2009-08-06 Jim Meyering <meyering@redhat.com>
8673 maint.mk: support update-copyright-local
8674 * top/maint.mk (update-copyright-local): Define place-holder.
8675 (update-copyright): Depend on $(update-copyright-local).
8677 2009-08-06 Jim Meyering <meyering@redhat.com>
8679 selinux-at: new module
8680 Initially written for coreutils, this module will soon be
8681 used by findutils, too.
8682 * MODULES.html.sh [Misc]: Add selinux-at.
8683 * lib/selinux-at.h: New file, from coreutils.
8684 * lib/selinux-at.c: Likewise.
8685 * modules/selinux-at: Likewise.
8686 (License): Change from LGPL to GPL, since it depends
8687 on the GPL'd openat module.
8690 * README: Remove references to cogito.
8691 Remove cvs-repo-updating instructions from 2007.
8692 Don't imply that CVS is better if you have limited disk space.
8694 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
8696 update-copyright: support C-style comments
8697 * build-aux/update-copyright: Implement and document.
8698 * tests/test-update-copyright.sh: Test.
8700 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
8702 update-copyright: support omitted "(C)"
8703 * build-aux/update-copyright: Implement and document. Also,
8704 allow variable whitespace before "(C)".
8705 * tests/test-update-copyright.sh: Test.
8707 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
8709 update-copyright: don't trip on non-FSF copyright statements
8710 * build-aux/update-copyright: Fix so that the first correctly
8711 formatted FSF copyright statement is recognized no matter what
8712 appears before it. Update documentation.
8713 * tests/test-update-copyright.sh: Test that.
8715 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
8717 update-copyright: clean up code a little
8718 * build-aux/update-copyright: Append "_re" to the name of any
8719 variable holding a regular expression.
8720 Replace "old" and "new" with "stmt" in variable names.
8721 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
8723 Format code more consistently.
8725 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
8727 update-copyright-tests: improve portability
8728 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
8729 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
8731 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
8733 update-copyright: support @copyright{} and ©
8734 * build-aux/update-copyright: Implement and document.
8735 * tests/test-update-copyright.sh: Test.
8737 2009-08-04 Jim Meyering <meyering@redhat.com>
8739 update-copyright-tests: correctly test EOL=\r\n handling
8740 * tests/test-update-copyright.sh: Put \r at the end of some lines
8741 for the dos-eol tests. Based on a patch by Joel E. Denny.
8743 maint.mk: make update-copyright exclusion list more configurable
8744 * top/maint.mk (update-copyright): Default to excluding COPYING,
8745 but allow an override, in case someone does want to update that file.
8747 maint.mk: don't update copyright date in COPYING
8748 * top/maint.mk (update-copyright): Exclude COPYING.
8750 maint.mk: add a copyright-updating rule
8751 * top/maint.mk (update-copyright): New rule.
8752 Derived from coreutils/Makefile.am.
8754 update-copyright: rename some variables
8755 * build-aux/update-copyright: Rename a few variables for clarity.
8756 Tweak syntax. List Joel E. Denny as coauthor.
8758 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
8760 update-copyright: fix bug for 2-digit last year and add tests
8761 * build-aux/update-copyright: Fix bug.
8762 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
8764 * modules/update-copyright-tests: New
8765 * tests/test-update-copyright.sh: New.
8767 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
8769 update-copyright: handle leading tabs in line prefix
8770 * build-aux/update-copyright: Count leading tabs as 8 spaces
8771 when computing margin. This helps with the formatting of
8772 ChangeLogs, for example.
8773 Fix documentation a little.
8775 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
8777 update-copyright: support EOL=\r\n
8778 * build-aux/update-copyright: Implement that.
8780 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
8782 update-copyright: automatically format copyright statements
8783 * build-aux/update-copyright: Implement that.
8784 Also, be a little more predictable and safer by always failing
8785 when the full copyright format is not perfectly recognized as an
8786 unbroken whole. Discussed at
8787 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
8788 Rewrite documentation.
8790 2009-08-03 Bruno Haible <bruno@clisp.org>
8792 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
8794 2009-08-02 Bruno Haible <bruno@clisp.org>
8796 Tests for module 'uname'.
8797 * modules/uname-tests: New file.
8798 * tests/test-uname.c: New file.
8801 * lib/uname.c: New file.
8802 * m4/uname.m4: New file.
8803 * modules/uname: New file.
8804 * doc/posix-functions/uname.texi: Mention the new module.
8806 2009-08-02 Bruno Haible <bruno@clisp.org>
8808 Tests for module 'sys_utsname'.
8809 * modules/sys_utsname-tests: New file.
8810 * tests/test-sys_utsname.c: New file.
8812 New module 'sys_utsname'.
8813 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
8814 * m4/sys_utsname_h.m4: New file.
8815 * modules/sys_utsname: New file.
8816 * doc/posix-headers/sys_utsname.texi: Mention the new module.
8818 2009-08-02 Bruno Haible <bruno@clisp.org>
8820 Implicitly initialize the sockets library.
8821 * lib/gethostname.c: Include sockets.h.
8822 (rpl_gethostname): Invoke gl_sockets_startup.
8823 * lib/socket.c: Include sockets.h.
8824 (rpl_socket): Invoke gl_sockets_startup.
8825 * modules/gethostname (Depends-on): Add sockets.
8826 * modules/socket (Depends-on): Likewise.
8827 * tests/test-poll.c: Don't include sockets.h.
8828 (main): Don't invoke gl_sockets_startup.
8829 * tests/test-select.c: Don't include sockets.h.
8830 (main): Don't invoke gl_sockets_startup.
8832 2009-08-02 Bruno Haible <bruno@clisp.org>
8834 Allow multiple calls to gl_sockets_startup.
8835 * lib/sockets.c (initialized_sockets_version): New variable.
8836 (gl_sockets_startup): Do nothing if already called for this or a higher
8838 (gl_sockets_cleanup): Reset initialized_sockets_version.
8840 2009-08-03 Simon Josefsson <simon@josefsson.org>
8842 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
8843 different project/version.
8845 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
8846 Bruno Haible <bruno@clisp.org>
8848 Tests for module 'pipe-filter-gi'.
8849 * modules/pipe-filter-gi-tests: New file.
8850 * tests/test-pipe-filter-gi1.sh: New file.
8851 * tests/test-pipe-filter-gi1.c: New file.
8852 * tests/test-pipe-filter-gi2.sh: New file.
8853 * tests/test-pipe-filter-gi2-main.c: New file.
8854 * tests/test-pipe-filter-gi2-child.c: New file.
8856 New module 'pipe-filter-gi'.
8857 * lib/pipe-filter-gi.c: New file.
8858 * modules/pipe-filter-gi: New file.
8860 2009-08-02 Bruno Haible <bruno@clisp.org>
8861 Paolo Bonzini <bonzini@gnu.org>
8863 Tests for module 'pipe-filter-ii'.
8864 * modules/pipe-filter-ii-tests: New file.
8865 * tests/test-pipe-filter-ii1.sh: New file.
8866 * tests/test-pipe-filter-ii1.c: New file.
8867 * tests/test-pipe-filter-ii2.sh: New file.
8868 * tests/test-pipe-filter-ii2-main.c: New file.
8869 * tests/test-pipe-filter-ii2-child.c: New file.
8871 New module 'pipe-filter-ii'.
8872 * lib/pipe-filter.h: New file.
8873 * lib/pipe-filter-ii.c: New file.
8874 * lib/pipe-filter-aux.h: New file.
8875 * modules/pipe-filter-ii: New file.
8877 2009-08-02 Simon Josefsson <simon@josefsson.org>
8879 * lib/gc-libgcrypt.c: Change copyright to FSF.
8880 * lib/gc-gnulib.c: Likewise.
8882 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
8884 * lib/gethostname.c: Include limits.h.
8886 2009-08-02 Simon Josefsson <simon@josefsson.org>
8887 Bruno Haible <bruno@clisp.org>
8889 Ensure HOST_NAME_MAX as part of the gethostname module.
8890 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
8891 define also HOST_NAME_MAX.
8892 * tests/test-gethostname.c: Include <limits.h>.
8893 (main): Check also HOST_NAME_MAX.
8894 * doc/posix-headers/limits.texi: Document the mingw problem.
8896 2009-08-02 Bruno Haible <bruno@clisp.org>
8898 * lib/gethostname.c (gethostname): Fix handling of large len argument.
8901 2009-03-31 Simon Josefsson <simon@josefsson.org>
8903 * lib/gethostname.c: Add Windows wrapper.
8904 * m4/gethostname.m4: Look for gethostname in -lws2_32.
8905 * modules/gethostname: Depend on sys_socket & errno, for also
8906 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
8907 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
8909 2009-07-31 Jim Meyering <meyering@redhat.com>
8911 getloadavg: fix symbol name in comment
8912 * lib/getloadavg.c: Correct a typo I introduced when adding
8913 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
8914 Matt Kraai spotted the problem.
8916 2009-07-29 Matt Kraai <mkraai@beckman.com>
8918 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
8919 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
8920 code also if ! defined N_NAME_POINTER.
8921 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
8922 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
8923 but the n_name member is a 12-byte array.
8925 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
8927 update-copyright: generalize comment handling
8928 * build-aux/update-copyright: Handle copyright statements
8929 within more comment styles.
8931 Report any file with an external copyright holder or parse failure.
8933 2009-07-29 Jim Meyering <meyering@redhat.com>
8935 mktime: correct setting of REPLACE_MKTIME
8936 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
8938 update-copyright: new module
8939 * modules/update-copyright: New file.
8940 * build-aux/update-copyright: New file.
8941 * MODULES.html.sh (maint+release support): Add update-copyright.
8943 2009-07-27 Bruno Haible <bruno@clisp.org>
8945 Fix compilation error when <ctime> is used and mktime is replaced.
8946 * lib/time.in.h (mktime): New declaration.
8947 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
8948 REPLACE_MKTIME instead of defining mktime in config.h.
8949 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
8950 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
8951 Reported by Ross McFarland <rwmcfa1@neces.com>.
8953 2009-07-27 Bruno Haible <bruno@clisp.org>
8955 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
8956 Reported by Matt Kraai <mkraai@beckman.com>.
8958 2009-07-25 Jim Meyering <meyering@redhat.com>
8960 maint.mk: avoid warnings about missing files
8961 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
8962 diagnostic when .prev-version does not exist.
8963 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
8964 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
8966 Suggestions from Simon Josefsson.
8968 2009-07-25 Bruno Haible <bruno@clisp.org>
8970 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
8971 defined as macros. Needed on QNX 6.4.1.
8972 Reported by Matt Kraai <mkraai@beckman.com>.
8974 2009-07-23 Jim Meyering <meyering@redhat.com>
8976 maint.mk: invoke "make dist" with a working value of XZ_OPT
8977 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
8979 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
8981 Make fseeko.c compile on QNX.
8982 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
8984 2009-07-22 Peter Simons <simons@cryp.to>
8986 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
8987 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
8988 * lib/md4.h: Likewise.
8989 * lib/md5.h: Likewise.
8990 * lib/sha1.h: Likewise.
8991 * lib/sha256.h: Likewise.
8992 * lib/sha512.h: Likewise.
8994 tests-sha1: don't assign literal string to 'char *' variable
8995 * tests/test-sha1.c (main): Declare locals with "const" to match
8996 attributes of the right hand side.
8998 2009-07-21 Eric Blake <ebb9@byu.net>
9000 dup2: fix more mingw problems
9001 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
9003 * doc/posix-functions/dup2.texi (dup2): Document the bug.
9004 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
9005 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
9006 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
9009 2009-07-21 Jim Meyering <meyering@redhat.com>
9011 vc-list-files: avoid failure when /bin/sh is dash
9012 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
9013 On some Debian based systems, /bin/sh is a symlink to dash, and running
9014 this command would omit the "/" following each 'tests' prefix:
9015 dash -x build-aux/vc-list-files -C . tests
9016 That is because bash and dash work differently:
9017 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
9021 2009-07-21 Eric Blake <ebb9@byu.net>
9023 dup2-tests: test previous patch
9024 * modules/dup2-tests: New file.
9025 * tests/test-dup2.c: Likewise.
9026 * tests/test-open.c (main): Avoid unspecified behavior.
9027 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
9030 dup2: work around mingw and cygwin 1.5 bug
9031 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
9032 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9033 * modules/unistd (Makefile.am): Substitute it.
9034 * lib/unistd.in.h (dup2): Declare the replacement.
9035 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
9036 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
9037 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
9038 * modules/execute (Depends-on): Add dup2.
9039 * modules/fseterr (Depends-on): Likewise.
9040 * modules/pipe (Depends-on): Likewise.
9041 * modules/posix_spawn-internal (Depends-on): Likewise.
9043 2009-07-21 Bruno Haible <bruno@clisp.org>
9045 * modules/.gitattributes: New file.
9047 2009-07-20 Bruno Haible <bruno@clisp.org>
9049 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
9052 2009-07-20 Eric Blake <ebb9@byu.net>
9054 test-pipe: make a bit more robust.
9055 * tests/test-pipe.c (myerr): Allow error messages regardless of
9056 what we do to stderr.
9057 (test_pipe): Rearrange to avoid deadlock.
9058 (child_main): Try a larger read, to ensure we avoided deadlock.
9059 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
9060 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
9063 2009-07-19 Jim Meyering <meyering@redhat.com>
9065 fts: avoid false-positive cycle-detection
9066 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
9067 for each new command line argument.
9069 2009-07-19 Bruno Haible <bruno@clisp.org>
9071 Fix build error on mingw with the modules sys_select and unistd.
9072 * modules/acl-tests (Depends-on): Add close.
9073 * modules/binary-io-tests (Depends-on): Likewise.
9074 * modules/closein-tests (Depends-on): Likewise.
9075 * modules/flock-tests (Depends-on): Likewise.
9076 * modules/fsync-tests (Depends-on): Likewise.
9077 * modules/lseek-tests (Depends-on): Likewise.
9078 * modules/pipe-tests (Depends-on): Likewise.
9079 * modules/posix_spawn-tests (Depends-on): Likewise.
9080 * modules/posix_spawnp-tests (Depends-on): Likewise.
9081 * modules/stat-time-tests (Depends-on): Likewise.
9082 * modules/yesno-tests (Depends-on): Likewise.
9084 2009-07-19 Bruno Haible <bruno@clisp.org>
9087 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
9088 macros, not at the compiler macros.
9089 * lib/pipe.c: Likewise.
9090 * lib/execute.c: Likewise.
9091 * lib/spawni.c: Likewise.
9093 2009-07-19 Bruno Haible <bruno@clisp.org>
9095 Fix handling of closed stdin/stdout/stderr on mingw.
9096 * lib/w32spawn.h: Include unistd.h.
9097 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
9098 file descriptor with O_NOINHERIT flag.
9099 (fd_safer_noinherit): New function, based on fd-safer.c.
9100 (dup_safer_noinherit): New function, based on dup-safer.c.
9101 (undup_safer_noinherit): New function.
9102 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
9103 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
9104 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
9105 instead of fd_safer.
9106 * tests/test-pipe.c: Include <windows.h>.
9107 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
9109 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
9111 (test_pipe): Pass an extra argument for disambiguation.
9112 (main): Invoke parent_main or child_main.
9114 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
9117 2009-07-18 Eric Blake <ebb9@byu.net>
9119 test-pipe: fix mingw build
9120 * tests/test-pipe.c (main): Avoid fcntl on mingw.
9122 2009-07-18 Bruno Haible <bruno@clisp.org>
9124 * modules/pipe-tests (Makefile.am): Fix typo.
9126 2009-07-18 Eric Blake <ebb9@byu.net>
9128 error: fix mingw build
9129 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
9130 Reported by Bruno Haible.
9132 error: avoid undefined use of stdout
9133 * lib/error.c (error, error_at_line): Check that fd 1 is open
9134 before flushing stdout. Avoids a crash on cygwin when libsigsegv
9135 is handling faults and the close_stdout module wants to report the
9136 detection of closed stdout as an error.
9138 2009-07-17 Eric Blake <ebb9@byu.net>
9140 pipe: be robust in face of closed fds
9141 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
9142 should cause child to misbehave.
9143 * modules/pipe-tests: New module.
9144 * tests/test-pipe.c: New file.
9145 * tests/test-pipe.sh: New file.
9146 Reported by Akim Demaille.
9148 2009-07-14 Bruno Haible <bruno@clisp.org>
9150 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
9151 Reported by anonymous kc.
9153 2009-07-07 Jim Meyering <meyering@redhat.com>
9155 maint.mk: don't look for translatable strings in *.m4 or *.mk
9156 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
9157 when searching for translatable strings.
9159 2009-07-05 Jim Meyering <meyering@redhat.com>
9161 remove superfluous parentheses in STREQ definition
9162 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
9163 * lib/getugroups.c (STREQ): Likewise.
9164 * lib/fnmatch.c (STREQ): Likewise.
9165 Spotted by Bruno Haible.
9167 2009-07-04 Jim Meyering <meyering@redhat.com>
9169 argv-iter: new module
9170 * MODULES.html.sh: Add argv-iter.
9171 * lib/argv-iter.c, lib/argv-iter.h: New files.
9172 * modules/argv-iter: New file.
9173 * modules/argv-iter-tests: New file.
9174 * tests/test-argv-iter.c: Test it.
9176 2009-07-04 Bruno Haible <bruno@clisp.org>
9179 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
9180 contains more exact copies of a given entry than file2, leave the extra
9181 copies unpaired rather than aborting.
9182 Reported by Eric Blake.
9184 2009-07-02 Bruno Haible <bruno@clisp.org>
9186 Speedup git-merge-changelog for git cherry-pick.
9187 * lib/git-merge-changelog.c (struct entries_mapping): New type.
9188 (entries_mapping_get): New function, extracted from compute_mapping.
9189 (entries_mapping_reverse_get): New function.
9190 (compute_mapping): Add a 'full' argument. Return the result in a
9191 'struct entries_mapping'.
9192 (main): Update. Access the mappings through entries_mapping_get.
9193 Reported by Eric Blake.
9195 2009-07-02 Bruno Haible <bruno@clisp.org>
9197 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
9200 2009-07-02 Bruno Haible <bruno@clisp.org>
9202 Speed up approximate search for matching ChangeLog entries.
9203 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
9204 argument. Call fstrcmp_bounded instead of fstrcmp.
9205 (compute_mapping, try_split_merged_entry, main): Update callers.
9207 2009-07-02 Bruno Haible <bruno@clisp.org>
9209 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
9211 2009-06-30 Bruno Haible <bruno@clisp.org>
9213 Reduce the number of uc_is_cased calls.
9214 * lib/unicase.h (casing_suffix_context_t): Add
9215 'first_char_except_ignorable' field.
9216 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
9217 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
9218 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
9220 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
9221 case-ignorable characters.
9222 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
9223 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
9224 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
9225 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
9226 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
9228 2009-06-30 Bruno Haible <bruno@clisp.org>
9230 Tests for module 'unicase/ignorable'.
9231 * modules/unicase/ignorable-tests: New file.
9232 * tests/unicase/test-ignorable.c: New file, generated by
9235 Tests for module 'unicase/cased'.
9236 * modules/unicase/cased-tests: New file.
9237 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
9238 * tests/unicase/test-predicate-part1.h: New file, derived from
9239 tests/unictype/test-predicate-part1.h.
9240 * tests/unicase/test-predicate-part2.h: New file, same as
9241 tests/unictype/test-predicate-part2.h.
9243 Fix evaluation of "Before C" condition of FINAL_SIGMA.
9244 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
9245 (output_casing_properties): New function.
9247 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
9248 * lib/unicase/cased.c: Include unictype/bitmap.h.
9249 (uc_is_cased): Define through a bitmap lookup.
9250 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
9251 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
9252 (uc_is_case_ignorable): Define through a bitmap lookup.
9253 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
9254 lib/unictype/bitmap.h.
9255 (Depends-on): Add inline. Clean up.
9256 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
9257 lib/unictype/bitmap.h.
9258 (Depends-on): Add inline. Clean up.
9259 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
9261 * tests/unicase/test-u16-tolower.c (main): Likewise.
9262 * tests/unicase/test-u32-tolower.c (main): Likewise.
9264 2009-06-30 Bruno Haible <bruno@clisp.org>
9266 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
9267 * lib/unicase/u16-casemap.c: Likewise.
9268 * lib/unicase/u32-casemap.c: Likewise.
9270 2009-06-29 Bruno Haible <bruno@clisp.org>
9272 Define u32_casefold as a wrapper around u32_ct_casefold.
9273 * lib/unicase/u32-casefold.c: Update.
9274 * modules/unicase/u32-casefold (Depends-on): Add
9275 unicase/u32-ct-casefold, unicase/empty-prefix-context,
9276 unicase/empty-suffix-context. Clean up.
9278 Define u16_casefold as a wrapper around u16_ct_casefold.
9279 * lib/unicase/u16-casefold.c: Update.
9280 * modules/unicase/u16-casefold (Depends-on): Add
9281 unicase/u16-ct-casefold, unicase/empty-prefix-context,
9282 unicase/empty-suffix-context. Clean up.
9284 Define u8_casefold as a wrapper around u8_ct_casefold.
9285 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
9286 * lib/unicase/u8-casefold.c: Update.
9287 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
9288 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9290 Define u32_totitle as a wrapper around u32_ct_totitle.
9291 * lib/unicase/u32-totitle.c: Update.
9292 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
9293 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9295 Define u16_totitle as a wrapper around u16_ct_totitle.
9296 * lib/unicase/u16-totitle.c: Update.
9297 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
9298 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9300 Define u8_totitle as a wrapper around u8_ct_totitle.
9301 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
9303 (FUNC): Delegate to U_CT_TOTITLE.
9304 * lib/unicase/u8-totitle.c: Update.
9305 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
9306 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
9308 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
9310 * modules/unicase/u32-tolower (Depends-on): Add
9311 unicase/empty-prefix-context, unicase/empty-suffix-context.
9313 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
9315 * modules/unicase/u16-tolower (Depends-on): Add
9316 unicase/empty-prefix-context, unicase/empty-suffix-context.
9318 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
9319 * modules/unicase/u8-tolower (Depends-on): Add
9320 unicase/empty-prefix-context, unicase/empty-suffix-context.
9322 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
9324 * modules/unicase/u32-toupper (Depends-on): Add
9325 unicase/empty-prefix-context, unicase/empty-suffix-context.
9327 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
9329 * modules/unicase/u16-toupper (Depends-on): Add
9330 unicase/empty-prefix-context, unicase/empty-suffix-context.
9332 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
9333 * modules/unicase/u8-toupper (Depends-on): Add
9334 unicase/empty-prefix-context, unicase/empty-suffix-context.
9336 New module 'unicase/u32-ct-casefold'.
9337 * lib/unicase/u32-ct-casefold.c: New file.
9338 * modules/unicase/u32-ct-casefold: New file.
9340 New module 'unicase/u16-ct-casefold'.
9341 * lib/unicase/u16-ct-casefold.c: New file.
9342 * modules/unicase/u16-ct-casefold: New file.
9344 New module 'unicase/u8-ct-casefold'.
9345 * lib/unicase/u8-ct-casefold.c: New file.
9346 * lib/unicase/u-ct-casefold.h: New file, derived from
9347 lib/unicase/u-casefold.h.
9348 * modules/unicase/u8-ct-casefold: New file.
9350 New module 'unicase/u32-ct-totitle'.
9351 * lib/unicase/u32-ct-totitle.c: New file.
9352 * modules/unicase/u32-ct-totitle: New file.
9354 New module 'unicase/u16-ct-totitle'.
9355 * lib/unicase/u16-ct-totitle.c: New file.
9356 * modules/unicase/u16-ct-totitle: New file.
9358 New module 'unicase/u8-ct-totitle'.
9359 * lib/unicase/u8-ct-totitle.c: New file.
9360 * lib/unicase/u-ct-totitle.h: New file, derived from
9361 lib/unicase/u-totitle.h.
9362 * modules/unicase/u8-ct-totitle: New file.
9364 New module 'unicase/u32-ct-tolower'.
9365 * lib/unicase/u32-ct-tolower.c: New file.
9366 * modules/unicase/u32-ct-tolower: New file.
9368 New module 'unicase/u16-ct-tolower'.
9369 * lib/unicase/u16-ct-tolower.c: New file.
9370 * modules/unicase/u16-ct-tolower: New file.
9372 New module 'unicase/u8-ct-tolower'.
9373 * lib/unicase/u8-ct-tolower.c: New file.
9374 * modules/unicase/u8-ct-tolower: New file.
9376 New module 'unicase/u32-ct-toupper'.
9377 * lib/unicase/u32-ct-toupper.c: New file.
9378 * modules/unicase/u32-ct-toupper: New file.
9380 New module 'unicase/u16-ct-toupper'.
9381 * lib/unicase/u16-ct-toupper.c: New file.
9382 * modules/unicase/u16-ct-toupper: New file.
9384 New module 'unicase/u8-ct-toupper'.
9385 * lib/unicase/u8-ct-toupper.c: New file.
9386 * modules/unicase/u8-ct-toupper: New file.
9388 Add context arguments to u*_casemap functions.
9389 * lib/unicase/unicasemap.h: Include unicase.h.
9390 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
9391 suffix_context arguments.
9392 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
9394 (FUNC): Add prefix_context and suffix_context arguments. Use
9395 uc_is_cased and uc_is_case_ignorable.
9396 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
9397 * lib/unicase/u16-casemap.c: Likewise.
9398 * lib/unicase/u32-casemap.c: Likewise.
9399 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
9400 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9401 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
9402 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9403 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
9404 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
9406 New module 'unicase/u32-suffix-context'.
9407 * lib/unicase/u32-suffix-context.c: New file.
9408 * modules/unicase/u32-suffix-context: New file.
9410 New module 'unicase/u16-suffix-context'.
9411 * lib/unicase/u16-suffix-context.c: New file.
9412 * modules/unicase/u16-suffix-context: New file.
9414 New module 'unicase/u8-suffix-context'.
9415 * lib/unicase/u8-suffix-context.c: New file.
9416 * lib/unicase/u-suffix-context.h: New file.
9417 * modules/unicase/u8-suffix-context: New file.
9419 New module 'unicase/empty-suffix-context'.
9420 * lib/unicase/empty-suffix-context.c: New file.
9421 * modules/unicase/empty-suffix-context: New file.
9423 New module 'unicase/u32-prefix-context'.
9424 * lib/unicase/u32-prefix-context.c: New file.
9425 * modules/unicase/u32-prefix-context: New file.
9427 New module 'unicase/u16-prefix-context'.
9428 * lib/unicase/u16-prefix-context.c: New file.
9429 * modules/unicase/u16-prefix-context: New file.
9431 New module 'unicase/u8-prefix-context'.
9432 * lib/unicase/u8-prefix-context.c: New file.
9433 * lib/unicase/u-prefix-context.h: New file.
9434 * lib/unicase/context.h: New file.
9435 * modules/unicase/u8-prefix-context: New file.
9437 New module 'unicase/empty-prefix-context'.
9438 * lib/unicase/empty-prefix-context.c: New file.
9439 * modules/unicase/empty-prefix-context: New file.
9441 New module 'unicase/ignorable'.
9442 * lib/unicase/ignorable.c: New file.
9443 * modules/unicase/ignorable: New file.
9445 New module 'unicase/cased'.
9446 * lib/unicase/caseprop.h: New file.
9447 * lib/unicase/cased.c: New file.
9448 * modules/unicase/cased: New file.
9450 New functions for case mapping of substrings.
9451 * lib/unicase.h (casing_prefix_context_t): New type.
9452 (unicase_empty_prefix_context): New variable.
9453 (u8_casing_prefix_context, u16_casing_prefix_context,
9454 u32_casing_prefix_context, u8_casing_prefixes_context,
9455 u16_casing_prefixes_context, u32_casing_prefixes_context): New
9457 (casing_suffix_context_t): New type.
9458 (unicase_empty_suffix_context): New variable.
9459 (u8_casing_suffix_context, u16_casing_suffix_context,
9460 u32_casing_suffix_context, u8_casing_suffixes_context,
9461 u16_casing_suffixes_context, u32_casing_suffixes_context,
9462 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
9463 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
9464 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
9467 2009-06-28 Jim Meyering <meyering@redhat.com>
9469 boostrap: indent only with spaces
9470 * build-aux/bootstrap: Indent only with spaces, never TABs.
9472 bootstrap: split long lines
9473 * build-aux/bootstrap: Keep line length < 80.
9475 bootstrap: sync from coreutils
9476 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
9477 just as autoreconf does. Verify a list of prerequisite
9478 package-name,version-number pairs if defined in bootstrap.conf.
9479 Refer to README-prereq, if prerequisites are not satisfied.
9481 2009-06-27 Eric Blake <ebb9@byu.net>
9483 tests: add test for bogus NULL definition
9484 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
9485 * tests/test-stdlib.c: Likewise.
9486 * tests/test-string.c: Likewise.
9487 * tests/test-locale.c: Likewise.
9488 * tests/test-unistd.c: Likewise.
9489 * modules/stdio-tests (Depends-on): Add verify.
9490 * modules/stdlib-tests (Depends-on): Likewise.
9491 * modules/string-tests (Depends-on): Likewise.
9492 * modules/locale-tests (Depends-on): Likewise.
9493 * modules/unistd-tests (Depends-on): Likewise.
9495 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
9497 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
9498 self-explaining comment.
9499 * m4/selinux-selinux-h: Update serial.
9500 (gl_LIBSELINUX): New macro, adding a warning for missing development
9501 packages to code extracted from...
9502 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
9503 Add warning for missing development packages here, too.
9505 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
9507 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
9509 2009-06-25 Eric Blake <ebb9@byu.net>
9511 version-etc: fix regression
9512 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
9514 (version_etc): Use it, to catch bugs with trailing NULL.
9515 * lib/version-etc.c (version_etc_arn): Delete unused argument.
9516 (version_etc_va): Fix logic bug.
9517 * modules/version-etc-tests: Add test.
9518 * tests/test-version-etc.c: New file.
9519 * tests/test-version-etc.sh: Likewise.
9521 2009-06-25 Sam Steingold <sds@gnu.org>
9523 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
9526 2009-06-25 Eric Blake <ebb9@byu.net>
9528 fpurge: migrate into <stdio.h>
9529 * lib/fpurge.h: Delete...
9530 * lib/stdio.in.h (fpurge): ...and declare here, instead.
9531 * lib/fpurge.c (fpurge): Change declaring header.
9532 * modules/fpurge (Files): Drop deleted file.
9533 (Depends-on): Add stdio.
9534 (configure.ac): Set witness.
9535 * modules/stdio (Makefile.am): Support fpurge macros.
9536 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
9537 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
9538 * lib/fflush.c: Update client.
9539 * tests/test-fpurge.c: Likewise.
9540 * NEWS: Mention the change.
9542 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
9544 * lib/argp-version-etc.c (program_authors): Add const
9546 * lib/version-etc.c: Fix typos in the comments.
9547 * modules/argp-version-etc: Depends on version-etc.
9549 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
9551 argp-version-etc: new module.
9553 * lib/argp-version-etc.c: New file.
9554 * lib/argp-version-etc.h: New file.
9555 * modules/argp-version-etc: New file.
9556 * modules/argp-version-etc-tests: New file.
9557 * tests/test-argp-version-etc.c: New test.
9558 * tests/test-argp-version-etc-1.sh: New test.
9560 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
9562 Provide additional interfaces and documentation for version-etc
9565 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
9567 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
9570 2009-06-24 Bruno Haible <bruno@clisp.org>
9572 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
9573 HAVE_LIB${NAME} macro.
9574 Reported by Sam Steingold <sds@gnu.org>.
9576 2009-06-23 Simon Josefsson <simon@josefsson.org>
9578 * modules/hash-tests (test_hash_LDADD): Link to libintl when
9581 2009-06-21 Bruno Haible <bruno@clisp.org>
9583 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
9585 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
9586 together with LIB${NAME}, LTLIB${NAME}.
9587 Reported by Sam Steingold <sds@gnu.org>.
9589 2009-06-20 Jim Meyering <meyering@redhat.com>
9591 tests: make sc_require_test_exit_idiom more generic
9592 * top/maint.mk (Exit_witness_file): New overridable variable.
9593 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
9594 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
9596 2009-06-19 Jim Meyering <meyering@redhat.com>
9598 hash: reverse order of src/dst parameters in an internal interface
9599 * lib/hash.c (transfer_entries): Reverse order of parameters to
9600 put DST before SRC. Adjust callers.
9602 tests: test-hash: avoid wholesale duplication
9603 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
9604 Instead, use a loop and add a single conditional.
9606 tests: test-hash: allow seed selection via a command line argument
9607 * tests/test-hash.c (get_seed): New function.
9610 2009-06-19 Eric Blake <ebb9@byu.net>
9612 hash: avoid memory leak on allocation failure
9613 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
9614 failure. Factor repeated algorithm...
9615 (transfer_entries): ...into new helper routine.
9616 (hash_delete): React to hash_rehash return value.
9618 hash: reduce memory pressure in hash_rehash no-op case
9619 * lib/hash.c (next_prime): Avoid overflow.
9620 (hash_initialize): Factor bucket size computation...
9621 (compute_bucket_size): ...into new helper function.
9622 (hash_rehash): Use new function and open coding to reduce memory
9623 pressure, and avoid a memory leak in USE_OBSTACK code.
9624 Reported by Jim Meyering.
9626 2009-06-18 Eric Blake <ebb9@byu.net>
9628 hash: make rotation more obvious
9629 * modules/hash (Depends-on): Add bitrotate and stdint.
9630 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
9631 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
9632 (SIZE_MAX): Rely on headers for definition.
9633 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
9634 (raw_hasher): Use rotr_sz.
9635 Suggested by Jim Meyering.
9637 hash: fix memory leak in last patch
9638 * lib/hash.c (hash_rehash): Avoid memory leak.
9640 hash: avoid no-op rehashing
9641 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
9643 hash: provide default callback functions
9644 * lib/hash.c (raw_hasher, raw_comparator): New functions.
9645 (hash_initialize): Use them as defaults.
9646 * tests/test-hash.c (main): Test this.
9648 hash: minor optimization
9649 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
9651 (hash_initialize): Document this promise.
9652 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
9653 * tests/test-hash.c (hash_compare_strings): Test this.
9655 2009-06-18 Bruno Haible <bruno@clisp.org>
9657 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
9658 going to be replaced anyway.
9660 2009-06-18 Bruno Haible <bruno@clisp.org>
9662 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
9664 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
9667 2009-06-18 Eric Blake <ebb9@byu.net>
9669 hash: check for resize before insertion
9670 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
9671 threshold before insertion, so that a pathological hash_rehash
9672 that fills every bucket can still trigger another rehash.
9674 2009-06-18 Jim Meyering <meyering@redhat.com>
9676 hash-tests: add a loop around the small tests
9677 * tests/test-hash.c (main): Repeat small tests with selected
9678 small initial table sizes.
9680 2009-06-17 Eric Blake <ebb9@byu.net>
9682 hash: minor cleanups
9683 * lib/hash.h (hash_entry): Make opaque, by moving...
9684 * lib/hash.c (hash_entry): ...here.
9685 (hash_insert): Clarify restrictions on what can be inserted.
9686 (hash_get_next): Clarify when it is safe to remove an element
9688 (check_tuning): Skip verification when tuning is known safe.
9689 (hash_initialize): Clarify restrictions on tuning.
9691 2009-06-17 Jim Meyering <jim@meyering.net>
9692 and Eric Blake <ebb9@byu.net>
9694 hash-tests: new module
9695 * modules/hash-tests: New file.
9696 * tests/test-hash.c: New file.
9698 2009-06-17 Eric Blake <ebb9@byu.net>
9700 strstr-simple: document new module
9701 * MODULES.html.sh: Document new module.
9703 strstr, strcasestr: replace on platforms with broken memchr
9704 * modules/strstr: Split into...
9705 * modules/strstr-simple: ...new module that does not care about
9706 performance, but does care about glibc bug.
9707 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
9708 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
9709 if platform memchr is broken, per Debian bug 521737.
9710 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
9712 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
9713 * doc/posix-functions/strstr.texi (strstr): Document the fix.
9714 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
9715 * modules/mountlist (Depends-on): Add strstr-simple.
9716 * modules/gen-uni-tables (Depends-on): Likewise.
9717 * modules/argz (Depends-on): Add strstr.
9719 2009-06-17 Bruno Haible <bruno@clisp.org>
9721 * modules/posix_spawn-internal (Depends-on): Add errno.
9723 2009-06-17 Bruno Haible <bruno@clisp.org>
9725 Define missing ESTALE on Interix 3.5.
9726 * lib/errno.in.h (ESTALE): Assign a value if missing.
9727 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
9728 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
9730 * doc/posix-headers/errno.texi: Mention the Interix bug.
9731 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
9733 2009-06-15 Eric Blake <ebb9@byu.net>
9735 memchr, memchr2: add valgrind exception
9736 * lib/memchr.valgrind: New file.
9737 * lib/memchr2.valgrind: New file.
9738 * modules/memchr (Files): Distribute valgrind file.
9739 * modules/memchr2 (Files): Likewise.
9741 docs: memchr is no longer obsolete
9742 * MODULES.html.sh: Move memchr from obsolete to string.h section.
9743 * lib/string.in.h (memchr): Simplify logic.
9745 2009-06-14 Jim Meyering <meyering@redhat.com>
9747 link-follow: fix the "checking..." message to not mention trailing slash
9748 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
9749 never considered trailing slashes.
9751 2009-06-14 Bruno Haible <bruno@clisp.org>
9753 * m4/memchr.m4: Mention also the bug on IA-64.
9754 * doc/posix-functions/memchr.texi: Likewise.
9756 2009-06-12 Eric Blake <ebb9@byu.net>
9758 memchr: detect broken x86_64 and alpha implementations
9759 * modules/memchr-tests (Depends-on): Move mmap detection...
9760 * modules/memchr (Depends-on): ...here.
9761 (configure.ac): Set indicator.
9762 * lib/string.in.h (memchr): Declare replacement.
9763 * modules/string (Makefile.am): Trigger replacement.
9764 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
9765 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
9767 * doc/posix-functions/memchr.texi (memchr): Document the bug.
9768 * modules/getpagesize (License): Relax license.
9770 2009-06-11 Bruno Haible <bruno@clisp.org>
9772 * lib/idpriv.h: Add more references.
9774 2009-06-08 Bruno Haible <bruno@clisp.org>
9776 Tests for module 'idpriv-droptemp'.
9777 * modules/idpriv-droptemp-tests: New file.
9778 * tests/test-idpriv-droptemp.sh: New file.
9779 * tests/test-idpriv-droptemp.su.sh: New file.
9780 * tests/test-idpriv-droptemp.c: New file.
9782 New module 'idpriv-droptemp'.
9783 * lib/idpriv-droptemp.c: New file.
9784 * modules/idpriv-droptemp: New file.
9786 2009-06-08 Bruno Haible <bruno@clisp.org>
9788 Tests for module 'idpriv-drop'.
9789 * modules/idpriv-drop-tests: New file.
9790 * tests/test-idpriv-drop.sh: New file.
9791 * tests/test-idpriv-drop.su.sh: New file.
9792 * tests/test-idpriv-drop.c: New file.
9794 New module 'idpriv-drop'.
9795 * lib/idpriv.h: New file.
9796 * lib-idpriv-drop.c: New file.
9797 * m4/idpriv.m4: New file.
9798 * modules/idpriv-drop: New file.
9800 2009-06-08 Bruno Haible <bruno@clisp.org>
9802 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
9803 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9804 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9805 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9806 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9807 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9808 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9810 2009-06-08 Eric Blake <ebb9@byu.net>
9812 test-strstr: use memory fence, when possible
9813 * tests/test-strstr.c (main): Use memory fence, in order to be
9814 more likely to trigger Debian bug 521737.
9815 * modules/strstr-tests (Files): Pull in additional files.
9817 memchr: no longer obsolete, for wider field testing
9818 * modules/memchr (Status, Notice): Delete, this module is no
9820 * modules/vasnprintf (Depends-on): Add memchr.
9822 2009-06-07 Jim Meyering <meyering@redhat.com>
9824 hash: declare some functions with the warn_unused_result attribute
9825 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
9827 2009-06-07 Bruno Haible <bruno@clisp.org>
9829 * tests/test-alignof.c: Don't test int64_t if it does not exist.
9830 Reported by Eric Blake.
9832 2009-06-06 Eric Blake <ebb9@byu.net>
9834 test-alignof: fix typo with long double
9835 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
9838 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
9840 Escape non-texinfo { and }s.
9841 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
9844 2009-06-04 Jim Meyering <meyering@redhat.com>
9846 gitlog-to-changelog: don't infloop on an empty commit log
9847 * build-aux/gitlog-to-changelog: Warn about an empty log message.
9848 Reported by Boris Petersen <transacid@centerim.org>.
9850 2009-06-03 Mike Frysinger <vapier@gentoo.org>
9852 version-etc: extend for packagers
9853 Add three new configure options, intended for packagers:
9854 --with-packager="packager name"
9855 --with-packager-version="packager-specific version"
9856 --with-packager-bug-reports="packager bug reporting"
9857 An example with coreutils:
9859 --with-packager=Gentoo \
9860 --with-packager-bug-report=http://bugs.gentoo.org/ \
9861 --with-packager-version="patchset 1.6"
9862 $ ./src/ls --version | head -n2
9863 ls (GNU coreutils) 7.1-dirty
9864 Packaged by Gentoo (patchset 1.6)
9865 Note that the bug reporting info via --help doesn't show up because
9866 coreutils uses its own custom emit_bug_reporting_address() implementation
9867 in src/system.h. If it didn't, it'd look like:
9868 $ ./src/ls --help | tail -n4
9869 Report bugs to <bug-coreutils@gnu.org>.
9870 Report Gentoo bugs to <http://bugs.gentoo.org/>.
9871 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
9872 General help using GNU software: <http://www.gnu.org/gethelp/>.
9873 * lib/version-etc.c: Print new information, if provided.
9874 * m4/version-etc.m4: New file.
9875 * modules/version-etc (Files): Add m4/version-etc.m4.
9876 (configure.ac): Add gl_VERSION_ETC.
9878 2009-05-31 Bruno Haible <bruno@clisp.org>
9880 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
9882 * modules/alignof-tests (Dependencies): Add stdint.
9883 Reported by Eric Blake.
9885 2009-05-31 Bruno Haible <bruno@clisp.org>
9887 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
9888 restriction due to compiler bugs.
9889 Reported by Eric Blake.
9891 2009-05-31 Simon Josefsson <simon@josefsson.org>
9892 Bruno Haible <bruno@clisp.org>
9894 Fix test-alignof failure.
9895 * lib/alignof.h (alignof_slot): New macro.
9896 (alignof_type): New macro, with the same semantics as the previous
9898 (alignof): Alias to alignof_slot.
9899 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
9900 check that the results are usable as constant expressions.
9902 2009-05-31 Bruno Haible <bruno@clisp.org>
9904 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
9905 * tests/test-memchr.c (main): Check that memchr does not read past the
9906 first occurrence of the byte.
9907 * tests/test-strstr.c (main): Update comment.
9908 Suggested by Eric Blake.
9910 2009-05-30 Bruno Haible <bruno@clisp.org>
9912 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
9913 detail how to use dumpbin.
9914 Reported by David Byron <dbyron@dbyron.com>.
9916 2009-06-02 Simon Josefsson <simon@josefsson.org>
9918 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
9920 2009-06-02 Simon Josefsson <simon@josefsson.org>
9922 * m4/manywarnings.m4: Add GCC 4.4 warnings.
9924 2009-05-28 Bruno Haible <bruno@clisp.org>
9926 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
9929 2009-05-28 Simon Josefsson <simon@josefsson.org>
9931 * gnulib-tool (func_import): Transform license on build-aux/ files too.
9933 2009-05-27 Simon Josefsson <simon@josefsson.org>
9935 * gnulib-tool (sed_transform_main_lib_file)
9936 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
9939 2009-05-26 Simon Josefsson <simon@josefsson.org>
9941 * tests/test-strstr.c: Add another self-test.
9942 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
9943 strdup. Suggested by Eric Blake <ebb9@byu.net>.
9945 2009-05-23 Bruno Haible <bruno@clisp.org>
9947 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
9950 2009-05-21 Bruno Haible <bruno@clisp.org>
9952 Simplify use of mode_t varargs.
9953 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
9954 uses 'mode_t' or 'int'.
9955 * lib/openat.c (openat): Likewise.
9956 * lib/open-safer.c (open_safer): Likewise.
9957 * m4/mode_t.m4: New file.
9958 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
9959 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
9960 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
9961 * modules/open (Files): Add m4/mode_t.m4.
9962 * modules/openat (Files): Likewise.
9963 * modules/fcntl-safer (Files): Likewise.
9964 Suggested by Eric Blake.
9966 2009-05-21 Pádraig Brady <P@draigbrady.com>
9968 * doc/glibc-functions/fallocate.texi: New file.
9969 * doc/gnulib.texi: Include it.
9971 2009-05-21 Eric Blake <ebb9@byu.net>
9972 Bruno Haible <bruno@clisp.org>
9974 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
9976 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
9978 2009-05-21 Eric Blake <ebb9@byu.net>
9979 Bruno Haible <bruno@clisp.org>
9981 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
9982 include_next. Fix of 2008-11-20 commit.
9983 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
9984 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
9985 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
9987 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
9988 instead of NEXT_MATH_H.
9990 2009-05-21 Bruno Haible <bruno@clisp.org>
9992 Avoid redefinition warnings for SIZE_MAX.
9993 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
9994 Reported by Simon Josefsson.
9996 2009-05-21 Bruno Haible <bruno@clisp.org>
9998 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
10001 2009-05-20 Bruno Haible <bruno@clisp.org>
10003 Make zeroptr.h work on mingw.
10004 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
10006 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
10007 * modules/memchr2-tests (configure.ac): Likewise.
10008 * modules/memcmp-tests (configure.ac): Likewise.
10009 * modules/memmem-tests (configure.ac): Likewise.
10010 * modules/memrchr-tests (configure.ac): Likewise.
10011 Reported by Simon Josefsson.
10013 2009-05-20 Simon Josefsson <simon@josefsson.org>
10015 * tests/test-glob.c: Include string.h for strcmp prototype.
10017 2009-05-20 Simon Josefsson <simon@josefsson.org>
10019 * modules/getdelim (Depends-on): Add explicit stdint, although it
10020 was implicitly already pulled in via realloc-posix.
10021 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
10023 2009-05-20 Simon Josefsson <simon@josefsson.org>
10025 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
10026 G. Christensen" <tgc@jupiterrise.com>.
10027 * m4/sys_socket_h.m4: Check for sa_family_t.
10028 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
10029 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
10030 * tests/test-sys_socket.c: Check that sa_family_t works.
10032 2009-05-18 Eric Blake <ebb9@byu.net>
10034 maint.mk: allow gnulib_dir in VPATH build
10035 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
10037 2009-05-15 Jim Meyering <meyering@redhat.com>
10039 maint.mk: Give gnulib_dir a default definition.
10040 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
10041 Thus, most packages no longer need to specify this variable in cfg.mk
10043 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
10045 rename.m4: fix typos that would make non-mingw cross-configure fail
10046 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
10048 2009-05-13 Eric Blake <ebb9@byu.net>
10050 mmap-anon: avoid out-of-order autoconf expansion
10051 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
10052 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
10053 * modules/memchr-tests (Depends-on): Add extensions.
10054 * modules/memchr2-tests (Depends-on): Add extensions.
10055 * modules/memcmp-tests (Depends-on): Add extensions.
10056 * modules/memmem-tests (Depends-on): Add extensions.
10057 * modules/memrchr-tests (Depends-on): Add extensions.
10059 2009-05-13 Bruno Haible <bruno@clisp.org>
10061 Make some tests ISO C 99 compliant.
10062 * tests/zerosize-ptr.h: New file.
10063 * tests/test-memchr.c: Include zerosize-ptr.h.
10064 (main): Use a zero-size object pointer instead of NULL.
10065 * tests/test-memchr2.c: Include zerosize-ptr.h.
10066 (main): Use a zero-size object pointer instead of NULL.
10067 * tests/test-memcmp.c: Include zerosize-ptr.h.
10068 (main): Use a zero-size object pointer instead of NULL.
10069 * tests/test-memmem.c: Include zerosize-ptr.h.
10070 (main): Use a zero-size object pointer instead of NULL.
10071 * tests/test-memrchr.c: Include zerosize-ptr.h.
10072 (main): Use a zero-size object pointer instead of NULL.
10073 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
10075 (Depends-on): Add getpagesize.
10076 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10077 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
10079 (Depends-on): Add getpagesize.
10080 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10081 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
10083 (Depends-on): Add getpagesize.
10084 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10085 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
10087 (Depends-on): Add getpagesize.
10088 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10089 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
10091 (Depends-on): Add getpagesize.
10092 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
10094 2009-05-12 Bruno Haible <bruno@clisp.org>
10096 Tests for module 'alignof'.
10097 * modules/alignof-tests: New file.
10098 * tests/test-alignof.c: New file.
10100 2009-05-12 Bruno Haible <bruno@clisp.org>
10103 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
10104 vendor compilers that are always correct.
10106 2009-05-12 Bruno Haible <bruno@clisp.org>
10108 Make the MAP_ANONYMOUS detection work on HP-UX 11.
10109 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
10110 not whether its fully works.
10112 2009-05-12 Bruno Haible <bruno@clisp.org>
10114 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
10116 2009-05-12 Jim Meyering <meyering@redhat.com>
10118 * top/maint.mk: Adjust backslash alignment.
10120 2009-05-11 Simon Josefsson <simon@josefsson.org>
10122 * top/maint.mk: Make $(srcdir)/build-aux configurable.
10124 2009-05-11 Eric Blake <ebb9@byu.net>
10126 argp: avoid undefined behavior
10127 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
10130 2009-05-08 Simon Josefsson <simon@josefsson.org>
10132 * tests/test-vc-list-files-git.sh: Do git config of user.email and
10133 user.name to prevent git commit from complaining.
10135 2009-05-10 Bruno Haible <bruno@clisp.org>
10137 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
10138 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
10139 it rewrites every file name only once.
10140 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
10142 2009-05-08 Bruno Haible <bruno@clisp.org>
10144 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
10147 2009-05-08 Simon Josefsson <simon@josefsson.org>
10149 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
10150 sockaddr_storage test.
10152 2009-05-07 Simon Josefsson <simon@josefsson.org>
10154 * modules/sys_socket (Makefile.am): Substitute
10155 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
10156 * m4/sys_socket_h.m4: Check for sockaddr_storage.
10157 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
10158 * tests/test-sys_socket.c: Check sockaddr_storage.
10160 2009-05-08 Bruno Haible <bruno@clisp.org>
10162 New module 'alignof'.
10163 * lib/alignof.h: New file.
10164 * modules/alignof: New file.
10166 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
10167 Bruno Haible <bruno@clisp.org>
10169 Fix test-file-has-acl on FreeBSD.
10170 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
10171 mask is implicitly added.
10172 * tests/test-file-has-acl.c: Include <signal.h>.
10173 (main): Terminate the test after 5 seconds.
10174 * modules/acl-tests (configure.ac): Check for alarm function.
10176 2009-05-04 Bruno Haible <bruno@clisp.org>
10178 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
10179 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
10180 * modules/errno (configure.ac): Drop AC_REQUIRE.
10181 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
10182 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
10184 2009-05-04 Simon Josefsson <simon@josefsson.org>
10186 * modules/glob-tests: New module.
10187 * tests/test-glob.c: Add.
10189 2009-05-04 Simon Josefsson <simon@josefsson.org>
10191 * modules/fnmatch-tests: New module.
10192 * tests/test-fnmatch.c: Add.
10194 2009-05-04 Eric Blake <ebb9@byu.net>
10196 maint: make the new no-submodule-changes rule VPATH-safe
10197 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
10199 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
10200 Bruno Haible <bruno@clisp.org>
10202 acl: Fix infinite loop on FreeBSD.
10203 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
10204 of return value from acl_get_entry.
10205 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
10208 2009-05-03 Bruno Haible <bruno@clisp.org>
10210 * lib/acl-internal.h (acl_entries): Clarify return value.
10211 * lib/acl_entries.c (acl_entries): Likewise.
10213 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
10215 Bug fix in acl module.
10216 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
10218 2009-05-03 Bruno Haible <bruno@clisp.org>
10220 Create gperf-generated file in the source dir, not in the build dir.
10221 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
10222 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
10223 * modules/unicase/locale-language (unicase/locale-languages.h):
10225 * modules/unicase/special-casing (unicase/special-casing-table.h):
10227 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
10228 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
10229 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
10230 Reported by Ralf Wildenhues.
10232 2009-05-03 Bruno Haible <bruno@clisp.org>
10234 * modules/fnmatch (Description, configure.ac): Taken from
10236 * modules/fnmatch-posix: Turn into a symbolic reference to the
10237 'fnmatch' module, and deprecate.
10238 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
10240 2009-05-03 Bruno Haible <bruno@clisp.org>
10242 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
10243 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
10244 Reported by Ralf Wildenhues.
10246 2009-05-04 Simon Josefsson <simon@josefsson.org>
10248 * m4/fnmatch.m4: Fix fnmatch re-define.
10250 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
10252 priv-set: new module and tests; adapt write-any-file
10253 * lib/priv-set.c: New file.
10254 * lib/priv-set.h: New file.
10255 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
10256 * lib/write-any-file.c: Simplify by using priv-set module.
10257 * m4/priv-set.m4: New file.
10258 * modules/priv-set: New file.
10259 * modules/unlinkdir: Add dependency on priv-set module.
10260 * modules/write-any-file: Likewise.
10262 Tests for module 'priv-set'.
10263 * modules/priv-set-tests: New file.
10264 * tests/test-priv-set.c: New file.
10266 2009-05-03 Jim Meyering <meyering@redhat.com>
10267 Bruno Haible <bruno@clisp.org>
10269 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
10270 use the converted UTF-8 variant of the name instead.
10272 2009-05-03 Jim Meyering <meyering@redhat.com>
10274 tests: tighten some getdate tests
10275 * tests/test-getdate.c (main): Tighten tests: require equality,
10276 not just greater than. Set TZ envvar to UTC0.
10278 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
10280 getdate: correctly interpret "next monday" when run on a Monday
10281 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
10282 that e.g., "next tues" (when run on a tuesday) results in a date
10283 that is one week in the future, and not today's date.
10284 I.e., add a week when the wday is the same as the current one.
10285 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
10286 and earlier by Martin Bernreuther and Jan Minář.
10287 * tests/test-getdate.c (main): Check that "next DAY" is always in
10288 the future and that "last DAY" is always in the past.
10290 2009-05-02 Jim Meyering <meyering@redhat.com>
10292 build: ensure that a release build fails when a submodule is unclean
10293 * top/maint.mk (no-submodule-changes): New rule.
10294 (alpha beta major): Depend on it.
10296 2009-05-02 Bruno Haible <bruno@clisp.org>
10298 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
10299 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
10300 shell variable gl_fnmatch_required to detect which variant is
10302 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
10303 gl_FUNC_FNMATCH_POSIX.
10304 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
10305 exclude fnmatch-posix.
10307 2009-05-02 Bruno Haible <bruno@clisp.org>
10309 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
10310 * modules/mbsrtowcs (License): Change to LGPLv2+.
10311 * modules/strnlen1 (License): Likewise.
10312 Reported by Simon Josefsson.
10314 2009-05-02 Bruno Haible <bruno@clisp.org>
10316 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
10318 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
10319 gnulib-tool was called with option --source-base=lib.
10321 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10323 Use automake *-local hooks without commands, for extensibility.
10324 * modules/localcharset (Makefile.am): Rename install-exec-local
10325 rule to install-exec-localcharset, and make it a prerequisite of
10326 install-exec-local. Likewise, rename the uninstall-local rule to
10327 uninstall-localcharset, and make it a prerequisite of the former.
10329 2009-05-01 Bruno Haible <bruno@clisp.org>
10331 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
10332 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10333 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
10334 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
10335 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
10336 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10337 m4/locale-zh.m4, m4/codeset.m4.
10339 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
10340 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
10341 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
10344 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
10345 REPLACE_WCRTOMB if mbstate_t must be replaced.
10346 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
10347 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
10349 2009-05-01 Bruno Haible <bruno@clisp.org>
10351 Avoid compiler warnings when redefining macros defined by <libintl.h>.
10352 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
10353 dngettext, dcngettext, textdomain, bindtextdomain,
10354 bind_textdomain_codeset): Undefine before redefining.
10356 2009-04-30 Bruno Haible <bruno@clisp.org>
10358 Fix bug introduced on 2009-04-25.
10359 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
10360 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
10361 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
10363 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
10365 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
10367 Reported by Elbert_Pol <elbert.pol@gmail.com>.
10369 2009-04-28 Bruno Haible <bruno@clisp.org>
10372 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
10373 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
10374 * lib/unicase.h (u*_casexfrm): Likewise.
10375 Reported by Paolo Bonzini.
10377 2009-04-28 Bruno Haible <bruno@clisp.org>
10379 Fix a compilation error.
10380 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
10381 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
10382 Reported by Jim Meyering.
10384 2009-04-27 Bruno Haible <bruno@clisp.org>
10386 New module 'libunistring'.
10387 * modules/libunistring: New file.
10388 * m4/libunistring.m4: New file.
10389 * MODULES.html.sh (Unicode string functions): Add it.
10391 2009-04-27 Eric Blake <ebb9@byu.net>
10393 maint.mk: allow package-specific header to provide <config.h>
10394 * top/maint.mk (sc_require_config_h): New variable.
10395 (sc_require_config_h, sc_require_config_h_first): Use it.
10397 2009-04-27 Simon Josefsson <simon@josefsson.org>
10399 * top/maint.mk (sc_avoid_if_before_free): Except
10400 useless-if-before-free script.
10402 2009-04-27 Eric Blake <ebb9@byu.net>
10404 maintainer-makefile: depend on all required helper scripts
10405 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
10406 useless-if-before-free.
10407 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
10408 version, rather than assuming gnulib checkout is available.
10409 Reported by Simen Josefsson.
10411 2009-04-26 Bruno Haible <bruno@clisp.org>
10413 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
10414 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
10417 2009-04-26 Bruno Haible <bruno@clisp.org>
10419 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
10420 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
10421 AC_LIB_HAVE_LINKFLAGS.
10423 2009-04-26 Bruno Haible <bruno@clisp.org>
10425 Simplify calling convention of u*_conv_from_encoding.
10426 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
10427 u32_conv_from_encoding): Expect a resultbuf argument and return the
10428 result directly as a pointer.
10429 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
10430 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
10431 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
10432 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
10433 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
10434 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10436 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
10437 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
10438 * lib/vasnprintf.c (VASNPRINTF): Update.
10439 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
10440 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
10441 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
10442 * NEWS: Mention the change.
10444 2009-04-26 Bruno Haible <bruno@clisp.org>
10446 Simplify calling convention of u*_conv_to_encoding.
10447 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
10448 u32_conv_to_encoding): Expect a resultbuf argument and return the
10449 result directly as a pointer.
10450 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10451 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
10452 freeing scaled_offsets if mem_iconveha failed.
10453 * lib/unicase/u-casexfrm.h (FUNC): Update.
10454 * lib/uninorm/u-normxfrm.h (FUNC): Update.
10455 * lib/vasnprintf.c (VASNPRINTF): Update.
10456 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
10457 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
10458 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
10459 * NEWS: Mention the change.
10461 2009-04-26 Bruno Haible <bruno@clisp.org>
10463 Avoid test failures on AIX and OSF/1.
10464 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
10466 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
10467 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
10469 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
10470 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
10471 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
10472 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
10473 * doc/posix-functions/malloc.texi: Document the portability problem
10474 related to malloc(0).
10476 2009-04-26 Bruno Haible <bruno@clisp.org>
10478 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
10479 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
10480 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
10482 2009-04-25 Bruno Haible <bruno@clisp.org>
10484 Avoid link error when creating a namespace clean library.
10485 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
10486 as macro with arguments if already defined as an alias.
10487 * lib/signbitf.c (gl_signbitf): Don't undefine.
10488 * lib/signbitd.c (gl_signbitd): Don't undefine.
10489 * lib/signbitl.c (gl_signbitl): Don't undefine.
10491 2009-04-25 Jim Meyering <meyering@redhat.com>
10493 vc-list-files: fix another quoting bug
10494 * build-aux/vc-list-files: Avoid sed backslash expansion
10495 of pathological directory names.
10497 2009-04-25 Eric Blake <ebb9@byu.net>
10499 vc-list-files: fix shell quoting error
10500 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
10503 2009-04-25 Jim Meyering <meyering@redhat.com>
10505 vc-list-files: restore lost functionality with subdir argument
10506 * build-aux/vc-list-files: When given a non-"." sub-directory
10507 argument, substitute the $dir/ prefix back onto each resulting name.
10508 Otherwise, coreutils' root_tests check would fail.
10510 2009-04-24 Eric Blake <ebb9@byu.net>
10512 vc-list-files: ignore git symlinks
10513 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
10514 than ls-files, to ignore git symlinks.
10516 maint.mk: import improvements from m4
10517 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
10518 (move_if_change): Delete unused macro.
10519 (news-date-check, vc-diff-check): Support VPATH builds.
10520 (announcement): Likewise. Split --bootstrap-tools list...
10521 (boostrap-tools): ...into separate list, which can be overridden
10523 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
10524 requiring dependency on useless-if-before-free module.
10525 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
10526 Support VPATH builds.
10528 2009-04-24 Jim Meyering <meyering@redhat.com>
10530 maint.mk: remove coreutils-specific rules and variables
10531 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
10532 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
10533 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
10535 maint.mk: remove obsolete rule
10536 * top/maint.mk (rel-check): Remove rule.
10537 (WGET, WGETFLAGS): Remove now-unused variables.
10539 2009-04-24 Simon Josefsson <simon@josefsson.org>
10541 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
10544 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
10545 '$(PATH_SEPARATOR)' instead of ':'.
10547 2009-04-24 Simon Josefsson <simon@josefsson.org>
10549 * lib/getopt1.c (main): Use 'const' for static array.
10551 2009-04-24 Simon Josefsson <simon@josefsson.org>
10553 * top/maint.mk: Sync with coreutils.
10554 * NEWS: Explain incompatibilities.
10556 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
10557 Bruno Haible <bruno@clisp.org>
10559 Fix cross-compilation results.
10560 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
10561 statement, as third argument of AC_TRY_RUN.
10562 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
10563 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
10565 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
10566 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
10568 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10569 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
10570 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
10572 2009-04-20 Bruno Haible <bruno@clisp.org>
10574 Avoid test failure on mingw.
10575 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
10577 2009-04-20 Bruno Haible <bruno@clisp.org>
10579 Avoid compilation error on mingw.
10580 * modules/localename-tests (Depends-on): Add locale.
10582 2009-04-19 Bruno Haible <bruno@clisp.org>
10584 Support for building a shared library on Windows platforms.
10585 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
10586 (main): Test the presence of UNINORM_NFC here.
10587 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
10588 (main): Test the presence of UNINORM_NFD here.
10589 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
10590 (main): Test the presence of UNINORM_NFKC here.
10591 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
10592 (main): Test the presence of UNINORM_NFKD here.
10594 2009-04-19 Bruno Haible <bruno@clisp.org>
10596 Avoid a compiler warning.
10597 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
10598 Change type of variable 'sequence'.
10600 2009-04-19 Bruno Haible <bruno@clisp.org>
10602 * modules/configmake (Makefile.am): When the contents of configmake.h
10603 does not change, arrange to preserve its modification time.
10605 2009-04-17 Simon Josefsson <simon@josefsson.org>
10607 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
10610 2009-04-16 Jim Meyering <meyering@redhat.com>
10612 useless-if-before-free: improve conversion code
10613 * build-aux/useless-if-before-free: Adjust code-in-comment to match
10614 "...!= 0" as well as "...!= NULL". emacs has one of the former.
10616 2009-04-14 Bruno Haible <bruno@clisp.org>
10618 * modules/fcntl (Depends-on): Add extensions.
10619 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
10621 2009-04-12 Ben Pfaff <blp@gnu.org>
10623 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
10624 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
10626 2009-03-20 Ben Pfaff <blp@gnu.org>
10628 Make rename replace existing destinations on Windows.
10629 * m4/rename.m4: Add test for Mingw.
10630 * lib/rename.c: Add rename replacement that uses MoveFileEx with
10631 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
10632 * doc/posix-functions/rename.texi: Document.
10634 2009-04-10 Bruno Haible <bruno@clisp.org>
10636 New include file "iconveh.h".
10637 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
10638 * lib/striconveh.h: Include it.
10639 (enum iconv_ilseq_handler): Remove definition.
10640 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
10642 * lib/striconveha.c: Include striconveh.h.
10643 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
10644 * modules/striconveh (Files): Add lib/iconveh.h.
10645 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
10648 2009-04-10 Bruno Haible <bruno@clisp.org>
10650 * lib/uniconv.h: Update comment.
10652 2009-04-10 Bruno Haible <bruno@clisp.org>
10654 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
10656 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
10657 * lib/unistr/u16-mbtouc-aux.c: Likewise.
10658 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
10659 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
10660 "unistring-notinline.h", so that the function gets defined always.
10661 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
10662 * lib/unistr/u8-uctomb.c: Likewise.
10663 * lib/unistr/u16-mbtouc.c: Likewise.
10664 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
10665 * lib/unistr/u16-uctomb.c: Likewise.
10666 * lib/unistr/u32-mbtouc.c: Likewise.
10667 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
10668 * lib/unistr/u32-uctomb.c: Likewise.
10670 2009-04-10 Bruno Haible <bruno@clisp.org>
10672 Mark 'utime' obsolete.
10673 * modules/utime (Status, Notice): New sections.
10674 Suggested by Jim Meyering.
10676 Fix cross-compile guess for utime test.
10677 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
10679 * doc/posix-functions/utime.texi: Give more precisions.
10680 Reported by Jan <ipif@ymail.com>.
10682 2009-04-09 Kamil Dudka <kdudka@redhat.com>
10684 filevercmp: correct today's change
10685 * lib/filevercmp.c: Also handle coreutils' test inputs.
10686 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
10688 Fix regression in 'filevercmp' module. Thanks Sven Joachim
10690 * lib/filevercmp.c: Special handle for "", "." and "..".
10691 * tests/test-filevercmp.c: Enlarge the set suite.
10693 2009-04-07 Jim Meyering <meyering@redhat.com>
10695 useless-if-before-free: show how to remove braced useless free, too
10696 * build-aux/useless-if-before-free: still only in a comment, though.
10698 2009-04-07 Reuben Thomas <rrt@sc3d.org>
10700 maint.mk: import changes to syntax-check macros from coreutils
10701 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
10702 Use them in the relevant macros.
10704 2009-04-06 Bruno Haible <bruno@clisp.org>
10706 Fix unportable use of bit-fields.
10707 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
10708 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
10709 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
10711 2009-04-06 Bruno Haible <bruno@clisp.org>
10713 Avoid test failures on AIX and OSF/1.
10714 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
10715 that malloc(0) = NULL.
10716 * tests/unicase/test-u8-tolower.c (check): Likewise.
10717 * tests/unicase/test-u8-totitle.c (check): Likewise.
10718 * tests/unicase/test-u8-toupper.c (check): Likewise.
10719 * tests/unicase/test-u16-casefold.c (check): Likewise.
10720 * tests/unicase/test-u16-tolower.c (check): Likewise.
10721 * tests/unicase/test-u16-totitle.c (check): Likewise.
10722 * tests/unicase/test-u16-toupper.c (check): Likewise.
10723 * tests/unicase/test-u32-casefold.c (check): Likewise.
10724 * tests/unicase/test-u32-tolower.c (check): Likewise.
10725 * tests/unicase/test-u32-totitle.c (check): Likewise.
10726 * tests/unicase/test-u32-toupper.c (check): Likewise.
10727 * tests/uninorm/test-u8-nfc.c (check): Likewise.
10728 * tests/uninorm/test-u8-nfd.c (check): Likewise.
10729 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
10730 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
10731 * tests/uninorm/test-u16-nfc.c (check): Likewise.
10732 * tests/uninorm/test-u16-nfd.c (check): Likewise.
10733 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
10734 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
10735 * tests/uninorm/test-u32-nfc.c (check): Likewise.
10736 * tests/uninorm/test-u32-nfd.c (check): Likewise.
10737 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
10738 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
10740 2009-04-05 Bruno Haible <bruno@clisp.org>
10742 Work around an autoconf limitation.
10743 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
10744 comment line if it would be longer than 3 KB.
10746 2009-04-05 Bruno Haible <bruno@clisp.org>
10748 Avoid test failure with libiconv-1.13.
10749 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
10750 of the expected test results.
10752 2009-04-05 Bruno Haible <bruno@clisp.org>
10754 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
10755 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
10756 that it should be installed.
10758 2009-04-05 Bruno Haible <bruno@clisp.org>
10760 * gnulib-tool: New option --copy-file.
10761 (func_usage): Document it.
10762 (func_dest_tmpfilename): Moved out of func_import.
10763 (func_add_file, func_update_file): New functions, extracted from
10765 (func_import): Update.
10767 2009-04-05 Karl Berry <karl@gnu.org>
10769 * README: prominently mention gnulib-tool.
10770 Rearrange sections so getting the code is near the top.
10772 2009-04-05 Bruno Haible <bruno@clisp.org>
10774 * lib/unicase.h: Mention u*_cmp2.
10775 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
10776 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
10777 * lib/unicase/ulc-casecmp.c: Likewise.
10778 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
10779 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
10780 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
10782 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
10783 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
10785 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
10788 * lib/uninorm.h: Mention u*_cmp2.
10789 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
10790 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
10791 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
10792 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
10793 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
10795 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
10797 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
10800 New module 'unistr/u32-cmp2'.
10801 * lib/unistr/u32-cmp2.c: New file.
10802 * modules/unistr/u32-cmp2: New file.
10804 New module 'unistr/u16-cmp2'.
10805 * lib/unistr/u16-cmp2.c: New file.
10806 * modules/unistr/u16-cmp2: New file.
10808 New module 'unistr/u8-cmp2'.
10809 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
10810 * lib/unistr/u8-cmp2.c: New file.
10811 * lib/unistr/u-cmp2.h: New file.
10812 * modules/unistr/u8-cmp2: New file.
10814 2009-04-05 Bruno Haible <bruno@clisp.org>
10816 * lib/unictype.h (uc_property_is_valid): New macro.
10817 * tests/unictype/test-pr_byname.c (main): Use it.
10819 * lib/unistr.h: Doc fixes.
10820 * lib/uniconv.h: Doc fixes.
10821 * lib/unictype.h: Doc fixes.
10823 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
10825 Port coreutils 7.2 to Solaris 8.
10827 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
10828 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
10829 for Solaris 8. This is a bit of a hack, as it means it's the
10830 caller's responsibility to add -lnsl if needed, but most likely it
10831 won't be needed since only getaddrinfo uses this and getaddrinfo
10832 isn't needed on Solaris 8.
10834 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
10835 problem to Solaris 8 encountered with coreutils 7.2, which
10836 resulted in a message "fnmatch.c:292: warning: passing argument 4
10837 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
10838 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
10840 2009-04-03 Simon Josefsson <simon@josefsson.org>
10842 * m4/ld-version-script.m4: Add FIXME comment.
10844 2009-04-02 Simon Josefsson <simon@josefsson.org>
10846 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
10847 SOVERSION variable.
10849 2009-04-02 Bruno Haible <bruno@clisp.org>
10851 * Makefile (info, html, dvi, pdf): Combine the rules.
10852 Suggested by Jim Meyering.
10854 2009-04-01 Bruno Haible <bruno@clisp.org>
10856 * Makefile (info, html, dvi, pdf): New targets.
10857 Reported by Reuben Thomas <rrt@sc3d.org>.
10859 2009-04-01 Bruno Haible <bruno@clisp.org>
10861 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
10862 can be put into PATH.
10863 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
10865 2009-04-01 Bruno Haible <bruno@clisp.org>
10867 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
10869 2009-04-01 Bruno Haible <bruno@clisp.org>
10871 Rename module 'visibility'.
10872 * modules/lib-symbol-visibility: Renamed from modules/visibility.
10873 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
10874 * doc/gnulib.texi: Update.
10875 * MODULES.html.sh (Misc): Update.
10876 * NEWS: Mention the change.
10878 2009-04-01 Simon Josefsson <simon@josefsson.org>
10880 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
10881 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
10882 Eric Blake <ebb9@byu.net> for review.
10883 * MODULES.html.sh: Add lib-msvc-compat.
10884 * doc/gnulib.texi: Link to new section.
10885 * m4/ld-output-def.m4: New file.
10886 * doc/ld-output-def.texi: New file.
10888 2009-04-01 Simon Josefsson <simon@josefsson.org>
10890 Rename ld-version-script to lib-symbol-versions. Suggested by
10891 Bruno Haible <bruno@clisp.org>.
10892 * modules/ld-version-script: Renamed to lib-symbol-versions.
10893 * doc/ld-version-script.texi: Fix module name.
10894 * MODULES.html.sh: Add lib-symbol-versions.
10896 2009-03-31 Simon Josefsson <simon@josefsson.org>
10898 * modules/u64-tests: New file.
10899 * tests/test-u64.c: New file.
10901 2009-03-04 Simon Josefsson <simon@josefsson.org>
10903 * MODULES.html.sh: Mention u64.
10904 * modules/u64: New module.
10905 * modules/crypto/sha512: Depend on u64 module instead of providing
10908 2009-03-27 Eric Blake <ebb9@byu.net>
10910 test-strerror: make debugging EAI_SYSTEM easier
10911 * modules/getaddrinfo-tests (Depends-on): Add strerror.
10912 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
10913 failure was EAI_SYSTEM.
10915 2009-03-25 Bruno Haible <bruno@clisp.org>
10917 Fix a problem with --enable-relocatable on Solaris 7.
10918 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
10921 2009-03-25 Eric Blake <ebb9@byu.net>
10923 test-sockets: avoid gcc warning
10924 * tests/test-sockets.c (main): Silence compiler warning.
10926 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
10928 New modules nproc, pthread, contributed by Glen Lenker.
10930 * MODULES.html.sh: Add pthread, nproc.
10931 * lib/nproc.c: New file.
10932 * lib/nproc.h: New file.
10933 * lib/pthread.in.h: New file.
10934 * m4/pthread.m4: New file.
10935 * modules/nproc: New file.
10936 * modules/pthread: New file.
10938 2009-03-24 Simon Josefsson <simon@josefsson.org>
10940 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
10943 2009-03-24 Kamil Dudka <kdudka@redhat.com>
10945 filevercmp: handle simple~ and numbered.~3~ backup suffixes
10946 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
10947 * tests/test-filevercmp.c: Add tests for backup suffixes.
10949 2009-03-24 Simon Josefsson <simon@josefsson.org>
10951 * modules/stdlib (Depends-on): Add stdint, needed when defining
10952 struct random_data on, for example, HP-UX 10.20. Reported by
10953 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10955 2009-03-24 Simon Josefsson <simon@josefsson.org>
10957 * lib/readline.c (readline): Call fflush on stdout after printing
10960 2009-03-20 Bruno Haible <bruno@clisp.org>
10962 Remove dependency from 'close' module to -lws2_32 on native Windows.
10963 * lib/close-hook.h: New file.
10964 * lib/close-hook.c: New file.
10965 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
10967 (_gl_close_fd_maybe_socket): Remove function.
10968 (rpl_close): Invoke execute_all_close_hooks instead of
10969 _gl_close_fd_maybe_socket.
10970 * lib/sockets.c: Include close-hook.h, w32sock.h.
10971 (close_fd_maybe_socket): New function, essentially from lib/close.c.
10972 (close_sockets_hook): New variable.
10973 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
10974 (gl_sockets_cleanup): Unregister it.
10975 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
10976 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
10977 * modules/close-hook: New file.
10978 * modules/close (Files): Remove lib/w32sock.h.
10979 (Depends-on): Add close-hook.
10980 (Link): Remove section.
10981 * modules/sockets (Files): Add lib/w32sock.h.
10982 (Depends-on): Add close-hook.
10983 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
10985 * NEWS: Mention that LIB_CLOSE is gone.
10987 2009-03-23 Eric Blake <ebb9@byu.net>
10989 signal-tests: test previous patch
10990 * tests/test-signal.c: New file.
10991 * modules/signal-tests: Likewise.
10993 signal.h: always support 'volatile sig_atomic_t'
10994 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
10995 (gl_SIGNAL_H_DEFAULTS): Add a default.
10996 * modules/signal (Makefile.am): Substitute if needed.
10997 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
10998 users can blindly add volatile.
10999 * doc/posix-headers/signal.texi (signal.h): Document it.
11000 Reported by Matthew Woehlke.
11002 2009-03-23 Jim Meyering <meyering@redhat.com>
11004 pathmax: PATH_MAX: use pathconf only when available
11005 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
11006 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
11007 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
11008 This avoids a link failure in a PSP cross-compilation environment
11009 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
11011 * lib/vasnprintf.c (divide): Fix typo in comment.
11013 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11015 * gnulib-tool (func_filter_filelist): Fix comment.
11017 2009-03-20 Bruno Haible <bruno@clisp.org>
11019 Make sockets.h self-contained.
11020 * lib/sockets.c: Include sockets.h first.
11021 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
11023 2009-03-19 Eric Blake <ebb9@byu.net>
11025 doc: mention more functions added in cygwin 1.7.0
11026 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
11028 * doc/posix-functions/log2f.texi: Likewise.
11030 2009-03-19 Jim Meyering <meyering@redhat.com>
11032 fsusage: avoid syntax error due to statement-before-declaration
11033 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
11034 after all declarations. Reported by Matthew Woehlke in
11035 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
11037 2009-03-18 Eric Blake <ebb9@byu.net>
11039 build-aux/compile: sync from automake
11040 * build-aux/compile: New file, from automake.
11041 * config/srclist.txt: Mention build-aux/compile.
11043 2009-03-17 Bruno Haible <bruno@clisp.org>
11045 * lib/git-merge-changelog.c: Fix typo in comment.
11046 Reported by Reuben Thomas <rrt@sc3d.org>.
11048 2009-03-17 Reuben Thomas <rrt@sc3d.org>
11050 * m4/regex.m4: update and improve help for
11051 --without-included-regex.
11053 2009-03-17 Simon Josefsson <simon@josefsson.org>
11055 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
11056 failure on missing include files.
11058 2009-03-17 Eric Blake <ebb9@byu.net>
11060 doc: mention more functions added in cygwin 1.7.0
11061 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
11063 * doc/posix-functions/fwscanf.texi: Likewise.
11064 * doc/posix-functions/swprintf.texi: Likewise.
11065 * doc/posix-functions/swscanf.texi: Likewise.
11066 * doc/posix-functions/vfwprintf.texi: Likewise.
11067 * doc/posix-functions/vfwscanf.texi: Likewise.
11068 * doc/posix-functions/vswprintf.texi: Likewise.
11069 * doc/posix-functions/vswscanf.texi: Likewise.
11070 * doc/posix-functions/vwprintf.texi: Likewise.
11071 * doc/posix-functions/vwscanf.texi: Likewise.
11072 * doc/posix-functions/wcscasecmp.texi: Likewise.
11073 * doc/posix-functions/wcsdup.texi: Likewise.
11074 * doc/posix-functions/wcsftime.texi: Likewise.
11075 * doc/posix-functions/wcsncasecmp.texi: Likewise.
11076 * doc/posix-functions/wprintf.texi: Likewise.
11077 * doc/posix-functions/wscanf.texi: Likewise.
11078 * doc/glibc-functions/gethostbyname2.texi: Likewise.
11080 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11082 maint.mk: really add $(AM_MAKEFLAGS)
11083 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
11084 was inadvertently omitted in the last commit.
11085 Spotted by Bruno Haible.
11087 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
11088 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
11089 $(AM_MAKEFLAGS)' rather than plain `make'.
11091 gnulib-tool: execute $MAKE not make
11092 * gnulib-tool: Default $MAKE to 'make'.
11093 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
11094 than make. Initialize $MAKE in the do-autobuild script.
11096 gnulib-tool: use $MAKE not make in generated files
11097 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
11098 make, in generated files. Initialize $MAKE in the do-autobuild
11101 * top/GNUmakefile (_have-git-version-gen): Fix typo.
11103 GNUmakefile: disable parallelism only for multiple, recursive targets
11104 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
11105 additions in the Makefile.
11106 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
11108 (.NOTPARALLEL): Only disable parallel builds if multiple targets
11109 are listed on the command line and at least one of them is
11110 listed in $(ALL_RECURSIVE_TARGETS).
11112 2009-03-14 Bruno Haible <bruno@clisp.org>
11114 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
11115 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
11116 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
11117 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
11118 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
11119 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
11120 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
11122 * modules/unistr/u8-strchr (Depends-on): Likewise.
11123 * modules/unistr/u8-strrchr (Depends-on): Likewise.
11124 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
11126 * modules/unistr/u16-strchr (Depends-on): Likewise.
11127 * modules/unistr/u16-strrchr (Depends-on): Likewise.
11129 2009-03-12 Bruno Haible <bruno@clisp.org>
11131 Work around select() bug on Interix 3.5.
11132 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
11133 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
11134 * m4/select.m4: New file.
11135 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
11136 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
11137 * modules/select (Files): Add m4/select.m4.
11138 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
11139 * modules/nanosleep (Depends-on): Add select.
11140 * modules/poll (Depends-on): Likewise.
11141 * doc/posix-functions/select.texi: Mention the Interix bug.
11142 Reported by Markus Duft <mduft@gentoo.org>.
11144 * lib/select.c: Renamed from lib/winsock-select.c.
11145 * modules/select (Files): Add lib/select.c, remove
11146 lib/winsock-select.c.
11147 (configure.ac): Update.
11149 2009-03-12 Jim Meyering <meyering@redhat.com>
11151 avoid gcc warnings about unused macro definitions
11152 * lib/readtokens.c (STREQ): Remove unused definition.
11153 * lib/xmalloc.c (SIZE_MAX): Likewise.
11154 * lib/openat-die.c (N_): Likewise.
11155 * lib/mountlist.c (SIZE_MAX): Remove definition.
11156 Instead, include <stdint.h>.
11157 * lib/readutmp.c: Likewise.
11158 * modules/readutmp (Depends-on): Add stdint.
11159 * modules/mountlist (Depends-on): Add stdint.
11160 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
11162 2009-03-10 Bruno Haible <bruno@clisp.org>
11164 Tests for module 'mbmemcasecoll'.
11165 * modules/mbmemcasecoll-tests: New file.
11166 * tests/test-mbmemcasecoll1.sh: New file.
11167 * tests/test-mbmemcasecoll2.sh: New file.
11168 * tests/test-mbmemcasecoll3.sh: New file.
11169 * tests/test-mbmemcasecoll.c: New file.
11171 New module 'mbmemcasecoll'.
11172 * lib/mbmemcasecoll.h: New file.
11173 * lib/mbmemcasecoll.c: New file.
11174 * modules/mbmemcasecoll: New file.
11176 * tests/test-mbmemcasecmp.h: New file, extracted from
11177 tests/test-mbmemcasecmp.c.
11178 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
11179 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
11181 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
11183 2009-03-09 Bruno Haible <bruno@clisp.org>
11185 Tests for module 'mbmemcasecmp'.
11186 * modules/mbmemcasecmp-tests: New file.
11187 * tests/test-mbmemcasecmp1.sh: New file.
11188 * tests/test-mbmemcasecmp2.sh: New file.
11189 * tests/test-mbmemcasecmp3.sh: New file.
11190 * tests/test-mbmemcasecmp.c: New file.
11192 New module 'mbmemcasecmp'.
11193 * lib/mbmemcasecmp.h: New file.
11194 * lib/mbmemcasecmp.c: New file.
11195 * modules/mbmemcasecmp: New file.
11197 2009-03-09 Bruno Haible <bruno@clisp.org>
11199 Tests for module 'unicase/ulc-casecoll'.
11200 * modules/unicase/ulc-casecoll-tests: New file.
11201 * tests/unicase/test-ulc-casecoll1.sh: New file.
11202 * tests/unicase/test-ulc-casecoll2.sh: New file.
11203 * tests/unicase/test-ulc-casecoll.c: New file.
11205 New module 'unicase/ulc-casecoll'.
11206 * lib/unicase.h (ulc_casecoll): New declaration.
11207 * lib/unicase/ulc-casecoll.c: New file.
11208 * modules/unicase/ulc-casecoll: New file.
11210 New module 'unicase/ulc-casexfrm'.
11211 * lib/unicase.h (ulc_casexfrm): New declaration.
11212 * lib/unicase/ulc-casexfrm.c: New file.
11213 * modules/unicase/ulc-casexfrm: New file.
11215 2009-03-09 Bruno Haible <bruno@clisp.org>
11217 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
11220 * m4/mbscasecmp.m4: Remove file.
11221 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
11222 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
11224 * m4/mbscasestr.m4: Remove file.
11225 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
11226 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
11228 * m4/mbschr.m4: Remove file.
11229 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
11230 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
11232 * m4/mbscspn.m4: Remove file.
11233 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
11234 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
11236 * m4/mbslen.m4: Remove file.
11237 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
11238 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
11240 * m4/mbsncasecmp.m4: Remove file.
11241 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
11242 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
11244 * m4/mbsnlen.m4: Remove file.
11245 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
11246 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
11248 * m4/mbspbrk.m4: Remove file.
11249 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
11250 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
11252 * m4/mbspcasecmp.m4: Remove file.
11253 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
11254 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
11256 * m4/mbsrchr.m4: Remove file.
11257 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
11258 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
11260 * m4/mbssep.m4: Remove file.
11261 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
11262 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
11264 * m4/mbsspn.m4: Remove file.
11265 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
11266 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
11268 * m4/mbsstr.m4: Remove file.
11269 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
11270 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
11272 * m4/mbstok_r.m4: Remove file.
11273 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
11274 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
11276 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
11278 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
11279 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
11281 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
11283 2009-03-08 Bruno Haible <bruno@clisp.org>
11285 Tests for module 'unicase/ulc-casecmp'.
11286 * modules/unicase/ulc-casecmp-tests: New file.
11287 * tests/unicase/test-ulc-casecmp1.sh: New file.
11288 * tests/unicase/test-ulc-casecmp2.sh: New file.
11289 * tests/unicase/test-ulc-casecmp.c: New file.
11291 New module 'unicase/ulc-casecmp'.
11292 * lib/unicase.h (ulc_casecmp): New declaration.
11293 * lib/unicase/ulc-casecmp.c: New file.
11294 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
11295 'const SRC_UNIT *'.
11296 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
11297 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
11298 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
11299 * modules/unicase/ulc-casecmp: New file.
11301 Tests for module 'unicase/u32-is-cased'.
11302 * modules/unicase/u32-is-cased-tests: New file.
11303 * tests/unicase/test-u32-is-cased.c: New file.
11305 Tests for module 'unicase/u16-is-cased'.
11306 * modules/unicase/u16-is-cased-tests: New file.
11307 * tests/unicase/test-u16-is-cased.c: New file.
11309 Tests for module 'unicase/u8-is-cased'.
11310 * modules/unicase/u8-is-cased-tests: New file.
11311 * tests/unicase/test-u8-is-cased.c: New file.
11312 * tests/unicase/test-is-cased.h: New file.
11314 New module 'unicase/u32-is-cased'.
11315 * lib/unicase/u32-is-cased.c: New file.
11316 * modules/unicase/u32-is-cased: New file.
11318 New module 'unicase/u16-is-cased'.
11319 * lib/unicase/u16-is-cased.c: New file.
11320 * modules/unicase/u16-is-cased: New file.
11322 New module 'unicase/u8-is-cased'.
11323 * lib/unicase/u8-is-cased.c: New file.
11324 * lib/unicase/u-is-cased.h: New file.
11325 * modules/unicase/u8-is-cased: New file.
11327 Tests for module 'unicase/u32-is-casefolded'.
11328 * modules/unicase/u32-is-casefolded-tests: New file.
11329 * tests/unicase/test-u32-is-casefolded.c: New file.
11331 Tests for module 'unicase/u16-is-casefolded'.
11332 * modules/unicase/u16-is-casefolded-tests: New file.
11333 * tests/unicase/test-u16-is-casefolded.c: New file.
11335 Tests for module 'unicase/u8-is-casefolded'.
11336 * modules/unicase/u8-is-casefolded-tests: New file.
11337 * tests/unicase/test-u8-is-casefolded.c: New file.
11338 * tests/unicase/test-is-casefolded.h: New file.
11340 New module 'unicase/u32-is-casefolded'.
11341 * lib/unicase/u32-is-casefolded.c: New file.
11342 * modules/unicase/u32-is-casefolded: New file.
11344 New module 'unicase/u16-is-casefolded'.
11345 * lib/unicase/u16-is-casefolded.c: New file.
11346 * modules/unicase/u16-is-casefolded: New file.
11348 New module 'unicase/u8-is-casefolded'.
11349 * lib/unicase/u8-is-casefolded.c: New file.
11350 * modules/unicase/u8-is-casefolded: New file.
11352 Tests for module 'unicase/u32-is-titlecase'.
11353 * modules/unicase/u32-is-titlecase-tests: New file.
11354 * tests/unicase/test-u32-is-titlecase.c: New file.
11356 Tests for module 'unicase/u16-is-titlecase'.
11357 * modules/unicase/u16-is-titlecase-tests: New file.
11358 * tests/unicase/test-u16-is-titlecase.c: New file.
11360 Tests for module 'unicase/u8-is-titlecase'.
11361 * modules/unicase/u8-is-titlecase-tests: New file.
11362 * tests/unicase/test-u8-is-titlecase.c: New file.
11363 * tests/unicase/test-is-titlecase.h: New file.
11365 New module 'unicase/u32-is-titlecase'.
11366 * lib/unicase/u32-is-titlecase.c: New file.
11367 * modules/unicase/u32-is-titlecase: New file.
11369 New module 'unicase/u16-is-titlecase'.
11370 * lib/unicase/u16-is-titlecase.c: New file.
11371 * modules/unicase/u16-is-titlecase: New file.
11373 New module 'unicase/u8-is-titlecase'.
11374 * lib/unicase/u8-is-titlecase.c: New file.
11375 * modules/unicase/u8-is-titlecase: New file.
11377 Tests for module 'unicase/u32-is-lowercase'.
11378 * modules/unicase/u32-is-lowercase-tests: New file.
11379 * tests/unicase/test-u32-is-lowercase.c: New file.
11381 Tests for module 'unicase/u16-is-lowercase'.
11382 * modules/unicase/u16-is-lowercase-tests: New file.
11383 * tests/unicase/test-u16-is-lowercase.c: New file.
11385 Tests for module 'unicase/u8-is-lowercase'.
11386 * modules/unicase/u8-is-lowercase-tests: New file.
11387 * tests/unicase/test-u8-is-lowercase.c: New file.
11388 * tests/unicase/test-is-lowercase.h: New file.
11390 New module 'unicase/u32-is-lowercase'.
11391 * lib/unicase/u32-is-lowercase.c: New file.
11392 * modules/unicase/u32-is-lowercase: New file.
11394 New module 'unicase/u16-is-lowercase'.
11395 * lib/unicase/u16-is-lowercase.c: New file.
11396 * modules/unicase/u16-is-lowercase: New file.
11398 New module 'unicase/u8-is-lowercase'.
11399 * lib/unicase/u8-is-lowercase.c: New file.
11400 * modules/unicase/u8-is-lowercase: New file.
11402 Tests for module 'unicase/u32-is-uppercase'.
11403 * modules/unicase/u32-is-uppercase-tests: New file.
11404 * tests/unicase/test-u32-is-uppercase.c: New file.
11406 Tests for module 'unicase/u16-is-uppercase'.
11407 * modules/unicase/u16-is-uppercase-tests: New file.
11408 * tests/unicase/test-u16-is-uppercase.c: New file.
11410 Tests for module 'unicase/u8-is-uppercase'.
11411 * modules/unicase/u8-is-uppercase-tests: New file.
11412 * tests/unicase/test-u8-is-uppercase.c: New file.
11413 * tests/unicase/test-is-uppercase.h: New file.
11415 New module 'unicase/u32-is-uppercase'.
11416 * lib/unicase/u32-is-uppercase.c: New file.
11417 * modules/unicase/u32-is-uppercase: New file.
11419 New module 'unicase/u16-is-uppercase'.
11420 * lib/unicase/u16-is-uppercase.c: New file.
11421 * modules/unicase/u16-is-uppercase: New file.
11423 New module 'unicase/u8-is-uppercase'.
11424 * lib/unicase/u8-is-uppercase.c: New file.
11425 * modules/unicase/u8-is-uppercase: New file.
11427 New module 'unicase/u32-is-invariant'.
11428 * lib/unicase/u32-is-invariant.c: New file.
11429 * modules/unicase/u32-is-invariant: New file.
11431 New module 'unicase/u16-is-invariant'.
11432 * lib/unicase/u16-is-invariant.c: New file.
11433 * modules/unicase/u16-is-invariant: New file.
11435 New module 'unicase/u8-is-invariant'.
11436 * lib/unicase/u8-is-invariant.c: New file.
11437 * lib/unicase/invariant.h: New file.
11438 * lib/unicase/u-is-invariant.h: New file.
11439 * modules/unicase/u8-is-invariant: New file.
11441 Tests for module 'unicase/u32-casecoll'.
11442 * modules/unicase/u32-casecoll-tests: New file.
11443 * tests/unicase/test-u32-casecoll.c: New file.
11445 Tests for module 'unicase/u16-casecoll'.
11446 * modules/unicase/u16-casecoll-tests: New file.
11447 * tests/unicase/test-u16-casecoll.c: New file.
11449 Tests for module 'unicase/u8-casecoll'.
11450 * modules/unicase/u8-casecoll-tests: New file.
11451 * tests/unicase/test-u8-casecoll.c: New file.
11453 New module 'unicase/u32-casecoll'.
11454 * lib/unicase/u32-casecoll.c: New file.
11455 * modules/unicase/u32-casecoll: New file.
11457 New module 'unicase/u16-casecoll'.
11458 * lib/unicase/u16-casecoll.c: New file.
11459 * modules/unicase/u16-casecoll: New file.
11461 New module 'unicase/u8-casecoll'.
11462 * lib/unicase/u8-casecoll.c: New file.
11463 * lib/unicase/u-casecoll.h: New file.
11464 * modules/unicase/u8-casecoll: New file.
11466 New module 'unicase/u32-casexfrm'.
11467 * lib/unicase/u32-casexfrm.c: New file.
11468 * modules/unicase/u32-casexfrm: New file.
11470 New module 'unicase/u16-casexfrm'.
11471 * lib/unicase/u16-casexfrm.c: New file.
11472 * modules/unicase/u16-casexfrm: New file.
11474 New module 'unicase/u8-casexfrm'.
11475 * lib/unicase/u8-casexfrm.c: New file.
11476 * lib/unicase/u-casexfrm.h: New file.
11477 * modules/unicase/u8-casexfrm: New file.
11479 Tests for module 'unicase/u32-casecmp'.
11480 * modules/unicase/u32-casecmp-tests: New file.
11481 * tests/unicase/test-u32-casecmp.c: New file.
11483 Tests for module 'unicase/u16-casecmp'.
11484 * modules/unicase/u16-casecmp-tests: New file.
11485 * tests/unicase/test-u16-casecmp.c: New file.
11487 Tests for module 'unicase/u8-casecmp'.
11488 * modules/unicase/u8-casecmp-tests: New file.
11489 * tests/unicase/test-u8-casecmp.c: New file.
11490 * tests/unicase/test-casecmp.h: New file.
11492 New module 'unicase/u32-casecmp'.
11493 * lib/unicase/u32-casecmp.c: New file.
11494 * modules/unicase/u32-casecmp: New file.
11496 New module 'unicase/u16-casecmp'.
11497 * lib/unicase/u16-casecmp.c: New file.
11498 * modules/unicase/u16-casecmp: New file.
11500 New module 'unicase/u8-casecmp'.
11501 * lib/unicase/u8-casecmp.c: New file.
11502 * lib/unicase/u-casecmp.h: New file.
11503 * modules/unicase/u8-casecmp: New file.
11505 Tests for module 'unicase/u32-casefold'.
11506 * modules/unicase/u32-casefold-tests: New file.
11507 * tests/unicase/test-u32-casefold.c: New file.
11509 Tests for module 'unicase/u16-casefold'.
11510 * modules/unicase/u16-casefold-tests: New file.
11511 * tests/unicase/test-u16-casefold.c: New file.
11513 Tests for module 'unicase/u8-casefold'.
11514 * modules/unicase/u8-casefold-tests: New file.
11515 * tests/unicase/test-u8-casefold.c: New file.
11517 New module 'unicase/u32-casefold'.
11518 * lib/unicase/u32-casefold.c: New file.
11519 * modules/unicase/u32-casefold: New file.
11521 New module 'unicase/u16-casefold'.
11522 * lib/unicase/u16-casefold.c: New file.
11523 * modules/unicase/u16-casefold: New file.
11525 New module 'unicase/u8-casefold'.
11526 * lib/unicase/u8-casefold.c: New file.
11527 * lib/unicase/u-casefold.h: New file.
11528 * modules/unicase/u8-casefold: New file.
11530 New module 'unicase/tocasefold'.
11531 * lib/unicase/casefold.h: New file.
11532 * lib/unicase/tocasefold.c: New file.
11533 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
11534 * modules/unicase/tocasefold: New file.
11536 Tests for module 'unicase/u32-totitle'.
11537 * modules/unicase/u32-totitle-tests: New file.
11538 * tests/unicase/test-u32-totitle.c: New file.
11540 Tests for module 'unicase/u16-totitle'.
11541 * modules/unicase/u16-totitle-tests: New file.
11542 * tests/unicase/test-u16-totitle.c: New file.
11544 Tests for module 'unicase/u8-totitle'.
11545 * modules/unicase/u8-totitle-tests: New file.
11546 * tests/unicase/test-u8-totitle.c: New file.
11548 New module 'unicase/u32-totitle'.
11549 * lib/unicase/u32-totitle.c: New file.
11550 * modules/unicase/u32-totitle: New file.
11552 New module 'unicase/u16-totitle'.
11553 * lib/unicase/u16-totitle.c: New file.
11554 * modules/unicase/u16-totitle: New file.
11556 New module 'unicase/u8-totitle'.
11557 * lib/unicase/u8-totitle.c: New file.
11558 * lib/unicase/u-totitle.h: New file.
11559 * modules/unicase/u8-totitle: New file.
11561 Tests for module 'unicase/u32-tolower'.
11562 * modules/unicase/u32-tolower-tests: New file.
11563 * tests/unicase/test-u32-tolower.c: New file.
11565 Tests for module 'unicase/u16-tolower'.
11566 * modules/unicase/u16-tolower-tests: New file.
11567 * tests/unicase/test-u16-tolower.c: New file.
11569 Tests for module 'unicase/u8-tolower'.
11570 * modules/unicase/u8-tolower-tests: New file.
11571 * tests/unicase/test-u8-tolower.c: New file.
11573 New module 'unicase/u32-tolower'.
11574 * lib/unicase/u32-tolower.c: New file.
11575 * modules/unicase/u32-tolower: New file.
11577 New module 'unicase/u16-tolower'.
11578 * lib/unicase/u16-tolower.c: New file.
11579 * modules/unicase/u16-tolower: New file.
11581 New module 'unicase/u8-tolower'.
11582 * lib/unicase/u8-tolower.c: New file.
11583 * modules/unicase/u8-tolower: New file.
11585 Tests for module 'unicase/u32-toupper'.
11586 * modules/unicase/u32-toupper-tests: New file.
11587 * tests/unicase/test-u32-toupper.c: New file.
11589 Tests for module 'unicase/u16-toupper'.
11590 * modules/unicase/u16-toupper-tests: New file.
11591 * tests/unicase/test-u16-toupper.c: New file.
11593 Tests for module 'unicase/u8-toupper'.
11594 * modules/unicase/u8-toupper-tests: New file.
11595 * tests/unicase/test-u8-toupper.c: New file.
11597 New module 'unicase/u32-toupper'.
11598 * lib/unicase/u32-toupper.c: New file.
11599 * modules/unicase/u32-toupper: New file.
11601 New module 'unicase/u16-toupper'.
11602 * lib/unicase/u16-toupper.c: New file.
11603 * modules/unicase/u16-toupper: New file.
11605 New module 'unicase/u8-toupper'.
11606 * lib/unicase/u8-toupper.c: New file.
11607 * modules/unicase/u8-toupper: New file.
11609 New module 'unicase/u32-casemap'.
11610 * lib/unicase/u32-casemap.c: New file.
11611 * modules/unicase/u32-casemap: New file.
11613 New module 'unicase/u16-casemap'.
11614 * lib/unicase/u16-casemap.c: New file.
11615 * modules/unicase/u16-casemap: New file.
11617 New module 'unicase/u8-casemap'.
11618 * lib/unicase/unicasemap.h: New file.
11619 * lib/unicase/u8-casemap.c: New file.
11620 * lib/unicase/u-casemap.h: New file.
11621 * modules/unicase/u8-casemap: New file.
11623 New module 'unicase/special-casing'.
11624 * lib/unicase/special-casing.h: New file.
11625 * lib/unicase/special-casing.c: New file.
11626 * lib/unicase/special-casing-table.gperf: New file, generated by
11628 * modules/unicase/special-casing: New file.
11630 Tests for module 'unicase/locale-language'.
11631 * modules/unicase/locale-language-tests: New file.
11632 * tests/unicase/test-locale-language.sh: New file.
11633 * tests/unicase/test-locale-language.c: New file.
11635 New module 'unicase/locale-language'.
11636 * lib/unicase/locale-language.c: New file.
11637 * lib/unicase/locale-languages.gperf: New file.
11638 * modules/unicase/locale-language: New file.
11640 Generate more tables for case conversion and case folding.
11641 * lib/gen-uni-tables.c (SCC_*): New enum items.
11642 (struct special_casing_rule): New type.
11643 (casing_rules, num_casing_rules, allocated_casing_rules): New
11645 (add_casing_rule, fill_casing_rules): New functions.
11646 (struct casefold_rule): New type.
11647 (casefolding_rules, num_casefolding_rules,
11648 allocated_casefolding_rules): New variables.
11649 (fill_casefolding_rules): New function.
11650 (unicode_casefold): New variable.
11651 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
11652 sort_casing_rules, output_casing_rules): New functions.
11653 (main): Accept to more arguments: SpecialCasing.txt and
11654 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
11655 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
11656 Output mapping for casefolding.
11658 * lib/unicase.h: Include stdbool.h, uninorm.h.
11659 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
11660 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
11661 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
11663 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
11665 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
11666 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
11668 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
11669 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
11670 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
11671 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
11673 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
11675 2009-03-08 Bruno Haible <bruno@clisp.org>
11677 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
11678 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
11679 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
11680 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
11682 2009-03-07 Bruno Haible <bruno@clisp.org>
11684 Adjust u*_normcmp, u*_normcoll API.
11685 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
11686 u16_normcoll, u32_normcoll): Change failure conventions.
11687 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
11688 errno and return -1.
11689 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
11691 2009-03-07 Bruno Haible <bruno@clisp.org>
11693 Tests for module 'uninorm/u32-normcoll'.
11694 * modules/uninorm/u32-normcoll-tests: New file.
11695 * tests/uninorm/test-u32-normcoll.c: New file.
11697 Tests for module 'uninorm/u16-normcoll'.
11698 * modules/uninorm/u16-normcoll-tests: New file.
11699 * tests/uninorm/test-u16-normcoll.c: New file.
11701 Tests for module 'uninorm/u8-normcoll'.
11702 * modules/uninorm/u8-normcoll-tests: New file.
11703 * tests/uninorm/test-u8-normcoll.c: New file.
11705 2009-03-07 Bruno Haible <bruno@clisp.org>
11707 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
11708 tests/uninorm/test-u32-normcmp.c.
11709 * tests/uninorm/test-u32-normcmp.c: Include it.
11710 (test_nonascii): New function, extracted from main. Add some more
11712 (main): Invoke test_ascii and test_nonascii.
11713 * modules/uninorm/u32-normcmp-tests (Files): Add
11714 tests/uninorm/test-u32-normcmp.h.
11715 (Depends-on): Remove uninorm/u32-normcmp.
11717 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
11718 tests/uninorm/test-u16-normcmp.c.
11719 * tests/uninorm/test-u16-normcmp.c: Include it.
11720 (test_nonascii): New function, extracted from main. Add some more
11722 (main): Invoke test_ascii and test_nonascii.
11723 * modules/uninorm/u16-normcmp-tests (Files): Add
11724 tests/uninorm/test-u16-normcmp.h.
11725 (Depends-on): Remove uninorm/u16-normcmp.
11727 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
11728 tests/uninorm/test-u8-normcmp.c.
11729 * tests/uninorm/test-u8-normcmp.c: Include it.
11730 (test_nonascii): New function, extracted from main. Add some more
11732 (main): Invoke test_ascii and test_nonascii.
11733 * modules/uninorm/u8-normcmp-tests (Files): Add
11734 tests/uninorm/test-u8-normcmp.h.
11735 (Depends-on): Remove uninorm/u8-normcmp.
11737 2009-03-07 Bruno Haible <bruno@clisp.org>
11739 New module 'uninorm/u32-normcoll'.
11740 * lib/uninorm/u32-normcoll.c: New file.
11741 * modules/uninorm/u32-normcoll: New file.
11743 New module 'uninorm/u16-normcoll'.
11744 * lib/uninorm/u16-normcoll.c: New file.
11745 * modules/uninorm/u16-normcoll: New file.
11747 New module 'uninorm/u8-normcoll'.
11748 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
11750 * lib/uninorm/u8-normcoll.c: New file.
11751 * lib/uninorm/u-normcoll.h: New file.
11752 * modules/uninorm/u8-normcoll: New file.
11754 New module 'uninorm/u32-normxfrm'.
11755 * lib/uninorm/u32-normxfrm.c: New file.
11756 * modules/uninorm/u32-normxfrm: New file.
11758 New module 'uninorm/u16-normxfrm'.
11759 * lib/uninorm/u16-normxfrm.c: New file.
11760 * modules/uninorm/u16-normxfrm: New file.
11762 New module 'uninorm/u8-normxfrm'.
11763 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
11765 * lib/uninorm/u8-normxfrm.c: New file.
11766 * lib/uninorm/u-normxfrm.h: New file.
11767 * modules/uninorm/u8-normxfrm: New file.
11769 2009-03-07 Bruno Haible <bruno@clisp.org>
11771 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
11772 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
11773 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
11775 2009-03-07 Bruno Haible <bruno@clisp.org>
11777 New module 'memxfrm'.
11778 * lib/memxfrm.h: New file.
11779 * lib/memxfrm.c: New file.
11780 * modules/memxfrm: New file.
11782 2009-03-07 Bruno Haible <bruno@clisp.org>
11784 New module 'memcmp2'.
11785 * lib/memcmp2.h: New file.
11786 * lib/memcmp2.c: New file.
11787 * modules/memcmp2: New file.
11789 2009-03-07 Bruno Haible <bruno@clisp.org>
11791 Tests for module 'uninorm/decomposing-form'.
11792 * modules/uninorm/decomposing-form-tests: New file.
11793 * tests/uninorm/test-decomposing-form.c: New file.
11795 New module 'uninorm/decomposing-form'.
11796 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
11797 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
11798 Add 'decomposing_variant' field.
11799 * lib/uninorm/decomposing-form.c: New file.
11800 * lib/uninorm/nfc.c (uninorm_nfc): Update.
11801 * lib/uninorm/nfd.c (uninorm_nfd): Update.
11802 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
11803 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
11804 * modules/uninorm/decomposing-form: New file.
11805 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
11806 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
11808 2009-03-07 Bruno Haible <bruno@clisp.org>
11810 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
11813 2009-03-06 Bruno Haible <bruno@clisp.org>
11815 Tests for module 'uninorm/u32-normcmp'.
11816 * tests/uninorm/test-u32-normcmp.c: New file.
11817 * modules/uninorm/u32-normcmp-tests: New file.
11819 Tests for module 'uninorm/u16-normcmp'.
11820 * tests/uninorm/test-u16-normcmp.c: New file.
11821 * modules/uninorm/u16-normcmp-tests: New file.
11823 Tests for module 'uninorm/u8-normcmp'.
11824 * tests/uninorm/test-u8-normcmp.c: New file.
11825 * modules/uninorm/u8-normcmp-tests: New file.
11827 New module 'uninorm/u32-normcmp'.
11828 * lib/uninorm/u32-normcmp.c: New file.
11829 * modules/uninorm/u32-normcmp: New file.
11831 New module 'uninorm/u16-normcmp'.
11832 * lib/uninorm/u16-normcmp.c: New file.
11833 * modules/uninorm/u16-normcmp: New file.
11835 New module 'uninorm/u8-normcmp'.
11836 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
11838 * lib/uninorm/u8-normcmp.c: New file.
11839 * lib/uninorm/u-normcmp.h: New file.
11840 * modules/uninorm/u8-normcmp: New file.
11842 2009-03-06 Bruno Haible <bruno@clisp.org>
11844 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
11845 Reported by Eric Blake.
11847 2009-03-06 Eric Blake <ebb9@byu.net>
11848 Bruno Haible <bruno@clisp.org>
11850 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
11851 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
11853 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
11854 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
11856 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
11858 2009-03-06 Eric Blake <ebb9@byu.net>
11860 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
11861 to avoid compiler warnings.
11862 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
11864 2009-03-05 Bruno Haible <bruno@clisp.org>
11866 * tests/test-ftell.c (main): Disable test beyond end of file on
11868 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
11870 2009-03-05 Kamil Dudka <kdudka@redhat.com>
11872 * lib/filevercmp.c: Move hidden files up in ordering.
11873 * tests/test-filevercmp.c: Add tests for hidden files.
11875 2009-03-04 Bruno Haible <bruno@clisp.org>
11877 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
11878 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
11880 Reported by Simon Josefsson.
11882 2009-03-03 Bruno Haible <bruno@clisp.org>
11884 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
11885 Reported by Simon Josefsson.
11887 * doc/ld-version-script.texi: Update node reference.
11889 2009-03-03 Bruno Haible <bruno@clisp.org>
11891 * modules/visibility (License): Change to 'unlimited'.
11892 Suggested by Simon Josefsson.
11894 2009-03-03 Jim Meyering <meyering@redhat.com>
11896 unlinkdir: cannot_unlink_dir may modify process state
11897 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
11898 it's neither thread-safe nor appropriate for use in a library.
11900 2009-03-03 Eric Blake <ebb9@byu.net>
11902 test-closein: silence test under Darwin
11903 * tests/test-closein.sh: Ignore stderr from cat, since we don't
11904 care if it dies from EPIPE or EBADF.
11906 2009-03-03 Bruno Haible <bruno@clisp.org>
11908 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
11910 * doc/visibility.texi: Fix @node and @section.
11912 2009-03-03 Simon Josefsson <simon@josefsson.org>
11914 * doc/gnulib.texi: Link to sections for ld version script and
11916 * doc/visibility.texi: Add @node and @section.
11917 * modules/ld-version-script: New module.
11918 * m4/ld-version-script.m4: New file.
11919 * doc/ld-version-script.texi: New file.
11921 2009-03-02 David Lutterkort <lutter@redhat.com>
11923 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
11924 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11926 2009-03-02 Bruno Haible <bruno@clisp.org>
11928 * doc/visibility.texi: Mention libtool's -export-symbols option.
11930 2009-03-02 Jim Meyering <meyering@redhat.com>
11932 announce-gen: new option: --no-print-checksums
11933 * build-aux/announce-gen (usage): Describe it.
11934 (print_checksums): Print a newline here, not in the [*] footnote.
11937 2009-03-01 Bruno Haible <bruno@clisp.org>
11939 Use socklen_t in the native Windows replacements prototypes.
11940 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
11942 * lib/getsockopt.c (rpl_getsockopt): Likewise.
11943 * lib/setsockopt.c (rpl_setsockopt): Likewise.
11944 * modules/getsockopt (Depends-on): Add socklen.
11945 * modules/setsockopt (Depends-on): Add socklen.
11947 2009-03-01 Bruno Haible <bruno@clisp.org>
11949 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
11952 2009-03-01 Eric Blake <ebb9@byu.net>
11953 Bruno Haible <bruno@clisp.org>
11955 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
11957 * lib/wait-process.c (wait_subprocess): Omit error message about
11958 deadly signal sent to the child of termsigp != NULL.
11960 2009-03-01 Eric Blake <ebb9@byu.net>
11962 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
11964 2009-03-01 Bruno Haible <bruno@clisp.org>
11966 Avoid a gcc warning.
11967 * tests/test-sched.c (b): Make global.
11968 Reported by Eric Blake.
11970 2009-01-19 Martin Lambers <marlam@marlam.de>
11972 Provide POSIX semantics for socket timeout options on W32.
11973 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
11974 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
11975 * modules/setsockopt: Depend on sys_time module for struct timeval.
11976 * modules/getsockopt: Depend on sys_time module for struct timeval.
11978 2009-03-01 Simon Josefsson <simon@josefsson.org>
11980 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
11981 __USE_GNU, for consistency with netdb.in.h.
11982 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11984 2009-03-01 Bruno Haible <bruno@clisp.org>
11986 More support for FreeMiNT.
11987 * lib/fseeko.c (rpl_fseeko): Complete last commit.
11988 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11990 2009-03-01 Bruno Haible <bruno@clisp.org>
11992 More support for FreeMiNT.
11993 * lib/fpurge.c (fpurge): Correct last commit.
11994 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
11996 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11998 Fix unportable awk script in vc-list-files.
11999 * build-aux/vc-list-files: In the replacement awk script, use
12000 substr with a second argument of 1, not zero.
12001 Report by Simon Josefsson.
12003 2009-02-28 Bruno Haible <bruno@clisp.org>
12005 More support for FreeMiNT.
12006 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
12008 * lib/fwriting.c (fwriting): Likewise.
12009 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
12011 2009-02-28 Bruno Haible <bruno@clisp.org>
12013 * tests/test-freadseek.c (main): Disable test beyond end of file on
12015 * tests/test-ftello.c (main): Likewise.
12016 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
12018 2009-02-28 Bruno Haible <bruno@clisp.org>
12020 Add tentative support for FreeMiNT.
12021 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
12022 * lib/fpurge.c (fpurge): Likewise.
12023 * lib/freadable.c (freadable): Likewise.
12024 * lib/freading.c (freading): Likewise.
12025 * lib/freadptr.c (freadptr): Likewise.
12026 * lib/freadseek.c (freadptrinc): Likewise.
12027 * lib/fseeko.c (rpl_fseeko): Likewise.
12028 * lib/fseterr.c (fseterr): Likewise.
12029 * lib/fwritable.c (fwritable): Likewise.
12030 * lib/fwriting.c (fwriting): Likewise.
12031 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
12033 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
12035 2009-02-28 Bruno Haible <bruno@clisp.org>
12037 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
12039 Reported by Jim Meyering.
12041 2009-02-28 Bruno Haible <bruno@clisp.org>
12043 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
12044 Mention the results of these tests on various platforms.
12045 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
12047 * doc/posix-functions/printf.texi: Likewise.
12048 * doc/posix-functions/snprintf.texi: Likewise.
12049 * doc/posix-functions/sprintf.texi: Likewise.
12050 * doc/posix-functions/vfprintf.texi: Likewise.
12051 * doc/posix-functions/vprintf.texi: Likewise.
12052 * doc/posix-functions/vsnprintf.texi: Likewise.
12053 * doc/posix-functions/vsprintf.texi: Likewise.
12054 * doc/glibc-functions/obstack_printf.texi: Likewise.
12055 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12057 2009-02-28 Bruno Haible <bruno@clisp.org>
12059 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
12060 Reported by Loïc Minier <lool@dooz.org>.
12062 2009-02-27 Bruno Haible <bruno@clisp.org>
12064 * gnulib-tool (func_import): Make the sed expression used to create the
12065 sed script for updating the .gitignore file POSIX compliant.
12066 Reported by Eric Blake.
12068 2009-02-27 Bruno Haible <bruno@clisp.org>
12070 * gnulib-tool (sed): Don't alias as "sed --posix".
12071 Reported by Eric Blake.
12073 2009-02-27 Bruno Haible <bruno@clisp.org>
12075 Avoid test link errors.
12076 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
12077 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
12078 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
12079 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
12080 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12082 2009-02-27 Bruno Haible <bruno@clisp.org>
12084 Avoid spurious "(cached)" in configure output.
12085 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
12086 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
12087 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
12088 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
12089 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
12090 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
12091 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
12092 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
12093 Reported by Eric Blake.
12095 2009-02-27 Eric Blake <ebb9@byu.net>
12097 printf: fix regression in previous patch
12098 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
12100 2009-02-27 Bruno Haible <bruno@clisp.org>
12102 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
12104 * lib/stdint.in.h: Likewise.
12105 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
12107 2009-02-27 Eric Blake <ebb9@byu.net>
12109 doc: mention more functions added in cygwin 1.7.0
12110 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
12112 * doc/posix-functions/open_wmemstream.texi: Likewise.
12113 * doc/posix-functions/wcsnlen.texi: Likewise.
12114 * doc/posix-functions/wcsnrtombs.texi: Likewise.
12115 * doc/posix-functions/wcstod.texi: Likewise.
12116 * doc/posix-functions/wcstof.texi: Likewise.
12117 * doc/posix-functions/wcstoimax.texi: Likewise.
12118 * doc/posix-functions/wcstok.texi: Likewise.
12119 * doc/posix-functions/wcstoumax.texi: Likewise.
12121 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
12122 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
12123 * doc/posix-functions/fprintf.texi: Update.
12124 * doc/posix-functions/printf.texi: Update.
12125 * doc/posix-functions/snprintf.texi: Update.
12126 * doc/posix-functions/sprintf.texi: Update.
12127 * doc/posix-functions/vfprintf.texi: Update.
12128 * doc/posix-functions/vprintf.texi: Update.
12129 * doc/posix-functions/vsnprintf.texi: Update.
12130 * doc/posix-functions/vsprintf.texi: Update.
12131 * doc/glibc-functions/obstack_printf.texi: Update.
12132 * doc/glibc-functions/obstack_vprintf.texi: Update.
12134 2009-02-26 Eric Blake <ebb9@byu.net>
12136 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
12137 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
12138 compilation bug by using runtime conversion.
12139 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12140 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
12141 * modules/ceill-tests (Files): Use nan.h.
12142 * modules/floorl-tests (Files): Likewise.
12143 * modules/frexpl-tests (Files): Likewise.
12144 * modules/isnanl-tests (Files): Likewise.
12145 * modules/ldexpl-tests (Files): Likewise.
12146 * modules/roundl-tests (Files): Likewise.
12147 * modules/truncl-tests (Files): Likewise.
12148 * tests/test-ceill.c (main): Use a working NaN.
12149 * tests/test-floorl.c (main): Likewise.
12150 * tests/test-frexpl.c (main): Likewise.
12151 * tests/test-isnan.c (test_long_double): Likewise.
12152 * tests/test-isnanl.h (main): Likewise.
12153 * tests/test-ldexpl.h (main): Likewise.
12154 * tests/test-roundl.h (main): Likewise.
12155 * tests/test-truncl.h (main): Likewise.
12156 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
12158 2009-02-26 Eric Blake <ebb9@byu.net>
12159 Bruno Haible <bruno@clisp.org>
12161 Work around a *printf bug with %ls on Solaris.
12162 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
12163 precision is specified, sprintf stops converting the wide string
12164 argument when the number of bytes that have been produced by this
12165 conversion equals or exceeds the precision.
12166 * doc/posix-functions/fprintf.texi: Update.
12167 * doc/posix-functions/printf.texi: Update.
12168 * doc/posix-functions/snprintf.texi: Update.
12169 * doc/posix-functions/sprintf.texi: Update.
12170 * doc/posix-functions/vfprintf.texi: Update.
12171 * doc/posix-functions/vprintf.texi: Update.
12172 * doc/posix-functions/vsnprintf.texi: Update.
12173 * doc/posix-functions/vsprintf.texi: Update.
12174 * doc/glibc-functions/obstack_printf.texi: Update.
12175 * doc/glibc-functions/obstack_vprintf.texi: Update.
12177 2009-02-26 Eric Blake <ebb9@byu.net>
12179 stdlib: favor compiler check of random.h
12180 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
12181 to avoid an ObjC random.h installed by Swarm.
12183 2009-02-26 Bruno Haible <bruno@clisp.org>
12185 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
12186 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
12187 Reported by Gary V. Vaughan <gary@gnu.org>.
12189 2009-02-26 Bruno Haible <bruno@clisp.org>
12191 Fix *printf behaviour regarding the %ls directive.
12192 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
12193 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
12194 NEED_PRINTF_DIRECTIVE_LS.
12195 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
12196 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
12197 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
12198 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
12199 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
12200 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
12201 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
12202 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
12203 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
12204 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
12205 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
12206 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
12207 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
12208 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
12209 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
12210 * doc/posix-functions/fprintf.texi: Update.
12211 * doc/posix-functions/printf.texi: Update.
12212 * doc/posix-functions/snprintf.texi: Update.
12213 * doc/posix-functions/sprintf.texi: Update.
12214 * doc/posix-functions/vfprintf.texi: Update.
12215 * doc/posix-functions/vprintf.texi: Update.
12216 * doc/posix-functions/vsnprintf.texi: Update.
12217 * doc/posix-functions/vsprintf.texi: Update.
12218 * doc/glibc-functions/obstack_printf.texi: Update.
12219 * doc/glibc-functions/obstack_vprintf.texi: Update.
12220 Reported by Eric Blake.
12222 2009-02-25 Bruno Haible <bruno@clisp.org>
12224 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
12226 Reported by Gary V. Vaughan <gary@gnu.org>.
12228 2009-02-25 Bruno Haible <bruno@clisp.org>
12230 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
12231 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
12232 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
12233 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
12234 Reported by Gary V. Vaughan <gary@gnu.org>.
12236 2009-02-25 Bruno Haible <bruno@clisp.org>
12238 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
12239 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
12240 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
12241 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
12242 Reported by Gary V. Vaughan <gary@gnu.org>.
12244 2009-02-25 Eric Blake <ebb9@byu.net>
12246 tests: skip fseek/ftell tests if ungetc is broken
12247 * m4/ungetc.m4: New file.
12248 * modules/fseek-tests: Split test, so ungetc dependency is
12249 separate from rest of test.
12250 * modules/fseeko-tests: Likewise.
12251 * modules/ftell-tests: Likewise.
12252 * modules/ftello-tests: Likewise.
12253 * tests/test-fseek.c (main): Isolate ungetc dependency.
12254 * tests/test-fseeko.c (main): Likewise.
12255 * tests/test-ftell.c (main): Likewise.
12256 * tests/test-ftello.c (main): Likewise.
12257 * tests/test-fseek2.sh: New file.
12258 * tests/test-fseeko2.sh: Likewise.
12259 * tests/test-ftell2.sh: Likewise.
12260 * tests/test-ftello2.sh: Likewise.
12262 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
12264 test-getaddrinfo: fix usage of skip return code 77
12265 * tests/test-gettaddrinfo.c: Return skip code 77 only
12266 for first occurance of skip (4x77 is not 77)
12268 2009-02-25 Gary V. Vaughan <gary@gnu.org>
12270 strtod: avoid C99 decl-after-statement
12271 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
12273 2009-02-24 Eric Blake <ebb9@byu.net>
12275 strtod: detect HP-UX 11.31 bug
12276 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
12277 Reported by Gary V. Vaughan.
12279 2009-02-23 Bruno Haible <bruno@clisp.org>
12281 Fix invalid read past end of memory block.
12282 * lib/vasnprintf.c (DCHAR_SET): Define.
12283 (local_wcslen): Define only when needed.
12284 (local_strnlen, local_wcsnlen): New functions.
12285 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
12286 directives that involve a conversion ourselves.
12287 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
12288 wcsnlen, mbrtowc, wcrtomb.
12289 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
12290 * tests/test-vasprintf-posix.c (test_function): Likewise.
12291 * tests/test-snprintf-posix.h (test_function): Likewise.
12292 * tests/test-sprintf-posix.h (test_function): Likewise.
12293 Reported by Ben Pfaff <blp@cs.stanford.edu>.
12295 2009-02-22 Bruno Haible <bruno@clisp.org>
12297 Implement new clarified decomposition of Hangul syllables.
12298 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
12299 of type LTV, return only a pairwise decomposition.
12300 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
12302 * tests/uninorm/test-decomposition.c (main): Updated expected result.
12303 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
12304 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
12306 2009-02-22 Bruno Haible <bruno@clisp.org>
12308 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
12309 zero-length results and shrink excess allocated memory.
12310 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
12311 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
12312 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
12313 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
12314 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
12315 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
12316 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
12317 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
12318 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
12319 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
12320 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
12321 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
12323 2009-02-21 Bruno Haible <bruno@clisp.org>
12325 * doc/gnulib.texi: Include safe-alloc.texi earlier.
12326 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
12327 spaces after a period. Put a space between a macro name and its
12328 argument list. Trivial rewordings.
12329 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
12330 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
12331 (main): Return 0 explicitly.
12333 2009-02-21 Bruno Haible <bruno@clisp.org>
12335 Tests for module 'uninorm/filter'.
12336 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
12337 * modules/uninorm/filter-tests: New file.
12339 New module 'uninorm/filter'.
12340 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
12341 uninorm_filter_flush, uninorm_filter_free): New declarations.
12342 * lib/uninorm/uninorm-filter.c: New file.
12343 * modules/uninorm/filter: New file.
12345 2009-02-21 Bruno Haible <bruno@clisp.org>
12347 Tests for module 'uninorm/nfkc'.
12348 * tests/uninorm/test-nfkc.c: New file.
12349 * tests/uninorm/test-u8-nfkc.c: New file.
12350 * tests/uninorm/test-u16-nfkc.c: New file.
12351 * tests/uninorm/test-u32-nfkc.c: New file.
12352 * tests/uninorm/test-u32-nfkc-big.sh: New file.
12353 * tests/uninorm/test-u32-nfkc-big.c: New file.
12354 * modules/uninorm/nfkc-tests: New file.
12356 New module 'uninorm/nfkc'.
12357 * lib/uninorm/nfkc.c: New file.
12358 * modules/uninorm/nfkc: New file.
12360 Tests for module 'uninorm/nfkd'.
12361 * tests/uninorm/test-nfkd.c: New file.
12362 * tests/uninorm/test-u8-nfkd.c: New file.
12363 * tests/uninorm/test-u16-nfkd.c: New file.
12364 * tests/uninorm/test-u32-nfkd.c: New file.
12365 * tests/uninorm/test-u32-nfkd-big.sh: New file.
12366 * tests/uninorm/test-u32-nfkd-big.c: New file.
12367 * modules/uninorm/nfkd-tests: New file.
12369 New module 'uninorm/nfkd'.
12370 * lib/uninorm/nfkd.c: New file.
12371 * modules/uninorm/nfkd: New file.
12373 Tests for module 'uninorm/nfc'.
12374 * tests/uninorm/test-nfc.c: New file.
12375 * tests/uninorm/test-u8-nfc.c: New file.
12376 * tests/uninorm/test-u16-nfc.c: New file.
12377 * tests/uninorm/test-u32-nfc.c: New file.
12378 * tests/uninorm/test-u32-nfc-big.sh: New file.
12379 * tests/uninorm/test-u32-nfc-big.c: New file.
12380 * modules/uninorm/nfc-tests: New file.
12382 New module 'uninorm/nfc'.
12383 * lib/uninorm/nfc.c: New file.
12384 * modules/uninorm/nfc: New file.
12386 Tests for module 'uninorm/nfd'.
12387 * tests/uninorm/test-nfd.c: New file.
12388 * tests/uninorm/test-u8-nfd.c: New file.
12389 * tests/uninorm/test-u16-nfd.c: New file.
12390 * tests/uninorm/test-u32-nfd.c: New file.
12391 * tests/uninorm/test-u32-nfd-big.sh: New file.
12392 * tests/uninorm/test-u32-nfd-big.c: New file.
12393 * tests/uninorm/test-u32-normalize-big.h: New file.
12394 * tests/uninorm/test-u32-normalize-big.c: New file.
12395 * tests/uninorm/NormalizationTest.txt: New file, created from
12396 Unicode 5.1.0 NormalizationTest.txt.
12397 * modules/uninorm/nfd-tests: New file.
12399 New module 'uninorm/nfd'.
12400 * lib/uninorm/nfd.c: New file.
12401 * modules/uninorm/nfd: New file.
12403 New module 'uninorm/u32-normalize'.
12404 * lib/uninorm/u32-normalize.c: New file.
12405 * modules/uninorm/u32-normalize: New file.
12407 New module 'uninorm/u16-normalize'.
12408 * lib/uninorm/u16-normalize.c: New file.
12409 * modules/uninorm/u16-normalize: New file.
12411 New module 'uninorm/u8-normalize'.
12412 * lib/uninorm/u8-normalize.c: New file.
12413 * lib/uninorm/normalize-internal.h: New file.
12414 * lib/uninorm/u-normalize-internal.h: New file.
12415 * modules/uninorm/u8-normalize: New file.
12417 New module 'uninorm/decompose-internal'.
12418 * lib/uninorm/decompose-internal.c: New file.
12419 * modules/uninorm/decompose-internal: New file.
12421 Tests for module 'uninorm/composition'.
12422 * tests/uninorm/test-composition.c: New file.
12423 * modules/uninorm/composition-tests: New file.
12425 New module 'uninorm/composition'.
12426 * lib/uninorm/composition.c: New file.
12427 * lib/uninorm/composition-table.gperf: New file, generated by
12429 * modules/uninorm/composition: New file.
12431 Tests for module 'uninorm/compat-decomposition'.
12432 * tests/uninorm/test-compat-decomposition.c: New file.
12433 * modules/uninorm/compat-decomposition-tests: New file.
12435 New module 'uninorm/compat-decomposition'.
12436 * lib/uninorm/decompose-internal.h: New file.
12437 * lib/uninorm/compat-decomposition.c: New file.
12438 * modules/uninorm/compat-decomposition: New file.
12440 Tests for module 'uninorm/canonical-decomposition'.
12441 * tests/uninorm/test-canonical-decomposition.c: New file.
12442 * modules/uninorm/canonical-decomposition-tests: New file.
12444 New module 'uninorm/canonical-decomposition'.
12445 * lib/uninorm/canonical-decomposition.c: New file.
12446 * modules/uninorm/canonical-decomposition: New file.
12448 Tests for module 'uninorm/decomposition'.
12449 * tests/uninorm/test-decomposition.c: New file.
12450 * modules/uninorm/decomposition-tests: New file.
12452 New module 'uninorm/decomposition'.
12453 * lib/uninorm/decomposition.c: New file.
12454 * modules/uninorm/decomposition: New file.
12456 New module 'uninorm/decomposition-table'.
12457 * lib/uninorm/decomposition-table.h: New file.
12458 * lib/uninorm/decomposition-table.c: New file.
12459 * lib/uninorm/decomposition-table1.h: New file, generated by
12461 * lib/uninorm/decomposition-table2.h: New file, generated by
12463 * modules/uninorm/decomposition-table: New file.
12465 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
12466 (UC_DECOMP_*): New enumeration items.
12467 (get_decomposition): New function.
12468 (struct decomp_table): New type.
12469 (output_decomposition, output_decomposition_tables): New functions.
12470 (unicode_composition_exclusions): New variable.
12471 (fill_composition_exclusions, debug_output_composition_tables): New
12473 (main): Accept one more argument. Invoke fill_composition_exclusions.
12474 Output decomposition and composition tables.
12476 New module 'uninorm/base'.
12477 * lib/uninorm.h: New file.
12478 * lib/unictype.h: Update comment.
12479 * modules/uninorm/base: New file.
12481 2009-02-21 David Lutterkort <lutter@redhat.com>
12483 Tests for module 'safe-alloc'.
12484 * tests/test-safe-alloc.c: New file.
12485 * modules/safe-alloc-tests: New file.
12487 New module 'safe-alloc'.
12488 * lib/safe-alloc.h: New file.
12489 * lib/safe-alloc.c: New file.
12490 * m4/safe-alloc.m4: New file.
12491 * modules/safe-alloc: New file.
12492 * doc/safe-alloc.texi: New file.
12493 * doc/gnulib.texi: Include it.
12494 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
12497 2009-02-18 Bruno Haible <bruno@clisp.org>
12499 Fix link error on non-glibc systems.
12500 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
12502 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12504 2009-02-18 Jim Meyering <meyering@redhat.com>
12506 fts: avoid used-uninitialized error due to recent change
12507 * lib/fts.c (fts_read): Guard uses of the new member,
12508 parent->fts_n_dirs_remaining, since it's not relevant for
12509 the parent of a directory specified on the command-line.
12511 2009-02-17 James Youngman <jay@gnu.org>
12512 Bruno Haible <bruno@clisp.org>
12514 * m4/include_next.m4: Reformulate comment.
12516 2009-02-16 Jim Meyering <meyering@redhat.com>
12518 fts: add #if guards so that the fts_lgpl module still builds
12519 * lib/fts.c: Guard just-added hash-table-using parts with
12520 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
12521 Reported by Simon Josefsson.
12523 2009-02-15 Bruno Haible <bruno@clisp.org>
12525 * modules/array-mergesort-tests: New file.
12526 * tests/test-array-mergesort.c: New file.
12528 New module 'array-mergesort'.
12529 * modules/array-mergesort: New file.
12530 * lib/array-mergesort.h: New file.
12532 2009-02-15 Bruno Haible <bruno@clisp.org>
12534 Fix 2009-02-07 commit.
12535 * lib/gen-uni-tables.c (output_predicate, output_category,
12536 output_combclass, output_bidi_category, output_decimal_digit,
12537 output_digit, output_numeric, output_mirror, output_scripts,
12538 output_ident_category, output_simple_mapping): Fix format directives.
12539 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
12541 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
12543 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
12544 fixes are available from IBM.
12546 2009-02-13 Jim Meyering <meyering@redhat.com>
12548 fts: arrange not to stat non-directories in more cases
12549 This makes GNU find (when it doesn't need to stat each file)
12550 *much* more efficient at traversing reiserfs file systems.
12551 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
12552 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
12553 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
12554 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
12555 (leaf_optimization_applies): New function.
12556 (LCO_hash, LCO_compare): New helper functions.
12557 (link_count_optimize_ok): New function.
12558 (fts_stat): Initialize new member (if dir).
12559 (fts_read): Decrement parent's fts_n_dirs_remaining count if
12560 we've just stat'ed a directory. Skip the stat call when possible.
12562 Note this AFS-related exchange:
12563 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
12564 and note find's pioctl call in find/fstype.c.
12565 But that is necessary only if you want to enable the
12566 optimization for AFS, and for now, I don't.
12568 fts: move a function definition "up" (no semantic change)
12569 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
12570 "up" to precede upcoming use of a related function.
12572 2009-02-11 Jim Meyering <meyering@redhat.com>
12574 fts: correct internal computation of nlinks (optimization-related)
12575 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
12576 whether the current entry is a directory, so don't test it.
12578 2009-02-10 Bruno Haible <bruno@clisp.org>
12580 Tests for module 'uniwbrk/ulc-wordbreaks'.
12581 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
12582 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
12583 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
12585 Tests for module 'uniwbrk/u32-wordbreaks'.
12586 * modules/uniwbrk/u32-wordbreaks-tests: New file.
12587 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
12589 Tests for module 'uniwbrk/u16-wordbreaks'.
12590 * modules/uniwbrk/u16-wordbreaks-tests: New file.
12591 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
12593 Tests for module 'uniwbrk/u8-wordbreaks'.
12594 * modules/uniwbrk/u8-wordbreaks-tests: New file.
12595 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
12597 2009-02-10 Bruno Haible <bruno@clisp.org>
12599 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
12601 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
12602 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
12603 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
12605 2009-02-10 Simon Josefsson <simon@josefsson.org>
12607 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
12608 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
12610 2009-02-10 Bruno Haible <bruno@clisp.org>
12612 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
12613 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
12614 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
12615 * lib/unilbrk/u8-possible-linebreaks.c: Update.
12616 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
12617 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
12619 2009-02-09 Simon Josefsson <simon@josefsson.org>
12621 * lib/sockets.h (gl_fd_to_handle): New function.
12623 * tests/test-sockets.c: Call gl_fd_to_handle.
12625 2009-02-09 Bruno Haible <bruno@clisp.org>
12627 * doc/havelib.texi: Document the conventions on bi-arch systems.
12629 2009-02-08 Bruno Haible <bruno@clisp.org>
12631 Document the AC_LIB_LINKFLAGS macro.
12632 * doc/havelib.texi: New file, mostly written on 2005-05-24.
12633 * doc/gnulib.texi: Include it.
12635 2009-02-08 Bruno Haible <bruno@clisp.org>
12637 Fix wrong order of sections, compared to TOC.
12638 * doc/gnulib.texi: Include relocatable-maint.texi after the
12639 "Regular expressions" node, not before.
12641 2009-02-08 Bruno Haible <bruno@clisp.org>
12643 Tests for module 'unicase/totitle'.
12644 * modules/unicase/totitle-tests: New file.
12646 Tests for module 'unicase/tolower'.
12647 * modules/unicase/tolower-tests: New file.
12649 Tests for module 'unicase/toupper'.
12650 * modules/unicase/toupper-tests: New file.
12651 * tests/unicase/test-mapping-part1.h: New file.
12652 * tests/unicase/test-mapping-part2.h: New file.
12654 New module 'unicase/totitle'.
12655 * modules/unicase/totitle: New file.
12656 * lib/unicase/totitle.c: New file.
12658 New module 'unicase/tolower'.
12659 * modules/unicase/tolower: New file.
12660 * lib/unicase/tolower.c: New file.
12662 New module 'unicase/toupper'.
12663 * modules/unicase/toupper: New file.
12664 * lib/unicase/toupper.c: New file.
12665 * lib/unicase/simple-mapping.h: New file.
12667 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
12668 (mapping_table): New structure.
12669 (output_simple_mapping): New function.
12670 (main): Invoke output_simple_mapping_test and output_simple_mapping.
12671 * modules/gen-uni-tables (Description): Update.
12672 * lib/unicase/toupper.h: New file, automatically generated by
12674 * lib/unicase/tolower.h: New file, automatically generated by
12676 * lib/unicase/totitle.h: New file, automatically generated by
12678 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
12680 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
12682 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
12685 New module 'unicase/base'.
12686 * modules/unicase/base: New file.
12687 * lib/unicase.h: New file.
12689 2009-02-08 Bruno Haible <bruno@clisp.org>
12691 New module 'uniwbrk/ulc-wordbreaks'.
12692 * modules/uniwbrk/ulc-wordbreaks: New file.
12693 * lib/uniwbrk/ulc-wordbreaks.c: New file.
12695 New module 'uniwbrk/u32-wordbreaks'.
12696 * modules/uniwbrk/u32-wordbreaks: New file.
12697 * lib/uniwbrk/u32-wordbreaks.c: New file.
12699 New module 'uniwbrk/u16-wordbreaks'.
12700 * modules/uniwbrk/u16-wordbreaks: New file.
12701 * lib/uniwbrk/u16-wordbreaks.c: New file.
12703 New module 'uniwbrk/u8-wordbreaks'.
12704 * modules/uniwbrk/u8-wordbreaks: New file.
12705 * lib/uniwbrk/u8-wordbreaks.c: New file.
12706 * lib/uniwbrk/u-wordbreaks.h: New file.
12708 New module 'uniwbrk/table'.
12709 * modules/uniwbrk/table: New file.
12710 * lib/uniwbrk/wbrktable.h: New file.
12711 * lib/uniwbrk/wbrktable.c: New file.
12713 New module 'uniwbrk/wordbreak-property'.
12714 * modules/uniwbrk/wordbreak-property: New file.
12715 * lib/uniwbrk/wordbreak-property.c: New file.
12717 * lib/gen-uni-tables.c (WBP_*): New enum items.
12718 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
12719 (unicode_org_wbp): New variable.
12720 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
12722 (wbp_table): New structure.
12723 (output_wbp, output_wbrk_tables): New functions.
12724 (main): Accept additional argument. Invoke fill_org_wbp,
12725 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
12726 output_wbrk_tables.
12727 * modules/gen-uni-tables (Description): Update.
12728 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
12731 New module 'uniwbrk/base'.
12732 * modules/uniwbrk/base: New file.
12733 * lib/uniwbrk.h: New file.
12735 2009-02-08 Bruno Haible <bruno@clisp.org>
12737 Update to Unicode 5.1.0.
12738 * lib/gen-uni-tables.c (is_property_alphabetic): Include
12740 (is_property_default_ignorable_code_point): Don't include characters
12741 of category Cc or Cs and not-a-characters.
12742 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
12743 U+0D79, U+109E, U+109F, U+A60C.
12744 * lib/unictype/bidi_of.h: Regenerated.
12745 * lib/unictype/blocks.h: Regenerated.
12746 * lib/unictype/categ_C.h: Regenerated.
12747 * lib/unictype/categ_Cf.h: Regenerated.
12748 * lib/unictype/categ_Cn.h: Regenerated.
12749 * lib/unictype/categ_L.h: Regenerated.
12750 * lib/unictype/categ_Ll.h: Regenerated.
12751 * lib/unictype/categ_Lm.h: Regenerated.
12752 * lib/unictype/categ_Lo.h: Regenerated.
12753 * lib/unictype/categ_Lu.h: Regenerated.
12754 * lib/unictype/categ_M.h: Regenerated.
12755 * lib/unictype/categ_Mc.h: Regenerated.
12756 * lib/unictype/categ_Me.h: Regenerated.
12757 * lib/unictype/categ_Mn.h: Regenerated.
12758 * lib/unictype/categ_N.h: Regenerated.
12759 * lib/unictype/categ_Nd.h: Regenerated.
12760 * lib/unictype/categ_Nl.h: Regenerated.
12761 * lib/unictype/categ_No.h: Regenerated.
12762 * lib/unictype/categ_P.h: Regenerated.
12763 * lib/unictype/categ_Pd.h: Regenerated.
12764 * lib/unictype/categ_Pe.h: Regenerated.
12765 * lib/unictype/categ_Pf.h: Regenerated.
12766 * lib/unictype/categ_Pi.h: Regenerated.
12767 * lib/unictype/categ_Po.h: Regenerated.
12768 * lib/unictype/categ_Ps.h: Regenerated.
12769 * lib/unictype/categ_S.h: Regenerated.
12770 * lib/unictype/categ_Sk.h: Regenerated.
12771 * lib/unictype/categ_Sm.h: Regenerated.
12772 * lib/unictype/categ_So.h: Regenerated.
12773 * lib/unictype/categ_of.h: Regenerated.
12774 * lib/unictype/combining.h: Regenerated.
12775 * lib/unictype/ctype_alnum.h: Regenerated.
12776 * lib/unictype/ctype_alpha.h: Regenerated.
12777 * lib/unictype/ctype_graph.h: Regenerated.
12778 * lib/unictype/ctype_lower.h: Regenerated.
12779 * lib/unictype/ctype_print.h: Regenerated.
12780 * lib/unictype/ctype_punct.h: Regenerated.
12781 * lib/unictype/ctype_upper.h: Regenerated.
12782 * lib/unictype/decdigit.h: Regenerated.
12783 * lib/unictype/digit.h: Regenerated.
12784 * lib/unictype/mirror.h: Regenerated.
12785 * lib/unictype/numeric.h: Regenerated.
12786 * lib/unictype/pr_alphabetic.h: Regenerated.
12787 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
12788 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
12789 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
12790 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
12791 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
12792 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
12793 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
12794 * lib/unictype/pr_combining.h: Regenerated.
12795 * lib/unictype/pr_dash.h: Regenerated.
12796 * lib/unictype/pr_decimal_digit.h: Regenerated.
12797 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
12798 * lib/unictype/pr_deprecated.h: Regenerated.
12799 * lib/unictype/pr_diacritic.h: Regenerated.
12800 * lib/unictype/pr_extender.h: Regenerated.
12801 * lib/unictype/pr_format_control.h: Regenerated.
12802 * lib/unictype/pr_grapheme_base.h: Regenerated.
12803 * lib/unictype/pr_grapheme_extend.h: Regenerated.
12804 * lib/unictype/pr_grapheme_link.h: Regenerated.
12805 * lib/unictype/pr_id_continue.h: Regenerated.
12806 * lib/unictype/pr_id_start.h: Regenerated.
12807 * lib/unictype/pr_ideographic.h: Regenerated.
12808 * lib/unictype/pr_ignorable_control.h: Regenerated.
12809 * lib/unictype/pr_lowercase.h: Regenerated.
12810 * lib/unictype/pr_math.h: Regenerated.
12811 * lib/unictype/pr_numeric.h: Regenerated.
12812 * lib/unictype/pr_other_alphabetic.h: Regenerated.
12813 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
12814 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
12815 * lib/unictype/pr_other_id_continue.h: Regenerated.
12816 * lib/unictype/pr_other_lowercase.h: Regenerated.
12817 * lib/unictype/pr_other_math.h: Regenerated.
12818 * lib/unictype/pr_punctuation.h: Regenerated.
12819 * lib/unictype/pr_sentence_terminal.h: Regenerated.
12820 * lib/unictype/pr_soft_dotted.h: Regenerated.
12821 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
12822 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
12823 * lib/unictype/pr_unified_ideograph.h: Regenerated.
12824 * lib/unictype/pr_uppercase.h: Regenerated.
12825 * lib/unictype/pr_xid_continue.h: Regenerated.
12826 * lib/unictype/pr_xid_start.h: Regenerated.
12827 * lib/unictype/pr_zero_width.h: Regenerated.
12828 * lib/unictype/scripts.h: Regenerated.
12829 * lib/unictype/scripts_byname.gperf: Regenerated.
12830 * lib/unictype/sy_java_ident.h: Regenerated.
12831 * lib/unilbrk/lbrkprop1.h: Regenerated.
12832 * lib/unilbrk/lbrkprop2.h: Regenerated.
12833 * tests/unictype/test-categ_C.c: Regenerated.
12834 * tests/unictype/test-categ_Cf.c: Regenerated.
12835 * tests/unictype/test-categ_Cn.c: Regenerated.
12836 * tests/unictype/test-categ_L.c: Regenerated.
12837 * tests/unictype/test-categ_Ll.c: Regenerated.
12838 * tests/unictype/test-categ_Lm.c: Regenerated.
12839 * tests/unictype/test-categ_Lo.c: Regenerated.
12840 * tests/unictype/test-categ_Lu.c: Regenerated.
12841 * tests/unictype/test-categ_M.c: Regenerated.
12842 * tests/unictype/test-categ_Mc.c: Regenerated.
12843 * tests/unictype/test-categ_Me.c: Regenerated.
12844 * tests/unictype/test-categ_Mn.c: Regenerated.
12845 * tests/unictype/test-categ_N.c: Regenerated.
12846 * tests/unictype/test-categ_Nd.c: Regenerated.
12847 * tests/unictype/test-categ_Nl.c: Regenerated.
12848 * tests/unictype/test-categ_No.c: Regenerated.
12849 * tests/unictype/test-categ_P.c: Regenerated.
12850 * tests/unictype/test-categ_Pd.c: Regenerated.
12851 * tests/unictype/test-categ_Pe.c: Regenerated.
12852 * tests/unictype/test-categ_Pf.c: Regenerated.
12853 * tests/unictype/test-categ_Pi.c: Regenerated.
12854 * tests/unictype/test-categ_Po.c: Regenerated.
12855 * tests/unictype/test-categ_Ps.c: Regenerated.
12856 * tests/unictype/test-categ_S.c: Regenerated.
12857 * tests/unictype/test-categ_Sk.c: Regenerated.
12858 * tests/unictype/test-categ_Sm.c: Regenerated.
12859 * tests/unictype/test-categ_So.c: Regenerated.
12860 * tests/unictype/test-ctype_alnum.c: Regenerated.
12861 * tests/unictype/test-ctype_alpha.c: Regenerated.
12862 * tests/unictype/test-ctype_graph.c: Regenerated.
12863 * tests/unictype/test-ctype_lower.c: Regenerated.
12864 * tests/unictype/test-ctype_print.c: Regenerated.
12865 * tests/unictype/test-ctype_punct.c: Regenerated.
12866 * tests/unictype/test-ctype_upper.c: Regenerated.
12867 * tests/unictype/test-decdigit.h: Regenerated.
12868 * tests/unictype/test-digit.h: Regenerated.
12869 * tests/unictype/test-numeric.h: Regenerated.
12870 * tests/unictype/test-pr_alphabetic.c: Regenerated.
12871 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
12872 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
12873 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
12874 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
12875 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
12876 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
12877 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
12878 * tests/unictype/test-pr_combining.c: Regenerated.
12879 * tests/unictype/test-pr_dash.c: Regenerated.
12880 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
12881 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
12882 * tests/unictype/test-pr_deprecated.c: Regenerated.
12883 * tests/unictype/test-pr_diacritic.c: Regenerated.
12884 * tests/unictype/test-pr_extender.c: Regenerated.
12885 * tests/unictype/test-pr_format_control.c: Regenerated.
12886 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
12887 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
12888 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
12889 * tests/unictype/test-pr_id_continue.c: Regenerated.
12890 * tests/unictype/test-pr_id_start.c: Regenerated.
12891 * tests/unictype/test-pr_ideographic.c: Regenerated.
12892 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
12893 * tests/unictype/test-pr_lowercase.c: Regenerated.
12894 * tests/unictype/test-pr_math.c: Regenerated.
12895 * tests/unictype/test-pr_numeric.c: Regenerated.
12896 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
12897 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
12899 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
12900 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
12901 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
12902 * tests/unictype/test-pr_other_math.c: Regenerated.
12903 * tests/unictype/test-pr_punctuation.c: Regenerated.
12904 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
12905 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
12906 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
12907 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
12908 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
12909 * tests/unictype/test-pr_uppercase.c: Regenerated.
12910 * tests/unictype/test-pr_xid_continue.c: Regenerated.
12911 * tests/unictype/test-pr_xid_start.c: Regenerated.
12912 * tests/unictype/test-pr_zero_width.c: Regenerated.
12914 Update to Unicode 5.1.0.
12915 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
12916 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
12917 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
12918 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
12919 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
12920 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
12921 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
12922 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
12923 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
12924 (nonspacing_table_ind): Update.
12925 * tests/uniwidth/test-uc_width2.sh: Update expected result.
12927 Update to Unicode 5.1.0.
12928 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
12930 * lib/uniname/uniname.c (unicode_character_name,
12931 unicode_name_character): Add the range 0x1Fxxx to the code transform.
12932 * lib/uniname/uninames.h: Regenerated.
12933 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
12935 2009-02-07 Bruno Haible <bruno@clisp.org>
12937 Merge gen-ctype and gen-lbrk into a single program.
12938 * lib/gen-uni-tables.c: New file, incorporating
12939 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
12940 Add directory prefixes to the names of the generated files.
12941 * lib/unictype/gen-ctype.c: Remove file.
12942 * lib/unilbrk/gen-lbrk.c: Remove file.
12943 * modules/gen-uni-tables: New file.
12944 * modules/unictype/gen-ctype: Remove file.
12945 * modules/unilbrk/gen-lbrk: Remove file.
12947 2009-02-07 Bruno Haible <bruno@clisp.org>
12949 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
12951 New module 'unistr/u32-strcoll'.
12952 * modules/unistr/u32-strcoll: New file.
12953 * lib/unistr/u32-strcoll.c: New file.
12955 New module 'unistr/u16-strcoll'.
12956 * modules/unistr/u16-strcoll: New file.
12957 * lib/unistr/u16-strcoll.c: New file.
12959 New module 'unistr/u8-strcoll'.
12960 * modules/unistr/u8-strcoll: New file.
12961 * lib/unistr/u8-strcoll.c: New file.
12962 * lib/unistr/u-strcoll.h: New file.
12964 2009-02-07 Bruno Haible <bruno@clisp.org>
12966 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
12967 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
12968 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
12969 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
12970 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
12971 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
12973 2009-02-07 Bruno Haible <bruno@clisp.org>
12976 * lib/unictype/gen-ctype.c (output_predicate, output_category,
12977 output_combclass, output_bidi_category, output_decimal_digit,
12978 output_digit, output_numeric, output_mirror, output_scripts,
12979 output_ident_category): Use proper width specifier in format strings.
12981 2009-02-07 Bruno Haible <bruno@clisp.org>
12983 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
12986 2009-02-07 Jim Meyering <meyering@redhat.com>
12988 regex: avoid compilation failure with upcoming gcc-4.4
12989 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
12990 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
12991 "... error: integer overflow in preprocessor expression".
12993 2009-02-05 Ben Pfaff <blp@gnu.org>
12995 Fix link errors on Windows when close module is used.
12996 * modules/close: Add $(LIB_CLOSE) to Link section.
12997 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
12998 $(LIB_CLOSE) on Windows.
13000 2009-02-05 Jim Meyering <meyering@redhat.com>
13002 still avoid unused-parameter warnings, but do it cleanly
13003 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
13004 (get_fs_usage): Cast to void instead.
13005 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
13006 (dev_from_mount_options, read_file_system_list): Cast to void.
13007 Prompted by Bruno Haible.
13009 2009-02-04 Jim Meyering <meyering@redhat.com>
13011 fsusage.c: correct copyright year
13012 * lib/fsusage.c: Reflect year in which the change is pushed into
13014 avoid misc. warnings
13015 * lib/fsusage.c (UNUSED_PARAM): Define.
13016 (get_fs_usage): Mark parameter "disk" as unused.
13017 * lib/getugroups.c (getgrent): Use "void" in prototype.
13018 * lib/mountlist.c: Mark unused parameters.
13019 (read_file_system_list): Declare a local with "const".
13020 * lib/nanosleep.c (getnow): Declare static.
13021 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
13023 dirfd: set errno upon failure
13024 * lib/dirfd.c: Include <errno.h>.
13025 Set errno to ENOTSUP when returning -1.
13026 * modules/dirfd (Depends-on): Add errno.
13027 Suggested by John Kodis <kodis@comcast.net>.
13029 2009-02-01 Bruno Haible <bruno@clisp.org>
13031 Don't assume sizeof (long) >= sizeof (void *).
13032 * lib/memcmp.c: Include stdint.h.
13033 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
13034 srcp2 to 'const byte *'.
13035 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
13036 types to uintptr_t.
13037 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
13038 * modules/memcmp (Depends-on): Add stdint.
13039 Reported by Ozkan Sezer <sezeroz@gmail.com>.
13041 2009-01-30 Eric Blake <ebb9@byu.net>
13043 fix more require-before-expand issues
13044 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
13045 expand, AC_PROG_AWK.
13046 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
13048 2009-01-28 Eric Blake <ebb9@byu.net>
13050 version-etc: use consistent URL formatting
13051 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
13052 Improve formatting. Use fputs for string without %.
13054 2009-01-28 Jim Meyering <meyering@redhat.com>
13056 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
13057 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
13058 "underquoted definition of NAME" from autoconf-2.59.
13060 2009-01-28 Bruno Haible <bruno@clisp.org>
13062 * doc/gnulib.texi: Add "Obsolete modules" to index.
13064 2009-01-28 Jim Meyering <meyering@redhat.com>
13066 useless-if-before-free: recognize more variants
13067 * build-aux/useless-if-before-free: Also recognize e.g.,
13068 if (NULL != p) free (p);
13070 2009-01-27 Mark McLoughlin <markmc@redhat.com>
13072 test-getaddrinfo: skip (don't fail) this test when there's no network
13073 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
13074 on the presumption that it means you lack network access.
13076 2009-01-26 Jim Meyering <meyering@redhat.com>
13078 fflush: avoid warnings on modern systems
13079 * lib/fflush.c (rpl_fflush): Move declarations of locals,
13080 pos and result, into scopes where they're used.
13082 2009-01-26 Eric Blake <ebb9@byu.net>
13084 Silence warning reintroduced by recent extensions patch.
13085 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
13086 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
13089 Backport improved autoconf semantics of AC_DEFUN_ONCE.
13090 * m4/00gnulib.m4: New file.
13091 * gnulib-tool (func_get_filelist): Always use it.
13092 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
13093 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
13095 2009-01-25 Bruno Haible <bruno@clisp.org>
13097 Make test-quotearg work on MacOS X and AIX.
13098 * tests/test-quotearg.sh: New file.
13099 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
13100 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
13101 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
13102 include <libintl.h>.
13103 (fake_locale): Remove variable.
13104 (gettext, dgettext, dcgettext): Remove functions.
13105 (main): Instead of setting a fake locale, set a real locale. Call
13106 textdomain and bindtextdomain.
13107 * modules/quotearg-tests (Files): Add the new files.
13108 (Depends-on): Add gettext, setenv, unsetenv.
13109 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
13110 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
13111 Augment TESTS_ENVIRONMENT.
13113 2009-01-25 Bruno Haible <bruno@clisp.org>
13115 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
13116 fr_FR.ISO8859-1 locale on MacOS X.
13117 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
13118 ja_JP.eucJP locale on MacOS X.
13119 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
13120 zh_CN.GB18030 locale on MacOS X.
13122 2009-01-25 Bruno Haible <bruno@clisp.org>
13124 Avoid link errors on MacOS X 10.3.
13125 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
13126 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
13128 2009-01-25 Bruno Haible <bruno@clisp.org>
13130 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
13131 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
13132 * modules/pipe (Files): Remove m4/posix_spawn.m4.
13133 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
13134 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
13135 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
13136 posix_spawnattr_init, posix_spawnattr_setsigmask,
13137 posix_spawnattr_setflags, posix_spawnattr_destroy.
13139 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
13140 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
13141 * modules/execute (Files): Remove m4/posix_spawn.m4.
13142 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
13143 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
13144 posix_spawnattr_init, posix_spawnattr_setsigmask,
13145 posix_spawnattr_setflags, posix_spawnattr_destroy.
13147 2009-01-25 Bruno Haible <bruno@clisp.org>
13149 * lib/glthread/threadlib.c: Include <stdlib.h>.
13151 2009-01-25 Bruno Haible <bruno@clisp.org>
13153 * lib/glthread/threadlib.c (dummy): New declaration.
13155 2009-01-25 Bruno Haible <bruno@clisp.org>
13157 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
13158 multibyte characters also for the GB18030 encoding. Don't crash when
13159 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
13161 2009-01-25 Bruno Haible <bruno@clisp.org>
13163 Avoid redefining 'struct random_data' on OSF/1 5.1.
13164 * lib/stdlib.in.h: Include <random.h> if it exists.
13165 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
13166 HAVE_RANDOM_H. Include <random.h> when testing whether
13167 'struct random_data' exists.
13168 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
13170 2009-01-25 Bruno Haible <bruno@clisp.org>
13172 Don't install charset.alias on MacOS X >= 10.3.
13173 * lib/localcharset.c (DARWIN7): New macro.
13174 (get_charset_aliases): Hardcode the result for Darwin7.
13175 * modules/localcharset (install-exec-local): Don't install
13176 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
13178 2009-01-25 Bruno Haible <bruno@clisp.org>
13180 Don't install charset.alias on mingw and Cygwin.
13181 * modules/localcharset (install-exec-local): Don't install
13182 charset.alias on mingw and Cygwin, if the file does not yet exist.
13183 The result for these platforms is hardcoded in localcharset.c.
13185 2009-01-25 Bruno Haible <bruno@clisp.org>
13187 Make it possible again to use AC_GNU_SOURCE together with gnulib.
13188 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
13189 before requiring AC_USE_SYSTEM_EXTENSIONS.
13191 2009-01-25 Jim Meyering <meyering@redhat.com>
13193 c-strtod: avoid warnings
13194 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
13195 "assignment discards qualifiers from pointer target type" warnings.
13197 2009-01-24 Bruno Haible <bruno@clisp.org>
13199 Add support for non-UTF-8 locales on MacOS X.
13200 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
13201 canonical encodings. For Darwin 7 and newer, don't map traditional
13202 encodings to UTF-8.
13203 Reported by Vincent Lefevre <vincent@vinc17.org>
13204 at <http://savannah.gnu.org/bugs/?25235>.
13206 2009-01-24 Bruno Haible <bruno@clisp.org>
13208 * doc/gnulib.texi (Obsolete modules): New section.
13209 Reported by Mike Frysinger <vapier@gentoo.org>.
13211 2009-01-24 Bruno Haible <bruno@clisp.org>
13213 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
13216 2009-01-24 Bruno Haible <bruno@clisp.org>
13218 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
13219 Reported by Eric Blake.
13221 2009-01-24 Bruno Haible <bruno@clisp.org>
13223 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
13224 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
13225 Reported by Gary V. Vaughan <gary@gnu.org>.
13227 2009-01-24 Bruno Haible <bruno@clisp.org>
13229 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
13231 2009-01-23 Bruno Haible <bruno@clisp.org>
13233 Make c-strtod, c-strtold usable in libraries.
13234 * lib/c-strtod.c: Include string.h instead of xalloc.h.
13235 (C_STRTOD): Call strdup instead of xstrdup.
13236 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
13237 * modules/c-strtold (Depends-on): Likewise.
13238 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
13239 * NEWS: Mention the change.
13240 Reported by Michael Gold <mgold@ncf.ca>.
13242 2009-01-23 Jim Meyering <meyering@redhat.com>
13244 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
13245 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
13246 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
13248 2009-01-23 Simon Josefsson <simon@josefsson.org>
13250 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
13252 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
13253 * modules/version-etc (Description): Update.
13255 2009-01-22 Bruno Haible <bruno@clisp.org>
13257 Cache the C locale object.
13258 * lib/c-strtod.c (c_locale_cache): New variable.
13259 (c_locale): New function.
13260 (C_STRTOD): Use it, and don't call freelocale.
13261 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
13262 Suggested by Paolo Bonzini.
13264 2009-01-21 Bruno Haible <bruno@clisp.org>
13266 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
13267 conditions other than overflow.
13269 2009-01-21 Bruno Haible <bruno@clisp.org>
13271 * lib/c-strtod.c: Include errno.h.
13272 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
13273 value from STRTOD_L and STRTOD.
13275 2009-01-21 Bruno Haible <bruno@clisp.org>
13276 and Jim Meyering <meyering@redhat.com>
13278 nanosleep: skip configure test (fail it) for apple universal builds
13279 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
13280 universal builds, assume that nanosleep does not work.
13281 * modules/nanosleep (Depends-on): Add multiarch.
13283 mktime: skip configure test (fail it) for apple universal builds
13284 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
13285 universal builds, assume that mktime does not work.
13286 * modules/mktime (Depends-on): Add multiarch.
13288 2009-01-21 Eric Blake <ebb9@byu.net>
13290 multiarch: avoid expand-before-require warning
13291 * modules/multiarch (configure.ac): Require, rather than expand,
13293 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
13294 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
13295 enforce that all clients require it. Partial reversion of
13298 error: avoid expand-before-require warning
13299 * modules/errno (configure.ac): Require, rather than expand,
13301 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
13302 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
13303 enforce that all clients require it.
13305 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
13306 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
13307 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
13308 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
13310 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
13313 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
13315 regex: do not depend on obsolete modules.
13316 * modules/regex: Remove memcmp and memmove.
13318 2009-01-20 Bruno Haible <bruno@clisp.org>
13320 Make the 'link' module link on Windows NT 4.
13321 * lib/link.c (_WIN32_WINNT): Don't define.
13322 (CreateHardLinkFuncType): New type.
13323 (CreateHardLinkFunc, initialized): New variables.
13324 (initialize): New function.
13325 (link): Invoke CreateHardLink indirectly through the function pointer.
13327 2009-01-20 Bruno Haible <bruno@clisp.org>
13329 Fix compilation failure on mingw.
13330 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
13332 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
13334 * doc/c-strtod.texi: Mention a couple of restrictions.
13336 2009-01-20 Jim Meyering <meyering@redhat.com>
13338 gettimeofday: move more declarations out of functions
13339 * lib/gettimeofday.c: Move extern declarations of tzset and
13340 gmtime out of containing functions. Prompted by Bruno Haible.
13342 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
13344 regex: do not depend on obsolete modules.
13345 * modules/regex: Remove memcmp and memmove.
13347 2009-01-19 Bruno Haible <bruno@clisp.org>
13349 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13350 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
13351 gl_BIGENDIAN, not AC_C_BIGENDIAN.
13352 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
13353 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
13355 2009-01-19 Bruno Haible <bruno@clisp.org>
13357 * tests/test-link.c: Include <errno.h>.
13358 (main): Exit with code 77 when a hard link cannot be created due to
13360 * tests/test-link.sh: Skip test when a hard link cannot be created due
13361 to the file system.
13362 Suggested by Eric Blake.
13364 2009-01-19 Martin Lambers <marlam@marlam.de>
13366 * modules/link-tests: New file.
13367 * tests/test-link.sh: New file.
13368 * tests/test-link.c: New file.
13370 2009-01-19 Eric Blake <ebb9@byu.net>
13372 doc: mention another function added in cygwin 1.7.0
13373 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
13374 Another new function in cygwin 1.7.
13376 2009-01-19 Bruno Haible <bruno@clisp.org>
13378 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
13379 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
13380 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
13381 gl_BIGENDIAN, not AC_C_BIGENDIAN.
13382 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13383 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
13384 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13385 * m4/md4.m4 (gl_MD4): Likewise.
13386 * m4/md5.m4 (gl_MD5): Likewise.
13387 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
13388 * m4/sha1.m4 (gl_SHA1): Likewise.
13389 * m4/sha256.m4 (gl_SHA256): Likewise.
13390 * m4/sha512.m4 (gl_SHA512): Likewise.
13392 2009-01-19 Bruno Haible <bruno@clisp.org>
13394 * modules/uniname/uniname-tests (Depends-on): Add progname.
13395 * tests/uniname/test-uninames.c: Include progname.h.
13396 (main): Call set_program_name.
13398 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
13399 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
13400 (main): Call set_program_name.
13402 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
13403 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
13404 (main): Call set_program_name.
13406 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
13407 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
13408 (main): Call set_program_name.
13410 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
13411 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
13412 (main): Call set_program_name.
13414 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
13415 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
13416 (main): Call set_program_name.
13418 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
13419 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
13420 (main): Call set_program_name.
13422 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
13423 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
13424 (main): Call set_program_name.
13426 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
13427 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
13428 (main): Call set_program_name.
13430 2009-01-19 Eric Blake <ebb9@byu.net>
13432 test-unistd: test previous patch
13433 * tests/test-unistd.c: Test *_FILENO macros.
13435 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
13436 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13437 Guarantee a definition.
13438 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
13439 * modules/unistd-safer (Depends-on): Add dependency on unistd.
13440 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
13441 * lib/dup-safer.c (STDERR_FILENO): Likewise.
13442 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13444 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
13445 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
13446 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
13448 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
13449 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
13450 (STDERR_FILENO): Likewise.
13451 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
13452 (STDERR_FILENO): Likewise.
13453 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
13454 (STDERR_FILENO): Likewise.
13455 Reported by Elbert Pol.
13457 2009-01-19 Eric Blake <ebb9@byu.net>
13459 doc: mention more functions added in cygwin 1.7.0
13460 * doc/posix-functions/abort.texi (abort): Update wording related
13462 * doc/posix-functions/daylight.texi (daylight): Likewise.
13463 * doc/posix-functions/optarg.texi (optarg): Likewise.
13464 * doc/posix-functions/optarg.texi (opterr): Likewise.
13465 * doc/posix-functions/optarg.texi (optind): Likewise.
13466 * doc/posix-functions/optarg.texi (optopt): Likewise.
13467 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
13468 worked in 1.5.x, and was withdrawn in 1.7.
13469 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13470 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
13472 * doc/posix-functions/perror.texi (perror): Likewise.
13473 * doc/posix-functions/printf.texi (printf): Likewise.
13474 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
13475 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
13476 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13477 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13478 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13479 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
13480 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
13482 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
13484 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
13486 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
13487 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
13489 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
13490 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
13491 * doc/posix-functions/confstr.texi (confstr): Likewise.
13492 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
13493 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
13494 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
13495 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
13496 * doc/posix-functions/fputws.texi (fputws): Likewise.
13497 * doc/posix-functions/fwide.texi (fwide): Likewise.
13498 * doc/posix-functions/getwc.texi (getwc): Likewise.
13499 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
13500 * doc/posix-functions/putwc.texi (putwc): Likewise.
13501 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
13502 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
13503 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
13504 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13505 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
13506 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
13507 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
13508 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
13509 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
13510 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
13511 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
13513 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
13515 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
13516 * lib/ioctl.c: Include <sys/ioctl.h>.
13518 2009-01-19 Simon Josefsson <simon@josefsson.org>
13520 * modules/getdate-tests (Depends-on): Add progname.
13521 * tests/test-getdate.c: Use progname module, to avoid link errors
13522 on non-glibc systems.
13524 2009-01-18 Simon Josefsson <simon@josefsson.org>
13526 * modules/filenamecat-tests (Depends-on): Add progname.
13527 * modules/fstrcmp-tests (Depends-on): Likewise.
13529 * tests/test-filenamecat.c: Use progname module, to avoid link
13530 errors on non-glibc systems.
13531 * tests/test-fstrcmp.c: Likewise.
13533 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
13535 gettimeofday: avoid warning: nested extern declaration of 'localtime'
13536 * lib/gettimeofday.c: Move extern declaration out of function.
13538 2009-01-18 Bruno Haible <bruno@clisp.org>
13540 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
13541 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
13542 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
13544 2009-01-18 Bruno Haible <bruno@clisp.org>
13546 * lib/strftime.c (MEMPCPY): Remove unused macro.
13547 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
13549 2009-01-18 Martin Lambers <marlam@marlam.de>
13552 * lib/unistd.in.h (link): New declaration.
13553 * lib/link.c: New file.
13554 * m4/link.m4: New file.
13555 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
13557 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
13558 * modules/link: New file.
13559 * doc/posix-functions/link.texi: Mention the new module.
13561 2009-01-18 Bruno Haible <bruno@clisp.org>
13563 * tests/test-avltree_list.c (main): Call set_program_name.
13564 * tests/test-avltree_oset.c (main): Likewise.
13565 * tests/test-obstack-printf.c: Include progname.h.
13566 (main): Call set_program_name.
13567 * tests/test-quotearg.c: Include progname.h.
13568 (main): Call set_program_name.
13569 * tests/test-xmemdup0.c: Include progname.h.
13570 (main): Call set_program_name.
13572 2009-01-18 Bruno Haible <bruno@clisp.org>
13574 New module 'alphasort'.
13575 * lib/dirent.in.h (alphasort): New declaration.
13576 * lib/alphasort.c: New file, from glibc with modifications.
13577 * m4/alphasort.m4: New file.
13578 * modules/alphasort: New file.
13579 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
13581 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
13583 * doc/posix-functions/alphasort.texi: Mention the new module and the
13584 portability problems.
13586 2009-01-18 Bruno Haible <bruno@clisp.org>
13588 New module 'scandir'.
13589 * lib/dirent.in.h (scandir): New declaration.
13590 * lib/scandir.c: New file, from glibc with modifications.
13591 * m4/scandir.m4: New file.
13592 * modules/scandir: New file.
13593 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
13595 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
13597 * doc/posix-functions/scandir.texi: Mention the new module and the
13598 portability problems.
13600 2009-01-17 Bruno Haible <bruno@clisp.org>
13602 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
13603 Update documentation.
13604 (func_remove_suffix): Escape all dots in the suffix. Update
13606 (func_filter_filelist): Update documentation.
13607 Reported by Ralf Wildenhues.
13609 2009-01-17 Bruno Haible <bruno@clisp.org>
13611 * modules/dprintf-posix-tests: New file.
13612 * tests/test-dprintf-posix.sh: New file.
13613 * tests/test-dprintf-posix.c: New file.
13615 New modules 'dprintf', 'dprintf-posix'.
13616 * lib/stdio.in.h (dprintf): New declaration.
13617 * lib/dprintf.c: New file.
13618 * m4/dprintf.m4: New file.
13619 * m4/dprintf-posix.m4: New file.
13620 * modules/dprintf: New file.
13621 * modules/dprintf-posix: New file.
13622 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
13623 HAVE_DPRINTF, REPLACE_DPRINTF.
13624 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
13625 HAVE_DPRINTF, REPLACE_DPRINTF.
13626 * doc/posix-functions/dprintf.texi: Mention the new modules.
13628 2009-01-17 Bruno Haible <bruno@clisp.org>
13630 * modules/vdprintf-posix-tests: New file.
13631 * tests/test-vdprintf-posix.sh: New file.
13632 * tests/test-vdprintf-posix.c: New file.
13634 New modules 'vdprintf', 'vdprintf-posix'.
13635 * lib/stdio.in.h (vdprintf): New declaration.
13636 * lib/vdprintf.c: New file.
13637 * m4/vdprintf.m4: New file.
13638 * m4/vdprintf-posix.m4: New file.
13639 * modules/vdprintf: New file.
13640 * modules/vdprintf-posix: New file.
13641 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
13642 HAVE_VDPRINTF, REPLACE_VDPRINTF.
13643 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
13644 HAVE_VDPRINTF, REPLACE_VDPRINTF.
13645 * doc/posix-functions/vdprintf.texi: Mention the new modules.
13647 2009-01-17 Bruno Haible <bruno@clisp.org>
13649 Fix replacement of fopen on mingw.
13650 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
13653 2009-01-17 Bruno Haible <bruno@clisp.org>
13655 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
13656 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
13658 2009-01-17 Bruno Haible <bruno@clisp.org>
13660 Avoid test-fflush2.sh failure on mingw.
13661 * tests/test-fflush2.c: Include binary-io.h.
13662 (main): Put standard input into binary mode.
13663 * modules/fflush-tests (Depends-on): Add binary-io.
13665 2009-01-17 Bruno Haible <bruno@clisp.org>
13667 * lib/wchar.in.h: In another particular situation, include only the
13668 system's <wchar.h> file.
13669 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
13670 Reported by Albert Chin-A-Young <china@thewrittenword.com>
13671 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
13673 2009-01-17 Bruno Haible <bruno@clisp.org>
13675 Support for stripping executables in --enable-relocatable.
13676 * build-aux/install-reloc: Expect one more argument, or an environment
13677 variable RELOC_STRIP_PROG. If set, strip the destination program and
13679 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
13681 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
13682 to set RELOCATABLE_STRIP.
13683 * NEWS: Mention the new Makefile requirement.
13685 2009-01-17 Bruno Haible <bruno@clisp.org>
13687 * build-aux/install-reloc: Remove debugging information left over by
13688 C compiler on MacOS X.
13690 2009-01-17 Bruno Haible <bruno@clisp.org>
13692 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
13693 * lib/progreloc.c (find_executable): Fix type of pointer passed to
13694 _NSGetExecutablePath.
13696 2009-01-16 Jim Meyering <meyering@redhat.com>
13698 strerror: avoid warnings about discarding "const"
13699 * lib/strerror.c (rpl_strerror): Instead of returning a const
13700 string from each and every "case", use a variable, and add a single
13701 cast after the switch.
13703 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
13705 * lib/arpa_inet.in.h: Add extern "C" block for C++.
13707 2009-01-16 Bruno Haible <bruno@clisp.org>
13709 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
13710 array initializer syntax that also works in C++ mode.
13711 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13713 2009-01-16 Jim Meyering <meyering@redhat.com>
13715 poll: suppress a warning
13716 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
13717 to ignore "...unsigned expression < 0 is always false" warnings.
13719 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
13721 poll: remove declarations of unused variables
13722 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
13723 sockbuf and optlen.
13725 2009-01-15 Bruno Haible <bruno@clisp.org>
13727 Make fflush-after-ungetc POSIX compliant on BSD systems.
13728 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
13729 (clear_ungetc_buffer): Implement also for other systems.
13730 (rpl_fflush): On glibc systems, invoke
13731 clear_ungetc_buffer_preserving_position. Otherwise, invoke
13732 clear_ungetc_buffer after fetching the stream's position, not before.
13734 2009-01-15 Bruno Haible <bruno@clisp.org>
13736 Make fflush-after-ungetc POSIX compliant on glibc systems.
13737 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
13739 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
13740 (rpl_fflush): On glibc systems, simply call the system's fflush
13741 function after clearing the ungetc buffer.
13742 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
13743 Instead, lseek only to the end of file, then use the system's fseeko
13744 for the rest. On glibc systems, reset the EOF indicator bit.
13746 2009-01-15 Jim Meyering <meyering@redhat.com>
13748 openmp.m4: revert quote-adding change, for portability to older autoconf
13749 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
13750 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
13751 Simon Josefsson noticed the problem when using autoconf-2.61.
13753 2009-01-15 Bruno Haible <bruno@clisp.org>
13755 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
13756 * tests/test-fflush2.c (ASSERT): Always fail.
13757 (main): Add two tests for fflush() after ungetc(), taking into account
13758 the Austin Group's clarification.
13759 Suggested by Eric Blake.
13761 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
13763 mktime.m4: remove K&R-style function prototypes
13764 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
13765 for the Sun C++ compiler.
13767 2009-01-14 Bruno Haible <bruno@clisp.org>
13769 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
13770 while including <wchar.h>.
13771 * lib/wchar.in.h: In two particular situations on HP-UX, include only
13772 the system's <wchar.h> file.
13773 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13775 2009-01-14 Bruno Haible <bruno@clisp.org>
13777 * m4/csharp.m4: Don't mention gettext on the serial number line.
13778 * m4/csharpexec.m4: Likewise.
13779 * m4/eaccess.m4: Likewise.
13780 * m4/javaexec.m4: Likewise.
13781 * m4/sig_atomic_t.m4: Likewise.
13782 * m4/tmpdir.m4: Likewise.
13783 * m4/intldir.m4: Bump gettext version.
13784 * m4/lib-ld.m4: Likewise.
13786 2009-01-14 Bruno Haible <bruno@clisp.org>
13788 * lib/progname.c (set_program_name): Add more comments.
13789 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
13791 2009-01-14 Simon Josefsson <simon@josefsson.org>
13793 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
13794 were sys/stat.h does not define it.
13796 2009-01-14 Jim Meyering <meyering@redhat.com>
13798 many *.m4 files: improve m4 quoting
13799 99% of this change was performed by running the following commands:
13800 git ls-files | grep '\.m4$' | xargs perl -pi \
13801 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
13802 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
13803 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
13804 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
13805 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
13806 The remainder were to add Copyright dates, increment serial numbers,
13807 undo some changes in comments, exclude m4/intl.m4, and add quotes
13808 around the "1" in ",1" where the unusual spacing prohibited the
13809 above regexps from doing the job. For more details, see
13810 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
13811 * m4/acl.m4: Modified.
13812 * m4/afs.m4: Likewise.
13813 * m4/alloca.m4: Likewise.
13814 * m4/argp.m4: Likewise.
13815 * m4/argz.m4: Likewise.
13816 * m4/atexit.m4: Likewise.
13817 * m4/bison-i18n.m4: Likewise.
13818 * m4/bison.m4: Likewise.
13819 * m4/byteswap.m4: Likewise.
13820 * m4/c-stack.m4: Likewise.
13821 * m4/c-strtod.m4: Likewise.
13822 * m4/calloc.m4: Likewise.
13823 * m4/canonicalize-lgpl.m4: Likewise.
13824 * m4/chown.m4: Likewise.
13825 * m4/clock_time.m4: Likewise.
13826 * m4/codeset.m4: Likewise.
13827 * m4/copy-file.m4: Likewise.
13828 * m4/csharp.m4: Likewise.
13829 * m4/csharpcomp.m4: Likewise.
13830 * m4/csharpexec.m4: Likewise.
13831 * m4/d-ino.m4: Likewise.
13832 * m4/d-type.m4: Likewise.
13833 * m4/dirfd.m4: Likewise.
13834 * m4/double-slash-root.m4: Likewise.
13835 * m4/eaccess.m4: Likewise.
13836 * m4/eealloc.m4: Likewise.
13837 * m4/environ.m4: Likewise.
13838 * m4/errno_h.m4: Likewise.
13839 * m4/euidaccess.m4: Likewise.
13840 * m4/execute.m4: Likewise.
13841 * m4/fatal-signal.m4: Likewise.
13842 * m4/fchdir.m4: Likewise.
13843 * m4/fcntl_h.m4: Likewise.
13844 * m4/fileblocks.m4: Likewise.
13845 * m4/filenamecat.m4: Likewise.
13846 * m4/findprog.m4: Likewise.
13847 * m4/flexmember.m4: Likewise.
13848 * m4/fnmatch.m4: Likewise.
13849 * m4/fopen.m4: Likewise.
13850 * m4/fpending.m4: Likewise.
13851 * m4/fprintf-posix.m4: Likewise.
13852 * m4/free.m4: Likewise.
13853 * m4/frexp.m4: Likewise.
13854 * m4/frexpl.m4: Likewise.
13855 * m4/fsusage.m4: Likewise.
13856 * m4/ftruncate.m4: Likewise.
13857 * m4/gc-camellia.m4: Likewise.
13858 * m4/gc-random.m4: Likewise.
13859 * m4/gc.m4: Likewise.
13860 * m4/getaddrinfo.m4: Likewise.
13861 * m4/getcwd-abort-bug.m4: Likewise.
13862 * m4/getcwd-path-max.m4: Likewise.
13863 * m4/getdate.m4: Likewise.
13864 * m4/getdomainname.m4: Likewise.
13865 * m4/getgroups.m4: Likewise.
13866 * m4/gethostname.m4: Likewise.
13867 * m4/gethrxtime.m4: Likewise.
13868 * m4/getline.m4: Likewise.
13869 * m4/getloadavg.m4: Likewise.
13870 * m4/getndelim2.m4: Likewise.
13871 * m4/getpass.m4: Likewise.
13872 * m4/gettext.m4: Likewise.
13873 * m4/gettime.m4: Likewise.
13874 * m4/gettimeofday.m4: Likewise.
13875 * m4/gnulib-common.m4: Likewise.
13876 * m4/group-member.m4: Likewise.
13877 * m4/host-os.m4: Likewise.
13878 * m4/iconv.m4: Likewise.
13879 * m4/iconv_open.m4: Likewise.
13880 * m4/inet_ntop.m4: Likewise.
13881 * m4/inet_pton.m4: Likewise.
13882 * m4/inline.m4: Likewise.
13883 * m4/intldir.m4: Likewise.
13884 * m4/intlmacosx.m4: Likewise.
13885 * m4/intmax.m4: Likewise.
13886 * m4/intmax_t.m4: Likewise.
13887 * m4/inttypes.m4: Likewise.
13888 * m4/inttypes_h.m4: Likewise.
13889 * m4/inttypes-pri.m4: Likewise.
13890 * m4/isapipe.m4: Likewise.
13891 * m4/isnand.m4: Likewise.
13892 * m4/isnanf.m4: Likewise.
13893 * m4/isnanl.m4: Likewise.
13894 * m4/javacomp.m4: Likewise.
13895 * m4/javaexec.m4: Likewise.
13896 * m4/jm-winsz1.m4: Likewise.
13897 * m4/jm-winsz2.m4: Likewise.
13898 * m4/lchown.m4: Likewise.
13899 * m4/lcmessage.m4: Likewise.
13900 * m4/ldexpl.m4: Likewise.
13901 * m4/lib-ld.m4: Likewise.
13902 * m4/lib-link.m4: Likewise.
13903 * m4/libsigsegv.m4: Likewise.
13904 * m4/link-follow.m4: Likewise.
13905 * m4/localcharset.m4: Likewise.
13906 * m4/locale-fr.m4: Likewise.
13907 * m4/locale-ja.m4: Likewise.
13908 * m4/locale-tr.m4: Likewise.
13909 * m4/locale-zh.m4: Likewise.
13910 * m4/lock.m4: Likewise.
13911 * m4/longlong.m4: Likewise.
13912 * m4/ls-mntd-fs.m4: Likewise.
13913 * m4/lstat.m4: Likewise.
13914 * m4/malloc.m4: Likewise.
13915 * m4/mathl.m4: Likewise.
13916 * m4/mbrtowc.m4: Likewise.
13917 * m4/mbstate_t.m4: Likewise.
13918 * m4/mbswidth.m4: Likewise.
13919 * m4/memchr.m4: Likewise.
13920 * m4/memcmp.m4: Likewise.
13921 * m4/memcpy.m4: Likewise.
13922 * m4/memmem.m4: Likewise.
13923 * m4/memmove.m4: Likewise.
13924 * m4/mempcpy.m4: Likewise.
13925 * m4/memrchr.m4: Likewise.
13926 * m4/memset.m4: Likewise.
13927 * m4/minmax.m4: Likewise.
13928 * m4/mkdir-slash.m4: Likewise.
13929 * m4/mkdtemp.m4: Likewise.
13930 * m4/mktime.m4: Likewise.
13931 * m4/mmap-anon.m4: Likewise.
13932 * m4/mountlist.m4: Likewise.
13933 * m4/nanosleep.m4: Likewise.
13934 * m4/nls.m4: Likewise.
13935 * m4/nocrash.m4: Likewise.
13936 * m4/open.m4: Likewise.
13937 * m4/openat.m4: Likewise.
13938 * m4/openmp.m4: Likewise.
13939 * m4/pathmax.m4: Likewise.
13940 * m4/perl.m4: Likewise.
13941 * m4/physmem.m4: Likewise.
13942 * m4/pipe.m4: Likewise.
13943 * m4/po.m4: Likewise.
13944 * m4/poll.m4: Likewise.
13945 * m4/posixtm.m4: Likewise.
13946 * m4/posixver.m4: Likewise.
13947 * m4/printf-frexp.m4: Likewise.
13948 * m4/printf-frexpl.m4: Likewise.
13949 * m4/printf-posix.m4: Likewise.
13950 * m4/printf-posix-rpl.m4: Likewise.
13951 * m4/printf.m4: Likewise.
13952 * m4/progtest.m4: Likewise.
13953 * m4/putenv.m4: Likewise.
13954 * m4/readline.m4: Likewise.
13955 * m4/readlink.m4: Likewise.
13956 * m4/readutmp.m4: Likewise.
13957 * m4/realloc.m4: Likewise.
13958 * m4/regex.m4: Likewise.
13959 * m4/relocatable.m4: Likewise.
13960 * m4/relocatable-lib.m4: Likewise.
13961 * m4/rename-dest-slash.m4: Likewise.
13962 * m4/rename.m4: Likewise.
13963 * m4/rmdir-errno.m4: Likewise.
13964 * m4/rmdir.m4: Likewise.
13965 * m4/roundf.m4: Likewise.
13966 * m4/roundl.m4: Likewise.
13967 * m4/rpmatch.m4: Likewise.
13968 * m4/save-cwd.m4: Likewise.
13969 * m4/selinux-selinux-h.m4: Likewise.
13970 * m4/setenv.m4: Likewise.
13971 * m4/settime.m4: Likewise.
13972 * m4/sig2str.m4: Likewise.
13973 * m4/sig_atomic_t.m4: Likewise.
13974 * m4/signalblocking.m4: Likewise.
13975 * m4/signbit.m4: Likewise.
13976 * m4/sigpipe.m4: Likewise.
13977 * m4/sockets.m4: Likewise.
13978 * m4/sockpfaf.m4: Likewise.
13979 * m4/st_dm_mode.m4: Likewise.
13980 * m4/stat-time.m4: Likewise.
13981 * m4/stdbool.m4: Likewise.
13982 * m4/stdint.m4: Likewise.
13983 * m4/stdint_h.m4: Likewise.
13984 * m4/stpcpy.m4: Likewise.
13985 * m4/stpncpy.m4: Likewise.
13986 * m4/strcase.m4: Likewise.
13987 * m4/strchrnul.m4: Likewise.
13988 * m4/strcspn.m4: Likewise.
13989 * m4/strdup.m4: Likewise.
13990 * m4/strftime.m4: Likewise.
13991 * m4/strndup.m4: Likewise.
13992 * m4/strnlen.m4: Likewise.
13993 * m4/strpbrk.m4: Likewise.
13994 * m4/strptime.m4: Likewise.
13995 * m4/strsep.m4: Likewise.
13996 * m4/strtod.m4: Likewise.
13997 * m4/strtoimax.m4: Likewise.
13998 * m4/strtok_r.m4: Likewise.
13999 * m4/strtol.m4: Likewise.
14000 * m4/strtoll.m4: Likewise.
14001 * m4/strtoul.m4: Likewise.
14002 * m4/strtoull.m4: Likewise.
14003 * m4/strtoumax.m4: Likewise.
14004 * m4/strverscmp.m4: Likewise.
14005 * m4/threadlib.m4: Likewise.
14006 * m4/timegm.m4: Likewise.
14007 * m4/tm_gmtoff.m4: Likewise.
14008 * m4/tmpdir.m4: Likewise.
14009 * m4/tmpfile.m4: Likewise.
14010 * m4/tzset.m4: Likewise.
14011 * m4/uintmax_t.m4: Likewise.
14012 * m4/unlinkdir.m4: Likewise.
14013 * m4/unlocked-io.m4: Likewise.
14014 * m4/uptime.m4: Likewise.
14015 * m4/userspec.m4: Likewise.
14016 * m4/utimbuf.m4: Likewise.
14017 * m4/utime.m4: Likewise.
14018 * m4/utimes-null.m4: Likewise.
14019 * m4/utimes.m4: Likewise.
14020 * m4/vararrays.m4: Likewise.
14021 * m4/vasnprintf.m4: Likewise.
14022 * m4/vfprintf-posix.m4: Likewise.
14023 * m4/vprintf-posix.m4: Likewise.
14024 * m4/wait-process.m4: Likewise.
14025 * m4/wchar_t.m4: Likewise.
14026 * m4/wint_t.m4: Likewise.
14027 * m4/write-any-file.m4: Likewise.
14028 * m4/yield.m4: Likewise.
14030 2009-01-13 Bruno Haible <bruno@clisp.org>
14032 Avoid test-copy-file.sh failures when ACL support insufficient.
14033 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
14035 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
14036 Reported by Jim Meyering.
14038 2009-01-13 Bruno Haible <bruno@clisp.org>
14040 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
14041 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
14042 * modules/unistdio/u8-printf-parse (Files): Likewise.
14043 * modules/unistdio/u32-printf-parse (Files): Likewise.
14044 * modules/unistdio/ulc-printf-parse (Files): Likewise.
14046 2009-01-13 Simon Josefsson <simon@josefsson.org>
14048 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
14049 and m4/inttypes_h.m4 too.
14051 2009-01-12 Eric Blake <ebb9@byu.net>
14053 tests: IRIX 6.2 cc can't compile -0.0 into .data
14054 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
14055 rather than at compile-time.
14056 * tests/test-floorl.c (minus_zero): Likewise.
14057 * tests/test-frexpl.c (minus_zero): Likewise.
14058 * tests/test-isnan.c (minus_zerol): Likewise.
14059 * tests/test-isnanl.h (minus_zero): Likewise.
14060 * tests/test-ldexpl.c (minus_zero): Likewise.
14061 * tests/test-roundl.c (minus_zero): Likewise.
14062 * tests/test-signbit.c (minus_zerol): Likewise.
14063 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
14064 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
14065 * tests/test-truncl.c (minus_zero): Likewise.
14066 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
14067 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
14068 Reported by Tom G. Christensen and Nelson H. F. Beebe.
14070 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
14072 regex: fix glibc bug 9697
14073 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
14076 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
14078 regex: fix glibc bug 697
14079 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
14080 being NULL also if there are no backreferences.
14082 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
14084 regex: merge glibc changes
14085 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
14086 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
14087 re_string_skip_chars, re_string_reconstruct): Likewise.
14088 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
14090 2009-01-07 Jim Meyering <meyering@redhat.com>
14092 poll: filter through cppi
14093 * lib/poll.c: Indent cpp directives to reflect nesting.
14095 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
14097 poll: don't return uninitialized
14098 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
14100 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
14102 avoid compile failure on AIX 6.1
14103 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
14104 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
14106 2009-01-04 Jim Meyering <meyering@redhat.com>
14108 remove duplicate inclusion of <stdio.h>
14109 * tests/test-fprintf-posix.c: Likewise.
14110 * tests/test-printf-posix.c: Likewise.
14111 * tests/test-snprintf-posix.c: Likewise.
14112 * tests/test-sprintf-posix.c: Likewise.
14113 * tests/test-vasprintf-posix.c: Likewise.
14114 * tests/test-vfprintf-posix.c: Likewise.
14115 * tests/test-vprintf-posix.c: Likewise.
14116 * tests/test-vsnprintf-posix.c: Likewise.
14117 * tests/test-vsprintf-posix.c: Likewise.
14119 2009-01-03 Jim Meyering <meyering@redhat.com>
14121 gnulib-tool: fix sed-based filtering
14122 * gnulib-tool (func_filter_filelist): Remove extra backslash
14123 in sed_fff_filter definition.
14125 2009-01-02 Jim Meyering <meyering@redhat.com>
14127 strftime: avoid compilation failure on Solaris 2.6
14128 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
14129 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
14130 Don't #define mbrlen or mbsinit, since now they're guaranteed to
14131 be available. Reported by Tom G. Christensen. Details in
14132 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
14134 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14135 Bruno Haible <bruno@clisp.org>
14137 Speed up gnulib-tool by doing more string processing through shell
14139 * gnulib-tool (fast_func_append): New variable.
14140 (func_remove_prefix, func_remove_suffix): New functions.
14141 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
14142 (func_filter_filelist): New function.
14143 (func_get_dependencies): Use func_remove_suffix instead of sed.
14144 (func_get_automake_snippet): Use func_filter_filelist instead of a
14145 subshell and sed invocation.
14147 2009-01-01 Bruno Haible <bruno@clisp.org>
14149 Fix a security bug.
14150 * gnulib-tool (func_import, import, update): Don't allow the characters
14151 '"', '$', '`', '\' in macro arguments that become part of commands that
14154 2009-01-01 Bruno Haible <bruno@clisp.org>
14156 * gnulib-tool (func_reset_sigpipe): Add more comments.
14158 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14160 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
14161 func_emit_tests_Makefile_am, func_import): Abort loops early if we
14162 already know the answer.
14164 2009-01-01 Jim Meyering <meyering@redhat.com>
14166 * lib/version-etc.c (version_etc_va): Update copyright year.
14168 2008-12-30 Bruno Haible <bruno@clisp.org>
14170 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
14171 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
14172 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
14174 2008-12-29 Eric Blake <ebb9@byu.net>
14176 multiarch: avoid autoconf AC_REQUIRE bug
14177 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
14178 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
14180 Reported by Bruno Haible, and analyzed in
14181 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
14183 2008-12-29 Bruno Haible <bruno@clisp.org>
14185 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
14186 files in subdirectories correctly.
14187 Reported by Ralf Wildenhues.
14189 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14191 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
14192 rather than 'join FILE -', for Solaris join.
14194 2008-12-29 Bruno Haible <bruno@clisp.org>
14196 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
14198 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
14199 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14200 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14201 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
14202 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14203 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
14204 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
14205 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
14206 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
14207 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
14208 * m4/nls.m4 (AM_NLS): Likewise.
14209 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
14210 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
14211 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
14212 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
14213 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
14214 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
14215 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
14216 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
14217 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
14218 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
14219 * m4/xsize.m4 (gl_XSIZE): Likewise.
14220 Suggested by Jim Meyering.
14222 2008-11-17 Bruce Korb <bkorb@gnu.org>
14224 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
14225 * lib/parse-duration.c: use a switch instead of cascading if's.
14227 2008-12-29 Eric Blake <ebb9@byu.net>
14229 wchar.h: supply WEOF on Irix 5.3
14230 * lib/wchar.in.h (wint_t): Also supply WEOF.
14231 * lib/wctype.in.h (wint_t): Likewise.
14232 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
14233 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
14234 Reported by Tom G. Christensen.
14236 2008-12-26 Bruno Haible <bruno@clisp.org>
14238 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
14241 2008-12-26 Bruno Haible <bruno@clisp.org>
14243 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
14245 2008-12-26 Bruno Haible <bruno@clisp.org>
14247 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
14248 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
14249 not __STDC_CONSTANT_MACROS.
14250 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
14252 2008-12-25 Bruno Haible <bruno@clisp.org>
14254 Add support for universal builds to vasnprintf.
14255 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
14256 universal builds, guess no.
14257 * modules/vasnprintf-posix (Depends-on): Add multiarch.
14258 * modules/vasprintf-posix (Depends-on): Likewise.
14259 * modules/fprintf-posix (Depends-on): Likewise.
14260 * modules/vfprintf-posix (Depends-on): Likewise.
14261 * modules/snprintf-posix (Depends-on): Likewise.
14262 * modules/vsnprintf-posix (Depends-on): Likewise.
14263 * modules/sprintf-posix (Depends-on): Likewise.
14264 * modules/vsprintf-posix (Depends-on): Likewise.
14265 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14266 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14267 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14268 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14269 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14270 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
14271 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
14273 Add support for universal builds to <inttypes.h>.
14274 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
14275 _SCNu64_PREFIX): In Apple
14276 universal builds, define directly, using _LP64.
14277 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
14278 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
14279 * modules/inttypes (Depends-on): Add multiarch.
14280 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14282 Add support for universal builds to <stdint.h>.
14283 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
14284 universal builds, define directly, using _LP64.
14285 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
14286 Apple universal builds, don't test for the size and suffix of ptrdiff_t
14288 * modules/stdint (Depends-on): Add multiarch.
14289 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
14291 New module 'multiarch'.
14292 * modules/multiarch: New file.
14293 * m4/multiarch.m4: New file.
14295 2008-12-25 Bruno Haible <bruno@clisp.org>
14297 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
14299 2008-12-25 Bruno Haible <bruno@clisp.org>
14301 * modules/btowc (License): Relicense under LGPLv2+.
14302 * modules/mbsinit (License): Likewise.
14303 * modules/mbrtowc (License): Likewise.
14304 * modules/wcrtomb (License): Likewise.
14305 * modules/streq (License): Likewise.
14306 Reported by David Lutterkort <lutter@redhat.com>.
14308 2008-12-23 Bruno Haible <bruno@clisp.org>
14310 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
14312 2008-12-23 Bruno Haible <bruno@clisp.org>
14314 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
14315 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
14316 GETADDRINFO_LIB, not in LIBS.
14317 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
14318 * modules/canon-host (Link): Likewise.
14319 * NEWS: Mention the change.
14320 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
14323 2008-12-22 Bruno Haible <bruno@clisp.org>
14325 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
14326 * doc/posix-functions/iswalpha_l.texi: Likewise.
14327 * doc/posix-functions/iswblank_l.texi: Likewise.
14328 * doc/posix-functions/iswcntrl_l.texi: Likewise.
14329 * doc/posix-functions/iswctype_l.texi: Likewise.
14330 * doc/posix-functions/iswdigit_l.texi: Likewise.
14331 * doc/posix-functions/iswgraph_l.texi: Likewise.
14332 * doc/posix-functions/iswlower_l.texi: Likewise.
14333 * doc/posix-functions/iswprint_l.texi: Likewise.
14334 * doc/posix-functions/iswpunct_l.texi: Likewise.
14335 * doc/posix-functions/iswspace_l.texi: Likewise.
14336 * doc/posix-functions/iswupper_l.texi: Likewise.
14337 * doc/posix-functions/iswxdigit_l.texi: Likewise.
14338 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
14339 * doc/posix-functions/open_wmemstream.texi: Likewise.
14340 * doc/posix-functions/swscanf.texi: Likewise.
14341 * doc/posix-functions/towctrans_l.texi: Likewise.
14342 * doc/posix-functions/towlower.texi: Likewise.
14343 * doc/posix-functions/towlower_l.texi: Likewise.
14344 * doc/posix-functions/towupper.texi: Likewise.
14345 * doc/posix-functions/towupper_l.texi: Likewise.
14346 * doc/posix-functions/vfwprintf.texi: Likewise.
14347 * doc/posix-functions/vfwscanf.texi: Likewise.
14348 * doc/posix-functions/vswscanf.texi: Likewise.
14349 * doc/posix-functions/vwprintf.texi: Likewise.
14350 * doc/posix-functions/vwscanf.texi: Likewise.
14351 * doc/posix-functions/wcpcpy.texi: Likewise.
14352 * doc/posix-functions/wcpncpy.texi: Likewise.
14353 * doc/posix-functions/wcscasecmp.texi: Likewise.
14354 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
14355 * doc/posix-functions/wcscoll_l.texi: Likewise.
14356 * doc/posix-functions/wcsdup.texi: Likewise.
14357 * doc/posix-functions/wcsncasecmp.texi: Likewise.
14358 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
14359 * doc/posix-functions/wcsnlen.texi: Likewise.
14360 * doc/posix-functions/wcsnrtombs.texi: Likewise.
14361 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
14362 * doc/posix-functions/wctrans_l.texi: Likewise.
14363 * doc/posix-functions/wctype_l.texi: Likewise.
14364 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
14365 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
14366 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
14367 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
14368 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
14369 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
14370 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
14371 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
14372 * doc/glibc-functions/wcschrnul.texi: Likewise.
14373 * doc/glibc-functions/wcsftime_l.texi: Likewise.
14374 * doc/glibc-functions/wcstod_l.texi: Likewise.
14375 * doc/glibc-functions/wcstof_l.texi: Likewise.
14376 * doc/glibc-functions/wcstol_l.texi: Likewise.
14377 * doc/glibc-functions/wcstold_l.texi: Likewise.
14378 * doc/glibc-functions/wcstoll_l.texi: Likewise.
14379 * doc/glibc-functions/wcstoq.texi: Likewise.
14380 * doc/glibc-functions/wcstoul_l.texi: Likewise.
14381 * doc/glibc-functions/wcstoull_l.texi: Likewise.
14382 * doc/glibc-functions/wcstouq.texi: Likewise.
14383 * doc/glibc-functions/wmempcpy.texi: Likewise.
14385 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
14386 Eric Blake <ebb9@byu.net>
14387 Paolo Bonzini <bonzini@gnu.org>
14388 Bruno Haible <bruno@clisp.org>
14390 Make c-stack work on Haiku.
14391 * lib/c-stack.c (SA_ONSTACK): Define fallback.
14392 (c_stack_action): Use SA_ONSTACK flag.
14394 2008-12-22 Bruno Haible <bruno@clisp.org>
14396 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
14398 2008-12-22 Bruno Haible <bruno@clisp.org>
14400 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
14401 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
14403 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
14405 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
14406 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
14407 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
14408 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
14410 2008-12-22 Bruno Haible <bruno@clisp.org>
14412 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
14415 2008-12-22 Eric Blake <ebb9@byu.net>
14417 Avoid gcc warnings on cygwin.
14418 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
14419 Avoid unused variable.
14420 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
14423 2008-12-22 Bruno Haible <bruno@clisp.org>
14425 Remove HAVE_MBRTOWC conditionals.
14426 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
14427 (mbscasecmp): Assume mbrtowc function.
14428 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
14429 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
14430 * lib/mbschr.c: Include mbuiter.h unconditionally.
14431 (mbschr): Assume mbrtowc function.
14432 * lib/mbscspn.c: Include mbuiter.h unconditionally.
14433 (mbscspn): Assume mbrtowc function.
14434 * lib/mbslen.c: Include mbuiter.h unconditionally.
14435 (mbslen): Assume mbrtowc function.
14436 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
14437 (mbsncasecmp): Assume mbrtowc function.
14438 * lib/mbsnlen.c: Include mbiter.h unconditionally.
14439 (mbsnlen): Assume mbrtowc function.
14440 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
14441 (mbspbrk): Assume mbrtowc function.
14442 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
14443 (mbspcasecmp): Assume mbrtowc function.
14444 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
14445 (mbsrchr): Assume mbrtowc function.
14446 * lib/mbssep.c: Include mbuiter.h unconditionally.
14447 (mbssep): Assume mbrtowc function.
14448 * lib/mbsspn.c: Include mbuiter.h unconditionally.
14449 (mbsspn): Assume mbrtowc function.
14450 * lib/mbsstr.c: Include mbuiter.h unconditionally.
14451 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
14452 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
14453 (mbstok_r): Assume mbrtowc function.
14454 * lib/propername.c: Include mbuiter.h unconditionally.
14455 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
14456 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
14457 (trim2): Assume mbrtowc function.
14458 * lib/mbswidth.c (mbsinit): Remove fallback definition.
14459 (mbsnwidth): Assume mbrtowc function.
14460 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
14461 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
14462 fallback definitions.
14463 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
14465 2008-12-22 Bruno Haible <bruno@clisp.org>
14467 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
14469 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
14471 * modules/regex: Request emulations for the mb*/wc* functions we need.
14472 * m4/regex.m4: Don't look for those functions here.
14473 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
14475 2008-12-22 Bruno Haible <bruno@clisp.org>
14477 * modules/fnmatch (Depends-on): Remove duplicated dependency.
14479 2008-12-21 Bruno Haible <bruno@clisp.org>
14481 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
14482 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
14483 (Include): Remove conditionalization.
14484 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
14485 (Include): Remove conditionalization.
14486 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
14487 (Include): Remove conditionalization.
14488 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
14489 * m4/mbfile.m4 (gl_MBFILE): Likewise.
14490 * NEWS: Mention the change.
14491 Reported by Alan Hourihane <alanh@fairlite.co.uk>
14492 via Sergey Poznyakoff <gray@gnu.org.ua>.
14494 2008-12-21 Bruno Haible <bruno@clisp.org>
14496 * MODULES.html.sh (Extended multibyte and wide character utilities
14497 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
14498 wcrtomb, wcsrtombs.
14499 (Support for systems lacking POSIX:2008): Add accept, bind, close,
14500 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
14501 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
14502 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
14504 2008-12-21 Bruno Haible <bruno@clisp.org>
14506 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
14508 2008-12-21 Bruno Haible <bruno@clisp.org>
14510 * modules/wcsnrtombs-tests: New file.
14511 * tests/test-wcsnrtombs1.sh: New file.
14512 * tests/test-wcsnrtombs2.sh: New file.
14513 * tests/test-wcsnrtombs3.sh: New file.
14514 * tests/test-wcsnrtombs4.sh: New file.
14515 * tests/test-wcsnrtombs.c: New file.
14517 New module 'wcsnrtombs'.
14518 * lib/wchar.in.h (wcsnrtombs): New declaration.
14519 * lib/wcsnrtombs.c: New file.
14520 * lib/wcsrtombs-state.c: New file.
14521 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
14522 (internal_state): Remove variable.
14523 * m4/wcsnrtombs.m4: New file.
14524 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
14526 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
14528 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
14530 * modules/wcsnrtombs: New file.
14531 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
14532 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
14534 2008-12-21 Bruno Haible <bruno@clisp.org>
14536 * modules/wcsrtombs-tests: New file.
14537 * tests/test-wcsrtombs1.sh: New file.
14538 * tests/test-wcsrtombs2.sh: New file.
14539 * tests/test-wcsrtombs3.sh: New file.
14540 * tests/test-wcsrtombs4.sh: New file.
14541 * tests/test-wcsrtombs.c: New file.
14543 New module 'wcsrtombs'.
14544 * lib/wchar.in.h (wcsrtombs): New declaration.
14545 * lib/wcsrtombs.c: New file.
14546 * m4/wcsrtombs.m4: New file.
14547 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
14548 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
14549 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
14550 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
14551 * modules/wcsrtombs: New file.
14552 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
14555 2008-12-21 Bruno Haible <bruno@clisp.org>
14557 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
14558 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
14559 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
14560 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
14562 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
14563 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
14564 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14565 m4/locale-zh.m4, m4/codeset.m4.
14566 * doc/posix-functions/wcrtomb.texi: Document the bug.
14568 2008-12-21 Bruno Haible <bruno@clisp.org>
14570 Work around a btowc() bug on IRIX 6.5.
14571 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
14572 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
14573 REPLACE_WTOBC if not.
14574 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
14575 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
14576 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
14578 2008-12-21 Bruno Haible <bruno@clisp.org>
14580 * modules/wcrtomb-tests: New file.
14581 * tests/test-wcrtomb.sh: New file.
14582 * tests/test-wcrtomb.c: New file.
14584 New module 'wcrtomb'.
14585 * lib/wchar.in.h (wcrtomb): New declaration.
14586 * lib/wcrtomb.c: New file.
14587 * m4/wcrtomb.m4: New file.
14588 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
14590 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
14592 * modules/wcrtomb: New file.
14593 * doc/posix-functions/wcrtomb.texi: Mention the new module.
14595 2008-12-21 Bruno Haible <bruno@clisp.org>
14597 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
14598 * modules/mbsrtowcs (Files): Likewise.
14599 * modules/wctob (Files): Likewise.
14600 * modules/c-strcase-tests (Files): Likewise.
14601 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
14602 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
14603 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
14604 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
14605 * modules/vasnprintf-posix-tests (Files): Likewise.
14607 2008-12-21 William Pursell <bill.pursell@gmail.com>
14609 gitlog-to-changelog: pass all command-line arguments to git-log
14610 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
14611 it is sometimes convenient to filter the commits in various ways.
14612 gitlog-to-changelog only allows --since to specify a start date,
14613 but git-log itself supports many other filtering mechanisms.
14614 At the moment, I want to filter by branch name. Rather than
14615 adding a --branch option to gitlog-to-changelog, it seems more
14616 flexible to simply pass all options directly to git-log and let
14617 git do the work. Notice that this effectively makes --since a
14618 redundant option for gitlog-to-changelog, but removing it would
14619 require current usage to change since calls would then require
14620 an additional '--'.
14622 2008-12-21 Bruno Haible <bruno@clisp.org>
14624 * modules/mbsnrtowcs-tests: New file.
14625 * tests/test-mbsnrtowcs1.sh: New file.
14626 * tests/test-mbsnrtowcs2.sh: New file.
14627 * tests/test-mbsnrtowcs3.sh: New file.
14628 * tests/test-mbsnrtowcs4.sh: New file.
14629 * tests/test-mbsnrtowcs.c: New file.
14631 New module 'mbsnrtowcs'.
14632 * lib/wchar.in.h (mbsnrtowcs): New declaration.
14633 * lib/mbsnrtowcs.c: New file.
14634 * lib/mbsrtowcs-state.c: New file.
14635 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
14636 (internal_state): Remove variable.
14637 * m4/mbsnrtowcs.m4: New file.
14638 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
14640 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
14641 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
14642 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
14643 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
14644 * modules/mbsnrtowcs: New file.
14645 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
14646 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
14647 portability problem.
14649 2008-12-21 Bruno Haible <bruno@clisp.org>
14651 Work around mbsrtowcs bug.
14652 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
14653 (gl_FUNC_MBSRTOWCS): Invoke it.
14654 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14656 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
14658 2008-12-21 Bruno Haible <bruno@clisp.org>
14660 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
14662 2008-12-21 Bruno Haible <bruno@clisp.org>
14664 Update doc for AIX.
14665 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
14666 16-bit wchar_t type.
14667 * doc/posix-functions/btowc.texi: Likewise.
14668 * doc/posix-functions/fgetwc.texi: Likewise.
14669 * doc/posix-functions/fgetws.texi: Likewise.
14670 * doc/posix-functions/fputwc.texi: Likewise.
14671 * doc/posix-functions/fputws.texi: Likewise.
14672 * doc/posix-functions/fwide.texi: Likewise.
14673 * doc/posix-functions/fwprintf.texi: Likewise.
14674 * doc/posix-functions/fwscanf.texi: Likewise.
14675 * doc/posix-functions/getwchar.texi: Likewise.
14676 * doc/posix-functions/getwc.texi: Likewise.
14677 * doc/posix-functions/iswalnum.texi: Likewise.
14678 * doc/posix-functions/iswalpha.texi: Likewise.
14679 * doc/posix-functions/iswblank.texi: Likewise.
14680 * doc/posix-functions/iswcntrl.texi: Likewise.
14681 * doc/posix-functions/iswctype.texi: Likewise.
14682 * doc/posix-functions/iswdigit.texi: Likewise.
14683 * doc/posix-functions/iswgraph.texi: Likewise.
14684 * doc/posix-functions/iswlower.texi: Likewise.
14685 * doc/posix-functions/iswprint.texi: Likewise.
14686 * doc/posix-functions/iswpunct.texi: Likewise.
14687 * doc/posix-functions/iswspace.texi: Likewise.
14688 * doc/posix-functions/iswupper.texi: Likewise.
14689 * doc/posix-functions/iswxdigit.texi: Likewise.
14690 * doc/posix-functions/mbrtowc.texi: Likewise.
14691 * doc/posix-functions/mbsrtowcs.texi: Likewise.
14692 * doc/posix-functions/mbstowcs.texi: Likewise.
14693 * doc/posix-functions/mbtowc.texi: Likewise.
14694 * doc/posix-functions/putwchar.texi: Likewise.
14695 * doc/posix-functions/putwc.texi: Likewise.
14696 * doc/posix-functions/swprintf.texi: Likewise.
14697 * doc/posix-functions/tolower.texi: Likewise.
14698 * doc/posix-functions/toupper.texi: Likewise.
14699 * doc/posix-functions/towctrans.texi: Likewise.
14700 * doc/posix-functions/ungetwc.texi: Likewise.
14701 * doc/posix-functions/vswprintf.texi: Likewise.
14702 * doc/posix-functions/wcrtomb.texi: Likewise.
14703 * doc/posix-functions/wcscat.texi: Likewise.
14704 * doc/posix-functions/wcschr.texi: Likewise.
14705 * doc/posix-functions/wcscmp.texi: Likewise.
14706 * doc/posix-functions/wcscoll.texi: Likewise.
14707 * doc/posix-functions/wcscpy.texi: Likewise.
14708 * doc/posix-functions/wcscspn.texi: Likewise.
14709 * doc/posix-functions/wcsftime.texi: Likewise.
14710 * doc/posix-functions/wcslen.texi: Likewise.
14711 * doc/posix-functions/wcsncat.texi: Likewise.
14712 * doc/posix-functions/wcsncmp.texi: Likewise.
14713 * doc/posix-functions/wcsncpy.texi: Likewise.
14714 * doc/posix-functions/wcspbrk.texi: Likewise.
14715 * doc/posix-functions/wcsrchr.texi: Likewise.
14716 * doc/posix-functions/wcsrtombs.texi: Likewise.
14717 * doc/posix-functions/wcsspn.texi: Likewise.
14718 * doc/posix-functions/wcsstr.texi: Likewise.
14719 * doc/posix-functions/wcstod.texi: Likewise.
14720 * doc/posix-functions/wcstof.texi: Likewise.
14721 * doc/posix-functions/wcstoimax.texi: Likewise.
14722 * doc/posix-functions/wcstok.texi: Likewise.
14723 * doc/posix-functions/wcstold.texi: Likewise.
14724 * doc/posix-functions/wcstoll.texi: Likewise.
14725 * doc/posix-functions/wcstol.texi: Likewise.
14726 * doc/posix-functions/wcstombs.texi: Likewise.
14727 * doc/posix-functions/wcstoull.texi: Likewise.
14728 * doc/posix-functions/wcstoul.texi: Likewise.
14729 * doc/posix-functions/wcstoumax.texi: Likewise.
14730 * doc/posix-functions/wcswidth.texi: Likewise.
14731 * doc/posix-functions/wcsxfrm.texi: Likewise.
14732 * doc/posix-functions/wctob.texi: Likewise.
14733 * doc/posix-functions/wctomb.texi: Likewise.
14734 * doc/posix-functions/wctrans.texi: Likewise.
14735 * doc/posix-functions/wctype.texi: Likewise.
14736 * doc/posix-functions/wcwidth.texi: Likewise.
14737 * doc/posix-functions/wmemchr.texi: Likewise.
14738 * doc/posix-functions/wmemcmp.texi: Likewise.
14739 * doc/posix-functions/wmemcpy.texi: Likewise.
14740 * doc/posix-functions/wmemmove.texi: Likewise.
14741 * doc/posix-functions/wmemset.texi: Likewise.
14742 * doc/posix-functions/wprintf.texi: Likewise.
14743 * doc/posix-functions/wscanf.texi: Likewise.
14745 2008-12-21 Bruno Haible <bruno@clisp.org>
14747 Update doc for HP-UX 11.11.
14748 * doc/posix-functions/btowc.texi: Clarify that the function is missing
14749 in HP-UX version 11.00, not in all versions of HP-UX 11.
14750 * doc/posix-functions/fwide.texi: Likewise.
14751 * doc/posix-functions/fwprintf.texi: Likewise.
14752 * doc/posix-functions/fwscanf.texi: Likewise.
14753 * doc/posix-functions/inet_ntop.texi: Likewise.
14754 * doc/posix-functions/inet_pton.texi: Likewise.
14755 * doc/posix-functions/mbrlen.texi: Likewise.
14756 * doc/posix-functions/mbrtowc.texi: Likewise.
14757 * doc/posix-functions/mbsinit.texi: Likewise.
14758 * doc/posix-functions/mbsrtowcs.texi: Likewise.
14759 * doc/posix-functions/swprintf.texi: Likewise.
14760 * doc/posix-functions/swscanf.texi: Likewise.
14761 * doc/posix-functions/towctrans.texi: Likewise.
14762 * doc/posix-functions/vfwprintf.texi: Likewise.
14763 * doc/posix-functions/vswprintf.texi: Likewise.
14764 * doc/posix-functions/vwprintf.texi: Likewise.
14765 * doc/posix-functions/wcrtomb.texi: Likewise.
14766 * doc/posix-functions/wcsrtombs.texi: Likewise.
14767 * doc/posix-functions/wcsstr.texi: Likewise.
14768 * doc/posix-functions/wctob.texi: Likewise.
14769 * doc/posix-functions/wctrans.texi: Likewise.
14770 * doc/posix-functions/wmemchr.texi: Likewise.
14771 * doc/posix-functions/wmemcmp.texi: Likewise.
14772 * doc/posix-functions/wmemcpy.texi: Likewise.
14773 * doc/posix-functions/wmemmove.texi: Likewise.
14774 * doc/posix-functions/wmemset.texi: Likewise.
14775 * doc/posix-functions/wprintf.texi: Likewise.
14776 * doc/posix-functions/wscanf.texi: Likewise.
14778 2008-12-21 Bruno Haible <bruno@clisp.org>
14780 Work around a portability problem.
14781 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
14782 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
14784 2008-12-20 Bruno Haible <bruno@clisp.org>
14786 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
14787 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
14788 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
14789 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
14790 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
14792 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
14793 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
14795 (GNULIB_defined_mbstate_t): New macro.
14796 (mbsinit): Redefine if REPLACE_MBSINIT is set.
14797 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
14798 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
14799 reuses the system's mbrtowc function but works around the bugs.
14800 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
14801 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
14803 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
14804 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
14805 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
14806 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
14807 REPLACE_MBSINIT if mbsinit needs to be overridden.
14808 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
14809 REPLACE_MBSINIT, REPLACE_MBRTOWC.
14810 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
14811 REPLACE_MBSINIT, REPLACE_MBRTOWC.
14812 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
14814 (Depends): Add mbsinit.
14815 * modules/mbsinit (Depends): Add mbrtowc.
14816 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
14818 2008-12-20 Bruno Haible <bruno@clisp.org>
14820 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
14821 so that there are no conversion errors on AIX.
14822 * tests/test-mbsrtowcs.c (main): LIkewise.
14824 2008-12-20 Bruno Haible <bruno@clisp.org>
14826 Work around wctob bug on Solaris <= 9.
14827 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
14828 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
14829 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
14830 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
14831 * modules/wctob (Files): Add m4/locale-fr.m4.
14832 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
14834 2008-12-20 Bruno Haible <bruno@clisp.org>
14836 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
14838 * tests/test-select-in.sh: Likewise.
14839 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14841 2008-12-20 Bruno Haible <bruno@clisp.org>
14843 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
14844 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
14847 2008-12-20 Bruno Haible <bruno@clisp.org>
14849 Ensure mbstate_t is defined on HP-UX 11.11.
14850 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
14851 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
14852 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
14853 AC_USE_SYSTEM_EXTENSIONS.
14854 * modules/fnmatch (Depends-on): Add extensions.
14855 * modules/mbrlen (Depends-on): Likewise.
14856 * modules/mbrtowc (Depends-on): Likewise.
14857 * modules/mbsinit (Depends-on): Likewise.
14858 * modules/mbsrtowcs (Depends-on): Likewise.
14859 * modules/mbswidth (Depends-on): Likewise.
14860 * modules/quotearg (Depends-on): Likewise.
14861 * modules/strftime (Depends-on): Likewise.
14863 2008-12-20 Bruno Haible <bruno@clisp.org>
14865 Ensure wctob is declared on IRIX 6.5.
14866 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
14867 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
14868 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
14869 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
14871 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
14873 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
14875 2008-12-19 Bruno Haible <bruno@clisp.org>
14877 * modules/mbsrtowcs-tests: New file.
14878 * tests/test-mbsrtowcs1.sh: New file.
14879 * tests/test-mbsrtowcs2.sh: New file.
14880 * tests/test-mbsrtowcs3.sh: New file.
14881 * tests/test-mbsrtowcs4.sh: New file.
14882 * tests/test-mbsrtowcs.c: New file.
14884 New module 'mbsrtowcs'.
14885 * lib/wchar.in.h (mbsrtowcs): New declaration.
14886 * lib/mbsrtowcs.c: New file.
14887 * m4/mbsrtowcs.m4: New file.
14888 * modules/mbsrtowcs: New file.
14889 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
14891 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
14893 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
14895 2008-12-19 Bruno Haible <bruno@clisp.org>
14897 New module 'mbrlen'.
14898 * lib/wchar.in.h (mbrlen): New declaration.
14899 * lib/mbrlen.c: New file.
14900 * m4/mbrlen.m4: New file.
14901 * modules/mbrlen: New file.
14902 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
14904 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
14906 * doc/posix-functions/mbrlen.texi: Document the new module.
14908 2008-12-19 Bruno Haible <bruno@clisp.org>
14910 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
14911 * modules/mbrtowc (Depends-on): Add verify.
14912 Suggested by Paul Eggert.
14914 2008-12-18 Bruno Haible <bruno@clisp.org>
14916 * modules/mbsinit-tests: New file.
14917 * tests/test-mbsinit.sh: New file.
14918 * tests/test-mbsinit.c: New file.
14920 2008-12-18 Bruno Haible <bruno@clisp.org>
14922 * modules/mbrtowc-tests: New file.
14923 * tests/test-mbrtowc1.sh: New file.
14924 * tests/test-mbrtowc2.sh: New file.
14925 * tests/test-mbrtowc3.sh: New file.
14926 * tests/test-mbrtowc4.sh: New file.
14927 * tests/test-mbrtowc.c: New file.
14929 New module 'mbrtowc'.
14930 * lib/wchar.in.h (mbstate_t): Override when the system does not have
14931 mbsinit and mbrtowc.
14932 (mbrtowc): New declaration.
14933 * lib/mbrtowc.c: New file.
14934 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
14935 * modules/mbrtowc: New file.
14936 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
14938 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
14940 * doc/posix-functions/mbrtowc.texi: Document the new module.
14942 2008-12-18 Bruno Haible <bruno@clisp.org>
14944 New module 'wctob'.
14945 * lib/wchar.in.h (wctob): New declaration.
14946 * lib/wctob.c: New file.
14947 * m4/wctob.m4: New file.
14948 * modules/wctob: New file.
14949 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
14951 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
14952 * doc/posix-functions/wctob.texi: Document the new module.
14954 2008-12-18 Bruno Haible <bruno@clisp.org>
14956 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
14957 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
14959 2008-12-18 Simon Josefsson <simon@josefsson.org>
14961 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
14962 G. Christensen" <tgc@jupiterrise.com>.
14964 * lib/flock.c: Need to include errno.h. Reported by "Tom
14965 G. Christensen" <tgc@jupiterrise.com>.
14967 * lib/flock.c: Need to include string.h. Reported by "Tom
14968 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
14971 2008-12-18 Bruno Haible <bruno@clisp.org>
14973 * m4/locale-ja.m4: New file, from GNU gettext.
14975 2008-12-17 Bruno Haible <bruno@clisp.org>
14977 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
14978 Suggested by Eric Blake.
14980 2008-12-17 Bruno Haible <bruno@clisp.org>
14982 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
14984 2008-12-17 Bruno Haible <bruno@clisp.org>
14986 * lib/mbsinit.c: Include verify.h. Verify an assumption.
14987 * modules/mbsinit (Depends-on): Add verify.
14988 Suggested by Paul Eggert.
14990 2008-12-17 Bruno Haible <bruno@clisp.org>
14992 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
14993 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
14995 * m4/mbiter.m4 (gl_MBITER): LIkewise.
14996 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
14997 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
14998 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
14999 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
15000 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
15001 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
15002 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
15003 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
15004 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
15005 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
15006 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
15007 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
15008 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
15009 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
15010 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
15011 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
15012 * modules/trim (configure.ac): Likewise.
15014 2008-12-17 Bruno Haible <bruno@clisp.org>
15016 * modules/btowc-tests: New file.
15017 * tests/test-btowc1.sh: New file.
15018 * tests/test-btowc2.sh: New file.
15019 * tests/test-btowc.c: New file.
15021 New module 'btowc'.
15022 * lib/wchar.in.h (btowc): New declaration.
15023 * lib/btowc.c: New file.
15024 * m4/btowc.m4: New file.
15025 * modules/btowc: New file.
15026 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
15028 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
15029 * doc/posix-functions/btowc.texi: Document the new module.
15031 2008-12-17 Bruno Haible <bruno@clisp.org>
15033 New module 'mbsinit'.
15034 * lib/wchar.in.h (mbsinit): New declaration.
15035 * lib/mbsinit.c: New file.
15036 * m4/mbsinit.m4: New file.
15037 * modules/mbsinit: New file.
15038 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
15040 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
15042 * doc/posix-functions/mbsinit.texi: Document the new module.
15044 2008-12-16 Bruno Haible <bruno@clisp.org>
15046 * lib/unistd.in.h: Add comment.
15047 * tests/test-environ.c: Don't include <stdlib.h>.
15049 2008-12-16 Bruno Haible <bruno@clisp.org>
15051 * lib/parse-duration.h (parse_duration): Document return value
15053 * lib/parse-duration.c: Include specification header first. Add
15056 (parse_year_month_day, parse_hour_minute_second): Move side effects
15057 outside of strchr call.
15058 (parse_non_iso8601): Move side effects outside of isspace call.
15059 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
15062 2008-12-16 Bruno Haible <bruno@clisp.org>
15064 * tests/test-parse-duration.sh: Produce no output when the test
15067 2008-12-16 Bruno Haible <bruno@clisp.org>
15069 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
15072 2008-12-15 Bruno Haible <bruno@clisp.org>
15074 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
15075 * doc/glibc-functions/flistxattr.texi: Likewise.
15076 * doc/glibc-functions/fopencookie.texi: Likewise.
15077 * doc/glibc-functions/fremovexattr.texi: Likewise.
15078 * doc/glibc-functions/fsetxattr.texi: Likewise.
15079 * doc/glibc-functions/getxattr.texi: Likewise.
15080 * doc/glibc-functions/lgetxattr.texi: Likewise.
15081 * doc/glibc-functions/listxattr.texi: Likewise.
15082 * doc/glibc-functions/llistxattr.texi: Likewise.
15083 * doc/glibc-functions/lremovexattr.texi: Likewise.
15084 * doc/glibc-functions/lsetxattr.texi: Likewise.
15085 * doc/glibc-functions/removexattr.texi: Likewise.
15086 * doc/glibc-functions/setxattr.texi: Likewise.
15087 * doc/posix-functions/open_memstream.texi: Likewise.
15089 2008-12-15 Eric Blake <ebb9@byu.net>
15091 Update doc for cygwin 1.7.
15092 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
15094 * doc/posix-functions/fchmodat.texi: Likewise.
15095 * doc/posix-functions/fchownat.texi: Likewise.
15096 * doc/posix-functions/fdopendir.texi: Likewise.
15097 * doc/posix-functions/fmemopen.texi: Likewise.
15098 * doc/posix-functions/freeaddrinfo.texi: Likewise.
15099 * doc/posix-functions/fstatat.texi: Likewise.
15100 * doc/posix-functions/futimens.texi: Likewise.
15101 * doc/posix-functions/gai_strerror.texi: Likewise.
15102 * doc/posix-functions/getaddrinfo.texi: Likewise.
15103 * doc/posix-functions/getnameinfo.texi: Likewise.
15104 * doc/posix-functions/if_freenameindex.texi: Likewise.
15105 * doc/posix-functions/if_indextoname.texi: Likewise.
15106 * doc/posix-functions/if_nameindex.texi: Likewise.
15107 * doc/posix-functions/if_nametoindex.texi: Likewise.
15108 * doc/posix-functions/insque.texi: Likewise.
15109 * doc/posix-functions/linkat.texi: Likewise.
15110 * doc/posix-functions/llrint.texi: Likewise.
15111 * doc/posix-functions/llrintf.texi: Likewise.
15112 * doc/posix-functions/llrintl.texi: Likewise.
15113 * doc/posix-functions/lockf.texi: Likewise.
15114 * doc/posix-functions/lrintl.texi: Likewise.
15115 * doc/posix-functions/mkdirat.texi: Likewise.
15116 * doc/posix-functions/mkfifoat.texi: Likewise.
15117 * doc/posix-functions/mknodat.texi: Likewise.
15118 * doc/posix-functions/mq_close.texi: Likewise.
15119 * doc/posix-functions/mq_getattr.texi: Likewise.
15120 * doc/posix-functions/mq_notify.texi: Likewise.
15121 * doc/posix-functions/mq_open.texi: Likewise.
15122 * doc/posix-functions/mq_receive.texi: Likewise.
15123 * doc/posix-functions/mq_send.texi: Likewise.
15124 * doc/posix-functions/mq_setattr.texi: Likewise.
15125 * doc/posix-functions/mq_timedreceive.texi: Likewise.
15126 * doc/posix-functions/mq_timedsend.texi: Likewise.
15127 * doc/posix-functions/mq_unlink.texi: Likewise.
15128 * doc/posix-functions/open_memstream.texi: Likewise.
15129 * doc/posix-functions/openat.texi: Likewise.
15130 * doc/posix-functions/posix_fadvise.texi: Likewise.
15131 * doc/posix-functions/posix_fallocate.texi: Likewise.
15132 * doc/posix-functions/posix_madvise.texi: Likewise.
15133 * doc/posix-functions/posix_memalign.texi: Likewise.
15134 * doc/posix-functions/posix_openpt.texi: Likewise.
15135 * doc/posix-functions/readlinkat.texi: Likewise.
15136 * doc/posix-functions/remque.texi: Likewise.
15137 * doc/posix-functions/renameat.texi: Likewise.
15138 * doc/posix-functions/rintl.texi: Likewise.
15139 * doc/posix-functions/sem_unlink.texi: Likewise.
15140 * doc/posix-functions/shm_open.texi: Likewise.
15141 * doc/posix-functions/shm_unlink.texi: Likewise.
15142 * doc/posix-functions/signgam.texi: Likewise.
15143 * doc/posix-functions/sigset.texi: Likewise.
15144 * doc/posix-functions/stpcpy.texi: Likewise.
15145 * doc/posix-functions/stpncpy.texi: Likewise.
15146 * doc/posix-functions/strerror.texi: Likewise.
15147 * doc/posix-functions/strtod.texi: Likewise.
15148 * doc/posix-functions/symlinkat.texi: Likewise.
15149 * doc/posix-functions/unlinkat.texi: Likewise.
15150 * doc/posix-functions/utimensat.texi: Likewise.
15151 * doc/glibc-functions/bindresvport.texi: Likewise.
15152 * doc/glibc-functions/dn_expand.texi: Likewise.
15153 * doc/glibc-functions/exp10.texi: Likewise.
15154 * doc/glibc-functions/exp10f.texi: Likewise.
15155 * doc/glibc-functions/fgetxattr.texi: Likewise.
15156 * doc/glibc-functions/flistxattr.texi: Likewise.
15157 * doc/glibc-functions/fopencookie.texi: Likewise.
15158 * doc/glibc-functions/freeifaddrs.texi: Likewise.
15159 * doc/glibc-functions/fremovexattr.texi: Likewise.
15160 * doc/glibc-functions/fsetxattr.texi: Likewise.
15161 * doc/glibc-functions/getifaddrs.texi: Likewise.
15162 * doc/glibc-functions/getxattr.texi: Likewise.
15163 * doc/glibc-functions/lgetxattr.texi: Likewise.
15164 * doc/glibc-functions/listxattr.texi: Likewise.
15165 * doc/glibc-functions/llistxattr.texi: Likewise.
15166 * doc/glibc-functions/lremovexattr.texi: Likewise.
15167 * doc/glibc-functions/lsetxattr.texi: Likewise.
15168 * doc/glibc-functions/pow10.texi: Likewise.
15169 * doc/glibc-functions/pow10f.texi: Likewise.
15170 * doc/glibc-functions/rcmd_af.texi: Likewise.
15171 * doc/glibc-functions/removexattr.texi: Likewise.
15172 * doc/glibc-functions/res_init.texi: Likewise.
15173 * doc/glibc-functions/res_mkquery.texi: Likewise.
15174 * doc/glibc-functions/res_query.texi: Likewise.
15175 * doc/glibc-functions/res_querydomain.texi: Likewise.
15176 * doc/glibc-functions/res_send.texi: Likewise.
15177 * doc/glibc-functions/rresvport_af.texi: Likewise.
15178 * doc/glibc-functions/setxattr.texi: Likewise.
15179 * doc/glibc-functions/strcasestr.texi: Likewise.
15181 2008-12-15 Bruno Haible <bruno@clisp.org>
15183 Fix compilation error on OSF/1 4.0.
15184 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
15185 <sys/time.h>, simply delegate to the system header.
15186 Reported by Daniel Richard G. <oss@teragram.com>.
15188 2008-12-15 Bruno Haible <bruno@clisp.org>
15190 * doc/posix-functions/openat.texi: Mention the 'openat' module.
15191 * doc/posix-functions/fchmodat.texi: Likewise.
15192 * doc/posix-functions/fchownat.texi: Likewise.
15193 * doc/posix-functions/fdopendir.texi: Likewise.
15194 * doc/posix-functions/fstatat.texi: Likewise.
15195 * doc/posix-functions/mkdirat.texi: Likewise.
15196 * doc/posix-functions/unlinkat.texi: Likewise.
15198 2008-12-14 Bruno Haible <bruno@clisp.org>
15200 Update doc for POSIX:2008.
15201 * doc/posix-functions/faccessat.texi: New file.
15202 * doc/posix-functions/fchmodat.texi: New file.
15203 * doc/posix-functions/fchownat.texi: New file.
15204 * doc/posix-functions/fdopendir.texi: New file.
15205 * doc/posix-functions/fstatat.texi: New file.
15206 * doc/posix-functions/futimens.texi: New file.
15207 * doc/posix-functions/linkat.texi: New file.
15208 * doc/posix-functions/mkdirat.texi: New file.
15209 * doc/posix-functions/mkfifoat.texi: New file.
15210 * doc/posix-functions/mknodat.texi: New file.
15211 * doc/posix-functions/open_wmemstream.texi: New file.
15212 * doc/posix-functions/openat.texi: New file.
15213 * doc/posix-functions/psiginfo.texi: New file.
15214 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
15215 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
15216 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
15217 * doc/posix-functions/readlinkat.texi: New file.
15218 * doc/posix-functions/renameat.texi: New file.
15219 * doc/posix-functions/strerror_l.texi: New file.
15220 * doc/posix-functions/symlinkat.texi: New file.
15221 * doc/posix-functions/unlinkat.texi: New file.
15222 * doc/posix-functions/utimensat.texi: New file.
15223 * doc/gnulib.texi (Function Substitutes): Add these subsections.
15225 2008-12-14 Bruno Haible <bruno@clisp.org>
15227 Update doc for POSIX:2008.
15228 * doc/posix-functions/alphasort.texi: Renamed from
15229 doc/glibc-functions/alphasort.texi.
15230 * doc/posix-functions/dirfd.texi: Renamed from
15231 doc/glibc-functions/dirfd.texi.
15232 * doc/posix-functions/dprintf.texi: Renamed from
15233 doc/glibc-functions/dprintf.texi.
15234 * doc/posix-functions/duplocale.texi: Renamed from
15235 doc/glibc-functions/duplocale.texi.
15236 * doc/posix-functions/fexecve.texi: Renamed from
15237 doc/glibc-functions/fexecve.texi.
15238 * doc/posix-functions/fmemopen.texi: Renamed from
15239 doc/glibc-functions/fmemopen.texi.
15240 * doc/posix-functions/freelocale.texi: Renamed from
15241 doc/glibc-functions/freelocale.texi.
15242 * doc/posix-functions/getdate_err.texi: Renamed from
15243 doc/glibc-functions/getdate_err.texi.
15244 * doc/posix-functions/isalnum_l.texi: Renamed from
15245 doc/glibc-functions/isalnum_l.texi.
15246 * doc/posix-functions/isalpha_l.texi: Renamed from
15247 doc/glibc-functions/isalpha_l.texi.
15248 * doc/posix-functions/isblank_l.texi: Renamed from
15249 doc/glibc-functions/isblank_l.texi.
15250 * doc/posix-functions/iscntrl_l.texi: Renamed from
15251 doc/glibc-functions/iscntrl_l.texi.
15252 * doc/posix-functions/isdigit_l.texi: Renamed from
15253 doc/glibc-functions/isdigit_l.texi.
15254 * doc/posix-functions/isgraph_l.texi: Renamed from
15255 doc/glibc-functions/isgraph_l.texi.
15256 * doc/posix-functions/islower_l.texi: Renamed from
15257 doc/glibc-functions/islower_l.texi.
15258 * doc/posix-functions/isprint_l.texi: Renamed from
15259 doc/glibc-functions/isprint_l.texi.
15260 * doc/posix-functions/ispunct_l.texi: Renamed from
15261 doc/glibc-functions/ispunct_l.texi.
15262 * doc/posix-functions/isspace_l.texi: Renamed from
15263 doc/glibc-functions/isspace_l.texi.
15264 * doc/posix-functions/isupper_l.texi: Renamed from
15265 doc/glibc-functions/isupper_l.texi.
15266 * doc/posix-functions/iswalnum_l.texi: Renamed from
15267 doc/glibc-functions/iswalnum_l.texi.
15268 * doc/posix-functions/iswalpha_l.texi: Renamed from
15269 doc/glibc-functions/iswalpha_l.texi.
15270 * doc/posix-functions/iswblank_l.texi: Renamed from
15271 doc/glibc-functions/iswblank_l.texi.
15272 * doc/posix-functions/iswcntrl_l.texi: Renamed from
15273 doc/glibc-functions/iswcntrl_l.texi.
15274 * doc/posix-functions/iswctype_l.texi: Renamed from
15275 doc/glibc-functions/iswctype_l.texi.
15276 * doc/posix-functions/iswdigit_l.texi: Renamed from
15277 doc/glibc-functions/iswdigit_l.texi.
15278 * doc/posix-functions/iswgraph_l.texi: Renamed from
15279 doc/glibc-functions/iswgraph_l.texi.
15280 * doc/posix-functions/iswlower_l.texi: Renamed from
15281 doc/glibc-functions/iswlower_l.texi.
15282 * doc/posix-functions/iswprint_l.texi: Renamed from
15283 doc/glibc-functions/iswprint_l.texi.
15284 * doc/posix-functions/iswpunct_l.texi: Renamed from
15285 doc/glibc-functions/iswpunct_l.texi.
15286 * doc/posix-functions/iswspace_l.texi: Renamed from
15287 doc/glibc-functions/iswspace_l.texi.
15288 * doc/posix-functions/iswupper_l.texi: Renamed from
15289 doc/glibc-functions/iswupper_l.texi.
15290 * doc/posix-functions/iswxdigit_l.texi: Renamed from
15291 doc/glibc-functions/iswxdigit_l.texi.
15292 * doc/posix-functions/isxdigit_l.texi: Renamed from
15293 doc/glibc-functions/isxdigit_l.texi.
15294 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
15295 doc/glibc-functions/mbsnrtowcs.texi.
15296 * doc/posix-functions/mkdtemp.texi: Renamed from
15297 doc/glibc-functions/mkdtemp.texi.
15298 * doc/posix-functions/newlocale.texi: Renamed from
15299 doc/glibc-functions/newlocale.texi.
15300 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
15301 doc/glibc-functions/nl_langinfo_l.texi.
15302 * doc/posix-functions/open_memstream.texi: Renamed from
15303 doc/glibc-functions/open_memstream.texi.
15304 * doc/posix-functions/opterr.texi: Renamed from
15305 doc/glibc-functions/opterr.texi.
15306 * doc/posix-functions/optind.texi: Renamed from
15307 doc/glibc-functions/optind.texi.
15308 * doc/posix-functions/optopt.texi: Renamed from
15309 doc/glibc-functions/optopt.texi.
15310 * doc/posix-functions/psignal.texi: Renamed from
15311 doc/glibc-functions/psignal.texi.
15312 * doc/posix-functions/scandir.texi: Renamed from
15313 doc/glibc-functions/scandir.texi.
15314 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
15315 doc/glibc-functions/sched_get_priority_min.texi.
15316 * doc/posix-functions/signgam.texi: Renamed from
15317 doc/glibc-functions/signgam.texi.
15318 * doc/posix-functions/stpcpy.texi: Renamed from
15319 doc/glibc-functions/stpcpy.texi.
15320 * doc/posix-functions/stpncpy.texi: Renamed from
15321 doc/glibc-functions/stpncpy.texi.
15322 * doc/posix-functions/strcasecmp_l.texi: Renamed from
15323 doc/glibc-functions/strcasecmp_l.texi.
15324 * doc/posix-functions/strcoll_l.texi: Renamed from
15325 doc/glibc-functions/strcoll_l.texi.
15326 * doc/posix-functions/strfmon_l.texi: Renamed from
15327 doc/glibc-functions/strfmon_l.texi.
15328 * doc/posix-functions/strftime_l.texi: Renamed from
15329 doc/glibc-functions/strftime_l.texi.
15330 * doc/posix-functions/strncasecmp_l.texi: Renamed from
15331 doc/glibc-functions/strncasecmp_l.texi.
15332 * doc/posix-functions/strndup.texi: Renamed from
15333 doc/glibc-functions/strndup.texi.
15334 * doc/posix-functions/strnlen.texi: Renamed from
15335 doc/glibc-functions/strnlen.texi.
15336 * doc/posix-functions/strsignal.texi: Renamed from
15337 doc/glibc-functions/strsignal.texi.
15338 * doc/posix-functions/strxfrm_l.texi: Renamed from
15339 doc/glibc-functions/strxfrm_l.texi.
15340 * doc/posix-functions/timer_gettime.texi: Renamed from
15341 doc/glibc-functions/timer_gettime.texi.
15342 * doc/posix-functions/tolower_l.texi: Renamed from
15343 doc/glibc-functions/tolower_l.texi.
15344 * doc/posix-functions/toupper_l.texi: Renamed from
15345 doc/glibc-functions/toupper_l.texi.
15346 * doc/posix-functions/towctrans_l.texi: Renamed from
15347 doc/glibc-functions/towctrans_l.texi.
15348 * doc/posix-functions/towlower_l.texi: Renamed from
15349 doc/glibc-functions/towlower_l.texi.
15350 * doc/posix-functions/towupper_l.texi: Renamed from
15351 doc/glibc-functions/towupper_l.texi.
15352 * doc/posix-functions/uselocale.texi: Renamed from
15353 doc/glibc-functions/uselocale.texi.
15354 * doc/posix-functions/vdprintf.texi: Renamed from
15355 doc/glibc-functions/vdprintf.texi.
15356 * doc/posix-functions/wcpcpy.texi:
15357 Renamed from doc/glibc-functions/wcpcpy.texi.
15358 * doc/posix-functions/wcpncpy.texi: Renamed from
15359 doc/glibc-functions/wcpncpy.texi.
15360 * doc/posix-functions/wcscasecmp.texi: Renamed from
15361 doc/glibc-functions/wcscasecmp.texi.
15362 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
15363 doc/glibc-functions/wcscasecmp_l.texi.
15364 * doc/posix-functions/wcscoll_l.texi: Renamed from
15365 doc/glibc-functions/wcscoll_l.texi.
15366 * doc/posix-functions/wcsdup.texi: Renamed from
15367 doc/glibc-functions/wcsdup.texi.
15368 * doc/posix-functions/wcsncasecmp.texi: Renamed from
15369 doc/glibc-functions/wcsncasecmp.texi.
15370 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
15371 doc/glibc-functions/wcsncasecmp_l.texi.
15372 * doc/posix-functions/wcsnlen.texi: Renamed from
15373 doc/glibc-functions/wcsnlen.texi.
15374 * doc/posix-functions/wcsnrtombs.texi: Renamed from
15375 doc/glibc-functions/wcsnrtombs.texi.
15376 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
15377 doc/glibc-functions/wcsxfrm_l.texi.
15378 * doc/posix-functions/wctrans_l.texi: Renamed from
15379 doc/glibc-functions/wctrans_l.texi.
15380 * doc/posix-functions/wctype_l.texi: Renamed from
15381 doc/glibc-functions/wctype_l.texi.
15382 * doc/gnulib.texi (Function Substitutes): Add these subsections.
15383 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
15384 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
15385 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
15387 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
15390 2008-12-14 Bruno Haible <bruno@clisp.org>
15392 Update doc for POSIX:2008.
15393 * doc/posix-functions/*.texi: Update URL of POSIX specification.
15395 2008-12-14 Bruno Haible <bruno@clisp.org>
15397 Update doc for POSIX:2008.
15398 * doc/pastposix-functions/bcmp.texi: Renamed from
15399 doc/posix-functions/bcmp.texi.
15400 * doc/pastposix-functions/bcopy.texi: Renamed from
15401 doc/posix-functions/bcopy.texi.
15402 * doc/pastposix-functions/bsd_signal.texi: Renamed from
15403 doc/posix-functions/bsd_signal.texi.
15404 * doc/pastposix-functions/bzero.texi: Renamed from
15405 doc/posix-functions/bzero.texi.
15406 * doc/pastposix-functions/ecvt.texi: Renamed from
15407 doc/posix-functions/ecvt.texi.
15408 * doc/pastposix-functions/fcvt.texi: Renamed from
15409 doc/posix-functions/fcvt.texi.
15410 * doc/pastposix-functions/ftime.texi: Renamed from
15411 doc/posix-functions/ftime.texi.
15412 * doc/pastposix-functions/gcvt.texi: Renamed from
15413 doc/posix-functions/gcvt.texi.
15414 * doc/pastposix-functions/getcontext.texi: Renamed from
15415 doc/posix-functions/getcontext.texi.
15416 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
15417 doc/posix-functions/gethostbyaddr.texi.
15418 * doc/pastposix-functions/gethostbyname.texi: Renamed from
15419 doc/posix-functions/gethostbyname.texi.
15420 * doc/pastposix-functions/getwd.texi: Renamed from
15421 doc/posix-functions/getwd.texi.
15422 * doc/pastposix-functions/h_errno.texi: Renamed from
15423 doc/posix-functions/h_errno.texi.
15424 * doc/pastposix-functions/index.texi: Renamed from
15425 doc/posix-functions/index.texi.
15426 * doc/pastposix-functions/makecontext.texi: Renamed from
15427 doc/posix-functions/makecontext.texi.
15428 * doc/pastposix-functions/mktemp.texi: Renamed from
15429 doc/posix-functions/mktemp.texi.
15430 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
15431 doc/posix-functions/pthread_attr_getstackaddr.texi.
15432 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
15433 doc/posix-functions/pthread_attr_setstackaddr.texi.
15434 * doc/pastposix-functions/rindex.texi: Renamed from
15435 doc/posix-functions/rindex.texi.
15436 * doc/pastposix-functions/scalb.texi: Renamed from
15437 doc/posix-functions/scalb.texi.
15438 * doc/pastposix-functions/setcontext.texi: Renamed from
15439 doc/posix-functions/setcontext.texi.
15440 * doc/pastposix-functions/swapcontext.texi: Renamed from
15441 doc/posix-functions/swapcontext.texi.
15442 * doc/pastposix-functions/ualarm.texi: Renamed from
15443 doc/posix-functions/ualarm.texi.
15444 * doc/pastposix-functions/usleep.texi: Renamed from
15445 doc/posix-functions/usleep.texi.
15446 * doc/pastposix-functions/vfork.texi: Renamed from
15447 doc/posix-functions/vfork.texi.
15448 * doc/pastposix-functions/wcswcs.texi: Renamed from
15449 doc/posix-functions/wcswcs.texi.
15450 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
15451 (Function Substitutes): Update.
15453 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15455 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
15458 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15459 Bruno Haible <bruno@clisp.org>
15461 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
15463 2008-12-13 Bruno Haible <bruno@clisp.org>
15465 * modules/strtoull (Depends-on): Remove unistd.
15467 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15469 * modules/strtoull (Depends-on): Add stdlib.
15471 2008-12-11 Simon Josefsson <simon@josefsson.org>
15473 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
15475 2008-12-10 Jim Meyering <meyering@redhat.com>
15477 gl_ASSERT: don't say assertions are disabled when they're not
15478 * m4/assert.m4 (gl_ASSERT): Do not make configure report
15479 "checking whether to enable assertions... no", when they are in
15480 fact enabled. This is solely a bug in the output of configure.
15481 In spite of saying "no", NDEBUG was not defined in that case.
15482 Also, as noted by Eric Blake, leave assertions enabled upon
15483 --enable-assert=INVALID.
15485 2008-12-10 Bruno Haible <bruno@clisp.org>
15487 Change MODULES.html to refer to POSIX:2008 where possible.
15488 * MODULES.html.sh (POSIX2008_URL): New variable.
15489 (posix_headers): Remove sys/timeb, ucontext.
15490 (posix2001_headers): New variable.
15491 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
15492 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
15493 index, makecontext, mktemp, pthread_attr_getstackaddr,
15494 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
15495 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
15496 (posix2001_functions): New variable.
15497 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
15500 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15502 add missing include to parse-duration.c
15503 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
15504 * modules/parse-duration (Depends-on): Add xalloc.
15506 fix sed script reading maint.mk
15507 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
15508 (syntax-check-rules): Use it.
15510 2008-12-09 Bruno Haible <bruno@clisp.org>
15512 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
15513 MacOS X 10.4/PowerPC.
15514 Reported by Simon Josefsson.
15516 2008-12-08 Jim Meyering <meyering@redhat.com>
15518 work around mingw's lack of some S_IF definitions
15519 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
15520 Reported by Simon Josefsson.
15522 2008-12-08 Bruno Haible <bruno@clisp.org>
15524 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
15525 applied to variables. Needed on MacOS X 10.4/PowerPC.
15526 Reported by Simon Josefsson.
15528 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
15529 and Eric Blake <ebb9@byu.net>
15531 assert: honor --enable-assert
15532 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
15533 order to honor --enable-assert, rather than treating it as a
15534 synonym for --disable-assert.
15536 2008-12-08 Jim Meyering <meyering@redhat.com>
15538 * lib/posixtm.c: Remove now-useless declaration of mktime.
15540 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
15542 2008-12-07 Bruno Haible <bruno@clisp.org>
15544 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
15545 test_once): Mark functions as static.
15546 * tests/test-tls.c (test_tls): Likewise.
15548 2008-12-07 Bruno Haible <bruno@clisp.org>
15550 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
15551 iconv_register_autodetect.
15553 2008-12-07 Jim Meyering <meyering@redhat.com>
15555 posixtm.c: avoid a warning
15556 * lib/posixtm.c (posixtime): Don't initialize tm0.
15557 It's no longer needed to placate gcc4's -Wuninitialized,
15558 and the attempt to placate would elicit a new warning.
15560 unicodeio.c: mark unused parameters
15561 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
15562 (fallback_failure_callback): Likewise.
15564 2008-12-07 Bruno Haible <bruno@clisp.org>
15566 * gnulib-tool (func_create_testdir): When building the tests
15567 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
15568 Reported by Simon Josefsson.
15570 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15572 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
15574 2008-12-06 Bruno Haible <bruno@clisp.org>
15576 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
15577 Suggested by Eric Blake.
15579 2008-12-06 Bruno Haible <bruno@clisp.org>
15581 Fix a c-stack test failure on MacOS X.
15582 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
15583 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
15584 handler for SIGBUS as well.
15585 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
15586 install a signal handler for SIGBUS as well.
15587 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
15589 2008-12-06 Bruno Haible <bruno@clisp.org>
15591 Advocacy documentation.
15592 * doc/gnulib-intro.texi (Benefits): New section.
15593 * doc/gnulib.texi: Update.
15595 2008-12-06 Bruno Haible <bruno@clisp.org>
15597 Document the 'manywarnings' module.
15598 * doc/manywarnings.texi: New file.
15599 * doc/gnulib.texi: Include it.
15601 2008-12-05 Eric Blake <ebb9@byu.net>
15603 tests: silence some gcc warnings
15604 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
15605 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
15608 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15609 Bruno Haible <bruno@clisp.org>
15611 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
15613 2008-11-29 Jim Meyering <meyering@redhat.com>
15615 unicodeio.c: mark unused parameters
15616 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
15617 (fallback_failure_callback): Likewise.
15620 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
15621 (set_stat_type): Return S_IF*-valued "type" directly.
15622 Prompted by James Youngman's spotting a related bug.
15623 Confirmed by further testing through find.
15625 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
15626 * lib/fts.c (D_TYPE): Define.
15627 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
15628 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
15629 (s_ifmt_shift_bits): New function.
15630 (set_stat_type): New function.
15631 (fts_build): When not calling fts_stat, call set_stat_type
15632 to propagate dirent.d_type info to fts_read caller.
15633 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
15634 fts_statp->st_mode type information may be valid.
15636 2008-11-28 Simon Josefsson <simon@josefsson.org>
15638 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
15639 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
15642 2008-11-20 Bruno Haible <bruno@clisp.org>
15644 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
15645 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
15647 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
15648 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
15649 * modules/math (Makefile.am): Substitute
15650 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
15651 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15653 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
15654 Bruno Haible <bruno@clisp.org>
15656 * lib/stdint.in.h: Define all type macros so that their expansion is
15657 a single typedef'ed token. Fixes a compilation failure in Boost which
15658 does "using ::int8_t;".
15660 2008-11-18 Simon Josefsson <simon@josefsson.org>
15662 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
15663 gl_MANYWARN_ALL_GCC.
15664 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
15665 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
15666 * modules/manywarnings: New file.
15667 * MODULES.html.sh: Mention manywarnings module.
15669 2008-11-18 Bruno Haible <bruno@clisp.org>
15671 * doc/gnulib-tool.texi (Unit tests): New section.
15673 2008-11-18 Simon Josefsson <simon@josefsson.org>
15675 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
15676 paths like 'lib/po/foo.po'.
15678 2008-11-17 Simon Josefsson <simon@josefsson.org>
15680 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
15681 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
15683 2008-11-17 Simon Josefsson <simon@josefsson.org>
15685 * m4/warnings.m4: Use CPPFLAGS to really check whether the
15688 2008-11-17 Simon Josefsson <simon@josefsson.org>
15690 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
15692 2008-11-17 Bruce Korb <bkorb@gnu.org>
15694 * modules/parse-duration-tests: New file.
15695 * tests/test-parse-duration.sh: New file.
15696 * tests/test-parse-duration.c: New file.
15698 New module 'parse-duration'.
15699 * lib/parse-duration.h: New file.
15700 * lib/parse-duration.c: New file.
15701 * modules/parse-duration: New file.
15703 2008-11-17 Bruno Haible <bruno@clisp.org>
15705 * tests/test-select-out.sh: Comment out the first pipe test.
15706 Reported by Simon Josefsson.
15708 2008-11-17 Bruno Haible <bruno@clisp.org>
15710 * modules/getaddrinfo (Depends-on): Add servent, hostent.
15711 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
15714 2008-11-17 Bruno Haible <bruno@clisp.org>
15716 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
15717 -lnetwork and -lnet. Needed for Haiku and BeOS.
15719 2008-11-16 Bruno Haible <bruno@clisp.org>
15721 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
15723 2008-11-16 Bruno Haible <bruno@clisp.org>
15725 Avoid test failure on Haiku.
15726 * tests/test-fsync.c: Include <errno.h>.
15727 (main): Don't require that fsync (0) fails.
15729 2008-11-15 Bruno Haible <bruno@clisp.org>
15731 New module 'hostent'.
15732 * modules/hostent: New file.
15733 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
15735 2008-11-15 Bruno Haible <bruno@clisp.org>
15737 New module 'servent'.
15738 * modules/servent: New file.
15739 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
15741 2008-11-15 Bruno Haible <bruno@clisp.org>
15743 Avoid generating same test program with two different rules.
15744 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
15745 test-frexp to test-frexp-nolibm.
15746 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
15747 test-frexpl to test-frexpl-nolibm.
15749 2008-11-15 Bruno Haible <bruno@clisp.org>
15751 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
15754 2008-11-15 Bruno Haible <bruno@clisp.org>
15756 * lib/netdb.in.h: Activate the definitions also when the system's
15757 <netdb.h> has 'struct addrinfo'.
15758 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
15759 EAI_OVERFLOW or AI_NUMERICSERV.
15760 * doc/posix-headers/netdb.texi: Document the problem.
15762 2008-11-15 Bruno Haible <bruno@clisp.org>
15764 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
15766 Make the 'sched' module work on platforms where <sched.h> exists but
15767 is incomplete (such as Haiku).
15768 * lib/sched.in.h; Include the system's <sched.h> if it exists.
15769 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
15770 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
15771 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
15772 HAVE_STRUCT_SCHED_PARAM.
15773 * modules/sched (Depends-on): Add include_next.
15774 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
15775 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
15776 * doc/posix-headers/sched.texi: Document the issue.
15778 2008-11-13 Jim Meyering <meyering@redhat.com>
15780 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
15781 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
15782 test would fail due to the difference in the Report bugs to ...
15783 line. The expected address is empty, "<>", while the actual
15784 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
15786 2008-11-12 Bruno Haible <bruno@clisp.org>
15788 lstat: don't compile lstat.c on systems lacking lstat
15789 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
15790 which don't have lstat; this is handled by lib/sys_stat.in.h already.
15791 Reported by Daniel P. Berrange via Jim Meyering.
15793 2008-11-12 Jim Meyering <meyering@redhat.com>
15795 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
15797 2008-11-12 Simon Josefsson <simon@josefsson.org>
15799 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
15802 2008-11-12 Bruno Haible <bruno@clisp.org>
15804 * lib/unicodeio.c: Include unistr.h.
15805 (utf8_wctomb): Remove function.
15806 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
15808 2008-11-12 Simon Josefsson <simon@josefsson.org>
15810 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
15811 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
15813 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
15815 2008-11-12 Simon Josefsson <simon@josefsson.org>
15817 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
15818 * doc/gnulib.texi: Add section for warnings.
15820 2008-11-11 Bruno Haible <bruno@clisp.org>
15822 * lib/sockets.h: Add a comment.
15824 2008-11-11 Karl Berry <karl@gnu.org>
15826 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
15828 2008-11-11 Eric Blake <ebb9@byu.net>
15830 fdl.texi: avoid git symlinks
15831 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
15833 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
15835 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
15837 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
15839 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
15840 (gl_WARN_ADD): Substitute $2 if literal.
15842 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
15844 * m4/warning.m4: Remove.
15846 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
15848 * m4/warnings.m4: Almost complete rewrite. :-)
15850 2008-11-10 Simon Josefsson <simon@josefsson.org>
15852 * modules/warnings: New module.
15853 * m4/warnings.m4: New file.
15854 * MODULES.html.sh: Mention warnings module.
15855 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
15856 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15858 2008-11-10 Eric Blake <ebb9@byu.net>
15860 fdl.texi: make a symlink to the latest version
15861 * doc/standards.texi: Revert today's earlier change.
15862 * doc/fdl-1.2.texi: Rename from old fdl.texi...
15863 * doc/fdl.texi: ...and replace this with a symlink to the newer
15866 2008-11-10 Bruno Haible <bruno@clisp.org>
15868 * tests/test-select-fd.c (main): Accept the result file name as fourth
15870 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
15871 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
15873 2008-11-10 Bruno Haible <bruno@clisp.org>
15875 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
15876 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
15877 as autoconf-substituted macros.
15878 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
15879 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
15880 gl_NETDB_H_DEFAULTS. Set these variables.
15881 * modules/netdb (Makefile.am): Substitute these variables.
15883 2008-11-10 Eric Blake <ebb9@byu.net>
15885 standards.texi: include correct file for FDL 1.3
15886 * doc/standards.texi (GNU Free Documentation License): Change
15887 include file to pull in FDL 1.3, not 1.2.
15889 fdl.texi: revert accidental change to license
15890 * doc/fdl.texi: This is FDL 1.2, not 1.3.
15892 2008-11-10 Bruno Haible <bruno@clisp.org>
15894 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
15895 cross-compiling guesses also when the native compile gives no result.
15897 2008-11-10 Bruno Haible <bruno@clisp.org>
15899 * lib/spawni.c (__spawni): Force variable into the stack.
15901 2008-11-10 Bruno Haible <bruno@clisp.org>
15903 Add support for Haiku.
15904 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
15905 glibc and BeOS, but also on Haiku.
15906 * lib/fpurge.c (fpurge): Likewise.
15907 * lib/freadable.c (freadable): Likewise.
15908 * lib/freadahead.c (freadahead): Likewise.
15909 * lib/freading.c (freading): Likewise.
15910 * lib/freadptr.c (freadptr): Likewise.
15911 * lib/freadseek.c (freadptrinc): Likewise.
15912 * lib/fseeko.c (rpl_fseeko): Likewise.
15913 * lib/fseterr.c (fseterr): Likewise.
15914 * lib/fwritable.c (fwritable): Likewise.
15915 * lib/fwriting.c (fwriting): Likewise.
15916 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
15918 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
15920 * lib/config.charset: Treat Haiku like BeOS.
15922 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
15924 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
15925 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
15927 2008-11-08 Bruno Haible <bruno@clisp.org>
15929 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
15932 2008-11-08 Bruno Haible <bruno@clisp.org>
15934 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
15936 2008-11-08 Bruno Haible <bruno@clisp.org>
15938 * tests/test-select-fd.c: New file.
15939 * tests/test-select-in.sh: New file.
15940 * tests/test-select-out.sh: New file.
15941 * tests/test-select-stdin.c: New file.
15942 * modules/select-tests (Files): Add the new files.
15943 (Depends-on): Add gettimeofday.
15944 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
15945 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
15946 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
15948 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
15949 Bruno Haible <bruno@clisp.org>
15951 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
15953 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
15955 * build-aux/pmccabe2html: Added support for C++ source files.
15957 2008-11-05 Ben Pfaff <blp@gnu.org>
15959 Fix lib/close.c build on Windows.
15960 * modules/close (Files): Add lib/w32sock.h.
15962 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
15964 Accept Bison's NEWS format.
15965 * build-aux/announce-gen (print_news_deltas): Tweak
15968 2008-11-04 Bruno Haible <bruno@clisp.org>
15970 * modules/random_r (Maintainer): Add glibc.
15972 2008-11-04 Simon Josefsson <simon@josefsson.org>
15974 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
15975 by karl@freefriends.org (Karl Berry).
15976 * doc/alloca.texi: Likewise.
15977 * doc/c-ctype.texi: Likewise.
15978 * doc/c-strcase.texi: Likewise.
15979 * doc/c-strcaseeq.texi: Likewise.
15980 * doc/c-strcasestr.texi: Likewise.
15981 * doc/c-strstr.texi: Likewise.
15982 * doc/c-strtod.texi: Likewise.
15983 * doc/c-strtold.texi: Likewise.
15984 * doc/ctime.texi: Likewise.
15985 * doc/error.texi: Likewise.
15986 * doc/fdl.texi: Likewise.
15987 * doc/gcd.texi: Likewise.
15988 * doc/getdate.texi: Likewise.
15989 * doc/gnulib-intro.texi: Likewise.
15990 * doc/gnulib-tool.texi: Likewise.
15991 * doc/gnulib.texi: Likewise.
15992 * doc/inet_ntoa.texi: Likewise.
15993 * doc/maintain.texi: Likewise.
15994 * doc/make-stds.texi: Likewise.
15995 * doc/quote.texi: Likewise.
15996 * doc/regexprops-generic.texi: Likewise.
15997 * doc/standards.texi: Likewise.
15998 * doc/verify.texi: Likewise.
15999 * doc/visibility.texi: Likewise.
16000 * doc/gnulib.texi (GNU Free Documentation License): Include
16001 fdl-1.3.texi instead of fdl.texi.
16003 2008-11-04 Simon Josefsson <simon@josefsson.org>
16005 * doc/fdl-1.3.texi: New file, from
16006 <http://www.gnu.org/licenses/fdl-1.3.texi>.
16007 * modules/fdl-1.3: Add.
16008 * MODULES.html.sh: Add fdl-1.3.
16010 2008-11-03 Bruno Haible <bruno@clisp.org>
16012 Make determination of absolute name of header file work with AIX xlc.
16013 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
16014 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
16016 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16017 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
16019 2008-11-03 Simon Josefsson <simon@josefsson.org>
16021 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
16022 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
16025 2008-11-02 Bruno Haible <bruno@clisp.org>
16027 Mark 'strpbrk' obsolete.
16028 * modules/strpbrk (Status, Notice): New sections.
16029 * modules/strtok_r (Depends-on): Add strpbrk.
16031 2008-11-02 Bruno Haible <bruno@clisp.org>
16033 Mark 'strdup' obsolete.
16034 * modules/strdup (Status, Notice): New sections.
16035 * modules/findprog (Depends-on): Add strdup.
16036 * modules/getaddrinfo (Depends-on): Likewise.
16037 * modules/localename (Depends-on): Likewise.
16038 * modules/relocatable-lib (Depends-on): Likewise.
16039 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
16040 * modules/relocatable-prog (Depends-on): Likewise.
16041 * modules/trim (Depends-on): Likewise.
16042 * modules/unictype/gen-ctype (Depends-on): Likewise.
16043 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
16045 2008-11-02 Bruno Haible <bruno@clisp.org>
16047 Mark 'strcspn' obsolete.
16048 * modules/strcspn (Status, Notice): New sections.
16050 2008-11-02 Bruno Haible <bruno@clisp.org>
16052 Mark 'rmdir' obsolete.
16053 * modules/rmdir (Status, Notice): New sections.
16054 * modules/clean-temp (Depends-on): Add rmdir.
16055 * modules/openat (Depends-on): Likewise.
16057 2008-11-02 Bruno Haible <bruno@clisp.org>
16059 Mark 'raise' obsolete.
16060 * modules/raise (Status, Notice): New sections.
16061 (Include): Specify <signal.h>.
16062 * modules/stdio (Depends-on): Add raise.
16063 * modules/write (Depends-on): Likewise.
16065 2008-11-02 Bruno Haible <bruno@clisp.org>
16067 Mark 'memset' obsolete.
16068 * modules/memset (Status, Notice): New sections.
16070 2008-11-02 Bruno Haible <bruno@clisp.org>
16072 Mark 'memmove' obsolete.
16073 * modules/memmove (Status, Notice): New sections.
16074 * modules/argp (Depends-on): Add memmove.
16075 * modules/argz (Depends-on): Likewise.
16076 * modules/canonicalize (Depends-on): Likewise.
16077 * modules/canonicalize-lgpl (Depends-on): Likewise.
16078 * modules/fts (Depends-on): Likewise.
16079 * modules/getcwd (Depends-on): Likewise.
16080 * modules/human (Depends-on): Likewise.
16081 * modules/regex (Depends-on): Likewise.
16082 * modules/striconveh (Depends-on): Likewise.
16083 * modules/trim (Depends-on): Likewise.
16084 * modules/unistr/u8-move (Depends-on): Likewise.
16085 * modules/unistr/u16-move (Depends-on): Likewise.
16086 * modules/unistr/u32-move (Depends-on): Likewise.
16088 2008-11-02 Bruno Haible <bruno@clisp.org>
16090 Mark 'memcpy' obsolete.
16091 * modules/memcpy (Status, Notice): New sections.
16093 2008-11-02 Bruno Haible <bruno@clisp.org>
16095 Mark 'memcmp' obsolete.
16096 * modules/memcmp (Status, Notice): New sections.
16097 * modules/argmatch (Depends-on): Add memchr.
16098 * modules/backupfile (Depends-on): Likewise.
16099 * modules/c-strcasestr (Depends-on): Likewise.
16100 * modules/crypto/des (Depends-on): Likewise.
16101 * modules/csharpcomp (Depends-on): Likewise.
16102 * modules/fnmatch (Depends-on): Likewise.
16103 * modules/git-merge-changelog (Depends-on): Likewise.
16104 * modules/isnand (Depends-on): Likewise.
16105 * modules/isnand-nolibm (Depends-on): Likewise.
16106 * modules/isnanf (Depends-on): Likewise.
16107 * modules/isnanf-nolibm (Depends-on): Likewise.
16108 * modules/isnanl (Depends-on): Likewise.
16109 * modules/isnanl-nolibm (Depends-on): Likewise.
16110 * modules/mbchar (Depends-on): Likewise.
16111 * modules/memcoll (Depends-on): Likewise.
16112 * modules/quotearg (Depends-on): Likewise.
16113 * modules/regex (Depends-on): Likewise.
16114 * modules/relocatable-prog (Depends-on): Likewise.
16115 * modules/same (Depends-on): Likewise.
16116 * modules/signbit (Depends-on): Likewise.
16117 * modules/strcasestr-simple (Depends-on): Likewise.
16118 * modules/unictype/gen-ctype (Depends-on): Likewise.
16119 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
16120 * modules/uniname/uniname (Depends-on): Likewise.
16121 * modules/unistr/u8-cmp (Depends-on): Likewise.
16123 2008-11-02 Bruno Haible <bruno@clisp.org>
16125 Mark 'memchr' obsolete.
16126 * modules/memchr (Status, Notice): New sections.
16127 * modules/argp (Depends-on): Add memchr.
16128 * modules/base64 (Depends-on): Likewise.
16129 * modules/c-strcasestr (Depends-on): Likewise.
16130 * modules/chdir-long (Depends-on): Likewise.
16131 * modules/fnmatch (Depends-on): Likewise.
16132 * modules/getsubopt (Depends-on): Likewise.
16133 * modules/git-merge-changelog (Depends-on): Likewise.
16134 * modules/glob (Depends-on): Likewise.
16135 * modules/strcasestr-simple (Depends-on): Likewise.
16136 * modules/strnlen (Depends-on): Likewise.
16138 2008-11-02 Bruno Haible <bruno@clisp.org>
16140 Mark 'atexit' obsolete.
16141 * modules/atexit (Status, Notice): New sections.
16142 * modules/chdir-long (Depends-on): Add atexit.
16143 * modules/wait-process (Depends-on): Likewise.
16145 2008-11-02 Bruno Haible <bruno@clisp.org>
16147 * gnulib-tool: New option --with-obsolete.
16148 (func_usage): Document it.
16149 (func_modules_transitive_closure): Drop obsolete dependencies if
16150 incobsolete is not true.
16151 (func_import): Read and save the incobsolete variable to the cache.
16153 2008-11-02 Bruno Haible <bruno@clisp.org>
16155 * modules/TEMPLATE-EXTENDED: New field 'Status'.
16156 * gnulib-tool: New option --extract-status.
16157 (func_usage): Document it.
16158 (sed_extract_prog): Recognize it.
16159 (func_get_status): New function.
16161 2008-10-30 Simon Josefsson <simon@josefsson.org>
16163 * modules/sockets (License): Change from LGPL to LGPLv2+.
16165 2008-10-28 Simon Josefsson <simon@josefsson.org>
16167 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
16169 2008-10-28 Simon Josefsson <simon@josefsson.org>
16171 * MODULES.html.sh (Support for systems lacking POSIX:2001):
16172 Mention times and sys_times.
16173 * modules/sys_times, modules/sys_times-tests: New modules.
16174 * modules/times, modules/times-tests: Likewise
16175 * m4/sys_times_h.m4: New file.
16176 * lib/sys_times.in.h: Likewise
16177 * lib/times.c: Likewise.
16178 * tests/test-sys_times.c: Likewise.
16179 * tests/test-times.c: Likewise.
16180 * doc/posix-headers/sys_times.texi: Update.
16181 * doc/posix-functions/times.texi: Update.
16183 2008-10-28 Jim Meyering <meyering@redhat.com>
16185 * modules/tempname (Depends-on): Add lstat.
16187 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
16189 2008-10-28 Simon Josefsson <simon@josefsson.org>
16191 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
16192 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
16193 using idiom used elsewhere in gnulib.
16195 2008-10-27 Jim Meyering <meyering@redhat.com>
16197 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
16199 2008-10-27 Simon Josefsson <simon@josefsson.org>
16201 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
16202 TESTS_ENVIRONMENT, for shell scripts that needs to call built
16204 * tests/test-argp-2.sh: Use $EXEEXT when needed.
16206 2008-10-27 Simon Josefsson <simon@josefsson.org>
16208 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
16210 2008-10-27 Bruno Haible <bruno@clisp.org>
16212 * tests/test-lstat.c: Include <stdio.h>.
16214 2008-10-27 Simon Josefsson <simon@josefsson.org>
16216 * modules/lstat-tests: New module.
16217 * tests/test-lstat.c: New file.
16219 2008-10-26 Jim Meyering <meyering@redhat.com>
16221 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
16223 2008-10-26 Simon Josefsson <simon@josefsson.org>
16224 Bruno Haible <bruno@clisp.org>
16226 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
16227 * modules/configmake (Include): Add a note that the include must come
16228 after all system headers.
16229 * lib/javaversion.c: Include configmake.h after all other includes.
16231 2008-10-26 Bruno Haible <bruno@clisp.org>
16233 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
16234 HAVE_STRUCT_RANDOM_DATA to 1.
16235 (gl_STDLIB_H): Simplify.
16237 2008-10-26 Simon Josefsson <simon@josefsson.org>
16239 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
16240 substitute HAVE_STRUCT_RANDOM_DATA.
16241 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
16243 * modules/stdlib (Makefile.am): Substitute
16244 HAVE_STRUCT_RANDOM_DATA.
16246 2008-10-26 Simon Josefsson <simon@josefsson.org>
16248 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
16249 * doc/gnulib-intro.texi (Copyright): Likewise.
16251 2008-10-26 Simon Josefsson <simon@josefsson.org>
16253 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
16256 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
16257 Bruno Haible <bruno@clisp.org>
16259 * lib/unistd.in.h: Include <winsock2.h>.
16260 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
16261 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
16262 Provide dummy declarations.
16263 (gethostname): Override.
16264 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
16265 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
16266 gl_PREREQ_SYS_H_WINSOCK2.
16267 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
16268 * doc/posix-functions/gethostname.texi: More details.
16270 2008-10-25 Bruno Haible <bruno@clisp.org>
16272 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
16273 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
16274 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
16276 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
16278 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
16279 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
16280 gl_UNISTD_H_DEFAULTS.
16282 2008-10-25 Eric Blake <ebb9@byu.net>
16284 signbit: avoid spurious compiler failure
16285 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
16286 declarations inside function.
16288 2008-10-24 Simon Josefsson <simon@josefsson.org>
16289 Bruno Haible <bruno@clisp.org>
16291 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
16292 * modules/random_r (Depends-on): Add stdint.
16294 2008-10-24 Bruno Haible <bruno@clisp.org>
16296 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
16298 * modules/strerror (License): Likewise.
16300 2008-10-24 Jim Meyering <meyering@redhat.com>
16302 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
16303 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
16305 2008-10-24 Eric Blake <ebb9@byu.net>
16307 getgroups: fix compilation when getgroups is available
16308 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
16309 but with <config.h> override of getgroups disabled.
16311 2008-10-24 Simon Josefsson <simon@josefsson.org>
16313 * doc/gnulib.texi (Header files): Add note about C++ problems.
16314 Explained by Bruno Haible <bruno@clisp.org>.
16316 2008-10-23 Bruno Haible <bruno@clisp.org>
16318 Define a dummy SA_NODEFER macro on Interix.
16319 * lib/signal.in.h (SA_NODEFER): Define fallback.
16320 Reported by Aleksey Cheusov <cheusov@tut.by> via
16321 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
16323 2008-10-23 Bruno Haible <bruno@clisp.org>
16325 * modules/freadahead (License): Change to LGPLv2+.
16326 Suggested by Simon Josefsson.
16328 2008-10-23 Jim Meyering <meyering@redhat.com>
16330 random_r: new module
16331 * modules/random_r: New file.
16332 * m4/random_r.m4: New file.
16333 * lib/random_r.c: New file, from glibc.
16334 * modules/random_r-tests: New file.
16335 * tests/test-random_r.c: New file.
16336 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
16338 (RAND_MAX): Define.
16339 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
16340 * modules/stdlib: Substitute them, too.
16341 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
16342 * doc/glibc-functions/initstate_r.texi: Mention the new module.
16343 * doc/glibc-functions/random_r.texi: Likewise.
16344 * doc/glibc-functions/setstate_r.texi: Likewise.
16345 * doc/glibc-functions/srandom_r.texi: Likewise.
16346 * config/srclist.txt: Mention it.
16348 2008-10-23 David Lutterkort <lutter@redhat.com>
16350 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
16353 2008-10-23 Jim Meyering <meyering@redhat.com>
16355 selinux-h: mark parameters of stub functions as intentionally unused
16356 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
16357 * lib/se-context.in.h: Likewise.
16359 2008-10-22 Simon Josefsson <simon@josefsson.org>
16361 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
16363 2008-10-22 Simon Josefsson <simon@josefsson.org>
16365 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
16367 2008-10-22 Eric Blake <ebb9@byu.net>
16369 glthread/thread: avoid compiler warning
16370 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
16371 Add unreachable abort to silence compiler.
16373 2008-10-22 Eric Blake <ebb9@byu.net>
16375 netdb: also supply struct addrinfo for cygwin 1.5.x
16376 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
16378 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
16380 * doc/posix-headers/netdb.texi (netdb.h): Document this.
16382 2008-10-22 Bruno Haible <bruno@clisp.org>
16384 * users.txt: Update entry about pspp.
16386 2008-10-21 Bruno Haible <bruno@clisp.org>
16389 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
16390 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
16393 * lib/ioctl.c (ioctl): Don't undefine.
16394 * lib/socket.c (socket): Don't undefine.
16396 Remove unused module indicator macros.
16397 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
16398 GNULIB_$1 as a C macro.
16400 * doc/posix-functions/close.texi: Undo last change.
16401 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
16404 2008-10-21 Bruno Haible <bruno@clisp.org>
16406 Add gethostname() declaration to <unistd.h>.
16407 * lib/unistd.in.h (gethostname): New declaration.
16408 * lib/gethostname.c: Include <unistd.h>.
16409 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
16410 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
16411 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
16412 and HAVE_GETHOSTNAME.
16413 * modules/gethostname (Depends-on): Add unistd.
16414 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16415 (Include): Specify <unistd.h>.
16416 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
16418 * tests/test-gethostname.c: Include <unistd.h> first.
16420 2008-10-21 Bruno Haible <bruno@clisp.org>
16422 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
16423 * modules/select-tests (Depends-on): Likewise.
16424 Reported by Simon Josefsson.
16426 2008-10-21 Simon Josefsson <simon@josefsson.org>
16428 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
16429 * lib/accept.c: New file, based on winsock.c.
16430 * lib/bind.c: New file, based on winsock.c.
16431 * lib/connect.c: New file, based on winsock.c.
16432 * lib/getpeername.c: New file, based on winsock.c.
16433 * lib/getsockname.c: New file, based on winsock.c.
16434 * lib/getsockopt.c: New file, based on winsock.c.
16435 * lib/ioctl.c: New file, based on winsock.c.
16436 * lib/listen.c: New file, based on winsock.c.
16437 * lib/recv.c: New file, based on winsock.c.
16438 * lib/recvfrom.c: New file, based on winsock.c.
16439 * lib/send.c: New file, based on winsock.c.
16440 * lib/sendto.c: New file, based on winsock.c.
16441 * lib/setsockopt.c: New file, based on winsock.c.
16442 * lib/shutdown.c: New file, based on winsock.c.
16443 * lib/socket.c: New file, based on winsock.c.
16444 * lib/w32sock.h: New file, based on winsock.c.
16445 * lib/winsock.c: Remove file.
16446 * modules/accept: Likewise.
16447 * modules/bind: Likewise.
16448 * modules/connect: Likewise.
16449 * modules/getpeername: Likewise.
16450 * modules/getsockname: Likewise.
16451 * modules/getsockopt: Likewise.
16452 * modules/ioctl: Likewise.
16453 * modules/listen: Likewise.
16454 * modules/recv: Likewise.
16455 * modules/recvfrom: Likewise.
16456 * modules/send: Likewise.
16457 * modules/sendto: Likewise.
16458 * modules/setsockopt: Likewise.
16459 * modules/shutdown: Likewise.
16460 * modules/socket: Use socket.c instead of winsock.c.
16461 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
16462 * doc/posix-functions/accept.texi: Doc fix.
16463 * doc/posix-functions/bind.texi: Doc fix.
16464 * doc/posix-functions/close.texi: Doc fix.
16465 * doc/posix-functions/connect.texi: Doc fix.
16466 * doc/posix-functions/getpeername.texi: Doc fix.
16467 * doc/posix-functions/getsockname.texi: Doc fix.
16468 * doc/posix-functions/getsockopt.texi: Doc fix.
16469 * doc/posix-functions/ioctl.texi: Doc fix.
16470 * doc/posix-functions/listen.texi: Doc fix.
16471 * doc/posix-functions/recv.texi: Doc fix.
16472 * doc/posix-functions/recvfrom.texi: Doc fix.
16473 * doc/posix-functions/send.texi: Doc fix.
16474 * doc/posix-functions/sendto.texi: Doc fix.
16475 * doc/posix-functions/setsockopt.texi: Doc fix.
16476 * doc/posix-functions/shutdown.texi: Doc fix.
16477 * doc/posix-functions/socket.texi: Doc fix.
16479 2008-10-20 Bruno Haible <bruno@clisp.org>
16481 Take into account the role of SIGABRT_COMPAT on Windows 2008.
16482 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
16483 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
16484 as an alias for SIGABRT.
16485 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
16486 (sigaction): Map it to SIGABRT.
16487 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
16489 2008-10-20 Bruno Haible <bruno@clisp.org>
16491 * lib/fts.c: Don't include lstat.h.
16492 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
16494 Move the lstat() declaration to <sys/stat.h>.
16495 * lib/lstat.h: Remove file.
16496 * lib/sys_stat.in.h: Add special invocation convention.
16497 (lstat): New declaration.
16498 * lib/lstat.c (orig_lstat): New function.
16499 (rpl_lstat): Use orig_lstat instead of lstat.
16500 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
16501 AC_C_INLINE. Set REPLACE_LSTAT.
16502 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
16504 * modules/lstat (Files): Remove lib/lstat.h.
16505 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
16506 (Include): Specify <sys/stat.h> instead of lstat.h.
16507 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
16509 * NEWS: Mention the change.
16511 2008-10-20 Bruno Haible <bruno@clisp.org>
16513 * modules/posix_spawn-tests: New file.
16514 * tests/test-posix_spawn3.c: New file.
16516 2008-10-20 Bruno Haible <bruno@clisp.org>
16518 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
16519 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
16520 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
16521 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
16522 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
16524 2008-10-20 Bruno Haible <bruno@clisp.org>
16526 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
16527 of posix_spawn on AIX 5.3.
16529 2008-10-20 Bruno Haible <bruno@clisp.org>
16531 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
16533 2008-10-20 Bruno Haible <bruno@clisp.org>
16535 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
16536 of AC_LANG_PROGRAM.
16538 2008-10-20 Simon Josefsson <simon@josefsson.org>
16540 * lib/netdb.in.h: Don't define GNU specific constants until they
16541 are supported or needed. Reported by Bruno Haible
16544 2008-10-20 Simon Josefsson <simon@josefsson.org>
16546 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
16548 2008-10-20 Simon Josefsson <simon@josefsson.org>
16550 * lib/getaddrinfo.h: Remove file.
16551 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
16552 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
16553 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
16554 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
16555 * modules/netdb: Substitute GNULIB_GETADDRINFO.
16556 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
16557 * tests/test-getaddrinfo.c: Likewise.
16558 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
16559 * NEWS: Mention change.
16561 2008-10-19 Bruno Haible <bruno@clisp.org>
16563 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
16565 2008-10-19 Bruno Haible <bruno@clisp.org>
16567 * lib/wait-process.c: Include simply <sys/wait.h>.
16568 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
16569 WIFSTOPPED): Remove fallback definitions.
16570 * modules/wait-process (Depends-on): Add sys_wait.
16572 New module 'sys_wait'.
16573 * modules/sys_wait: New file.
16574 * lib/sys_wait.in.h: New file, partially copied from
16575 lib/wait-process.c.
16576 * m4/sys_wait_h.m4: New file.
16577 * doc/posix-headers/sys_wait.texi: Mention the new module.
16579 2008-10-19 Bruno Haible <bruno@clisp.org>
16581 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
16583 2008-10-19 Bruno Haible <bruno@clisp.org>
16585 Assume that waitpid() fills an 'int' status, not a 'union wait'.
16586 * lib/wait-process.c (WAIT_T): Remove type.
16587 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
16588 (wait_subprocess): Update.
16590 2008-10-19 Bruno Haible <bruno@clisp.org>
16592 New module 'atoll'.
16593 * modules/atoll: New file.
16594 * lib/stdlib.in.h (atoll): New declaration.
16595 * lib/atoll.c: New file, from glibc with modifications.
16596 * m4/atoll.m4: New file.
16597 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
16599 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
16600 * doc/posix-functions/atoll.texi: Mention the new module.
16602 2008-10-19 Bruno Haible <bruno@clisp.org>
16604 Add strtoull() declaration to <stdlib.h>.
16605 * lib/stdlib.in.h (strtoull): New declaration.
16606 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
16608 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
16610 * modules/strtoull (Depends-on): Add stdlib.
16611 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16612 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
16615 2008-10-19 Bruno Haible <bruno@clisp.org>
16617 Add strtoll() declaration to <stdlib.h>.
16618 * lib/stdlib.in.h (strtoll): New declaration.
16619 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
16621 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
16623 * modules/strtoll (Depends-on): Add stdlib.
16624 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16625 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
16627 2008-10-19 Bruno Haible <bruno@clisp.org>
16629 * modules/bcopy (Depends-on): Add strings.
16630 (Include): Specify <strings.h>.
16632 2008-10-19 Bruno Haible <bruno@clisp.org>
16634 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
16636 2008-10-19 Bruno Haible <bruno@clisp.org>
16638 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
16639 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
16642 2008-10-19 Bruno Haible <bruno@clisp.org>
16644 * lib/atanl.c: Don't include isnanl.h.
16645 * lib/cosl.c: Likewise.
16646 * lib/ldexpl.c: Likewise.
16647 * lib/logl.c: Likewise.
16648 * lib/sinl.c: Likewise.
16649 * lib/sqrtl.c: Likewise.
16650 * lib/tanl.c: Likewise.
16652 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
16653 * lib/isnanf.h: Remove file.
16654 * lib/isnand.h: Remove file.
16655 * lib/isnanl.h: Remove file.
16656 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
16657 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
16659 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
16660 HAVE_ISNANF, don't define it as a C macro.
16661 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
16662 HAVE_ISNAND, don't define it as a C macro.
16663 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
16664 HAVE_ISNANL, don't define it as a C macro.
16665 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
16667 * modules/isnanf (Files): Remove lib/isnanf.h.
16668 (Depends-on): Add math.
16669 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16670 (Include): Specify <math.h> instead of isnanf.h.
16671 * modules/isnand (Files): Remove lib/isnand.h.
16672 (Depends-on): Add math.
16673 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16674 (Include): Specify <math.h> instead of isnand.h.
16675 * modules/isnanl (Files): Remove lib/isnanl.h.
16676 (Depends-on): Add math.
16677 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
16678 (Include): Specify <math.h> instead of isnanl.h.
16679 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
16681 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
16682 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
16683 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
16684 * NEWS: Mention the change.
16686 2008-10-18 Bruno Haible <bruno@clisp.org>
16688 Add getusershell(), setusershell(), endusershell() declarations to
16690 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
16692 * lib/getusershell.c: Include unistd.h.
16693 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
16694 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
16696 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
16697 and HAVE_GETUSERSHELL.
16698 * modules/getusershell (Depends-on): Add unistd, extensions.
16699 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16700 (Include): Specify <unistd.h>.
16701 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
16704 2008-10-18 Bruno Haible <bruno@clisp.org>
16706 Add a getloadavg() declaration to <stdlib.h>.
16707 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
16708 getloadavg declaration.
16709 (getloadavg): New declaration.
16710 * lib/getloadavg.c: Include <stdlib.h> first.
16711 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
16712 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
16713 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
16714 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
16715 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
16716 * modules/getloadavg (Depends-on): Add stdlib, extensions.
16717 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16718 (Include): Specify <stdlib.h>.
16719 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
16720 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
16722 2008-10-18 Bruno Haible <bruno@clisp.org>
16724 * lib/dirchownmod.c: Don't include lchmod.h.
16726 Move the lchmod() declaration to <sys/stat.h>.
16727 * lib/lchmod.h: Remove file.
16728 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
16729 (lchmod): New declaration, moved here from lib/lchown.h.
16730 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
16731 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
16732 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
16734 * modules/lchmod (Files): Remove lib/lchmod.h.
16735 (Depends-on): Add sys_stat, extensions.
16736 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
16737 (Include): Specify <sys/stat.h> instead of lchmod.h.
16738 * modules/sys_stat (Depends-on): Add link-warning.
16739 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
16740 definition of GL_LINK_WARNING.
16741 * NEWS: Mention the change.
16743 2008-10-18 Bruno Haible <bruno@clisp.org>
16745 * lib/fchdir.c: Don't include dirfd.h.
16746 * lib/fts.c: Likewise.
16747 * lib/getcwd.c: Likewise.
16748 * lib/glob.c: Likewise.
16750 Move the dirfd() declaration to <dirent.h>.
16751 * lib/dirfd.h: Remove file.
16752 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
16753 (dirfd): New declaration.
16754 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
16755 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
16756 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
16758 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
16760 * modules/dirfd (Files): Remove lib/dirfd.h.
16761 (Depends-on): Add dirent, extensions.
16762 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
16763 (Include): Specify <dirent.h> instead of dirfd.h.
16764 * modules/dirent (Depends-on): Add link-warning.
16765 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
16766 definition of GL_LINK_WARNING.
16767 * NEWS: Mention the change.
16769 2008-10-18 Bruno Haible <bruno@clisp.org>
16771 Move the euidaccess() declaration to <unistd.h>.
16772 * lib/euidaccess.h: Remove file.
16773 * lib/unistd.in.h (euidaccess): New declaration.
16774 * lib/euidaccess.c: Don't include euidaccess.h.
16775 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
16776 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
16777 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
16778 and HAVE_EUIDACCESS.
16779 * modules/euidaccess (Files): Remove lib/euidaccess.h.
16780 (Depends-on): Add unistd.
16781 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16782 (Include): Specify <unistd.h> instead of euidaccess.h.
16783 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
16785 * NEWS: Mention the change.
16787 2008-10-18 Bruno Haible <bruno@clisp.org>
16789 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
16791 Move the getdomainname() declaration to <unistd.h>.
16792 * lib/getdomainname.h: Remove file.
16793 * lib/unistd.in.h (getdomainname): New declaration.
16794 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
16795 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
16796 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
16797 HAVE_GETDOMAINNAME.
16798 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16799 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
16800 * modules/getdomainname (Files): Remove lib/getdomainname.h.
16801 (Depends-on): Add unistd, extensions.
16802 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16803 (Includes): Specify <unistd.h> instead of getdomainname.h.
16804 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
16805 HAVE_GETDOMAINNAME.
16806 * NEWS: Mention the change.
16808 2008-10-18 Bruno Haible <bruno@clisp.org>
16810 * modules/dirent: New file.
16811 * m4/dirent_h.m4: New file.
16812 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
16813 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
16814 * modules/fchdir (Files): Remove lib/dirent.in.h.
16815 (Depends-on): Add dirent.
16816 (Makefile.am): Move rules to modules/dirent.
16817 * doc/posix-headers/dirent.texi: Mention the new module.
16819 2008-10-18 Bruno Haible <bruno@clisp.org>
16821 Avoid -Wunused-parameter warnings in public gnulib header files.
16822 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
16824 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
16826 2008-10-18 Bruno Haible <bruno@clisp.org>
16828 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
16829 * doc/glibc-functions/error.texi: Mention the module 'error'.
16830 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
16831 * doc/glibc-functions/getdomainname.texi: Mention the module
16833 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
16834 * doc/glibc-functions/getpagesize.texi: Mention the module
16836 * doc/glibc-functions/getusershell.texi: Mention the module
16838 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
16839 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
16840 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
16841 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
16842 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
16843 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
16844 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
16845 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
16846 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
16847 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
16848 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
16849 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
16850 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
16851 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
16853 2008-10-17 Bruno Haible <bruno@clisp.org>
16855 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
16856 HP-UX and IRIX, use -0.0L.
16857 * tests/test-ceill.c (minus_zero): Likewise.
16858 * tests/test-floorl.c (minus_zero): Likewise.
16859 * tests/test-frexpl.c (minus_zero): Likewise.
16860 * tests/test-isnan.c (minus_zerol): Likewise.
16861 * tests/test-isnanl.h (minus_zero): Likewise.
16862 * tests/test-ldexpl.c (minus_zero): Likewise.
16863 * tests/test-roundl.c (minus_zero): Likewise.
16864 * tests/test-signbit.c (minus_zerol): Likewise.
16865 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
16866 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
16867 * tests/test-truncl.c (minus_zero): Likewise.
16868 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
16869 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
16870 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
16871 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16873 2008-10-17 Bruno Haible <bruno@clisp.org>
16875 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
16876 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
16877 that it gets activated only for gcc >= 3.0.
16878 * lib/dirent.in.h: Likewise.
16879 * lib/errno.in.h: Likewise.
16880 * lib/fcntl.in.h: Likewise.
16881 * lib/float.in.h: Likewise.
16882 * lib/iconv.in.h: Likewise.
16883 * lib/inttypes.in.h: Likewise.
16884 * lib/locale.in.h: Likewise.
16885 * lib/math.in.h: Likewise.
16886 * lib/netdb.in.h: Likewise.
16887 * lib/netinet_in.in.h: Likewise.
16888 * lib/search.in.h: Likewise.
16889 * lib/signal.in.h: Likewise.
16890 * lib/spawn.in.h: Likewise.
16891 * lib/stdarg.in.h: Likewise.
16892 * lib/stdint.in.h: Likewise.
16893 * lib/stdio.in.h: Likewise.
16894 * lib/stdlib.in.h: Likewise.
16895 * lib/string.in.h: Likewise.
16896 * lib/strings.in.h: Likewise.
16897 * lib/sys_file.in.h: Likewise.
16898 * lib/sys_ioctl.in.h: Likewise.
16899 * lib/sys_select.in.h: Likewise.
16900 * lib/sys_socket.in.h: Likewise.
16901 * lib/sys_stat.in.h: Likewise.
16902 * lib/sys_time.in.h: Likewise.
16903 * lib/sysexits.in.h: Likewise.
16904 * lib/time.in.h: Likewise.
16905 * lib/unistd.in.h: Likewise.
16906 * lib/wchar.in.h: Likewise.
16907 * lib/wctype.in.h: Likewise.
16908 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16910 2008-10-17 Jim Meyering <meyering@redhat.com>
16912 ignore-value: don't depend on inline module
16913 * modules/ignore-value (Depends-on): Remove 'inline'.
16914 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
16915 Suggestion from Bruno Haible.
16917 2008-10-17 Bruno Haible <bruno@clisp.org>
16919 New implementation of condition variables for Win32.
16920 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
16921 (gl_linked_waitqueue_t): New type.
16922 (gl_cond_t): Use it.
16923 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
16924 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
16925 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
16926 (glthread_cond_init_func, glthread_cond_wait_func,
16927 glthread_cond_timedwait_func, glthread_cond_signal_func,
16928 glthread_cond_broadcast_func, glthread_cond_destroy_func):
16929 Reimplemented on the basis of gl_linked_waitqueue_t.
16930 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
16932 (gl_rwlock_t): Update.
16933 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
16935 2008-10-17 Simon Josefsson <simon@josefsson.org>
16937 * modules/recvfrom (Depends-on): Add dependency on getpeername.
16938 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
16940 2008-10-17 Jim Meyering <meyering@redhat.com>
16942 ignore-value: new module
16943 * modules/ignore-value: New file.
16944 * lib/ignore-value.h: New file.
16945 * MODULES.html.sh (Compiler warning management): New section,
16946 just for this module. More to come.
16948 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
16950 open-safer.c: avoid 'signed and unsigned in conditional...' warning
16951 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
16952 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
16954 2008-10-16 Jim Meyering <meyering@redhat.com>
16956 openat-die.c: avoid 'no previous prototype' warning
16957 * lib/openat-die.c: Include "openat.h".
16958 Reported by Reuben Thomas <rrt@sc3d.org>.
16960 2008-10-16 Simon Josefsson <simon@josefsson.org>
16962 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
16963 * lib/netdb.in.h: Fix typo.
16964 Reported by Bruno Haible <bruno@clisp.org>
16966 * lib/netdb.in.h: Include sys/socket.h for platforms without
16967 netdb.h, to get structures like hostent on MinGW.
16968 * modules/netdb (Depends-on): Add sys_socket.
16970 2008-10-15 Simon Josefsson <simon@josefsson.org>
16972 * modules/netdb, modules/netdb-tests: New file.
16973 * m4/netdb_h.m4: New file.
16974 * lib/netdb.in.h: Add, currently just an empty file pending
16976 * tests/test-netdb.c: New file.
16977 * doc/posix-headers/netdb.texi: Mention that we replace it if
16979 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16982 2008-10-15 Simon Josefsson <simon@josefsson.org>
16984 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
16987 2008-10-13 Bruno Haible <bruno@clisp.org>
16989 * lib/glthread/cond.c (glthread_cond_wait_func,
16990 glthread_cond_timedwait_func): Add a comment.
16992 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
16994 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
16995 * tests/test-select.c: Likewise,
16997 2008-10-13 Bruno Haible <bruno@clisp.org>
16999 * lib/glthread/cond.c (glthread_cond_wait_func,
17000 glthread_cond_timedwait_func): Fix variable name.
17001 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17003 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
17005 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
17006 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
17007 struct sockaddr.sa_len.
17008 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
17010 2008-10-13 Simon Josefsson <simon@josefsson.org>
17012 * build-aux/pmccabe2html: Add css and css_url parameters.
17014 2008-10-12 Bruno Haible <bruno@clisp.org>
17016 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
17018 Reported by Rainer Tammer <tammer@tammer.net>.
17020 2008-10-12 Bruno Haible <bruno@clisp.org>
17022 Use msvcrt aware primitives for creation/termination of Win32 threads.
17023 * lib/glthread/thread.c: Include <process.h>.
17024 (glthread_create_func): Use _beginthreadex instead of CreateThread.
17025 (wrapper_func): Update signature.
17026 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
17028 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
17029 Bruno Haible <bruno@clisp.org>
17031 Provide a Win32 implementation of the 'cond' module.
17032 * lib/glthread/cond.h [USE_WIN32]: New implementation.
17033 * lib/glthread/cond.c (glthread_cond_init_func,
17034 glthread_cond_wait_func, glthread_cond_timedwait_func,
17035 glthread_cond_signal_func, glthread_cond_broadcast_func,
17036 glthread_cond_destroy_func) [USE_WIN32]: New functions.
17037 * modules/cond (Dependencies): Add gettimeofday.
17039 2008-10-11 Bruno Haible <bruno@clisp.org>
17041 Make sleep work on older versions of mingw.
17042 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
17043 only whether it exists.
17044 * doc/posix-functions/sleep.texi: Mention the problem with older
17047 2008-10-11 Bruno Haible <bruno@clisp.org>
17049 New module 'shutdown'.
17050 * modules/shutdown: New file.
17051 * lib/sys_socket.in.h (shutdown): New declaration.
17052 * lib/winsock.c (shutdown): New function.
17053 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17055 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
17056 * doc/posix-functions/shutdown.texi: Document the new module.
17058 2008-10-11 Jim Meyering <meyering@redhat.com>
17060 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
17062 2008-10-11 Bruno Haible <bruno@clisp.org>
17064 New module 'fclose'.
17065 * modules/fclose: New file.
17066 * lib/stdio.in.h (fclose): New declaration.
17067 * lib/fclose.c: New file.
17068 * m4/fclose.m4: New file.
17069 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
17071 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
17072 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
17074 * modules/close (Depends-on): fclose.
17075 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
17077 2008-10-11 Bruno Haible <bruno@clisp.org>
17079 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
17080 set errno and don't call _close.
17082 2008-10-10 Bruno Haible <bruno@clisp.org>
17084 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
17085 ACL, not afterwards. Fixes test failure on Cygwin.
17087 2008-10-09 Ben Pfaff <blp@gnu.org>
17089 * build-aux/announce-gen: Fix gnulib version related part of usage
17090 message. Die with a useful error message if no tarballs are
17093 2008-10-10 Jim Meyering <meyering@redhat.com>
17095 bootstrap: use git's --depth=N option only if it's supported
17096 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
17097 recognize the --depth option. Reported by Pádraig Brady.
17099 2008-10-09 Bruno Haible <bruno@clisp.org>
17101 New module 'ioctl'.
17102 * modules/ioctl: New file.
17103 * lib/sys_socket.in.h (ioctl): Remove declaration.
17104 * lib/winsock.c: Include <sys/ioctl.h>.
17105 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
17106 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
17107 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
17108 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
17109 * doc/posix-functions/ioctl.texi: Mention the new module.
17111 2008-10-09 Bruno Haible <bruno@clisp.org>
17113 New module 'sys_ioctl'.
17114 * lib/sys_ioctl.in.h: New file.
17115 * m4/sys_ioctl_h.m4: New file.
17116 * modules/sys_ioctl: New file.
17117 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
17119 2008-10-09 Bruno Haible <bruno@clisp.org>
17121 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
17122 * lib/winsock.c: Include <stdarg.h>.
17123 (rpl_ioctl): Change to second argument 'int' and then varargs.
17125 2008-10-09 Bruno Haible <bruno@clisp.org>
17127 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
17128 when the sys_socket module is present and the system has <winsock2.h>.
17130 2008-10-09 Bruno Haible <bruno@clisp.org>
17132 * doc/posix-functions/close.texi: Mention module 'close' instead of
17133 module 'sys_socket'.
17135 2008-10-09 Bruno Haible <bruno@clisp.org>
17137 * doc/glibc-headers/sys_ioctl.texi: New file.
17138 * doc/gnulib.texi: Include it.
17140 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
17141 Bruno Haible <bruno@clisp.org>
17143 Combine the two replacements of 'close'.
17144 * lib/sys_socket.in.h (close): Define to a reminder to include
17146 (_gl_close_fd_maybe_socket): New declaration.
17147 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
17148 * lib/winsock.c (close): Remove undefinition.
17149 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
17150 needed for the gnulib module 'close'.
17151 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
17152 define to an error symbol or to a warning, if suitable.
17153 * lib/close.c: Include <sys/socket.h>.
17154 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
17155 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
17156 UNISTD_H_HAVE_WINSOCK2_H.
17157 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
17158 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17159 UNISTD_H_HAVE_WINSOCK2_H.
17160 * modules/sys_socket (Files): Add m4/unistd_h.m4.
17161 (configure.ac): Set a module indicator.
17162 (Makefile.am): Substitute GNULIB_CLOSE.
17163 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
17164 * modules/poll-tests (Depends-on): Add close.
17165 * modules/select-tests (Depends-on): Likewise.
17167 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
17168 Bruno Haible <bruno@clisp.org>
17170 New module 'close'.
17171 * modules/close: New file.
17172 * lib/unistd.in.h (close): Move declaration out of the
17173 FCHDIR_REPLACEMENT scope.
17174 (_gl_unregister_fd): New declaration.
17175 * lib/close.c: New file.
17176 * lib/fchdir.c (rpl_close): Remove function.
17177 * m4/close.m4: New file.
17178 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
17180 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
17182 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
17184 * modules/fchdir (Depends-on): Add close.
17186 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
17187 Bruno Haible <bruno@clisp.org>
17189 * lib/fcntl.in.h (open): Simplify conditionals.
17190 (_gl_register_fd): New declaration.
17191 * lib/fchdir.c (rpl_open): Remove function.
17192 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
17194 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
17195 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
17198 2008-10-09 Jim Meyering <meyering@redhat.com>
17200 GNUmakefile: use the more name-space-friendly "_version"
17201 * top/GNUmakefile (_dummy): Update.
17202 (_version): Rename from "version".
17204 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
17205 Bruno Haible <bruno@clisp.org>
17207 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
17209 (_gl_register_fd): New function, extracted from rpl_open.
17210 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
17211 (rpl_open, rpl_opendir): Use _gl_register_fd.
17213 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
17215 Fix organization of 'open' replacement.
17216 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
17217 (gl_FUNC_OPEN): Use it.
17218 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
17220 2008-10-08 Bruno Haible <bruno@clisp.org>
17222 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
17224 2008-10-08 Simon Josefsson <simon@josefsson.org>
17226 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
17227 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
17230 2008-10-08 Eric Blake <ebb9@byu.net>
17232 GNUmakefile: add 'make version' target
17233 * top/GNUmakefile (_curr-ver): Split version update rules...
17234 (version): ...into a target.
17236 2008-10-07 Bruno Haible <bruno@clisp.org>
17238 Use a more portable replacement expression for -0.0L.
17239 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
17240 instead of -0.0L. Fix m4 quotation.
17242 * tests/test-signbit.c: Include <float.h>.
17243 (minus_zero): New variable.
17244 (test_signbitl): Use minus_zero instead of -zero.
17245 * modules/signbit-tests (Depends-on): Add float.
17247 * tests/test-ceill.c: Include <float.h>.
17248 (zero): Remove variable.
17249 (minus_zero): New variable.
17250 (main): Use minus_zero instead of -zero.
17251 * modules/ceill-tests (Depends-on): Add float.
17253 * tests/test-floorl.c: Include <float.h>.
17254 (zero): Remove variable.
17255 (minus_zero): New variable.
17256 (main): Use minus_zero instead of -zero.
17257 * modules/floorl-tests (Depends-on): Add float.
17259 * tests/test-roundl.c: Include <float.h>.
17260 (zero): Remove variable.
17261 (minus_zero): New variable.
17262 (main): Use minus_zero instead of -zero.
17263 * modules/roundl-tests (Depends-on): Add float.
17265 * tests/test-truncl.c: Include <float.h>.
17266 (zero): Remove variable.
17267 (minus_zero): New variable.
17268 (main): Use minus_zero instead of -zero.
17269 * modules/truncl-tests (Depends-on): Add float.
17271 * tests/test-frexpl.c (zero): Remove variable.
17272 (minus_zero): New variable.
17273 (main): Use minus_zero instead of -zero.
17274 * modules/frexpl-tests (Depends-on): Add float.
17276 * tests/test-isnan.c (zerol): Remove variable.
17277 (minus_zerol): New variable.
17278 (test_long_double): Use minus_zerol instead of -zerol.
17279 * modules/isnan-tests (Depends-on): Add float.
17281 * tests/test-isnanl.h (zero): Remove variable.
17282 (minus_zero): New variable.
17283 (main): Use minus_zero instead of -zero.
17284 * modules/isnanl-nolibm-tests (Depends-on): Add float.
17285 * modules/isnanl-tests (Depends-on): Add float.
17287 * tests/test-ldexpl.c (zero): Remove variable.
17288 (minus_zero): New variable.
17289 (main): Use minus_zero instead of -zero.
17290 * modules/ldexpl-tests (Depends-on): Add float.
17292 * tests/test-snprintf-posix.h (zerol): Remove variable.
17293 (minus_zerol): New variable.
17294 (test_function): Use minus_zerol instead of -zerol.
17295 * modules/snprintf-posix-tests (Depends-on): Add float.
17296 * modules/vsnprintf-posix-tests (Depends-on): Add float.
17298 * tests/test-sprintf-posix.h (zerol): Remove variable.
17299 (minus_zerol): New variable.
17300 (test_function): Use minus_zerol instead of -zerol.
17301 * modules/sprintf-posix-tests (Depends-on): Add float.
17302 * modules/vsprintf-posix-tests (Depends-on): Add float.
17304 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
17305 (minus_zerol): New variable.
17306 (test_function): Use minus_zerol instead of -zerol.
17307 * modules/vasnprintf-posix-tests (Depends-on): Add float.
17309 * tests/test-vasprintf-posix.c (zerol): Remove variable.
17310 (minus_zerol): New variable.
17311 (test_function): Use minus_zerol instead of -zerol.
17312 * modules/vasprintf-posix-tests (Depends-on): Add float.
17314 2008-10-07 Simon Josefsson <simon@josefsson.org>
17316 * MODULES.html.sh (Support for building documentation): Mention
17317 pmccabe2html. Sort entries.
17319 Add pmccabe2html module, from gnupdf.
17320 * build-aux/pmccabe.css: New file.
17321 * build-aux/pmccabe2html: New file.
17322 * m4/pmccabe2html.m4: New file.
17323 * modules/pmccabe2html: New file.
17325 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
17328 * MODULES.html.sh: Add to list of modules.
17329 * lib/flock.c: flock implementation for Windows and Unix systems
17331 * doc/glibc-functions/flock.texi: Update documentation.
17332 * lib/sys_file.in.h: <sys/file.h> header file.
17333 * m4/flock.m4: M4 macros.
17334 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
17335 * modules/flock: flock module.
17336 * modules/flock-tests: flock tests module.
17337 * modules/sys_file: sys/file.h module.
17338 * tests/test-flock.c: test suite for flock.
17340 2008-10-06 Jim Meyering <meyering@redhat.com>
17342 bootstrap: check for LT_INIT more portably still ;-)
17343 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
17344 Spotted by Bruno Haible.
17346 2008-10-06 Eric Blake <ebb9@byu.net>
17348 test-signbit: avoid tripping Irix cc bug on -0.0L
17349 * tests/test-signbit.c (minus_zerol): Delete, and replace with
17350 '-zerol'. This may break on HP-UX/hppa, but at least makes the
17351 entire testsuite consistent and avoids an Irix 6.2 bug.
17353 2008-10-05 Bruno Haible <bruno@clisp.org>
17354 Jim Meyering <jim@meyering.net>
17356 Add an option for ignoring EPIPE during close_stdout.
17357 * lib/closeout.h: Include <stdbool.h>.
17358 (close_stdout_set_ignore_EPIPE): New declaration.
17359 * lib/closeout.c: Include <stdbool.h>.
17360 (ignore_EPIPE): New variable.
17361 (close_stdout_set_ignore_EPIPE): New function.
17362 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
17363 * lib/close-stream.c (close_stream): Mention the possible EPIPE
17365 * modules/closeout (Depends-on): Add stdbool.
17367 2008-10-05 Bruno Haible <bruno@clisp.org>
17369 * modules/accept: New file.
17370 * modules/bind: New file.
17371 * modules/connect: New file.
17372 * modules/getpeername: New file.
17373 * modules/getsockname: New file.
17374 * modules/getsockopt: New file.
17375 * modules/listen: New file.
17376 * modules/recv: New file.
17377 * modules/recvfrom: New file.
17378 * modules/send: New file.
17379 * modules/sendto: New file.
17380 * modules/setsockopt: New file.
17381 * modules/socket: New file.
17382 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
17383 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17384 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
17385 the particular module is requested. Add a link warning when the
17386 particular module is not requested.
17387 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
17388 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
17389 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
17390 the particular module is requested.
17391 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
17392 gl_SYS_SOCKET_H_DEFAULTS): New macros.
17393 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
17394 * modules/sys_socket (Depends-on): Add link-warning.
17395 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
17396 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
17397 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
17398 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
17400 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
17401 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
17402 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
17403 * doc/posix-functions/getpeername.texi: Mention the new module
17405 * doc/posix-functions/getsockname.texi: Mention the new module
17407 * doc/posix-functions/getsockopt.texi: Mention the new module
17409 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
17410 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
17411 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
17412 * doc/posix-functions/send.texi: Mention the new module 'send'.
17413 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
17414 * doc/posix-functions/setsockopt.texi: Mention the new module
17416 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
17417 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
17418 listen, connect, accept.
17419 * modules/select-tests (Depends-on): Likewise.
17421 2008-10-05 Bruno Haible <bruno@clisp.org>
17423 * lib/winsock.c (strerror): Remove unused #undef.
17424 (rpl_close): Remove unused local variable.
17426 * modules/sys_socket (Depends-on); Add errno.
17428 2008-10-05 Bruno Haible <bruno@clisp.org>
17430 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
17431 (select): Add a link warning when the 'select' module is not used.
17432 * modules/sys_select (Depends-on): Add link-warning.
17433 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
17434 Suggested by Paolo Bonzini.
17436 2008-10-05 Jim Meyering <meyering@redhat.com>
17438 bootstrap: check for LT_INIT more portably
17439 * build-aux/bootstrap: Avoid using grep -E, since it's not
17440 portable enough. Suggestion from Bruno Haible.
17442 2008-10-05 Bruno Haible <bruno@clisp.org>
17444 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
17445 as being fixed by gnulib.
17447 2008-10-05 Bruno Haible <bruno@clisp.org>
17449 * modules/select-tests: New file, mostly copied from
17450 modules/sys_select-tests.
17451 * tests/test-select.c: New file, mostly copied from
17452 tests/test-sys_select.c.
17453 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
17454 * modules/sys_select-tests (Depends-on): Remove all dependencies.
17455 (Makefile.am): Remove test_sys_select_LDADD.
17457 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
17458 to an undefined symbol, for an error message.
17459 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
17460 (gl_SYS_SELECT_H_DEFAULTS): New macro.
17461 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
17462 winsock-select.c here.
17463 * modules/sys_select (Files): Remove lib/winsock-select.c.
17464 (Depends-on): Remove alloca.
17465 (Makefile.am): Substitute GNULIB_SELECT.
17466 * modules/select: New file.
17467 * doc/posix-functions/select.texi: Update.
17469 2008-10-05 Bruno Haible <bruno@clisp.org>
17471 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
17472 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
17473 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
17474 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
17476 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17477 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17479 2008-10-05 Bruno Haible <bruno@clisp.org>
17481 * modules/getdtablesize-tests: New file.
17482 * tests/test-getdtablesize.c: New file.
17484 New module 'getdtablesize'.
17485 * lib/unistd.in.h (getdtablesize): New declaration.
17486 * lib/getdtablesize.c: New file.
17487 * m4/getdtablesize.m4: New file.
17488 * modules/getdtablesize: New file.
17489 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17490 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
17491 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
17492 HAVE_GETDTABLESIZE.
17493 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
17495 2008-10-05 Bruno Haible <bruno@clisp.org>
17497 * modules/sched (Makefile.am): Fix typo.
17498 Reported by Simon Josefsson.
17500 2008-10-05 Jim Meyering <meyering@redhat.com>
17502 bootstrap: check for LT_INIT, too
17503 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
17504 are deprecated. Suggestion from Ralf Wildenhues.
17506 2008-10-05 Bruno Haible <bruno@clisp.org>
17508 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
17509 overriding them by ours.
17510 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
17512 2008-10-05 Jim Meyering <meyering@redhat.com>
17514 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
17515 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
17516 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
17518 2008-10-04 Bruno Haible <bruno@clisp.org>
17520 * modules/dup2 (License): Change to LGPLv2+.
17521 * modules/sleep (License): Likewise.
17522 * modules/perror (License): Likewise.
17523 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
17525 * modules/signal (License): Likewise.
17526 * modules/sigprocmask (License): Likewise.
17527 * modules/raise (License): Change to LGPLv2+, with approval by Jim
17530 2008-10-04 Bruno Haible <bruno@clisp.org>
17532 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
17533 Reported by Rainer Tammer <tammer@tammer.net>.
17535 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
17536 Bruno Haible <bruno@clisp.org>
17538 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
17539 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
17540 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
17542 2008-10-03 Kamil Dudka <kdudka@redhat.com>
17544 filevercmp: new module
17545 * lib/filevercmp.h: New function filevercmp comparing version strings.
17546 * lib/filevercmp.c: Implementation of filevercmp function.
17547 * modules/filevercmp: Module metadata.
17548 * tests/test-filevercmp.c: Unit test for new module.
17549 * modules/filevercmp-tests: Unit test metadata.
17550 * MODULES.html.sh: Add filevercmp module.
17552 2008-10-03 Bruno Haible <bruno@clisp.org>
17554 * lib/c-ctype.h: Add comment.
17555 Reported by Jim Meyering.
17557 2008-10-02 Bruno Haible <bruno@clisp.org>
17559 * modules/posix_spawn-internal (Depends-on): Add 'open'.
17561 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
17563 * build-aux/bootstrap: Allow renaming bootstrap, and change the
17564 name of bootstrap.conf accordingly.
17566 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
17568 * build-aux/bootstrap: Install git-merge-changelog configuration
17569 items into .gitconfig if needed.
17571 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
17573 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
17574 git repository, and initialize/update it accordingly.
17576 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
17578 * modules/fsync-tests: New file.
17579 * tests/test-fsync.c: New file.
17581 New module 'fsync'.
17582 * lib/fsync.c: New file.
17583 * m4/fsync.m4: New file.
17584 * modules/fsync: New file.
17585 * lib/unistd.in.h (fsync): New declaration.
17586 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
17587 GNULIB_FSYNC and HAVE_FSYNC.
17588 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
17589 * MODULES.html.sh (posix_functions): Add fsync.
17590 * doc/posix-functions/fsync.texi: Mention the new module.
17592 2008-10-02 Jim Meyering <meyering@redhat.com>
17594 fts.c: sync with similar code from coreutils' remove.c
17595 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
17596 Guard also with "#if defined __linux__", since for now at least,
17597 this code is Linux-kernel-specific.
17599 2008-10-02 Jim Meyering <meyering@redhat.com>
17602 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
17603 Include <sys/vfs.h>, not <sys/statfs.h>.
17605 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
17606 Include <sys/vfs.h>, not <sys/statfs.h>.
17608 2008-10-01 Bruno Haible <bruno@clisp.org>
17610 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
17611 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
17612 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
17613 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
17614 * doc/posix-functions/posix_spawnp.texi: Likewise.
17615 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
17616 whether posix_spawn actually works.
17617 * m4/pipe.m4 (gl_PIPE): Likewise.
17618 * modules/execute (Files): Add m4/posix_spawn.m4.
17619 * modules/pipe (Files): Add m4/posix_spawn.m4.
17620 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
17622 2008-10-01 Jim Meyering <meyering@redhat.com>
17624 remove trailing spaces
17626 * lib/poll.c (poll): Likewise.
17627 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
17628 * lib/winsock.c (rpl_close): Likewise.
17629 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
17630 * modules/yield: Likewise.
17631 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
17632 * tests/test-sys_select.c (connect_to_socket): Likewise.
17634 fts.c: adjust a new interface to be more generally useful
17635 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
17636 (fts_build): Adjust caller.
17638 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17640 * modules/cond-tests: New file.
17641 * tests/test-cond.c: New file.
17643 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17644 Bruno Haible <bruno@clisp.org>
17646 * modules/cond (Dependencies): Add errno, time.
17647 * lib/glthread/cond.h: Include <time.h>.
17648 (gl_cond_define, gl_cond_define_initialized): Use the same definition
17651 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17652 Bruno Haible <bruno@clisp.org>
17654 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
17656 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17657 Bruno Haible <bruno@clisp.org>
17659 * modules/tls-tests (Depends-on): Add thread, yield.
17660 (configure.ac): Remove all checks.
17661 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
17662 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
17663 gl_thread_self): Remove definitions. Include glthread/thread.h and
17664 glthread/yield.h instead.
17665 (test_tls): Pass an additional NULL argument to gl_thread_join.
17667 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17668 Bruno Haible <bruno@clisp.org>
17670 * modules/lock-tests (Depends-on): Add thread, yield.
17671 (configure.ac): Remove all checks.
17672 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
17673 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
17674 gl_thread_self): Remove definitions. Include glthread/thread.h and
17675 glthread/yield.h instead.
17676 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
17677 additional NULL argument to gl_thread_join.
17679 2008-09-30 Bruno Haible <bruno@clisp.org>
17681 Fix the Win32 implementation of the 'thread' module.
17682 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
17684 (gl_thread_self): Invoke gl_thread_self_func.
17685 (gl_thread_self_func): New declaration.
17686 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
17687 (do_init_self_key, init_self_key): New functions.
17688 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
17689 Remove some fields.
17690 (running_threads, running_lock): Remove variables.
17691 (get_current_thread_handle): New function.
17692 (gl_thread_self_func, wrapper_func, glthread_create_func,
17693 glthread_join_func, gl_thread_exit_func): Largely rewritten and
17696 2008-09-30 Bruno Haible <bruno@clisp.org>
17698 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
17701 2008-09-30 Jim Meyering <meyering@redhat.com>
17703 fts.m4: correct the test for statfs.f_type
17704 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
17705 when checking for statfs.f_type.
17707 2008-09-15 Simon Josefsson <simon@josefsson.org>
17709 tests: avoid some compiler warnings
17710 * tests/test-memchr.c (main): Pass NULL indirectly.
17711 * tests/test-getdate.c (main): Remove unused variable 'ret'.
17713 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
17715 getdate.y: disallow countable dayshifts like "4 yesterday ago"
17716 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
17717 exactly specified dayshifts.
17718 (dayshift): New rule.
17719 (rel): Add dayshift.
17720 (relative_time_table) [tomorrow, yesterday, today, now]:
17721 Use tDAY_SHIFT in place of tDAY_UNIT.
17722 * tests/test-getdate.c: Add tests for now-disallowed countable
17723 dayshifts, e.g., "4 yesterday ago".
17725 2008-09-29 Bruno Haible <bruno@clisp.org>
17727 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
17728 * tests/test-posix_spawn1.in.sh: Renamed from
17729 tests/test-posix_spawn.in.sh.
17730 * tests/test-posix_spawn2.c: New file.
17731 * tests/test-posix_spawn2.in.sh: New file.
17732 * modules/posix_spawnp-tests (Files): Update.
17733 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
17735 2008-09-29 Bruno Haible <bruno@clisp.org>
17737 Propagate effects of putenv/setenv/unsetenv to child processes.
17738 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
17739 * lib/pipe.c (create_pipe): Likewise.
17741 2008-09-29 Bruno Haible <bruno@clisp.org>
17743 Enable use of shell scripts as executables in mingw.
17744 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
17745 run the program as a shell script.
17746 * lib/pipe.c (create_pipe): Likewise.
17747 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
17750 2008-09-29 Eric Blake <ebb9@byu.net>
17752 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
17754 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
17756 * doc/posix-functions/accept.texi: Update mingw problems.
17757 * doc/posix-functions/bind.texi: Update mingw problems.
17758 * doc/posix-functions/close.texi: Update mingw problems.
17759 * doc/posix-functions/connect.texi: Update mingw problems.
17760 * doc/posix-functions/getpeername.texi: Update mingw problems.
17761 * doc/posix-functions/getsockname.texi: Update mingw problems.
17762 * doc/posix-functions/getsockopt.texi: Update mingw problems.
17763 * doc/posix-functions/ioctl.texi: Update mingw problems.
17764 * doc/posix-functions/listen.texi: Update mingw problems.
17765 * doc/posix-functions/recv.texi: Update mingw problems.
17766 * doc/posix-functions/recvfrom.texi: Update mingw problems.
17767 * doc/posix-functions/select.texi: Update mingw problems.
17768 * doc/posix-functions/send.texi: Update mingw problems.
17769 * doc/posix-functions/sendto.texi: Update mingw problems.
17770 * doc/posix-functions/setsockopt.texi: Update mingw problems.
17771 * doc/posix-functions/socket.texi: Update mingw problems.
17773 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
17774 Bruno Haible <bruno@clisp.org>
17776 * lib/sys_select.in.h: Include sys/time.h.
17777 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
17778 * modules/sys_select: Depend on sys_time.
17779 * tests/test-sys_select.c: Test that sys/select.h defines struct
17782 2008-09-29 Bruno Haible <bruno@clisp.org>
17784 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
17785 * lib/sys_select.in.h: Likewise.
17787 2008-09-29 Bruno Haible <bruno@clisp.org>
17789 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
17791 2008-09-29 Bruno Haible <bruno@clisp.org>
17793 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
17794 Set LIBSOCKET instead of augmenting LIBS.
17795 * modules/sockets (Link): New section.
17796 * modules/sockets-tests (test_sockets_LDADD): New variable.
17797 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
17798 * modules/poll-tests (test_poll_LDADD): New variable.
17799 * NEWS: Document the change.
17801 2008-09-29 Bruno Haible <bruno@clisp.org>
17803 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
17804 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
17805 ARPA_INET_H directly.
17806 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
17808 2008-09-28 Bruno Haible <bruno@clisp.org>
17810 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
17811 from gl_HEADER_SYS_SOCKET.
17812 (gl_HEADER_SYS_SOCKET): Invoke it.
17813 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17815 2008-09-28 Bruno Haible <bruno@clisp.org>
17817 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
17818 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
17819 Needed on OSF/1 4.0.
17821 2008-09-28 Bruno Haible <bruno@clisp.org>
17823 Override open more carefully.
17824 * lib/open.c (orig_open): New function.
17825 (rpl_open): Use orig_open instead of open.
17826 * lib/fcntl.in.h: Add special invocation convention.
17827 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
17828 (gl_FUNC_OPEN): Invoke it.
17830 Override freopen more carefully.
17831 * lib/freopen.c (orig_freopen): New function.
17832 (rpl_freopen): Use orig_freopen instead of freopen.
17833 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
17834 (gl_FUNC_FREOPEN): Invoke it.
17836 Override fopen more carefully.
17837 * lib/fopen.c (orig_fopen): New function.
17838 (rpl_fopen): Use orig_fopen instead of fopen.
17839 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
17840 (gl_FUNC_FOPEN): Invoke it.
17841 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
17843 2008-09-28 Bruno Haible <bruno@clisp.org>
17845 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
17848 2008-09-28 Bruno Haible <bruno@clisp.org>
17850 * tests/test-sigaction.c (handler, main): Disable the check whether
17851 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
17852 glibc systems with LinuxThreads.
17854 2008-09-28 Bruno Haible <bruno@clisp.org>
17856 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
17858 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
17860 * lib/fcntl.in.h (open): Likewise.
17861 Reported by Rainer Tammer <tammer@tammer.net>.
17863 2008-09-28 Bruno Haible <bruno@clisp.org>
17865 * modules/posix_spawnp-tests: New file.
17866 * tests/test-posix_spawn.c: New file.
17867 * tests/test-posix_spawn.in.sh: New file.
17869 New module 'posix_spawnp'.
17870 * modules/posix_spawnp: New file.
17871 * lib/spawnp.c: New file, from GNU libc with modifications.
17872 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
17874 New module 'posix_spawn'.
17875 * modules/posix_spawn: New file.
17876 * lib/spawn.c: New file, from GNU libc with modifications.
17877 * doc/posix-functions/posix_spawn.texi: Mention the new module.
17879 New module 'posix_spawnattr_destroy'.
17880 * modules/posix_spawnattr_destroy: New file.
17881 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
17882 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
17885 New module 'posix_spawnattr_setsigmask'.
17886 * modules/posix_spawnattr_setsigmask: New file.
17887 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
17889 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
17892 New module 'posix_spawnattr_getsigmask'.
17893 * modules/posix_spawnattr_getsigmask: New file.
17894 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
17896 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
17899 New module 'posix_spawnattr_setsigdefault'.
17900 * modules/posix_spawnattr_setsigdefault: New file.
17901 * lib/spawnattr_setdefault.c: New file, from GNU libc with
17903 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
17906 New module 'posix_spawnattr_getsigdefault'.
17907 * modules/posix_spawnattr_getsigdefault: New file.
17908 * lib/spawnattr_getdefault.c: New file, from GNU libc with
17910 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
17913 New module 'posix_spawnattr_setschedpolicy'.
17914 * modules/posix_spawnattr_setschedpolicy: New file.
17915 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
17917 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
17920 New module 'posix_spawnattr_getschedpolicy'.
17921 * modules/posix_spawnattr_getschedpolicy: New file.
17922 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
17924 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
17927 New module 'posix_spawnattr_setschedparam'.
17928 * modules/posix_spawnattr_setschedparam: New file.
17929 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
17931 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
17934 New module 'posix_spawnattr_getschedparam'.
17935 * modules/posix_spawnattr_getschedparam: New file.
17936 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
17938 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
17941 New module 'posix_spawnattr_setpgroup'.
17942 * modules/posix_spawnattr_setpgroup: New file.
17943 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
17945 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
17948 New module 'posix_spawnattr_getpgroup'.
17949 * modules/posix_spawnattr_getpgroup: New file.
17950 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
17952 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
17955 New module 'posix_spawnattr_setflags'.
17956 * modules/posix_spawnattr_setflags: New file.
17957 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
17958 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
17961 New module 'posix_spawnattr_getflags'.
17962 * modules/posix_spawnattr_getflags: New file.
17963 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
17964 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
17967 New module 'posix_spawnattr_init'.
17968 * modules/posix_spawnattr_init: New file.
17969 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
17970 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
17973 New module 'posix_spawn_file_actions_destroy'.
17974 * modules/posix_spawn_file_actions_destroy: New file.
17975 * lib/spawn_faction_destroy.c: New file, from GNU libc with
17977 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
17980 New module 'posix_spawn_file_actions_addopen'.
17981 * modules/posix_spawn_file_actions_addopen: New file.
17982 * lib/spawn_faction_addopen.c: New file, from GNU libc with
17984 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
17987 New module 'posix_spawn_file_actions_adddup2'.
17988 * modules/posix_spawn_file_actions_adddup2: New file.
17989 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
17991 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
17994 New module 'posix_spawn_file_actions_addclose'.
17995 * modules/posix_spawn_file_actions_addclose: New file.
17996 * lib/spawn_faction_addclose.c: New file, from GNU libc with
17998 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
18001 New module 'posix_spawn_file_actions_init'.
18002 * modules/posix_spawn_file_actions_init: New file.
18003 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
18004 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
18007 New module 'posix_spawn-internal'.
18008 * modules/posix_spawn-internal: New file.
18009 * lib/spawn_int.h: New file, from GNU libc with modifications.
18010 * lib/spawni.c: New file, from GNU libc with modifications.
18011 * m4/posix_spawn.m4: New file.
18013 New module 'spawn'.
18014 * modules/spawn: New file.
18015 * lib/spawn.in.h: New file, from GNU libc with modifications.
18016 * m4/spawn_h.m4: New file.
18017 * doc/posix-headers/spawn.texi: Mention the new module.
18019 2008-09-28 Bruno Haible <bruno@clisp.org>
18021 * modules/sched-tests: New file.
18022 * tests/test-sched.c: New file.
18024 New module 'sched'.
18025 * modules/sched: New file.
18026 * lib/sched.in.h: New file.
18027 * m4/sched_h.m4: New file.
18028 * doc/posix-headers/sched.texi: Mention the new module.
18030 2008-09-27 Eric Blake <ebb9@byu.net>
18032 Fix previous patch, and tweak references to $0.
18033 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
18034 (func_version, func_gnulib_dir): Don't call this program
18036 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
18037 with using $0 in function.
18038 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
18039 (func_fatal_error): Reuse the name the user invoked us with.
18041 2008-09-27 Bruno Haible <bruno@clisp.org>
18043 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
18044 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
18045 (gl_ICONV_H): Not here.
18046 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
18047 instead of assigning ICONV_H directly.
18049 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
18050 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
18053 2008-09-27 Bruno Haible <bruno@clisp.org>
18055 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
18056 * modules/arpa_inet (Depends-on): Add link-warning.
18057 (Makefile.am): Insert the definition of GL_LINK-WARNING.
18058 * modules/unistd (Makefile.am): Likewise.
18060 2008-09-26 Bruno Haible <bruno@clisp.org>
18062 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
18064 (func_version): Essentially copied from gnulib-tool.
18065 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
18066 func_readlink): Copied from gnulib-tool.
18068 2008-09-26 Bruno Haible <bruno@clisp.org>
18070 * gnulib-tool (func_version): Change directory to $gnulib_dir before
18071 invoking git-version-gen.
18073 2008-09-26 Bruno Haible <bruno@clisp.org>
18075 * posix-modules: Update to directory names changed on 2008-01-19.
18076 Remove commas in output before splitting into words. No more need to
18077 avoid 'ftruncate' since 2007-02-19.
18079 2008-09-26 Bruno Haible <bruno@clisp.org>
18081 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
18083 2008-09-26 Bruno Haible <bruno@clisp.org>
18085 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
18086 * modules/fwriteerror (Depends-on): Add errno.
18088 2008-09-26 Bruno Haible <bruno@clisp.org>
18090 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
18091 * tests/test-vc-list-files-cvs.sh: Likewise.
18093 2008-09-26 Bruno Haible <bruno@clisp.org>
18095 * doc/posix-headers/sys_resource.texi: Reorder items.
18097 2008-09-26 Jim Meyering <meyering@redhat.com>
18099 fts: tweak inode comparison function
18100 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
18101 inode numbers, as documented.
18103 fts: sort dirent entries on inode number before traversing
18104 This avoids a quadratic, seek-related performance penalty when
18105 operating on a directory containing many entries (measurable at 10k;
18106 3.5 hours at 2 million entries with a cold cache) on certain types
18107 of file systems, including ext3 and ext4, but not tmpfs.
18108 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
18109 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
18110 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
18111 (fs_handles_readdir_ordered_dirents_efficiently): New function.
18112 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
18113 (fts_build): Set the stat.st_ino member from D_INO.
18114 If it is likely to be useful, sort dirent entries on inode number.
18116 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
18117 and the struct statfs.f_type member.
18118 * modules/fts (Depends-on): Add d-ino.
18120 2008-09-26 Bruno Haible <bruno@clisp.org>
18122 * modules/sigpipe-die (Depends-on): Add sigpipe.
18124 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
18125 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
18126 and GNULIB_STDIO_H_SIGPIPE are set.
18127 * lib/stdio-write.c: New file.
18128 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
18129 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18130 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18131 REPLACE_STDIO_WRITE_FUNCS.
18132 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
18133 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18134 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18135 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
18136 * modules/stdio (Files): Add lib/stdio-write.c.
18137 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
18138 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
18139 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
18140 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
18141 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
18142 REPLACE_FPRINTF_POSIX.
18143 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
18144 REPLACE_PRINTF_POSIX.
18145 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
18146 REPLACE_VFPRINTF_POSIX.
18147 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
18148 REPLACE_VPRINTF_POSIX.
18149 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
18151 * doc/posix-functions/fputc.texi: Likewise.
18152 * doc/posix-functions/fputs.texi: Likewise.
18153 * doc/posix-functions/fwrite.texi: Likewise.
18154 * doc/posix-functions/printf.texi: Likewise.
18155 * doc/posix-functions/putc.texi: Likewise.
18156 * doc/posix-functions/putchar.texi: Likewise.
18157 * doc/posix-functions/puts.texi: Likewise.
18158 * doc/posix-functions/vfprintf.texi: Likewise.
18159 * doc/posix-functions/vprintf.texi: Likewise.
18161 * modules/safe-write (Depends-on): Add write.
18163 * modules/sigpipe-tests: New file.
18164 * tests/test-sigpipe.c: New file.
18165 * tests/test-sigpipe.sh: New file.
18167 * modules/write: New file.
18168 * lib/unistd.in.h: Include <sys/types.h>.
18169 (write): New declaration.
18170 * lib/write.c: New file.
18171 * m4/write.m4: New file.
18172 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18173 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
18174 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
18175 GNULIB_WRITE, REPLACE_WRITE.
18176 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
18177 and the SIGPIPE issue.
18179 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
18180 (raise): New declaration.
18181 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
18182 (ext_signal): New function.
18183 (rpl_raise): New function.
18184 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
18185 GNULIB_SIGNAL_H_SIGPIPE.
18186 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
18187 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
18189 * modules/sigpipe: New file.
18190 * m4/sigpipe.m4: New file.
18192 2008-09-25 Derek Price <derek@ximbiot.com>
18193 Bruno Haible <bruno@clisp.org>
18195 * gnulib-tool (func_import): Report all license incompatibilities, not
18196 just the first one.
18198 2008-09-25 Bruno Haible <bruno@clisp.org>
18200 * gnulib-tool (func_import): When computing the edits, consider not
18201 only the Makefile.ams that exist but also those that will be generated.
18203 2008-09-25 Simon Josefsson <simon@josefsson.org>
18205 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
18206 fixes gnulib-tool --test warning about duplicate dependency.
18208 2008-09-25 Bruno Haible <bruno@clisp.org>
18210 * gnulib-tool: Don't ask the user to perform edits in the generated
18212 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
18213 apply to the Makefile.am being generated.
18214 (func_emit_tests_Makefile_am): Execute edits that apply to the
18215 Makefile.am being generated.
18216 (func_import): Setup list of Makefile.am edits before emitting the
18217 Makefile.ams, not at the end.
18218 (func_create_testdir): Update.
18219 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18221 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18223 * gnulib-tool (func_import): Store the --tests-base option in the
18224 comment in gnulib-cache.m4.
18226 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
18228 * NEWS: Document increased portability that sys_select now provides.
18230 * lib/sys_select.in.h: Install select wrapper.
18231 * lib/sys_socket.in.h: Use more descriptive name when there is no
18233 * lib/winsock-select.c: New.
18234 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
18235 Require gl_HEADER_SYS_SOCKET.
18236 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
18237 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
18238 * tests/test-sys_select.c: Add functional tests.
18240 2008-09-24 Eric Blake <ebb9@byu.net>
18242 open, fopen: close fd leak in last patch
18243 * lib/open.c (rpl_open): Close fd before returning error.
18244 * lib/fopen.c (rpl_fopen): Close fd before returning error.
18245 * doc/posix-functions/open.texi (open): Document that Irix also
18247 * doc/posix-functions/fopen.texi (fopen): Likewise.
18248 Reported by Paolo Bonzini.
18250 2008-09-24 Bruno Haible <bruno@clisp.org>
18252 Ensure that a filename ending in a slash cannot be used to access a
18254 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
18255 to check whether it's really a directory.
18256 * lib/fopen.c: Include fcntl.h, unistd.h.
18257 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
18259 * modules/fopen (Depends-on): Add unistd.
18260 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
18261 * tests/test-fopen.c (main): Likewise.
18262 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
18263 * doc/posix-functions/fopen.texi: Likewise.
18264 Reported by Eric Blake.
18266 2008-09-23 Eric Blake <ebb9@byu.net>
18268 c-stack: avoid compiler optimizations when provoking overflow
18269 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
18270 recursion harder to optimize, to ensure a stack overflow occurs.
18271 * tests/test-c-stack.c (recurse): Likewise.
18272 Borrowed from libsigsegv.
18274 c-stack: work around Irix sigaltstack bug
18275 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
18276 whether sigaltstack uses wrong end of stack_t (copied in part from
18278 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
18279 Irix bug, without requiring an over-allocation.
18280 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
18283 fopen: document mingw bug on directories
18284 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
18285 not allowing a stream visiting a directory, even though reading
18286 from such a stream is not portable.
18288 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
18290 * lib/poll.c: Rewrite.
18291 * modules/poll: Depend on alloca.
18293 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
18295 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
18296 instead define prototypes for a full set of wrappers. Ensure
18297 that Cygwin does not use the compatibility code, which is only
18299 * lib/winsock.c: New.
18300 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
18301 * modules/sys_socket: Add lib/winsock.c.
18303 * modules/poll-tests: Add errno and perror.
18304 * tests/test-poll.c: Use ioctl, not ioctlsocket.
18306 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
18308 * tests/test-poll.c: Downgrade minimum needed Winsock version.
18310 2008-09-23 Bruno Haible <bruno@clisp.org>
18312 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
18313 * doc/glibc-functions/*: Likewise.
18315 2008-09-23 Simon Josefsson <simon@josefsson.org>
18317 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
18320 2008-09-22 Eric Blake <ebb9@byu.net>
18321 Bruno Haible <bruno@clisp.org>
18323 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
18324 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
18325 supply %A but mishandle pseudo-NaN.
18326 Reported by Simon Josefsson.
18328 2008-09-21 Bruno Haible <bruno@clisp.org>
18330 * tests/test-lock.c (main): Tweak skip message.
18331 * tests/test-tls.c (main): Likewise.
18333 2008-09-21 Bruno Haible <bruno@clisp.org>
18335 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
18336 whether 'struct sigaction' has sa_sigaction here...
18337 (gl_PREREQ_SIG_HANDLER_H): ... not here.
18338 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
18340 2008-09-21 Bruno Haible <bruno@clisp.org>
18342 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
18344 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
18345 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
18347 (Support for obsolete systems lacking POSIX:2001): New section.
18348 (String handling <string.h>): Move strdup to the new section.
18349 Suggested by Simon Josefsson and Paolo Bonzini.
18351 2008-09-21 Bruno Haible <bruno@clisp.org>
18353 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
18354 exponents in %e and %g results on 'long double'. Needed for mingw's
18355 improved *printf functions.
18356 * tests/test-vasprintf-posix.c (test_function): Likewise.
18357 * tests/test-snprintf-posix.h (test_function): Likewise.
18358 * tests/test-sprintf-posix.h (test_function): Likewise.
18359 Reported by Eric Blake.
18361 2008-09-21 Bruno Haible <bruno@clisp.org>
18363 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
18364 * tests/test-sprintf-posix.h (test_function): Likewise.
18366 2008-09-21 Bruno Haible <bruno@clisp.org>
18368 * modules/getpass (Depends-on): Add strdup-posix.
18370 New module 'strdup-posix'.
18371 * modules/strdup-posix: New file.
18372 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
18373 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
18374 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18376 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
18377 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
18378 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18381 * modules/strdup (Depends-on): Remove malloc-posix.
18383 2008-09-20 Bruno Haible <bruno@clisp.org>
18385 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
18388 2008-09-20 Bruno Haible <bruno@clisp.org>
18390 Ensure that wint_t gets defined on IRIX 5.3.
18391 * lib/wchar.in.h (wint_t): Define if not defined by the system.
18392 * lib/wctype.in.h (wint_t): Likewise.
18393 (__wctype_wint_t): Remove type.
18394 (isw*): Use wint_t instead of __wctype_wint_t.
18395 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
18396 * modules/wchar (Files): Add m4/wint_t.m4.
18397 (Makefile.am): Substitute HAVE_WINT_T.
18398 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
18399 * tests/test-wctype.c: Check that wint_t is defined.
18400 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
18401 * doc/posix-headers/wctype.texi: Likewise.
18402 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18404 2008-09-18 Bruno Haible <bruno@clisp.org>
18406 * gnulib-tool (func_exit): Update comment.
18408 2008-09-18 Simon Josefsson <simon@josefsson.org>
18410 * modules/getaddrinfo (Depends-on): Remove strdup, this module
18411 assumes strdup exists and does not depend on strdup to return
18412 ENOMEM on out of memory conditions.
18414 2008-09-18 Bruno Haible <bruno@clisp.org>
18416 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
18417 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
18418 digits for the exponent.
18420 2008-09-18 Jim Meyering <meyering@redhat.com>
18421 Bruno Haible <bruno@clisp.org>
18423 * lib/vasnprintf.c (decimal_point_char): Define also if
18424 NEED_PRINTF_INFINITE_LONG_DOUBLE.
18426 2008-09-16 Bruno Haible <bruno@clisp.org>
18427 and Eric Blake <ebb9@byu.net>
18429 vasnprintf: support Irix 5.3
18430 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
18431 that mishandle long double infinity.
18432 Reported by Tom G. Christensen.
18434 2008-09-16 Bruno Haible <bruno@clisp.org>
18436 * doc/glibc-functions/scandir.texi: Mention the function is missing on
18438 * doc/glibc-functions/alphasort.texi: Likewise.
18439 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
18441 2008-09-16 Jim Meyering <meyering@redhat.com>
18443 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
18444 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
18445 a umask modification leak out of a subshell. Otherwise, the
18446 opensolaris /bin/sh would be accepted and thus cause unwarranted
18447 failures in the coreutils test suite.
18449 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
18451 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
18454 2008-09-16 Jim Meyering <meyering@redhat.com>
18456 avoid spurious test failure when library is built without ACL support
18457 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
18458 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
18459 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
18460 * tests/test-copy-acl.sh: Likewise.
18462 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18464 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
18465 based on character occurrence counts.
18467 2008-09-15 Eric Blake <ebb9@byu.net>
18469 tests: avoid some compiler warnings
18470 * tests/test-memchr.c (main): Pass NULL indirectly.
18471 * tests/test-closein.c (main): Avoid unused variable.
18473 2008-09-15 Bruno Haible <bruno@clisp.org>
18475 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
18476 are missing on OpenBSD 4.0 individually.
18477 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18479 2008-09-15 Bruno Haible <bruno@clisp.org>
18481 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
18482 * doc/posix-functions/strerror.texi: Mention also Cygwin.
18483 * doc/posix-functions/perror.texi: Likewise.
18484 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
18486 Reported by Eric Blake.
18488 * lib/errno.in.h: Use replacement values >= 2000.
18489 Reported by Eric Blake.
18491 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18493 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
18494 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
18496 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
18497 compareseq was aborted.
18499 2008-09-14 Bruno Haible <bruno@clisp.org>
18501 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
18503 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
18504 (fstrcmp_bounded): Simplify result computation accordingly.
18506 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18508 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
18509 (fstrcmp): Define in terms of fstrcmp_bounded.
18510 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
18511 lower_bound argument.
18512 Return quickly if the result is certainly < lower_bound.
18513 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
18515 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18517 * lib/diffseq.h (EARLY_ABORT): New macro.
18518 (compareseq): Change return type to bool. Return true when EARLY_ABORT
18521 2008-09-14 Bruno Haible <bruno@clisp.org>
18523 * modules/perror-tests: New file.
18524 * tests/test-perror.sh: New file.
18525 * tests/test-perror.c: New file.
18527 New module 'perror'.
18528 * lib/stdio.in.h (perror): New declaration.
18529 * lib/perror.c: New file.
18530 * m4/perror.m4: New file.
18531 * modules/perror: New file.
18532 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
18533 * doc/posix-functions/perror.texi: Mention the perror module.
18534 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
18536 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
18539 2008-09-14 Bruno Haible <bruno@clisp.org>
18541 * modules/stdio (Makefile.am): Reorder to match the order in
18543 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18545 2008-09-13 Bruno Haible <bruno@clisp.org>
18547 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
18549 2008-09-13 Bruno Haible <bruno@clisp.org>
18551 Extend strerror to cover the added errno values.
18552 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
18553 (rpl_strerror): Provide error messages for the added errno values and
18554 for the WSA* values.
18555 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
18556 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
18558 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
18559 * modules/strerror (Depends-on): Add errno.
18560 * doc/posix-functions/strerror.texi: Document the change.
18561 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
18564 2008-09-13 Bruno Haible <bruno@clisp.org>
18566 * modules/EOVERFLOW: Remove file.
18567 * m4/eoverflow.m4: Remove file.
18568 * modules/EOVERFLOW-tests: Remove file.
18569 * tests/test-EOVERFLOW.c: Remove file.
18570 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
18571 * modules/ftell (Depends-on): Likewise.
18572 * modules/getdelim (Depends-on): Likewise.
18573 * modules/getugroups (Depends-on): Likewise.
18574 * modules/poll (Depends-on): Likewise.
18575 * modules/snprintf (Depends-on): Likewise.
18576 * modules/sprintf-posix (Depends-on): Likewise.
18577 * modules/vasnprintf (Depends-on): Likewise.
18578 * modules/vasprintf (Depends-on): Likewise.
18579 * modules/vfprintf-posix (Depends-on): Likewise.
18580 * modules/vsnprintf (Depends-on): Likewise.
18581 * modules/vsprintf-posix (Depends-on): Likewise.
18582 * modules/xvasprintf (Depends-on): Likewise.
18583 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18584 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
18585 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
18586 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
18587 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18588 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
18589 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
18590 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
18591 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18592 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
18593 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
18594 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
18595 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18596 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
18597 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
18598 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
18599 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18600 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
18601 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
18602 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
18603 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18604 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
18605 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
18606 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
18607 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
18608 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18609 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
18610 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
18611 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
18612 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
18613 * MODULES.html.sh: Remove EOVERFLOW.
18614 * NEWS: Mention the change.
18616 2008-09-13 Bruno Haible <bruno@clisp.org>
18618 * modules/errno-tests: New file.
18619 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
18621 * lib/errno.in.h: New file.
18622 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
18623 * modules/errno: New file.
18624 * doc/posix-headers/errno.texi: Update documentation.
18625 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
18627 2008-09-13 Bruno Haible <bruno@clisp.org>
18629 * tests/test-poll.c: Use #if for native Windows, rather than testing
18632 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18633 Bruno Haible <bruno@clisp.org>
18635 * lib/glob.c: Don't include <pwd.h> on native Windows.
18636 (WINDOWS32): New macro.
18637 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
18639 2008-09-13 Bruno Haible <bruno@clisp.org>
18641 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
18642 (ETIMEDOUT): Remove macro.
18643 (glthread_cond_timedwait_multithreaded): New declaration.
18644 (glthread_cond_timedwait): Use it.
18645 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
18646 (glthread_cond_timedwait_multithreaded): New function.
18648 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
18650 * modules/poll-tests: Do not check for io.h.
18651 * tests/test-poll.c: Check for __MSVCRT__ instead.
18653 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
18655 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
18656 * modules/poll-tests: Add inet_pton, stdbool, sockets.
18657 * tests/test-poll.c: Use them. Use _pipe on Windows.
18659 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
18661 * modules/poll-tests: New.
18662 * tests/test-poll.c: New.
18664 2008-09-12 Eric Blake <ebb9@byu.net>
18666 frexp: test for NetBSD failure on -0.0
18667 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
18668 not all, bugs from NetBSD 3.0 have been fixed.
18669 * doc/posix-functions/frexp.texi (frexp): Document bug.
18670 Reported by Thomas Klausner.
18672 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
18673 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
18675 Reported by Jonathan C. Patschke <jp@centtech.com>.
18677 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18679 * lib/glthread/cond.h: Use dummy implementation also if
18682 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18684 * modules/fnmatch-posix (License): Change to LGPLv2+.
18685 * modules/fnmatch-gnu (License): Likewise.
18687 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
18689 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
18691 2008-09-11 Jim Meyering <meyering@redhat.com>
18693 * users.txt: Add gtk-vnc.
18695 2008-09-08 Simon Josefsson <simon@josefsson.org>
18697 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
18700 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
18701 required for 16-bit and 8-bit rotates.
18702 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
18703 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
18704 UINT8_MAX instead of hard-coded constants.
18705 Suggested by Paul Eggert.
18707 2008-09-07 Bruno Haible <bruno@clisp.org>
18709 * tests/test-striconveh.c (main): Check behaviour when converting from
18712 Make striconveh work better with stateful encodings.
18713 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
18714 that iconv does not increment the inptr when returning -1/EINVAL.
18716 2008-09-07 Bruno Haible <bruno@clisp.org>
18718 * build-aux/config.rpath: Update according to libtool-2.2.6.
18719 * build-aux/config.libpath: Likewise.
18721 2008-09-06 Bruno Haible <bruno@clisp.org>
18723 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
18724 * lib/freadptr.c (freadptr): Likewise.
18725 * lib/freadseek.c (freadptrinc): Likewise.
18726 Reported by Simon Josefsson.
18728 2008-09-06 Bruno Haible <bruno@clisp.org>
18730 * modules/freadptr (License): Change to LGPLv2+.
18731 * modules/freadseek (License): Likewise.
18732 Suggested by Eric Blake.
18734 * modules/memchr2 (License): Change to LGPLv2+.
18735 Approved by Eric Blake.
18737 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18738 Bruno Haible <bruno@clisp.org>
18740 Make gnulib-tool work with native 'sed' on AIX.
18741 * gnulib-tool (sed_noop): New variable.
18742 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
18743 func_add_or_update, func_create_testdir): Use it to initialize sed
18745 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18747 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
18748 Bruno Haible <bruno@clisp.org>
18750 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
18751 also works after #include directives.
18753 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
18755 getdate.y: reject an out-of-range timezone value
18756 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
18757 the range [-24...+24]. When specified with only one or two digits,
18758 * tests/test-getdate.c: Tests for the fix.
18759 * doc/getdate.texi: Document this change.
18761 2008-09-03 Bruno Haible <bruno@clisp.org>
18763 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
18765 2008-09-02 Simon Josefsson <simon@josefsson.org>
18767 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
18768 <bruce.korb@gmail.com> with ideas from Ben Pfaff
18769 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
18770 Blake <ebb9@byu.net>.
18772 * tests/test-bitrotate.c: Add more test vectors.
18774 2008-09-02 Eric Blake <ebb9@byu.net>
18776 vasnprintf-posix: handle large precision via %.*d
18777 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
18778 when handling it ourselves.
18779 * tests/test-vasnprintf-posix.c (test_function): Add test.
18780 * tests/test-snprintf-posix.h (test_function): Likewise.
18781 * tests/test-sprintf-posix.h (test_function): Likewise.
18782 * tests/test-vasprintf-posix.c (test_function): Likewise.
18783 Reported by Alain Guibert.
18785 2008-09-01 Eric Blake <ebb9@byu.net>
18787 c-stack: make configure-time check more robust
18788 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
18789 successful sigaction call.
18790 Reported by Tom G. Christensen.
18792 2008-09-01 Bruno Haible <bruno@clisp.org>
18794 New module 'findprog-lgpl'.
18795 * modules/findprog-lgpl: New file.
18796 * lib/findprog-lgpl.c: New file.
18797 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
18798 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
18799 to decide whether to use strdup or xstrdup, concatenated_filename or
18800 xconcatenated_filename.
18802 2008-09-01 Bruno Haible <bruno@clisp.org>
18804 Split module 'concat-filename' into 'concat-filename' (LGPL) and
18805 'xconcat-filename' (GPL).
18806 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
18807 (License): Change to LGPLv2+.
18808 * modules/xconcat-filename: New file.
18809 * lib/concat-filename.h (concatenated_filename): Change specification.
18810 (xconcatenated_filename): New declaration.
18811 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
18812 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
18814 * lib/xconcat-filename.c: New file.
18815 * NEWS: Mention the change.
18816 * lib/findprog.c: Include concat-filename.h, not filename.h.
18817 (find_in_path): Use xconcatenated_filename instead of
18818 concatenated_filename.
18819 * lib/javacomp.c: Include concat-filename.h, not filename.h.
18820 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
18821 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
18822 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
18823 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
18824 instead of concatenated_filename.
18825 * lib/javaexec.c: Include concat-filename.h, not filename.h.
18826 (execute_java_class): Use xconcatenated_filename instead of
18827 concatenated_filename.
18828 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
18829 * modules/javacomp (Depends-on): Likewise.
18830 * modules/javaexec (Depends-on): Likewise.
18832 2008-09-01 Bruno Haible <bruno@clisp.org>
18834 Split module 'filename' into 'filename' and 'concat-filename'.
18835 * modules/filename: Keep only lib/filename.h.
18836 (License): Change to LGPLv2+.
18837 * modules/concat-filename: New file, extracted from modules/filename.
18838 * lib/filename.h (concatenated_filename): Remove declaration.
18839 * lib/concat-filename.h: New file, extracted from lib/filename.h.
18840 * lib/concat-filename.c: Include concat-filename.h.
18841 * NEWS: Mention the change.
18843 2008-09-01 Simon Josefsson <simon@josefsson.org>
18845 * lib/bitrotate.h (rotl8, rotr8): Add.
18847 * modules/bitrotate (configure.ac): Need
18848 AC_REQUIRE([AC_C_INLINE]).
18849 (Description): Mention stdint.h. Reported by Bruno Haible
18852 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
18853 Paolo Bonzini <bonzini@gnu.org>.
18855 2008-08-31 Bruno Haible <bruno@clisp.org>
18857 Assume Solaris specific bi-arch conventions on Solaris systems.
18858 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
18859 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
18860 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
18861 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
18862 like acl_libdirstem.
18863 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
18865 * NEWS: Mention the change.
18866 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
18868 2008-08-31 Jim Meyering <meyering@redhat.com>
18870 * lib/strftime.h: Add comments describing the two added arguments.
18872 remove duplicate #include directives
18873 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
18874 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
18876 2008-08-31 Bruno Haible <bruno@clisp.org>
18878 New module 'sigpipe-die'.
18879 * modules/sigpipe-die: New file.
18880 * lib/sigpipe-die.h: New file.
18881 * lib/sigpipe-die.c: New file.
18882 * MODULES.html.sh (Signal handling): Add sigpipe-die.
18884 2008-08-31 Bruno Haible <bruno@clisp.org>
18886 Don't override previously installed signal handlers.
18887 * lib/fatal-signal.c (saved_sigactions): New variable.
18888 (uninstall_handlers): Reset the signal to the saved handler, not
18889 to SIG_DFL (except when ignored).
18890 (install_handlers): Save the previous handlers.
18892 2008-08-30 Bruno Haible <bruno@clisp.org>
18894 * gnulib-tool (func_reset_sigpipe): New function.
18895 (func_get_automake_snippet, func_modules_transitive_closure,
18896 func_import): Invoke it before a join command that reads from stdin,
18897 to avoid "echo: write error: Broken pipe" error messages on stderr.
18898 Reported by Sam Steingold <sds@gnu.org>.
18900 2008-08-30 Bruno Haible <bruno@clisp.org>
18902 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
18903 Code copied from m4/open.m4.
18904 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
18905 access and the filename ends in a slash. Code copied from lib/open.c.
18906 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
18907 * tests/test-fopen.c (main): Check against bug with trailing slash.
18909 2008-08-29 Bruno Haible <bruno@clisp.org>
18911 Avoid some "gcc -pedantic" warnings.
18912 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
18913 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
18914 * lib/dirent.in.h: Likewise.
18915 * lib/fcntl.in.h: Likewise.
18916 * lib/float.in.h: Likewise.
18917 * lib/iconv.in.h: Likewise.
18918 * lib/inttypes.in.h: Likewise.
18919 * lib/locale.in.h: Likewise.
18920 * lib/math.in.h: Likewise.
18921 * lib/netinet_in.in.h: Likewise.
18922 * lib/search.in.h: Likewise.
18923 * lib/signal.in.h: Likewise.
18924 * lib/stdarg.in.h: Likewise.
18925 * lib/stdint.in.h: Likewise.
18926 * lib/stdio.in.h: Likewise.
18927 * lib/stdlib.in.h: Likewise.
18928 * lib/string.in.h: Likewise.
18929 * lib/strings.in.h: Likewise.
18930 * lib/sys_select.in.h: Likewise.
18931 * lib/sys_socket.in.h: Likewise.
18932 * lib/sys_stat.in.h: Likewise.
18933 * lib/sys_time.in.h: Likewise.
18934 * lib/sysexits.in.h: Likewise.
18935 * lib/time.in.h: Likewise.
18936 * lib/unistd.in.h: Likewise.
18937 * lib/wchar.in.h: Likewise.
18938 * lib/wctype.in.h: Likewise.
18939 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
18940 * modules/fchdir (Makefile.am): Likewise.
18941 * modules/fcntl (Makefile.am): Likewise.
18942 * modules/float (Makefile.am): Likewise.
18943 * modules/iconv_open (Makefile.am): Likewise.
18944 * modules/inttypes (Makefile.am): Likewise.
18945 * modules/locale (Makefile.am): Likewise.
18946 * modules/math (Makefile.am): Likewise.
18947 * modules/netinet_in (Makefile.am): Likewise.
18948 * modules/search (Makefile.am): Likewise.
18949 * modules/signal (Makefile.am): Likewise.
18950 * modules/stdarg (Makefile.am): Likewise.
18951 * modules/stdint (Makefile.am): Likewise.
18952 * modules/stdio (Makefile.am): Likewise.
18953 * modules/stdlib (Makefile.am): Likewise.
18954 * modules/string (Makefile.am): Likewise.
18955 * modules/strings (Makefile.am): Likewise.
18956 * modules/sys_select (Makefile.am): Likewise.
18957 * modules/sys_socket (Makefile.am): Likewise.
18958 * modules/sys_stat (Makefile.am): Likewise.
18959 * modules/sys_time (Makefile.am): Likewise.
18960 * modules/sysexits (Makefile.am): Likewise.
18961 * modules/time (Makefile.am): Likewise.
18962 * modules/unistd (Makefile.am): Likewise.
18963 * modules/wchar (Makefile.am): Likewise.
18964 * modules/wctype (Makefile.am): Likewise.
18965 Reported by Reuben Thomas <rrt@sc3d.org>.
18967 2008-08-29 Bruno Haible <bruno@clisp.org>
18969 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
18972 2008-08-29 Simon Josefsson <simon@josefsson.org>
18974 * MODULES.html.sh (Misc): Add bitrotate.
18976 * modules/bitrotate: New file.
18978 * lib/bitrotate.h: New file.
18980 * modules/bitrotate-tests: New file.
18982 * tests/test-bitrotate.c: New file.
18984 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
18985 on the bitrotate module.
18987 * lib/arctwo.c: Use new bitrotate module.
18989 2008-08-29 Jim Meyering <meyering@redhat.com>
18991 bootstrap: merge changes from coreutils
18992 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
18993 of copied files. Remove a kludge, now that this is fixed.
18994 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
18995 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
18996 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
18998 2008-08-29 Bruno Haible <bruno@clisp.org>
19000 * MODULES.html.sh: Remove --cvs-urls option.
19002 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
19004 maint.mk: adjust to file name change
19005 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
19007 2008-08-28 Jim Meyering <meyering@redhat.com>
19009 * modules/getndelim2 (License): Relicense to LGPLv2+.
19010 Approved by Richard Stallman for the version of 1995, and by
19011 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
19013 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
19015 * lib/getdelim.c (flockfile, funlockfile): Make all of them
19016 dummy if one is not available. Do not touch them if
19017 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
19018 (getc_maybe_unlocked): New.
19019 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
19021 2008-08-26 Eric Blake <ebb9@byu.net>
19023 doc/INSTALL: resync from autoconf
19024 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
19025 (INSTALL_PRELUDE): Delete; this is done more efficiently by
19027 * install.texi [!autoconf]: ...here. Resync from autoconf.
19028 * INSTALL: Regenerate.
19029 * INSTALL.ISO: New file.
19030 * INSTALL.UTF-8: Likewise.
19032 2008-08-26 Jim Meyering <meyering@redhat.com>
19034 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
19035 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
19036 these definitions conditional, so that they may be overridden, too.
19038 2008-08-26 Bruno Haible <bruno@clisp.org>
19040 Generate INSTALL file variants with prettier quotes.
19041 * doc/Makefile (INSTALL_PRELUDE): New macro.
19043 (INSTALL.ISO, INSTALL.UTF-8): New rules.
19045 2008-08-26 Bruno Haible <bruno@clisp.org>
19047 Run makeinfo in an English locale.
19048 * doc/Makefile (MAKEINFO): New variable.
19050 2008-08-26 Bruno Haible <bruno@clisp.org>
19052 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
19053 Suggested by Eric Blake.
19055 2008-08-25 Bruno Haible <bruno@clisp.org>
19057 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
19059 2008-08-25 Eric Blake <ebb9@byu.net>
19061 c-stack: test that stack overflow can be caught
19062 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
19063 that platform allows handling stack overflow; at least OS/2 EMX
19064 has sigaltstack, but crashes before transferring control to
19065 handler on stack overflow.
19066 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
19067 check for HAVE_STACK_OVERFLOW_HANDLING.
19068 Reported by Elbert Pol.
19070 2008-08-25 Bruno Haible <bruno@clisp.org>
19072 * doc/posix-functions/strftime.texi: Fix description of strftime
19075 2008-08-24 Bruno Haible <bruno@clisp.org>
19077 * tests/uniwidth/test-uc_width2.c: New file.
19078 * tests/uniwidth/test-uc_width2.sh: New file.
19079 * modules/uniwidth/width-tests (Files): Add the new files.
19080 (TESTS): Add uniwidth/test-uc_width2.sh.
19081 (TESTS_ENVIRONMENT): New variable.
19082 (check_PROGRAMS): Add test-uc_width2.
19083 (test_uc_width2_SOURCES): New variable.
19085 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
19086 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
19088 Reported by Alexander V. Lukyanov <lav@netis.ru>.
19090 2008-08-22 Eric Blake <ebb9@byu.net>
19092 test-lock, test-tls: mention why a test is skipped
19093 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
19095 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
19097 count-one-bits: relax license
19098 * modules/count-one-bits (License): Relicense to LGPLv2+.
19099 Suggested by Ludovic Courtès, approved by Ben Pfaff.
19101 2008-08-22 Andreas Schwab <schwab@suse.de>
19103 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
19104 Remove spurious space in assignment.
19106 2008-08-21 Simon Josefsson <simon@josefsson.org>
19108 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
19109 Paul Eggert <eggert@CS.UCLA.EDU>.
19111 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
19113 * modules/gettext: Add m4/threadlib.m4.
19115 2008-08-19 Eric Blake <ebb9@byu.net>
19117 test-c-stack: fix compilation failure on FreeBSD 5.0
19118 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
19119 headers before <sys/resource.h>.
19120 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
19122 Reported by Nelson H. F. Beebe.
19124 strverscmp: migrate from "strverscmp.h" to <string.h>
19125 * modules/string (Makefile.am): Add new hooks.
19126 * modules/strverscmp (Files): Remove strverscmp.h.
19127 (Depends-on): Add string.
19128 (configure.ac): Add indicator.
19129 (Include): Mention new header.
19130 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
19132 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
19134 * lib/strverscmp.h: Delete.
19135 * lib/string.in.h (strverscmp): Provide declaration, when needed.
19136 * tests/test-strverscmp.c (includes): Adjust client.
19137 * lib/check-version.c (includes): Likewise.
19138 * NEWS: Document the change.
19140 strverscmp: add unit test
19141 * modules/strverscmp-tests: New file.
19142 * tests/test-strverscmp.c: Likewise.
19144 2008-08-19 Simon Josefsson <simon@josefsson.org>
19146 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
19147 regarding Windows crypto stuff, from Mono.
19149 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
19151 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
19152 if present, for intel RND. Return error on failures.
19154 2008-08-18 Ben Pfaff <blp@gnu.org>
19156 gitlog-to-changelog: give better diagnostic for failed pipe-open
19157 * build-aux/gitlog-to-changelog: Improve error message: suggest
19158 that the version of Git may be too old.
19160 2008-08-18 Simon Josefsson <simon@josefsson.org>
19162 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
19163 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
19165 2008-08-18 Bruno Haible <bruno@clisp.org>
19167 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
19170 2008-08-18 Bruno Haible <bruno@clisp.org>
19172 * lib/glthread/threadlib.c: Include <pthread.h>.
19174 2008-08-18 Bruno Haible <bruno@clisp.org>
19176 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
19177 glthread_recursive_lock_* macros.
19178 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
19181 2008-08-18 Bruno Haible <bruno@clisp.org>
19183 * lib/glthread/thread.c: Avoid forcing a context switch right after
19186 2008-08-17 Bruno Haible <bruno@clisp.org>
19188 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
19189 * lib/glthread/thread.h: Provide Win32 specific implementation.
19190 * modules/thread (Files): Add lib/glthread/thread.c.
19191 (Depends-on): Add lock.
19192 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
19194 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19196 New module 'yield'.
19197 * modules/yield: New file.
19198 * lib/glthread/yield.h: New file.
19199 * m4/yield.m4: New file.
19200 * MODULES.html.sh (Multithreading): Add yield.
19202 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19204 New module 'thread'.
19205 * modules/thread: New file.
19206 * lib/glthread/thread.h: New file.
19207 * m4/thread.m4: New file.
19208 * MODULES.html.sh (Multithreading): Add thread.
19210 2008-08-17 Bruno Haible <bruno@clisp.org>
19212 * lib/glthread/lock.h: Include <stdlib.h> always.
19213 * lib/glthread/tls.h: Likewise.
19214 * lib/glthread/cond.h: Likewise.
19216 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19219 * modules/cond: New file.
19220 * lib/glthread/cond.h: New file.
19221 * lib/glthread/cond.c: New file.
19222 * m4/cond.m4: New file.
19223 * MODULES.html.sh (Multithreading): Add cond.
19225 2008-08-16 Eric Blake <ebb9@byu.net>
19227 c-stack: fix regression on Irix 5.3 from 2008-06-21
19228 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
19230 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
19231 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
19232 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
19233 * modules/signal (Makefile.am): Use the value.
19234 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
19235 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
19236 * doc/posix-headers/signal.texi (signal.h): Document this
19238 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
19239 Reported by Tom G. Christensen.
19241 2008-08-17 Bruno Haible <bruno@clisp.org>
19243 New module 'threadlib'.
19244 * modules/threadlib: New file.
19245 * lib/glthread/threadlib.c: New file, extracted from
19246 lib/glthread/lock.c.
19247 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
19249 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
19250 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
19251 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
19253 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
19254 (gl_DISABLE_THREADS): Remove macro.
19255 * modules/lock (Files): Remove build-aux/config.rpath.
19256 (Depends-on): Remove havelib. Add threadlib.
19257 (configure.ac-early): Remove section.
19258 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
19259 * modules/tls (Depends-on): Remove lock. Add threadlib.
19260 (Link): New section, copied from threadlib.
19261 * MODULES.html.sh (Multithreading): Add threadlib.
19263 2008-08-14 Bruno Haible <bruno@clisp.org>
19265 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
19266 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
19267 glthread_rwlock_unlock, glthread_rwlock_destroy,
19268 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
19269 glthread_recursive_lock_destroy): Define as macros always.
19270 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
19271 glthread_lock_lock.
19272 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
19273 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
19274 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
19275 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
19276 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
19277 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
19278 (glthread_recursive_lock_lock_func): Renamed from
19279 glthread_recursive_lock_lock.
19280 (glthread_recursive_lock_unlock_func): Renamed from
19281 glthread_recursive_lock_unlock.
19282 (glthread_recursive_lock_destroy_func): Renamed from
19283 glthread_recursive_lock_destroy.
19285 2008-08-14 Bruno Haible <bruno@clisp.org>
19287 * lib/glthread/lock.h: Renamed from lib/lock.h.
19288 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
19289 * lib/glthread/tls.h: Renamed from lib/tls.h.
19290 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
19291 * lib/fstrcmp.c: Update includes.
19292 * lib/strsignal.c: Update includes.
19293 * modules/lock (Files, Makefile.am): Update.
19294 (Include): Change to "glthread/lock.h".
19295 * modules/tls (Files, Makefile.am): Update.
19296 (Include): Change to "glthread/tls.h".
19297 * tests/test-lock.c: Update includes.
19298 * tests/test-tls.c: Update includes.
19299 * NEWS: Mention the renamed header files.
19301 2008-08-11 Jim Meyering <meyering@redhat.com>
19303 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
19305 2008-08-11 Eric Blake <ebb9@byu.net>
19307 test-c-stack: avoid C99-ism
19308 * tests/test-c-stack.c (main): Fix whitespace, move declaration
19310 Reported by Alain Guibert.
19312 2008-08-10 Jim Meyering <meyering@redhat.com>
19314 ensure that return value of uinttostr et al are not ignored
19315 * lib/inttostr.h (__GNUC_PREREQ): Define.
19316 (__attribute_warn_unused_result__): Define.
19317 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
19319 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
19321 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
19322 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
19324 2008-08-07 Jim Meyering <meyering@redhat.com>
19326 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
19328 * modules/mkstemp (License): Relicense under LGPLv2+.
19329 * modules/tempname (License): Likewise.
19331 2008-08-06 Bruno Haible <bruno@clisp.org>
19333 * lib/poll.c (poll): Further micro-optimization.
19335 2008-08-06 Jim Meyering <meyering@redhat.com>
19337 inet_pton.c: use locale-independent tolower
19338 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
19339 (inet_pton6): Use c_tolower rather than tolower.
19340 * modules/inet_pton (Depends-on): Add c-ctype.
19342 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
19344 * lib/poll.c (poll): Avoid division when timeout is 0, cache
19345 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
19347 2008-08-06 Jim Meyering <meyering@redhat.com>
19349 * modules/inet_pton (License): Relicense under LGPLv2+.
19351 2008-08-03 Bruno Haible <bruno@clisp.org>
19353 Additional non-aborting API for lock and tls.
19354 * lib/lock.h: Include <errno.h>.
19355 (glthread_lock_init): New macro/function.
19356 (gl_lock_init): Define as wrapper around glthread_lock_init.
19357 (glthread_lock_lock): New macro/function.
19358 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
19359 (glthread_lock_unlock): New macro/function.
19360 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
19361 (glthread_lock_destroy): New macro/function.
19362 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
19363 (glthread_rwlock_init): New macro/function.
19364 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
19365 (glthread_rwlock_rdlock): New macro/function.
19366 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
19367 (glthread_rwlock_wrlock): New macro/function.
19368 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
19369 (glthread_rwlock_unlock): New macro/function.
19370 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
19371 (glthread_rwlock_destroy): New macro/function.
19372 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
19373 (glthread_recursive_lock_init): New macro/function.
19374 (gl_recursive_lock_init): Define as wrapper around
19375 glthread_recursive_lock_init.
19376 (glthread_recursive_lock_lock): New macro/function.
19377 (gl_recursive_lock_lock): Define as wrapper around
19378 glthread_recursive_lock_lock.
19379 (glthread_recursive_lock_unlock): New macro/function.
19380 (gl_recursive_lock_unlock): Define as wrapper around
19381 glthread_recursive_lock_unlock.
19382 (glthread_recursive_lock_destroy): New macro/function.
19383 (gl_recursive_lock_destroy): Define as wrapper around
19384 glthread_recursive_lock_destroy.
19385 (glthread_once): New macro/function.
19386 (gl_once): Define as wrapper around glthread_once.
19387 Update function declarations.
19388 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
19389 glthread_rwlock_init. Return error code.
19390 (glthread_rwlock_rdlock_multithreaded): Renamed from
19391 glthread_rwlock_rdlock. Return error code.
19392 (glthread_rwlock_wrlock_multithreaded): Renamed from
19393 glthread_rwlock_wrlock. Return error code.
19394 (glthread_rwlock_unlock_multithreaded): Renamed from
19395 glthread_rwlock_unlock. Return error code.
19396 (glthread_rwlock_destroy_multithreaded): Renamed from
19397 glthread_rwlock_destroy. Return error code.
19398 (glthread_recursive_lock_init_multithreaded): Renamed from
19399 glthread_recursive_lock_init. Return error code.
19400 (glthread_recursive_lock_lock_multithreaded): Renamed from
19401 glthread_recursive_lock_lock. Return error code.
19402 (glthread_recursive_lock_unlock_multithreaded): Renamed from
19403 glthread_recursive_lock_unlock. Return error code.
19404 (glthread_recursive_lock_destroy_multithreaded): Renamed from
19405 glthread_recursive_lock_destroy. Return error code.
19406 (glthread_once_call): Make static.
19407 (glthread_once_multithreaded): Renamed from glthread_once.
19408 * lib/tls.h: Include <errno.h>.
19409 (glthread_tls_key_init): New macro/function.
19410 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
19411 (glthread_tls_set): New macro/function.
19412 (gl_tls_set): Define as wrapper around glthread_tls_set.
19413 (glthread_tls_key_destroy): New macro/function.
19414 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
19415 Update function declarations.
19416 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
19418 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
19420 2008-08-04 Eric Blake <ebb9@byu.net>
19422 gnumakefile: use space, not TAB, outside of targets
19423 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
19425 2008-08-02 Jim Meyering <meyering@redhat.com>
19427 getdate.y: avoid locale-dependent date parsing failure
19428 In Turkish locales, getdate would fail to recognize keywords
19429 containing a lowercase "i". The solution is not to rely on
19430 locale-sensitive case-conversion.
19431 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
19432 (lookup_word): Use c_toupper in place of toupper.
19433 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
19434 Reported by Vefa Bicakci <bicave@superonline.com> in
19435 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
19436 * modules/getdate (Depends-on): Add c-ctype.
19438 2008-08-02 Bruno Haible <bruno@clisp.org>
19440 * gnulib-tool (func_import): When updating or creating a .gitignore
19441 file, prepend each added line with a slash, and ignore leading slashes
19442 from the existing lines.
19443 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19445 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19447 Portability fix for GNU make 3.79.1.
19448 * top/GNUmakefile: Avoid 'else COND', which older GNU make
19449 versions do not understand.
19451 2008-08-01 Bruno Haible <bruno@clisp.org>
19453 Work around bug of HP-UX 10.20 cc with -0.0 literal.
19454 * tests/test-isnanf.h (zero): New variable.
19455 (main): Avoid literal -0.0f.
19456 * tests/test-isnand.h (zero): New variable.
19457 (main): Avoid literal -0.0.
19458 * tests/test-isnanl.h (zero): New variable.
19459 (main): Avoid literal -0.0L.
19460 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
19461 (test_float, test_double, test_long_double): Avoid literals -0.0f,
19463 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
19464 (test_signbitd): Avoid literal -0.0.
19465 (test_signbitl): Avoid literal -0.0L.
19466 * tests/test-ceilf1.c (zero): New variable.
19467 (main): Avoid literal -0.0f.
19468 * tests/test-ceill.c (zero): New variable.
19469 (main): Avoid literal -0.0L.
19470 * tests/test-floorf1.c (zero): New variable.
19471 (main): Avoid literal -0.0f.
19472 * tests/test-floorl.c (zero): New variable.
19473 (main): Avoid literal -0.0L.
19474 * tests/test-roundf1.c (zero): New variable.
19475 (main): Avoid literal -0.0f.
19476 * tests/test-round1.c (zero): New variable.
19477 (main): Avoid literal -0.0.
19478 * tests/test-roundl.c (zero): New variable.
19479 (main): Avoid literal -0.0L.
19480 * tests/test-truncf1.c (zero): New variable.
19481 (main): Avoid literal -0.0f.
19482 * tests/test-trunc1.c (zero): New variable.
19483 (main): Avoid literal -0.0.
19484 * tests/test-truncl.c (zero): New variable.
19485 (main): Avoid literal -0.0L.
19486 * tests/test-frexp.c (zero): New variable.
19487 (main): Avoid literal -0.0.
19488 * tests/test-frexpl.c (zero): New variable.
19489 (main): Avoid literal -0.0L.
19490 * tests/test-ldexpl.c (zero): New variable.
19491 (main): Avoid literal -0.0L.
19492 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19493 (zerod, zerol): New variables.
19494 (test_function): Avoid literals -0.0, -0.0L.
19495 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
19496 (zerod, zerol): New variables.
19497 (test_function): Avoid literals -0.0, -0.0L.
19498 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19499 (zerod, zerol): New variables.
19500 (test_function): Avoid literals -0.0, -0.0L.
19501 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
19502 (zerod, zerol): New variables.
19503 (test_function): Avoid literals -0.0, -0.0L.
19504 * tests/test-strtod.c (zero): New variable.
19505 (main): Avoid literal -0.0.
19506 Reported by Jonathan C. Patschke <jp@centtech.com>.
19508 2008-07-31 Jim Meyering <meyering@redhat.com>
19510 sha256.h: correct definition of SHA224_DIGEST_SIZE
19511 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
19512 Reported by Paulie Pena IV <paulie4@gmail.com>.
19513 Define as 224 / 8, rather than as a literal.
19514 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
19515 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
19516 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
19518 2008-07-31 Bruno Haible <bruno@clisp.org>
19520 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
19521 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
19522 Reported by Jonathan Patschke <jp@centtech.com>.
19524 2008-07-31 Bruno Haible <bruno@clisp.org>
19526 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
19527 Reported by Paolo Bonzini <bonzini@gnu.org>.
19529 2008-07-30 Eric Blake <ebb9@byu.net>
19531 test-strtod: allow compilation without -lm
19532 * tests/test-strtod.c (main): Avoid link dependence on fabs.
19533 Reported by Dennis Clarke <blastwave@gmail.com>.
19535 2008-07-28 Jim Meyering <meyering@redhat.com>
19537 bootstrap: work also when there are no .po files in po/
19538 * build-aux/bootstrap (update_po_files): Complete the change
19539 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
19541 2008-07-27 Jim Meyering <meyering@redhat.com>
19543 * users.txt: Add zile.
19545 2008-07-26 Ben Pfaff <blp@gnu.org>
19547 Add missing dependencies on new m4/exponent[fdl].m4 files.
19548 * modules/isnanf-nolibm: Add m4/exponentf.m4.
19549 * modules/isnand-nolibm: Add m4/exponentd.m4.
19550 * modules/isnanl-nolibm: Add m4/exponentl.m4.
19551 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
19552 m4/isnan[fdl].m4, because the macros actually used moved.
19553 Reported by Jim Meyering.
19555 2008-07-14 Ben Pfaff <blp@gnu.org>
19558 * lib/isinf.c: New file.
19559 * lib/math.in.h: Define isinf macro if we have decided to replace
19561 * m4/isinf.m4: New file.
19562 * m4/math_h.m4: Initialize and substitute variables for isinf
19564 * modules/isinf: New file.
19565 * modules/isinf-tests: New file.
19566 * modules/math: Add substitutions for new module.
19567 * tests/test-isinf.c: New file.
19568 * doc/posix-functions/isinf.texi: Mention new module.
19569 * MODULES.html.sh: Mention new module.
19571 2008-07-14 Ben Pfaff <blp@gnu.org>
19573 Factor out some macros for use by additional modules.
19574 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
19576 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
19578 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
19580 * m4/exponentf.m4: New file.
19581 * m4/exponentd.m4: New file.
19582 * m4/exponentl.m4: New file.
19583 * modules/isnanf: Use new file m4/exponentf.m4.
19584 * modules/isnand: Use new file m4/exponentd.m4.
19585 * modules/isnanl: Use new file m4/exponentl.m4.
19587 2008-07-23 Ulrich Drepper <drepper@redhat.com>
19589 mktime.c: normalize tp->tm_isdst value to -1/0/1.
19590 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
19591 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
19592 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
19594 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
19595 readlink on platforms without PATH_MAX.
19597 2008-07-21 Eric Blake <ebb9@byu.net>
19599 Warn, not fail, on stale version.
19600 * top/GNUmakefile (_curr-ver): Tone down previous patch.
19602 Don't allow installation with stale devel version number.
19603 * top/GNUmakefile (_is-install-target): New macro.
19604 (_curr-ver): Forbid installation with stale version number.
19606 2008-07-20 Bruno Haible <bruno@clisp.org>
19608 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
19610 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
19612 2008-07-20 Bruno Haible <bruno@clisp.org>
19614 * lib/c-stack.h (c_stack_action): Add documentation.
19615 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
19617 2008-07-20 Bruno Haible <bruno@clisp.org>
19619 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
19620 * modules/readlink (License): Likewise.
19622 2008-07-17 Eric Blake <ebb9@byu.net>
19624 * modules/c-stack (Link): Fix typo.
19626 Make c-stack use libsigsegv, when available.
19627 * modules/c-stack (Depends-on): Add libsigsegv.
19628 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
19630 * lib/c-stack.c (SIGSTKSZ): Define fallback.
19631 (segv_handler, overflow_handler, c_stack_action)
19632 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
19633 implementation when libsigsegv is available, but only when using
19634 the library is necessary.
19635 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
19636 comment, explaining why XSI check fails on Linux.
19637 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
19638 * tests/test-c-stack2.sh: Tweak skip message.
19639 * NEWS: Document new link-time requirements.
19641 2008-07-16 Eric Blake <ebb9@byu.net>
19643 c-stack: Expose false positives when not using libsigsegv.
19644 * modules/c-stack-tests (Files): Expand test.
19645 * tests/test-c-stack.c (main): Add means to conditionally trigger
19646 non-overflow SIGSEGV.
19647 * tests/test-c-stack2.sh: New file.
19649 2008-07-14 Bruno Haible <bruno@clisp.org>
19651 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
19652 Reported by Eric Blake.
19654 2008-07-14 Sam Steingold <sds@gnu.org>
19655 Bruno Haible <bruno@clisp.org>
19657 New module libsigsegv.
19658 * modules/libsigsegv: New file.
19659 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
19661 * MODULES.html.sh (Signal handling): New section.
19663 2008-07-14 Bruno Haible <bruno@clisp.org>
19665 * modules/unictype/ctype-* (Description): Add the word "function".
19666 Improves the resulting doc in MODULES.html.
19668 2008-07-12 Ben Pfaff <blp@gnu.org>
19670 Add longlong module.
19671 * modules/longlong: New file.
19673 2008-07-12 Bruno Haible <bruno@clisp.org>
19675 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
19678 2008-07-10 Ben Pfaff <blp@gnu.org>
19681 * doc/posix-functions/isnan.texi: Mention new module.
19682 * lib/math.in.h: Define isnan macro if we have decided to replace
19684 * m4/isnan.m4: New file.
19685 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
19686 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
19688 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
19690 * m4/math_h.m4: Initialize and substitute variables for isnan
19692 * modules/isnan: New file.
19693 * modules/isnan-tests: New file.
19694 * modules/math: Add substitutions for new module.
19695 * tests/test-isnan.c: New file.
19696 * MODULES.html.sh: Mention new module.
19698 2008-07-10 Ben Pfaff <blp@gnu.org>
19701 * lib/isnanf.m4: New file.
19702 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
19703 (gl_HAVE_ISNANF_IN_LIBM): New macro.
19704 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
19705 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
19706 * modules/isnanf: New file.
19707 * modules/isnanf-tests: New file.
19708 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
19710 * tests/test-isnanf-nolibm.c: factored most of its contents into
19711 new file tests/test-isnanf.h.
19712 * tests/test-isnanf.h: New file.
19713 * tests/test-isnanf.c: New file.
19714 * MODULES.html.sh: Mention new module.
19715 * doc/glibc-functions/isnanf.texi: Mention new module.
19717 2008-07-10 Ben Pfaff <blp@gnu.org>
19720 * lib/isnand.h: New file.
19721 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
19722 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
19723 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
19724 functionality also.
19725 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
19726 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
19727 (gl_HAVE_ISNAND_IN_LIBM): New macro.
19728 * modules/isnand: New file.
19729 * modules/isnand-tests: New file.
19730 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
19732 * tests/test-isnand-nolibm.c: factored most of its contents into
19733 new file tests/test-isnand.h.
19734 * tests/test-isnand.h: New file.
19735 * tests/test-isnand.c: New file.
19736 * MODULES.html.sh: Mention new module.
19738 2008-07-10 Ben Pfaff <blp@gnu.org>
19740 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
19741 * lib/isnand.h: Rename lib/isnand-nolibm.h.
19742 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
19743 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
19744 * modules/isnanf-nolibm: Update references to renamed files.
19745 * modules/isnand-nolibm: Likewise.
19746 * modules/isnanf-nolibm-tests: Likewise.
19747 * modules/isnand-nolibm-tests: Likewise.
19748 * lib/frexp.c: Likewise.
19749 * lib/isfinite.c: Likewise.
19750 * lib/signbitd.c: Likewise.
19751 * lib/signbitf.c: Likewise.
19752 * lib/vasnprintf.c: Likewise.
19753 * tests/test-ceilf1.c: Likewise.
19754 * tests/test-ceilf2.c: Likewise.
19755 * tests/test-floorf1.c: Likewise.
19756 * tests/test-floorf2.c: Likewise.
19757 * tests/test-frexp.c: Likewise.
19758 * tests/test-round1.c: Likewise.
19759 * tests/test-round2.c: Likewise.
19760 * tests/test-roundf1.c: Likewise.
19761 * tests/test-strtod.c: Likewise.
19762 * tests/test-trunc1.c: Likewise.
19763 * tests/test-trunc2.c: Likewise.
19764 * tests/test-truncf1.c: Likewise.
19765 * tests/test-truncf2.c: Likewise.
19766 * NEWS: Mention the renamed header files.
19768 2008-07-11 Jim Meyering <meyering@redhat.com>
19770 vc-list-files: make the last-resort awk code more portable
19771 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
19772 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
19773 does not support it.
19775 2008-07-10 Eric Blake <ebb9@byu.net>
19777 Work with tar's bootstrap.
19778 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
19779 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
19782 2008-07-09 Jim Meyering <meyering@redhat.com>
19784 posix-shell.m4: fix typo that made this test malfunction
19785 * m4/posix-shell.m4: Remove capitalization in variable name.
19787 2008-07-08 Bruno Haible <bruno@clisp.org>
19789 * m4/onceonly.m4: Update comments.
19790 Reported by Ben Pfaff <blp@cs.stanford.edu>.
19792 2008-07-04 Jim Meyering <meyering@redhat.com>
19794 * users.txt: Add vc-dwim.
19795 (bison, coreutils): Use the gitweb URL.
19797 2008-07-03 Jim Meyering <meyering@redhat.com>
19799 * users.txt: Add libffcall. From Sam Steingold.
19801 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
19803 getdate.y: do not ignore TZ with relative day, month or year offset
19804 * lib/getdate.y (get_date): Move the tz-handling block to follow the
19805 relative-date-handling, since otherwise, the latter would clobber the
19806 sole output (an updated Start value) of the tz-handling block.
19807 * tests/test-getdate.c: Tests for the fix
19809 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19811 Recognize 'foo_LIBRARIES += libgnu.a'.
19812 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
19813 makefile snippet has already specified an installation location,
19816 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
19818 getdate.y: factor out common actions
19819 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
19820 Use them in place of open-coded actions.
19822 2008-07-01 Simon Josefsson <simon@josefsson.org>
19824 Add self-test for getdate module.
19825 * modules/getdate-tests: New file.
19826 * tests/test-getdate.c: New file.
19828 2008-06-29 Bruno Haible <bruno@clisp.org>
19830 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
19832 Reported by Sylvain Beucler <beuc@beuc.net>.
19834 2008-06-29 Bruno Haible <bruno@clisp.org>
19836 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
19837 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
19839 2008-06-29 Bruno Haible <bruno@clisp.org>
19841 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
19843 Reported by Sylvain Beucler <beuc@beuc.net>.
19845 2008-06-26 Jim Meyering <meyering@redhat.com>
19847 make several modules depend on the "open" module
19848 This provides slightly increased consistency when opening-for-write
19849 the name of a non-directory spelled with a trailing slash.
19850 * modules/chdir-safer: Likewise.
19851 * modules/chown: Likewise.
19852 * modules/clean-temp: Likewise.
19853 * modules/copy-file: Likewise.
19854 * modules/fchdir: Likewise.
19855 * modules/fcntl-safer: Likewise.
19856 * modules/pipe: Likewise.
19857 * modules/utime: Likewise.
19858 Prompted by Eric Blake and Bruno Haible.
19860 2008-06-24 Andreas Schwab <schwab@suse.de>
19862 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
19863 literals can be used as initializers for global variables.
19865 2008-06-23 Eric Blake <ebb9@byu.net>
19867 Make gnulib-cache.m4 easier to diff.
19868 * gnulib-tool (func_import): Allow newlines when reading cached
19869 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
19871 2008-06-23 Bruno Haible <bruno@clisp.org>
19873 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
19874 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
19875 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
19876 m4/signalblocking.m4.
19877 (gl_PREREQ_SIGACTION): Don't invoke it.
19878 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
19879 gl_PREREQ_SIG_HANDLER_H.
19880 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
19881 Don't check for sigaction here.
19883 2008-06-23 Bruno Haible <bruno@clisp.org>
19885 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
19886 (install_handlers): Don't set the SA_RESETHAND flag.
19888 2008-06-23 Bruno Haible <bruno@clisp.org>
19890 * m4/sigaction.m4: Comment fixes.
19891 * lib/signal.in.h: Likewise.
19893 2008-06-23 Eric Blake <ebb9@byu.net>
19896 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
19898 Avoid SA_ namespace.
19899 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
19900 Reported by Ralf Wildenhues.
19902 Avoid test failure due to SA_RESTORER.
19903 * tests/test-sigaction.c (SA_MASK): New macro.
19904 (main): Avoid failing due to extension flags being set.
19905 Reported by Jim Meyering.
19907 Revert use of sig-handler.h in sigprocmask.c.
19908 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
19909 it requires the existence of struct sigaction.
19910 * lib/sigprocmask.c (handler_t): Restore typedef.
19911 (rpl_signal, old_handlers): Use local type.
19913 2008-06-22 Bruno Haible <bruno@clisp.org>
19915 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
19917 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19919 2008-06-22 Bruno Haible <bruno@clisp.org>
19921 * doc/posix-functions/siginterrupt.texi: Move note.
19923 * lib/signal.in.h (SA_RESTART): New macro.
19924 * lib/sigaction.c: Update comment.
19926 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
19928 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
19929 (gl_PREREQ_SIGPROCMASK): Invoke it.
19930 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
19932 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
19934 * lib/sigprocmask.c: Update a comment.
19936 2008-06-21 Eric Blake <ebb9@byu.net>
19938 Use sigaction module rather than signal().
19939 * modules/c-stack (Depends-on): Add sigaction.
19940 * modules/fatal-signal (Depends-on): Likewise.
19941 * modules/nanosleep (Depends-on): Likewise.
19942 * modules/sigprocmask (Files): Add sig-handler.h.
19943 * modules/sigaction (Files): Likewise.
19944 * lib/sig-handler.h (get_handler): New file, suggested by Paul
19946 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
19947 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
19948 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
19949 (init_fatal_signals): Likewise.
19950 * lib/nanosleep.c (rpl_nanosleep): Likewise.
19951 (siginterrupt): Delete fallback.
19952 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
19954 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
19957 New module sigaction, for mingw.
19958 * modules/sigaction: New module...
19959 * modules/sigaction-tests: ...and its test.
19960 * m4/sigaction.m4: New file.
19961 * lib/sigaction.c: Likewise.
19962 * tests/test-sigaction.c: Likewise.
19963 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
19964 * modules/signal (Makefile.am): Likewise.
19965 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
19967 * doc/posix-headers/signal.texi (signal.h): Mention provided
19969 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
19970 that sigaction is preferable.
19971 * doc/posix-functions/sigaction.texi (sigaction): Mention new
19973 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19976 Improve robustness of sigprocmask by overriding signal.
19977 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
19979 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
19980 (SIGKILL, SIGSTOP): Provide fallbacks.
19981 (rpl_signal): Implement.
19982 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
19983 signal can be called inside handlers.
19985 Fix nanosleep module on mingw.
19986 * modules/nanosleep (Depends-on): Add sys_select.
19987 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
19989 Fix licensing of sigprocmask.
19990 * modules/raise (License): Relicense as LGPL.
19992 2008-06-21 Bruno Haible <bruno@clisp.org>
19994 * lib/propername.c (proper_name_utf8): Don't use the transliterated
19995 result if it contains question marks.
19996 Reported by Michael Geng <linux@michaelgeng.de>.
19998 2008-06-19 Bruno Haible <bruno@clisp.org>
20001 * doc/gnulib.texi: Include updated-stamp.texi.
20002 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
20003 (updated-stamp.texi): New rule.
20004 (gnulib.info): Depend on it.
20005 * doc/.gitignore: Add updated-stamp.texi.
20006 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
20008 2008-06-19 Bruno Haible <bruno@clisp.org>
20010 * doc/Makefile (gnulib.info): Update and simplify dependencies.
20011 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20013 2008-06-19 Eric Blake <ebb9@byu.net>
20015 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
20016 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
20017 Reported by Stepan Kasal.
20019 2008-06-18 Bruno Haible <bruno@clisp.org>
20021 * lib/fatal-signal.c (init_fatal_signals): Add comment.
20022 Reported by Eric Blake.
20024 2008-06-18 Eric Blake <ebb9@byu.net>
20026 Work around cygwin 1.5.25 strsignal bug.
20027 * tests/test-strsignal.c: Allow for const char *.
20028 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
20030 2008-06-18 Simon Josefsson <simon@josefsson.org>
20032 * users.txt: Update URL to article and add author/date
20035 2008-06-17 Bruno Haible <bruno@clisp.org>
20037 New macro gl_DISABLE_THREADS.
20038 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
20039 if the user did not pass --enable-threads or --disable-threads option.
20040 (gl_DISABLE_THREADS): New macro.
20041 Reported by Eric Blake <ebb9@byu.net>.
20043 2008-06-17 Bruno Haible <bruno@clisp.org>
20045 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
20046 when the macro ignores it.
20047 Based on a patch by Eric Blake <ebb9@byu.net>.
20049 2008-06-17 Bruno Haible <bruno@clisp.org>
20051 * modules/tls (License): Change to LGPLv2+.
20052 Reported by Eric Blake.
20054 2008-06-17 Eric Blake <ebb9@byu.net>
20056 Simplify c-stack prerequisites.
20057 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
20058 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
20059 no longer requires <ucontext.h> to exist. Optimize setrlimit
20061 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
20064 Move c-stack test into testsuite.
20065 * modules/c-stack-tests: New file.
20066 * lib/c-stack.c [DEBUG]: Move test program...
20067 * tests/test-c-stack.c: ...into this new file. Skip rather than
20068 fail test if sigaltstack is lacking.
20069 * tests/test-c-stack.sh: New driver file.
20071 2008-06-16 Eric Blake <ebb9@byu.net>
20073 Use raise module consistently.
20074 * modules/fatal-signal (Depends-on): Add raise.
20075 * modules/sigprocmask (Depends-on): Likewise.
20076 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
20077 * lib/sigprocmask.c (sigprocmask): Likewise.
20078 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20079 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
20081 Fix compliance bug in sigpending.
20082 * lib/sigprocmask.c (sigpending): Return pending array via
20083 parameter, not return value.
20085 2008-06-14 Eric Blake <ebb9@byu.net>
20087 Improve obstack-printf test code.
20088 * tests/test-obstack-printf.c (test_function): Fix comment, and
20089 simplify usage of obstack_* in macros. Add a test for coverage.
20090 Reported by Bruno Haible.
20092 2008-06-14 Bruno Haible <bruno@clisp.org>
20094 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
20095 array size as a constant, not as a const variable.
20096 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
20097 AC_USE_SYSTEM_EXTENSIONS.
20098 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
20099 Test whether the obstack_printf function actually exists.
20100 * modules/obstack-printf (Depends-on): Add extensions.
20101 (Include): Remove obstack.h.
20102 * modules/obstack-printf-posix (Depends-on): Add extensions.
20103 (Include): Remove obstack.h.
20105 2008-06-13 Eric Blake <ebb9@byu.net>
20107 Add obstack-printf and obstack-printf-posix modules.
20108 * modules/obstack-printf: New file.
20109 * modules/obstack-printf-posix: Likewise.
20110 * MODULES.html.sh (Misc): Mention them.
20111 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
20113 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
20115 * modules/stdio (Makefile.am): Accomodate new modules.
20116 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20117 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
20119 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
20121 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
20122 (gl_REPLACE_OBSTACK_PRINTF): New macros
20123 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
20124 * tests/test-obstack-printf.c: New file.
20125 * modules/obstack-printf-tests: Likewise.
20126 * modules/obstack-printf-posix-tests: Likewise.
20128 2008-06-11 Bruno Haible <bruno@clisp.org>
20130 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
20131 * lib/open.c: Include errno.h.
20132 (open): Fail when attempting to write to a file that has a trailing
20134 * tests/test-open.c (main): Test against trailing slash bug.
20135 * doc/posix-functions/open.texi: Mention the trailing slash bug.
20137 2008-06-10 Bruno Haible <bruno@clisp.org>
20139 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
20140 for $? to work inside the trap command, with various /bin/sh-s.
20141 * tests/test-vc-list-files-cvs.sh: Likewise.
20143 2008-06-10 Bruno Haible <bruno@clisp.org>
20145 * lib/acl-internal.h: Don't include gettext.h here.
20146 * lib/set-mode-acl.c: Include gettext.h here.
20147 * lib/copy-acl.c: Likewise.
20149 2008-06-10 Bruno Haible <bruno@clisp.org>
20151 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
20152 * lib/wait-process.c (wait_subprocess): Likewise.
20153 * lib/execute.h (execute): Add termsigp argument.
20154 * lib/execute.c (execute): Likewise.
20155 * lib/csharpcomp.c (compile_csharp_using_pnet,
20156 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
20157 * lib/csharpexec.c (execute_csharp_using_pnet,
20158 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
20159 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
20160 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
20161 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
20162 is_jikes_present): Update.
20163 * lib/javaexec.c (execute_java_class): Update.
20164 * lib/javaversion.c (execute_and_read_line): Update.
20165 * NEWS: Document the changes.
20166 Reported by Eric Blake.
20168 2008-06-10 Eric Blake <ebb9@byu.net>
20170 Add missing include.
20171 * tests/test-strstr.c (includes): Add <signal.h>.
20172 * tests/test-strcasestr.c (includes): Likewise.
20173 * tests/test-memmem.c (includes): Likewise.
20175 2008-06-10 Bruno Haible <bruno@clisp.org>
20177 * lib/wait-process.c (wait_subprocess): Add an assertion.
20179 2008-06-10 Bruno Haible <bruno@clisp.org>
20181 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
20183 2008-06-10 Bruno Haible <bruno@clisp.org>
20185 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
20187 * tests/test-strcasestr.c (main): Likewise.
20188 * tests/test-strstr.c (main): Likewise.
20190 2008-06-09 Bruno Haible <bruno@clisp.org>
20192 Work around the Solaris 10 ACE ACLs ABI change.
20193 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
20194 declare if ACL_NO_TRIVIAL is present.
20195 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
20196 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
20197 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
20198 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
20199 define if ACL_NO_TRIVIAL is present.
20200 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
20201 and use the current ABI.
20202 (file_has_acl): Use same #if condition as elsewhere.
20203 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
20204 in use, and use the current ABI.
20205 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
20206 Reported by Jim Meyering.
20208 2008-06-09 Eric Blake <ebb9@byu.net>
20210 Work around environments that (stupidly) ignore SIGALRM.
20211 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
20212 before using alarm().
20213 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20214 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20215 Reported by Ian Beckwith <ianb@erislabs.net>.
20217 Produce autobuild blurb earlier in log.
20218 * modules/autobuild (configure.ac-early): Move AB_INIT here.
20220 2008-06-09 Jim Meyering <meyering@redhat.com>
20221 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
20223 utimens.c: correct kernel bug work-around
20224 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
20225 failure, not success, and the kernel bug we're trying to work
20226 around affects not just the utimensat call, but also the fallback
20228 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
20230 [HAVE_FUTIMENS]: Use the same work-around, here.
20232 2008-06-09 Jim Meyering <meyering@redhat.com>
20234 add more guards around definition of ACE_-related code
20235 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
20236 ALLOW and ACE_OWNER are also defined.
20238 2008-06-08 Bruno Haible <bruno@clisp.org>
20240 * lib/acl-internal.h: Add me as co-author.
20241 * lib/file-has-acl.c: Likewise.
20242 * lib/set-mode-acl.c: Likewise.
20243 * lib/copy-acl.c: Likewise.
20245 2008-06-08 Bruno Haible <bruno@clisp.org>
20247 Add support for AIX ACLs.
20248 * lib/acl-internal.h (acl_nontrivial): New declaration.
20249 * lib/file-has-acl.c (acl_nontrivial): New function.
20250 (file_has_acl): Add implementation using AIX 4 ACL API.
20251 * lib/set-mode-acl.c (qset_acl): Likewise.
20252 * lib/copy-acl.c (qcopy_acl): Likewise.
20254 2008-06-08 Bruno Haible <bruno@clisp.org>
20256 Add support for HP-UX ACLs.
20257 * lib/acl-internal.h (acl_nontrivial): New declaration.
20258 * lib/file-has-acl.c (acl_nontrivial): New function.
20259 (file_has_acl): Add implementation using HP-UX 11 ACL API.
20260 * lib/set-mode-acl.c (qset_acl): Likewise.
20261 * lib/copy-acl.c (qcopy_acl): Likewise.
20263 2008-06-08 Bruno Haible <bruno@clisp.org>
20265 Add support for Cygwin ACLs.
20266 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
20267 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
20268 the chmod_or_fchmod call.
20269 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
20271 2008-06-08 Bruno Haible <bruno@clisp.org>
20273 Fix bug with setuid modes in Solaris 10+ code.
20274 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
20275 succeeded, when the mode contains some special bits.
20277 2008-06-08 Bruno Haible <bruno@clisp.org>
20279 Add support for Solaris 7..10 ACLs.
20280 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
20282 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
20284 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
20285 * lib/set-mode-acl.c (qset_acl): Likewise.
20286 * lib/copy-acl.c (qcopy_acl): Likewise.
20288 2008-06-08 Bruno Haible <bruno@clisp.org>
20290 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
20292 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
20293 (acl_access_nontrivial): Remove MacOS X case.
20294 (file_has_acl): Use acl_extended_nontrivial.
20295 * lib/copy-acl.c (qcopy_acl): Likewise.
20297 2008-06-08 Bruno Haible <bruno@clisp.org>
20299 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
20301 2008-06-08 Jim Meyering <meyering@redhat.com>
20303 * modules/acl (Maintainer): Add Bruno Haible.
20305 2008-06-07 Bruno Haible <bruno@clisp.org>
20307 Improve support for Tru64 ACLs.
20308 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
20311 2008-06-07 Bruno Haible <bruno@clisp.org>
20313 Add support for MacOS X ACLs.
20314 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
20315 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
20316 * lib/set-mode-acl.c (qset_acl): Likewise.
20317 * lib/copy-acl.c (qcopy_acl): Likewise.
20319 2008-06-07 Bruno Haible <bruno@clisp.org>
20321 Fix memory leak introduced on 2008-05-22.
20322 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
20325 2008-06-07 Bruno Haible <bruno@clisp.org>
20327 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
20328 to construct an empty ACL.
20330 2008-06-07 Bruno Haible <bruno@clisp.org>
20332 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
20334 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
20336 2008-06-07 Bruno Haible <bruno@clisp.org>
20338 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
20339 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
20341 2008-06-07 Bruno Haible <bruno@clisp.org>
20343 * doc/posix-functions/_setjmp.texi: Explain the use of this function
20344 regardless of POSIX.
20345 * doc/posix-functions/_longjmp.texi: Likewise.
20346 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
20347 SystemV platform in this case.
20349 2008-06-06 Eric Blake <ebb9@byu.net>
20351 Document abort() bugs.
20352 * doc/posix-functions/abort.texi (abort): Mention anomalies.
20354 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
20355 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
20357 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
20358 siglongjmp, but only as a macro.
20359 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
20361 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
20363 Tweak documentation to cover cygwin argz bugs.
20364 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
20365 argz bug fix; no code change needed since no cygwin releases
20366 occurred between the last fix and the bug being tested.
20367 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
20368 module and recently fixed cygwin bugs.
20369 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
20370 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
20371 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
20372 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
20373 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
20375 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
20376 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
20377 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
20378 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
20379 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
20380 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
20383 Avoid gcc warning on cygwin.
20384 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
20385 !ACL_NO_TRIVIAL]: Avoid unused variable.
20387 2008-06-05 Eric Blake <ebb9@byu.net>
20389 Be tolerant of UNKNOWN version in gnulib-tool test dir.
20390 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
20391 git-version-gen fails to come up with a version.
20392 Reported by Simon Josefsson.
20394 2008-06-05 Jim Meyering <meyering@redhat.com>
20395 Paul Eggert <eggert@cs.ucla.edu>
20397 utimens.c: work around a probable Linux kernel bug
20398 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
20399 appears to be a kernel bug that causes utimensat to return 280
20400 instead of 0, indicating success.
20402 2008-06-04 Bruno Haible <bruno@clisp.org>
20404 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
20407 2008-06-04 Bruno Haible <bruno@clisp.org>
20409 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
20410 * lib/file-has-acl.c (acl_access_nontrivial): New function.
20411 (file_has_acl): Use it. Save errno afterwards.
20412 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
20414 2008-06-03 Bruno Haible <bruno@clisp.org>
20416 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
20417 draft code. Simplify #ifs.
20418 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
20419 Put Solaris code after POSIX-draft code. Fix comments regarding
20420 Solaris 10, HP-UX. Mention Cygwin.
20421 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
20423 2008-06-03 Eric Blake <ebb9@byu.net>
20425 Provide fallback for older kernels.
20426 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
20427 Provide runtime fallback if kernel lacks support.
20428 Reported by Mike Frysinger.
20430 2008-06-02 Bruno Haible <bruno@clisp.org>
20432 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
20435 2008-06-02 Bruno Haible <bruno@clisp.org>
20437 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
20438 * lib/copy-acl.c (qcopy_acl): Update comment.
20440 2008-06-02 Bruno Haible <bruno@clisp.org>
20442 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
20445 2008-06-02 Bruno Haible <bruno@clisp.org>
20447 * tests/test-file-has-acl.sh: Use different code for Cygwin.
20448 * tests/test-set-mode-acl.sh: Likewise.
20449 * tests/test-copy-acl.sh: Likewise.
20450 * tests/test-copy-file.sh: Likewise.
20452 2008-06-02 Bruno Haible <bruno@clisp.org>
20454 * tests/test-file-has-acl.sh: Remove unused code.
20456 2008-06-01 Bruno Haible <bruno@clisp.org>
20458 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
20459 (copy_acl): Just a wrapper around qcopy_acl that emits the error
20461 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
20463 2008-06-01 Bruno Haible <bruno@clisp.org>
20465 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
20466 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
20467 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
20469 * modules/acl-tests (configure.ac): Remove tests now contained in
20472 2008-06-02 Jim Meyering <meyering@redhat.com>
20474 announce-gen: use a better key-server host name
20475 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
20476 it may be more consistently reliable. Suggested by Werner Koch
20477 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
20479 2008-06-01 Bruno Haible <bruno@clisp.org>
20481 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
20482 Reported by Voroskoi Andras <voroskoi@gmail.com>.
20484 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
20486 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
20488 2008-06-01 Bruno Haible <bruno@clisp.org>
20491 * tests/test-file-has-acl.sh: New file.
20492 * tests/test-file-has-acl.c: New file.
20493 * tests/test-set-mode-acl.sh: New file.
20494 * tests/test-set-mode-acl.c: New file.
20495 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
20496 * tests/test-copy-acl.c: New file.
20497 * modules/acl-tests: New file, based on modules/copy-file-tests.
20498 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
20499 (Depends-on): Add acl-tests.
20500 (configure.ac): Remove checks.
20501 (Makefile.am): Don't create test-sameacls program here any more.
20503 2008-06-01 Bruno Haible <bruno@clisp.org>
20505 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
20506 * tests/test-sameacls.c: Include progname.h.
20507 (main): Invoke set_program_name. Portability fixes for MacOS X,
20510 2008-06-01 Bruno Haible <bruno@clisp.org>
20512 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
20514 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
20516 2008-06-01 Bruno Haible <bruno@clisp.org>
20518 * modules/rpmatch (Depends-on): Add strdup.
20520 2008-06-01 Bruno Haible <bruno@clisp.org>
20522 * lib/pipe.c: Include unistd-safer.h.
20523 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
20524 * modules/pipe (Depends-on): Add unistd-safer.
20526 2008-05-30 Simon Josefsson <simon@josefsson.org>
20528 * modules/autobuild (configure.ac): Call AB_INIT.
20530 2008-05-30 Simon Josefsson <simon@josefsson.org>
20532 * tests/test-getaddrinfo.c: Don't print debug messages by default.
20533 Suggested by Bruno Haible <bruno@clisp.org>.
20535 2008-05-30 Simon Josefsson <simon@josefsson.org>
20537 * tests/test-base64.c: Cast size_t to unsigned long when invoking
20538 printf. Use %lu instead of %d. Reported by Bruno Haible
20541 2008-05-29 Eric Blake <ebb9@byu.net>
20543 Prefer new POSIX 200x interfaces over futimesat.
20544 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
20545 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
20547 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
20549 2008-05-28 Bruno Haible <bruno@clisp.org>
20551 * modules/stpcpy (License): Change to LGPLv2+.
20552 Requested by David Lutterkort <dlutter@redhat.com>.
20554 2008-05-27 Bruno Haible <bruno@clisp.org>
20556 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
20558 Reported by Jose E. Marchesi <jemarch@gnu.org>.
20560 2008-05-27 Bruno Haible <bruno@clisp.org>
20562 * modules/iconv_open (Link): New section, from module 'iconv'.
20563 * modules/striconv (Link): Likewise.
20564 * modules/striconveh (Link): Likewise.
20565 * modules/xstriconv (Link): Likewise.
20566 * modules/unicodeio (Link): Likewise.
20567 * modules/propername (Link): Likewise.
20568 Reported by Jim Meyering.
20570 2008-05-26 Jim Meyering <meyering@redhat.com>
20572 sha256: do not artificially restrict buffer length to be < 2^32
20573 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
20574 uint32_t to size_t.
20575 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
20578 avoid unaligned access errors, e.g., on sparc
20579 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
20580 direct access through a possibly-unaligned uint64* pointer.
20581 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
20582 direct access through a possibly-unaligned uint32* pointer.
20583 Prompted by this patch from Tom "spot" Callaway:
20584 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
20586 sha512.c: fix typo in comment
20587 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
20589 2008-05-25 Bruno Haible <bruno@clisp.org>
20591 * lib/set-mode-acl.c: Renamed from lib/acl.c.
20592 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
20593 (Makefile.am): Update lib_SOURCES.
20595 2008-05-25 Bruno Haible <bruno@clisp.org>
20597 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
20599 2008-05-25 Jim Meyering <meyering@redhat.com>
20601 useless-if-before-free: freed expr may have white-space differences
20602 * build-aux/useless-if-before-free: Recognize cases in which the
20603 freed expression differs from the tested one in embedded white
20604 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
20605 $1 was used, so we can't make any regexp shy. Improved tests now
20608 useless-if-before-free: accept white space in the expression.
20609 * build-aux/useless-if-before-free: For now, any white space
20610 in the expression must be identical in the free argument.
20612 useless-if-before-free: efficiency tweak
20613 * build-aux/useless-if-before-free: Make the expression-matching
20615 Make the *outer* regexp shy, not the expr-matching one.
20617 update code-in-comment to accept cast of free arg
20618 * build-aux/useless-if-before-free: Update regexp.
20620 2008-05-25 Bruno Haible <bruno@clisp.org>
20622 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
20623 * modules/copy-file-tests (Files, Makefile.am): Update.
20624 * tests/test-copy-file.c (func_test_copy): Update.
20626 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
20628 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
20630 2008-05-23 Bruno Haible <bruno@clisp.org>
20632 Improve support for ACLs on OSF/1.
20633 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
20634 Remove fallback for unknown flavors of ACLs.
20636 2008-05-22 Bruno Haible <bruno@clisp.org>
20638 Add support for ACLs on OSF/1.
20639 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
20641 (acl_free_text): New macro fallback.
20642 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
20644 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
20645 acl_free_text function. Require AC_C_INLINE.
20647 2008-05-22 Bruno Haible <bruno@clisp.org>
20649 Make copy_acl work on MacOS X 10.5.
20650 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
20651 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
20652 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
20653 If MODE_INSIDE_ACL, don't assume that every system has the same text
20654 representation for ACLs as FreeBSD.
20655 * lib/copy-acl.c (copy_acl): Add support for platforms with
20657 * lib/file-has-acl.c (file_has_acl): Likewise.
20658 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
20659 FreeBSD, MacOS X, or IRIX, respectively.
20661 2008-05-22 Bruno Haible <bruno@clisp.org>
20663 * lib/acl.h: Don't include <sys/acl.h>.
20664 (GETACLCNT): Move fallback to lib/acl-internal.h.
20665 * lib/acl-internal.h: Include <sys/acl.h> here.
20666 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
20668 2008-05-22 Bruno Haible <bruno@clisp.org>
20670 Split off copy_acl function to separate file.
20671 * lib/copy-acl.c: New file, extracted from lib/acl.c.
20672 * lib/acl.c (copy_acl): Moved function to separate file.
20673 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
20674 * modules/acl (Files): Add lib/copy-acl.c.
20675 (Makefiles.am): Augment lib_SOURCES.
20677 2008-05-22 Bruno Haible <bruno@clisp.org>
20679 * modules/copy-file-tests: New file.
20680 * tests/test-copy-file.sh: New file.
20681 * tests/test-copy-file.c: New file.
20682 * tests/test-copy-file-sameacls.c: New file.
20684 2008-05-22 Eric Blake <ebb9@byu.net>
20687 * tests/test-memcmp.c (main): Pass NULL indirectly.
20689 2008-05-21 Bruno Haible <bruno@clisp.org>
20691 Add reference doc about ACLs.
20692 * doc/acl-resources.txt: New file.
20693 * doc/acl-cygwin.txt: New file.
20695 2008-05-21 Bruno Haible <bruno@clisp.org>
20697 Avoid one more warning from gcc.
20698 * lib/vasnprintf.c (IF_LINT): Update comments.
20699 (VASNPRINTF): Use it also for the 'prefix' array initializer.
20701 2008-05-21 Jim Meyering <meyering@redhat.com>
20703 avoid a warning from gcc
20704 * lib/vasnprintf.c (IF_LINT): Define.
20705 (scale10_round_decimal_long_double):
20706 Use it to avoid a "may be used uninitialized" warning.
20707 (scale10_round_decimal_double): Likewise.
20709 2008-05-21 Simon Josefsson <simon@josefsson.org>
20711 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
20714 2008-05-20 Bruno Haible <bruno@clisp.org>
20716 * tests/test-memcmp.c (main): Test also the sign of the result. Test
20717 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
20719 2008-05-20 Simon Josefsson <simon@josefsson.org>
20721 * modules/memcmp-tests: New file.
20722 * tests/test-memcmp.c: New file.
20724 2008-05-19 Bruno Haible <bruno@clisp.org>
20726 * modules/propername (Notice, configure.ac): Put quoted "..." into
20728 * lib/propername.h: Update comments accordingly.
20729 Reported by Eric Blake.
20731 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
20733 * modules/getpass-gnu (Depends-on): Add fseeko.
20735 2008-05-19 Simon Josefsson <simon@josefsson.org>
20737 * modules/base64-tests: New file.
20739 2008-05-19 Bo Borgerson <gigabo@gmail.com>
20741 * lib/base64.c (base64_decode_ctx): If a decode context structure
20742 was passed in use it to ignore newlines. If a context structure
20743 was _not_ passed in, continue to treat newlines as garbage (this
20744 is the historical behavior). Formerly base64_decode.
20745 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
20746 takes a decode context structure.
20747 * lib/base64.h (base64_decode): Macro for four-argument calls.
20748 (base64_decode_alloc): Likewise.
20749 * lib/base64.c (base64_decode_ctx): If a decode context structure
20750 was passed in use it to ignore newlines. If a context structure
20751 was _not_ passed in, continue to treat newlines as garbage (this
20752 is the historical behavior). Formerly base64_decode.
20753 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
20754 takes a decode context structure.
20755 * lib/base64.h (base64_decode): Macro for four-argument calls.
20756 (base64_decode_alloc): Likewise.
20758 2008-05-19 Jim Meyering <meyering@redhat.com>
20760 avoid a warning from gcc
20761 * lib/trim.c (IF_LINT): Define.
20762 (trim2): Use it to avoid a "may be used uninitialized" warning.
20765 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
20767 2008-05-19 Bruno Haible <bruno@clisp.org>
20769 * doc/glibc-functions/getpass.texi: Document limits of other
20772 2008-05-19 Simon Josefsson <simon@josefsson.org>
20773 Bruno Haible <bruno@clisp.org>
20775 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
20777 2008-05-18 Bruno Haible <bruno@clisp.org>
20779 * modules/propername: New file, from GNU gettext.
20780 * lib/propername.h: New file, from GNU gettext.
20781 * lib/propername.c: New file, from GNU gettext.
20782 * MODULES.html.sh (Internationalization functions): Add propername.
20784 2008-05-16 Jim Meyering <meyering@redhat.com>
20785 Bruno Haible <bruno@clisp.org>
20787 Avoid some warnings from "gcc -Wshadow".
20788 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
20790 2008-05-15 Eric Blake <ebb9@byu.net>
20792 Extend previous patch to cygwin 1.7.0.
20793 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
20794 fast implementation in cygwin >= 1.7.0.
20795 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20796 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20798 2008-05-15 Bruno Haible <bruno@clisp.org>
20800 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
20801 implementation in glibc >= 2.9.
20802 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20803 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20805 2008-05-15 Bruno Haible <bruno@clisp.org>
20807 * MODULES.html.sh (Internationalization functions): Remove linebreak.
20808 (Unicode string functions): Add unilbrk/*.
20809 Reported by Karl Berry.
20811 2008-05-15 Eric Blake <ebb9@byu.net>
20813 Fix violation of <stdbool.h> replacement in regex.
20814 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
20815 * lib/regexec.c (re_search_internal): Likewise.
20816 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
20818 2008-05-15 Jim Meyering <meyering@redhat.com>
20820 avoid distracting test output when git or cvs is not found
20821 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
20822 * tests/test-vc-list-files-git.sh: Likewise.
20824 2008-05-15 Eric Blake <ebb9@byu.net>
20826 Glibc finally accepted the memmem speedup code, bugzilla #5514.
20827 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
20829 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20830 * doc/posix-functions/strstr.texi (strstr): Likewise.
20831 * lib/str-two-way.h (MAX): Sychronize with glibc.
20833 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
20835 * lib/regcomp.c (optimize_utf8): Add a note on why we test
20837 (calc_first): Initialize constraint field.
20838 (duplicate_node_closure): Use it instead of special casing ANCHORS.
20840 (duplicate_node): Merge constraint field for all node types.
20841 (calc_eclosure_iter): Look at constraint field for all node types.
20842 * lib/regex_internal.c (create_cd_newstate): Don't look at
20845 2008-05-14 Bruno Haible <bruno@clisp.org>
20847 Help GCC to do better code generation.
20848 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
20849 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20850 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
20851 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
20852 Declare with attribute 'malloc' if supported.
20854 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
20856 use "echo STR|wc -c" rather than unportable "expr length STR"
20857 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
20858 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
20860 2008-05-14 Jim Meyering <meyering@redhat.com>
20862 use dd ibs=$n count=1 ... rather than less-portable head -c$n
20863 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
20864 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
20865 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
20868 2008-05-14 Eric Blake <ebb9@byu.net>
20870 Avoid quadratic growth in gl_LIBSOURCES.
20871 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
20872 Suggested by Bruno Haible.
20875 * modules/xmemdup0-tests: New file.
20876 * tests/test-xmemdup0.c: Likewise.
20878 2008-05-13 Eric Blake <ebb9@byu.net>
20880 Split xmemdup0 into its own module.
20881 * modules/xmemdup0: New file.
20882 * lib/xmemdup0.h: Likewise.
20883 * lib/xmemdup0.c: Likewise.
20884 * MODULES.html.sh (Memory management functions): Add xmemdup0.
20885 * lib/xalloc.h (xmemdup0): Remove.
20886 * lib/xmalloc.c (xmemdup0): Likewise.
20888 2008-05-13 Eric Blake <ebb9@byu.net>
20889 Bruno Haible <bruno@clisp.org>
20891 Reduce number of forks required during autoconf.
20892 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
20893 and gl_LIBSOURCES_DIR.
20894 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
20895 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
20896 m4_syscmd per file.
20897 <m4_foreach_w>: Move...
20898 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
20900 2008-05-13 Eric Blake <ebb9@byu.net>
20902 * gnulib-tool: Fix various comment typos.
20904 2008-05-12 Bruno Haible <bruno@clisp.org>
20906 Tailor the linebreaking algorithm.
20907 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
20909 2008-05-12 Bruno Haible <bruno@clisp.org>
20911 Update to Unicode 5.0.0.
20912 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
20913 LBP_JV, LBP_JT. Redistribute values.
20914 (unilbrk_table): Change size.
20915 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
20916 Unicode TR#14 rev. 22.
20917 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
20918 LBP_JV, LBP_JT. Redistribute values.
20919 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
20920 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
20922 * lib/unilbrk/lbrkprop1.h: Regenerated.
20923 * lib/unilbrk/lbrkprop2.h: Regenerated.
20924 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
20925 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
20926 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
20928 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
20930 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
20932 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20933 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20934 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
20935 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
20936 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
20937 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
20939 2008-05-11 Bruno Haible <bruno@clisp.org>
20941 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
20943 2008-05-11 Bruno Haible <bruno@clisp.org>
20945 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
20946 * modules/unilbrk/gen-lbrk: New file.
20948 2008-05-11 Bruno Haible <bruno@clisp.org>
20950 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
20951 * m4/sha512.m4 (gl_SHA512): Likewise.
20953 2008-05-11 Jim Meyering <meyering@redhat.com>
20955 New modules: crypto/sha256, crypto/sha512 (from coreutils)
20956 * modules/crypto/sha256: New file.
20957 * modules/crypto/sha512: Likewise.
20958 * lib/sha256.c: Likewise.
20959 * lib/sha256.h: Likewise.
20960 * lib/sha512.c: Likewise.
20961 * lib/sha512.h: Likewise.
20962 * lib/u64.h: Likewise.
20963 * m4/sha256.m4: Likewise.
20964 * m4/sha512.m4: Likewise.
20965 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
20967 2008-05-10 Bruno Haible <bruno@clisp.org>
20969 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
20970 (Input/Output <stdio.h>): Add xprintf.
20971 (Signal handling <signal.h>): Add strsignal.
20972 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
20973 (Core language properties): Add func.
20974 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
20975 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
20977 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
20978 (Input/output): New section.
20979 (File system functions): Add openat-die, stat-macros.
20980 (Networking functions): Add sockets.
20981 (Unicode string functions): Add unictype/*.
20982 (Support for building libraries and executables): Add gperf.
20983 (Support for building documentation): Add agpl-3.0.
20984 (Misc): Add nocrash.
20986 2008-05-10 Bruno Haible <bruno@clisp.org>
20988 * modules/unictype/gen-ctype: New file.
20990 2008-05-10 Jim Meyering <meyering@redhat.com>
20992 Make chdir-safer.c more efficient on a system with no symlinks.
20993 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
20994 also if ELOOP is zero. Suggested by Bruno Haible.
20996 Make chdir-safer.c slightly safer.
20997 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
20998 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
21000 Avoid compile failure on systems without ELOOP (like mingw).
21001 * lib/chdir-safer.c (ELOOP): Define if not already defined.
21002 Reported by Bruno Haible.
21004 2008-05-10 Bruno Haible <bruno@clisp.org>
21006 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
21007 (is_utf8_encoding): Use a case-insensitive comparison.
21008 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
21011 2008-05-10 Bruno Haible <bruno@clisp.org>
21013 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
21014 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
21015 * lib/unilbrk/ulc-common.h (iconv_string_length,
21016 iconv_string_keeping_offsets): Remove declarations.
21017 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
21018 Don't include <iconv.h>, streq.h, xsize.h.
21019 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
21021 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
21022 <iconv.h>, streq.h, xsize.h.
21023 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
21025 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
21026 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
21027 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
21028 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
21030 2008-05-10 Bruno Haible <bruno@clisp.org>
21032 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
21033 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
21035 * modules/unilbrk/u32-width-linebreaks-tests: New file.
21036 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
21038 * modules/unilbrk/u16-width-linebreaks-tests: New file.
21039 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
21041 * modules/unilbrk/u8-width-linebreaks-tests: New file.
21042 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
21044 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
21045 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
21047 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
21048 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
21050 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
21051 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
21053 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
21054 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
21056 2008-05-10 Bruno Haible <bruno@clisp.org>
21058 Split up 'linebreak' module.
21059 * lib/unilbrk.h: New file, based on lib/linebreak.h.
21060 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
21061 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
21063 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
21064 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
21065 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
21067 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
21069 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
21071 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
21072 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
21073 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
21075 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
21077 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
21079 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
21081 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
21083 * modules/unilbrk/base: New file.
21084 * modules/unilbrk/tables: New file.
21085 * modules/unilbrk/u8-possible-linebreaks: New file.
21086 * modules/unilbrk/u16-possible-linebreaks: New file.
21087 * modules/unilbrk/u32-possible-linebreaks: New file.
21088 * modules/unilbrk/ulc-common: New file.
21089 * modules/unilbrk/ulc-possible-linebreaks: New file.
21090 * modules/unilbrk/u8-width-linebreaks: New file.
21091 * modules/unilbrk/u16-width-linebreaks: New file.
21092 * modules/unilbrk/u32-width-linebreaks: New file.
21093 * modules/unilbrk/ulc-width-linebreaks: New file.
21094 * lib/linebreak.h: Remove file.
21095 * lib/linebreak.c: Remove file.
21096 * m4/linebreak.m4: Remove file.
21097 * modules/linebreak: Remove file.
21098 * NEWS: Mention the changes.
21100 2008-05-09 Eric Blake <ebb9@byu.net>
21103 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
21105 * lib/xmalloc.c (xmemdup0): New C implementation.
21107 2008-05-08 Bruno Haible <bruno@clisp.org>
21109 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
21111 2008-05-07 Eric Blake <ebb9@byu.net>
21113 Support cross-compilation of <wctype.h>.
21114 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
21117 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
21119 * build-aux/vc-list-files: Add support for bzr.
21121 2008-05-03 Jim Meyering <meyering@redhat.com>
21123 avoid failed assertion with tight malloc
21124 * tests/test-getndelim2.c: Correct an off-by-one assertion.
21126 2008-05-03 Simon Josefsson <simon@josefsson.org>
21128 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
21129 are needed from arpa/inet.h.
21130 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
21131 Reported by Bruno Haible.
21133 2008-05-02 Jim Meyering <meyering@redhat.com>
21135 avoid compilation error on FreeBSD 6
21136 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
21138 2008-05-01 Jim Meyering <meyering@redhat.com>
21140 useless-if-before-free: correct --help's exit status description
21141 * build-aux/useless-if-before-free (usage): Like grep, exit 0
21142 for one or more matches, etc. Reported by Bruno Haible.
21144 vc-list-files: make the stand-alone gnulib test work
21145 * modules/vc-list-files-tests (configure.ac):
21146 Define and AC_SUBST abs_aux_dir.
21147 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
21148 $(abs_top_srcdir) to each script and having each of them
21149 duplicate the work of setting PATH, set PATH here, using
21150 the new variable, abs_aux_dir instead.
21151 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
21152 * tests/test-vc-list-files-git.sh: Likewise.
21153 Reported by Bruno Haible.
21155 2008-05-01 Bruno Haible <bruno@clisp.org>
21157 * lib/getndelim2.c (getndelim2): Fix newsize computation during
21158 reallocation. Rename 'done' to 'found_delimiter'.
21160 2008-05-01 Jim Meyering <meyering@redhat.com>
21162 vc-list-files: accommodate /bin/sh like the one from Solaris 10
21163 * build-aux/vc-list-files: Use `...`, not $(...).
21165 2008-04-30 Jim Meyering <meyering@redhat.com>
21167 add tests for vc-list-files
21168 * modules/vc-list-files-tests: New module.
21169 * tests/test-vc-list-files-cvs.sh: New file.
21170 * tests/test-vc-list-files-git.sh: New file.
21172 avoid a warning from gcc
21173 * lib/getndelim2.c (IF_LINT): Define.
21174 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
21176 vc-list-files: work properly with build-aux/cvsu, too
21177 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
21178 to all cvs-based clauses.
21180 vc-list-files: work properly in the CVS+awk case, too
21181 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
21183 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
21184 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
21185 take more than one file argument, so . Add quotes, just in case $dir
21186 ever contains a shell meta-character. Prompted by Soren Hansen in
21187 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
21189 2008-04-29 Eric Blake <ebb9@byu.net>
21191 Optimize getndelim2 to use block operations when possible.
21192 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
21193 freadseek, and memchr2.
21194 * lib/getndelim2.c (getndelim2): Use them for block reads.
21196 2008-04-29 Bruno Haible <bruno@clisp.org>
21198 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
21199 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21200 * modules/inet_ntop (Depends-on): Add extensions.
21201 * modules/inet_pton (Depends-on): Likewise.
21202 Reported by Simon Josefsson.
21204 2008-04-29 Jim Meyering <meyering@redhat.com>
21206 When the is more than one match in a block, match all of them.
21207 * build-aux/useless-if-before-free: Iterate through each block
21208 until there are no more matches.
21210 Fix broken useless-if-before-free script.
21211 * build-aux/useless-if-before-free: Fix typo: missing "?" after
21212 the expression to match cast of argument to free-like function.
21214 2008-04-29 Eric Blake <ebb9@byu.net>
21217 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
21219 2008-04-29 Jim Meyering <meyering@redhat.com>
21221 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
21222 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
21223 by gnulib to exist and to declare e.g., inet_ntop.
21224 Don't include "inet_ntop.h", now removed.
21226 * m4/arpa_inet_h.m4: Remove trailing blanks.
21228 2008-04-29 Eric Blake <ebb9@byu.net>
21230 Silence valgrind on safe reads beyond potential array bounds.
21231 * lib/rawmemchr.valgrind: New file.
21232 * lib/strchrnul.valgrind: Likewise.
21233 * modules/rawmemchr (Files): Distribute new file.
21234 * modules/strchrnul (Files): Likewise.
21235 Suggested by Bruno Haible.
21237 2008-04-29 Bruno Haible <bruno@clisp.org>
21239 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
21240 (inet_ntop, inet_pton): Change portability warning's wording.
21241 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
21242 Invoke gl_CHECK_NEXT_HEADERS.
21243 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
21244 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
21246 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
21247 * modules/arpa_inet (Description): No longer only for systems that
21249 (Depends-on): Add include_next.
21250 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
21253 2008-04-29 Jim Meyering <meyering@redhat.com>
21255 * modules/mkdir (License): Re-license as LGPLv2+.
21257 2008-04-29 Bruno Haible <bruno@clisp.org>
21259 * modules/rawmemchr (Maintainer): Set to Eric.
21260 * modules/strchrnul (Maintainer): Likewise.
21262 2008-04-29 Simon Josefsson <simon@josefsson.org>
21264 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
21265 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
21267 * modules/arpa_inet (arpa/inet.h): Use them.
21269 2008-04-28 Eric Blake <ebb9@byu.net>
21272 * modules/getndelim2-tests: New file.
21273 * tests/test-getndelim2.c: Likewise.
21274 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
21276 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
21278 * MODULES.html.sh: Document new module.
21280 2008-04-20 Bruno Haible <bruno@clisp.org>
21282 * lib/c-stack.c (die): Use raise.
21283 * modules/c-stack (Depends-on): Add raise.
21285 2008-04-28 Bruno Haible <bruno@clisp.org>
21287 Expect rpmatch to be declared.
21288 * lib/yesno.c (rpmatch): Remove declaration.
21291 * lib/stdlib.in.h (rpmatch): New declaration.
21292 * lib/rpmatch.c: Include <stdlib.h> first.
21293 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
21294 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
21295 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
21297 * modules/rpmatch (Depends-on): Add stdlib, extensions.
21298 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
21299 (Include): Set to <stdlib.h>.
21300 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
21302 * NEWS: Document the change.
21304 2008-04-28 Bruno Haible <bruno@clisp.org>
21306 Change rpmatch to use nl_langinfo when appropriate.
21307 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
21309 (localized_pattern): New function/macro.
21310 (try): Remove match, nomatch arguments. Copy the pattern into safe
21311 memory before caching it.
21312 (rpmatch): Use localized_pattern. Add translator comments.
21313 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
21314 Suggested by Eric Blake.
21315 * modules/rpmatch (Depends-on): Add stdbool.
21317 2008-04-28 Eric Blake <ebb9@byu.net>
21319 Add rawmemchr module, matching glibc.
21320 * modules/string (Makefile.am): New indicator.
21321 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
21322 * lib/string.in.h (rawmemchr): Declare when appropriate.
21323 * modules/rawmemchr: New file.
21324 * m4/rawmemchr.m4: Likewise.
21325 * lib/rawmemchr.c: Likewise.
21326 * modules/rawmemchr-tests: Likewise.
21327 * tests/test-rawmemchr.c: Likewise.
21328 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
21330 * modules/strchrnul (Depends-on): Add rawmemchr.
21331 * lib/strchrnul.c (strchrnul): Optimize a corner case.
21333 Whitespace cleanup.
21334 * tests/test-strchrnul.c: Reindent.
21335 * lib/strchrnul.c: Likewise.
21337 Optimize and test strchrnul.
21338 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
21339 * modules/strchrnul-tests: New file.
21340 * tests/test-strchrnul.c: Likewise.
21342 Remove intprops dependency.
21343 * modules/memchr (Depends-on): Remove intprops.
21344 * modules/memrchr (Depends-on): Likewise.
21345 * modules/memchr2 (Depends-on): Likewise.
21346 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
21347 * lib/memrchr.c (__memrchr): Likewise.
21348 * lib/memrchr2.c (memchr2): Likewise.
21349 Reported by Simon Josefsson.
21351 2008-04-28 Simon Josefsson <simon@josefsson.org>
21353 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
21354 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21356 2008-04-28 Simon Josefsson <simon@josefsson.org>
21358 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
21360 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
21362 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
21364 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
21366 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
21368 * m4/inet_pton.m4: Don't check for header files.
21370 * m4/inet_ntop.m4: Don't check for header files.
21372 2008-04-28 Simon Josefsson <simon@josefsson.org>
21374 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
21375 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
21376 trigger for cygwin).
21377 Reported by Bruno Haible <bruno@clisp.org>.
21379 2008-04-28 Bruno Haible <bruno@clisp.org>
21381 * doc/posix-functions/strdup.texi: Mention mingw problem.
21383 2008-04-27 Bruno Haible <bruno@clisp.org>
21385 * modules/stat-time-tests (Depends-on): Add sleep.
21386 * tests/test-stat-time.c (force_unlink): New function.
21388 (test_mtime): Remove the ctime related tests.
21389 (test_ctime): New function, containing the ctime related tests.
21390 (main): Call test_ctime, except on native Windows platforms.
21392 2008-04-27 Bruno Haible <bruno@clisp.org>
21394 * lib/rpmatch.c (rpmatch): Add some comments.
21395 Reported by James Youngman <jay@gnu.org>.
21397 2008-04-27 Bruno Haible <bruno@clisp.org>
21399 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
21402 2008-04-27 Bruno Haible <bruno@clisp.org>
21404 Make test-yesno.sh work on mingw.
21405 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
21406 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
21407 (main): Set stdin to binary mode.
21408 * modules/yesno-tests (Depends-on): Add binary-io.
21410 2008-04-27 Bruno Haible <bruno@clisp.org>
21412 Fix 'isfinite' on x86, x86_64, ia64 platforms.
21413 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
21414 argument that lie outside the IEEE 854 domain.
21415 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
21416 (gl_ISFINITE): Use it.
21417 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
21419 2008-04-27 Bruno Haible <bruno@clisp.org>
21421 Allow local renaming in config.h.
21422 * lib/memrchr.c (memrchr): Don't undefine outside libc.
21424 2008-04-27 Bruno Haible <bruno@clisp.org>
21426 * lib/memchr.c (__memchr): Change type of 'i'.
21427 * lib/memchr2.c (memchr2): Likewise.
21429 2008-04-26 Eric Blake <ebb9@byu.net>
21430 and Bruno Haible <bruno@clisp.org>
21432 Optimize and test memrchr.
21433 * modules/memrchr (Depends-on): Add intprops.
21434 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
21435 * modules/memrchr-tests: New file.
21436 * tests/test-memrchr.c: New file.
21438 2008-04-26 Bruno Haible <bruno@clisp.org>
21440 Add tentative support for DragonFly BSD.
21441 * lib/stdio-impl.h: Add macros for DragonFly BSD.
21442 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
21444 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21445 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
21446 * lib/fpurge.c (fpurge): Likewise.
21447 * lib/freadable.c (freaadable): Likewise.
21448 * lib/freadahead.c (freadahead): Likewise.
21449 * lib/freading.c (freading): Likewise.
21450 * lib/freadptr.c (freadptr): Likewise.
21451 * lib/freadseek.c (freadptrinc): Likewise.
21452 * lib/fseeko.c (fseeko): Likewise.
21453 * lib/fseterr.c (fseterr): Likewise.
21454 * lib/fwritable.c (fwritable): Likewise.
21455 * lib/fwriting.c (fwriting): Likewise.
21457 2008-04-26 Bruno Haible <bruno@clisp.org>
21459 * lib/stdio-impl.h: New file.
21460 * lib/fbufmode.c: Include stdio-impl.h.
21461 (fbufmode): Use fp_, remove redundant #defines.
21462 * lib/fflush.c: Include stdio-impl.h.
21463 (clear_ungetc_buffer): Remove redundant #defines.
21464 * lib/fpurge.c: Include stdio-impl.h.
21465 (fpurge): Remove redundant #defines.
21466 * lib/freadable.c: Include stdio-impl.h.
21467 (freadable): Remove redundant #defines.
21468 * lib/freadahead.c: Include stdio-impl.h.
21469 (freadahead): Remove redundant #defines.
21470 * lib/freading.c: Include stdio-impl.h.
21471 (freading): Remove redundant #defines.
21472 * lib/freadptr.c: Include stdio-impl.h.
21473 (freadptr): Remove redundant #defines.
21474 * lib/freadseek.c: Include stdio-impl.h.
21475 (freadptrinc): Remove redundant #defines.
21476 * lib/fseeko.c: Include stdio-impl.h.
21477 (rpl_fseeko): Remove redundant #defines.
21478 * lib/fseterr.c: Include stdio-impl.h.
21479 (fseterr): Remove redundant #defines.
21480 * lib/fwritable.c: Include stdio-impl.h.
21481 (fwritable: Remove redundant #defines.
21482 * lib/fwriting.c: Include stdio-impl.h.
21483 (fwriting): Remove redundant #defines.
21484 * modules/fbufmode (Files): Add lib/stdio-impl.h.
21485 * modules/fflush (Files): Likewise.
21486 * modules/fpurge (Files): Likewise.
21487 * modules/freadable (Files): Likewise.
21488 * modules/freadahead (Files): Likewise.
21489 * modules/freading (Files): Likewise.
21490 * modules/freadptr (Files): Likewise.
21491 * modules/freadseek (Files): Likewise.
21492 * modules/fseeko (Files): Likewise.
21493 * modules/fseterr (Files): Likewise.
21494 * modules/fwritable (Files): Likewise.
21495 * modules/fwriting (Files): Likewise.
21497 2008-04-26 Bruno Haible <bruno@clisp.org>
21499 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
21500 restore_seek_optimization, update_fpos_cache): New functions, extracted
21502 (rpl_fflush): Use them.
21503 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
21504 (gl_REPLACE_FFLUSH): Use it.
21506 2008-04-26 Bruno Haible <bruno@clisp.org>
21508 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
21510 * tests/test-xstrtoimax.sh: Likewise.
21511 * tests/test-xstrtoumax.sh: Likewise.
21512 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21514 2008-04-26 Bruno Haible <bruno@clisp.org>
21516 * modules/memchr-tests: New file.
21517 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
21519 2008-04-26 Eric Blake <ebb9@byu.net>
21520 Bruno Haible <bruno@clisp.org>
21522 * lib/memchr.c: Include intprops.h.
21523 (__memchr): Optimize parallel detection of matching bytes. Rename local
21524 variables. Add explanatory comments.
21526 2008-04-26 Bruno Haible <bruno@clisp.org>
21528 Fix module 'memchr', broken since 2000-10-28.
21529 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
21531 2008-04-26 Bruno Haible <bruno@clisp.org>
21533 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
21536 2008-04-25 Eric Blake <ebb9@byu.net>
21538 Use native fstatat on cygwin 1.7.0.
21539 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
21542 2008-04-23 Eric Blake <ebb9@byu.net>
21544 Improve memchr2 performance.
21545 * lib/memchr2.c (memchr2): Further optimize parallel detection of
21547 * modules/memchr2 (Depends-on): Use intprops.h.
21549 2008-04-23 Simon Josefsson <simon@josefsson.org>
21551 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
21552 an inline function instead of a CPP macro. Patch by Ben Pfaff
21553 <blp@cs.stanford.edu>.
21555 2008-04-23 Simon Josefsson <simon@josefsson.org>
21557 * lib/arpa_inet.in.h: New file.
21559 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
21560 (Makefile.am): Sed in substitute header file.
21562 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
21563 gl_ARPA_INET_MODULE_INDICATOR. Use them.
21565 * modules/inet_ntop (configure.ac): Use
21566 gl_ARPA_INET_MODULE_INDICATOR.
21568 * modules/inet_pton (configure.ac): Use
21569 gl_ARPA_INET_MODULE_INDICATOR.
21571 2008-04-22 Jim Meyering <meyering@redhat.com>
21573 * modules/verify (License): Re-license as LGPLv2+.
21575 2008-04-22 Simon Josefsson <simon@josefsson.org>
21577 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
21578 parameter to void* as per POSIX standard (MinGW uses char*).
21580 2008-04-21 Bruno Haible <bruno@clisp.org>
21582 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21583 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
21584 Define to replacements if REPLACE_ISWCNTRL is 1.
21585 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
21586 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
21587 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
21588 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
21590 * doc/posix-functions/iswalpha.texi: Likewise.
21591 * doc/posix-functions/iswblank.texi: Likewise.
21592 * doc/posix-functions/iswcntrl.texi: Likewise.
21593 * doc/posix-functions/iswdigit.texi: Likewise.
21594 * doc/posix-functions/iswgraph.texi: Likewise.
21595 * doc/posix-functions/iswlower.texi: Likewise.
21596 * doc/posix-functions/iswprint.texi: Likewise.
21597 * doc/posix-functions/iswpunct.texi: Likewise.
21598 * doc/posix-functions/iswspace.texi: Likewise.
21599 * doc/posix-functions/iswupper.texi: Likewise.
21600 * doc/posix-functions/iswxdigit.texi: Likewise.
21601 Reported by Alain Guibert.
21603 2008-04-21 Bruno Haible <bruno@clisp.org>
21605 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
21606 Patch by Alain Guibert.
21608 2008-04-21 Bruno Haible <bruno@clisp.org>
21610 Fix test failures on mingw.
21611 * tests/test-xstrtol.c (print_no_progname): New function.
21612 (main): Install it in error_print_progname hook.
21613 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
21614 * tests/test-xstrtoimax.sh: Likewise.
21615 * tests/test-xstrtoumax.sh: Likewise.
21617 2008-04-21 Bruno Haible <bruno@clisp.org>
21619 Fix test failure on mingw.
21620 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
21622 2008-04-21 Bruno Haible <bruno@clisp.org>
21624 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
21625 Actually assign a value.
21627 2008-04-20 Bruno Haible <bruno@clisp.org>
21629 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
21631 * lib/canonicalize.c (canonicalize_file_name): Elide if the
21632 'canonicalize-lgpl' module is also used.
21633 * lib/canonicalize-lgpl.c: Undo last change.
21634 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
21636 2008-04-20 Bruno Haible <bruno@clisp.org>
21638 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
21639 config.h. Provide _mkdir based fallback for mingw.
21640 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
21641 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
21642 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
21643 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
21644 rather than defining mkdir in config.h.
21645 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
21646 (gl_SYS_STAT_H_DEFAULTS): New macro.
21647 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
21648 HAVE_IO_H any more.
21649 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
21650 HAVE_DECL_MKDIR and HAVE_IO_H.
21652 2008-04-20 Bruno Haible <bruno@clisp.org>
21654 * lib/isapipe.c: Port to native Windows platforms.
21656 2008-04-20 Bruno Haible <bruno@clisp.org>
21658 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
21660 2008-04-21 Eric Blake <ebb9@byu.net>
21662 Work around preprocessors that don't handle UINTMAX_MAX.
21663 * lib/memchr2.c (memchr2): Avoid embedded #if.
21664 Reported by Alain Guibert, fix suggested by Bruno Haible.
21666 2008-04-21 Simon Josefsson <simon@josefsson.org>
21668 * doc/posix-functions/strftime.texi (strftime): Explain better
21669 Windows incompatibility. Suggested by Micah Cowan
21670 <micah@cowan.name>.
21672 2008-04-20 Bruno Haible <bruno@clisp.org>
21674 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
21677 2008-04-20 Bruno Haible <bruno@clisp.org>
21679 Fix test failure on platforms with non-GNU iconv.
21680 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
21681 (U_TO_U8): Use it, rather than u16_to_u8.
21682 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
21683 units at the end of the input string.
21684 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
21686 2008-04-20 Bruno Haible <bruno@clisp.org>
21688 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
21689 when the resulting length is 0.
21690 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
21692 2008-04-20 Bruno Haible <bruno@clisp.org>
21694 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
21696 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
21698 2008-04-20 Bruno Haible <bruno@clisp.org>
21700 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
21701 * modules/tsearch-tests (configure.ac): Test for initstate function.
21703 2008-04-20 Bruno Haible <bruno@clisp.org>
21705 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
21706 for nlink_t if missing.
21707 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
21709 2008-04-19 Bruno Haible <bruno@clisp.org>
21711 Work around snprintf bug on Linux libc5.
21712 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
21713 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
21715 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21716 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
21718 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
21719 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
21720 * modules/snprintf (Files): Add m4/printf.m4.
21721 * modules/vsnprintf (Files): Likewise.
21722 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
21723 * doc/posix-functions/vsnprintf.texi: Likewise.
21725 2008-04-19 Bruno Haible <bruno@clisp.org>
21727 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
21728 from 0.0058 to less than 10^-7.
21730 2008-04-19 Bruno Haible <bruno@clisp.org>
21732 Fix rounding when a precision is given.
21733 * lib/vasnprintf.c (is_borderline): New function.
21734 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
21736 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
21738 * tests/test-vasprintf-posix.c (test_function): Likewise.
21739 * tests/test-snprintf-posix.h (test_function): Likewise.
21740 * tests/test-sprintf-posix.h (test_function): Likewise.
21741 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
21742 * tests/test-printf-posix.h (test_function): Likewise.
21743 * tests/test-printf-posix.output: Update.
21744 Reported by John Darrington <john@darrington.wattle.id.au> via
21745 Ben Pfaff <blp@cs.stanford.edu>.
21747 2008-04-18 Simon Josefsson <simon@josefsson.org>
21749 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
21750 Suggested by Bruno Haible <bruno@clisp.org>.
21752 2008-04-17 Bruno Haible <bruno@clisp.org>
21754 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
21755 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
21757 Patch by Bruce Merry <bmerry@gmail.com>.
21759 2008-04-17 Simon Josefsson <simon@josefsson.org>
21761 * doc/posix-functions/strftime.texi (strftime): Mention that %e
21762 doesn't work under Windows.
21764 2008-04-16 Bruno Haible <bruno@clisp.org>
21766 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
21768 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
21769 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
21770 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
21771 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
21772 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
21773 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
21774 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
21776 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
21777 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
21778 Northern Sotho, Uighur.
21780 2008-04-16 Bruno Haible <bruno@clisp.org>
21782 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
21783 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
21784 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
21785 Reported by Daniel Bergström <daniel@octocode.com>.
21787 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
21788 Bruno Haible <bruno@clisp.org>
21790 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
21792 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
21793 New functions, mostly extracted from gl_locale_name_default.
21794 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
21796 2008-04-16 Eric Blake <ebb9@byu.net>
21798 Adjust strtod detection to catch glibc 2.7 bug.
21799 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
21800 Reported by John Gatewood Ham.
21802 2008-04-16 Bruno Haible <bruno@clisp.org>
21804 Add tentative support for Linux libc5.
21805 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
21806 * lib/fpurge.c (fpurge): Likewise.
21807 * lib/freadable.c (freadable): Likewise.
21808 * lib/freadahead.c (freadahead): Likewise.
21809 * lib/freading.c (freading): Likewise.
21810 * lib/freadptr.c (freadptr): Likewise.
21811 * lib/freadseek.c (freadptrinc): Likewise.
21812 * lib/fseeko.c (rpl_fseeko): Likewise.
21813 * lib/fseterr.c (fseterr): Likewise.
21814 * lib/fwritable.c (fwritable): Likewise.
21815 * lib/fwriting.c (fwriting): Likewise.
21816 Reported by Alain Guibert <alguibert+bts@free.fr>.
21818 2008-04-15 Bruno Haible <bruno@clisp.org>
21820 * modules/mathl (configure.ac): Define module indicator.
21822 2008-04-15 Bruno Haible <bruno@clisp.org>
21824 * lib/logl.c (logl): Remove unused variables.
21826 2008-04-15 Bruno Haible <bruno@clisp.org>
21828 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
21831 2008-04-15 Bruno Haible <bruno@clisp.org>
21833 * lib/trim.c (trim2): Fix argument of isspace() macro.
21835 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
21837 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
21839 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
21841 2008-04-14 Bruno Haible <bruno@clisp.org>
21843 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
21844 AC_LANG_PROGRAM argument.
21845 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
21846 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
21847 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
21848 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
21849 * m4/math_h.m4 (gl_MATH_H): Likewise.
21850 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
21851 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21852 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
21853 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
21854 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
21855 * m4/regex.m4 (gl_REGEX): Likewise.
21856 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
21857 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
21858 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21859 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
21860 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
21861 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
21862 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21863 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
21865 2008-04-14 Jim Meyering <meyering@redhat.com>
21867 test-strtod: fix typos: s/abs/fabs/
21868 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
21870 2008-04-13 Bruno Haible <bruno@clisp.org>
21872 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
21873 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
21874 module is also used and while not building the reloc-wrapper.
21876 2008-04-13 Bruno Haible <bruno@clisp.org>
21878 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
21880 2008-04-13 Bruno Haible <bruno@clisp.org>
21882 Fix AIX compilation failure introduced on 2008-04-02.
21883 * tests/test-frexp.c (exp): Undefine before redefining.
21884 * tests/test-frexpl.c (exp): Likewise.
21886 2008-04-13 Bruno Haible <bruno@clisp.org>
21888 Work around a HP-UX stdio bug.
21889 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
21890 * tests/test-ftello.c (main): Likewise.
21891 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
21892 * doc/posix-functions/ftello.texi: Likewise.
21894 2008-04-13 Bruno Haible <bruno@clisp.org>
21896 Make test-signbit pass on HP-UX/hppa.
21897 * tests/test-signbit.c (minus_zerol): New variable.
21898 (test_signbitl): Use it.
21900 2008-04-13 Bruno Haible <bruno@clisp.org>
21902 Make truncl work on OSF/1 4.0.
21903 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
21904 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
21905 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
21906 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
21908 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
21910 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
21912 2008-04-13 Bruno Haible <bruno@clisp.org>
21914 * lib/unictype.h: Remove trailing comma from enumeration definitions.
21916 2008-04-13 Bruno Haible <bruno@clisp.org>
21918 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
21919 expression, so as to avoid HP-UX 11 cc compiler bug.
21921 2008-04-13 Bruno Haible <bruno@clisp.org>
21923 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
21925 2008-04-13 Bruno Haible <bruno@clisp.org>
21927 * lib/git-merge-changelog.c: Remove empty declaration outside of
21930 2008-04-13 Bruno Haible <bruno@clisp.org>
21932 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
21934 2008-04-13 Bruno Haible <bruno@clisp.org>
21936 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
21937 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
21938 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
21939 also if it exists but lacks definitions of the SHUT_* macros.
21940 * modules/sys_socket (Description): Update.
21941 Reported by Elbert Pol <e.pol@chello.nl>.
21943 2008-04-13 Bruno Haible <bruno@clisp.org>
21945 * lib/localcharset.c (OS2): Don't redefine if already defined.
21946 Reported by Elbert Pol <e.pol@chello.nl>.
21948 2008-04-13 Bruno Haible <bruno@clisp.org>
21950 * lib/binary-io.h [__EMX__]: Include <io.h>.
21951 Reported by Elbert Pol <e.pol@chello.nl>.
21953 2008-04-12 Bruno Haible <bruno@clisp.org>
21955 * lib/fpucw.h: Enable the definitions also for x86_64.
21956 Needed for NetBSD/x86_64.
21957 Reported by Thomas Klausner <tk@giga.or.at>.
21959 2008-04-12 Bruno Haible <bruno@clisp.org>
21961 * tests/test-strtod.c: Include isnand.h.
21962 (main): Use isnand instead of isnan.
21963 Reported by Jim Meyering.
21965 2008-04-12 Bruno Haible <bruno@clisp.org>
21967 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
21968 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
21970 2008-04-12 Jim Meyering <meyering@redhat.com>
21972 * m4/math_h.m4 (gl_MATH_H): Fix typos.
21974 2008-04-12 Bruno Haible <bruno@clisp.org>
21976 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
21977 Reported by Elbert Pol <e.pol@chello.nl>.
21979 2008-04-12 Eric Blake <ebb9@byu.net>
21981 Work around Solaris 10 math.h bug.
21982 * m4/math_h.m4 (gl_MATH_H): Check for bug.
21983 (gl_MATH_H_DEFAULTS): Set up default.
21984 * modules/math (Makefile.am): Replace new indicators.
21985 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
21986 * tests/test-math.c (main): Test this.
21987 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
21988 * doc/posix-headers/math.texi (math.h): Mention bug.
21989 Reported by Nelson H. F. Beebe and Jim Meyering.
21991 2008-04-11 Bruno Haible <bruno@clisp.org>
21993 Adapt to future versions of Apple GCC.
21994 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
21995 Reported by Peter O'Gorman <peter@pogma.com>.
21997 2008-04-11 Bruno Haible <bruno@clisp.org>
21999 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
22001 2008-04-11 Bruno Haible <bruno@clisp.org>
22003 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
22005 * modules/getaddrinfo-tests (Makefile.am): Define
22006 test_getaddrinfo_LDADD.
22008 2008-04-11 Bruno Haible <bruno@clisp.org>
22010 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
22011 (init): Fix syntax error.
22012 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
22015 2008-04-11 Bruno Haible <bruno@clisp.org>
22017 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
22018 * modules/glob (Depends-on): Add stdbool.
22020 2008-04-11 Bruno Haible <bruno@clisp.org>
22022 * lib/trim.c: Include <string.h>.
22024 2008-04-11 Eric Blake <ebb9@byu.net>
22026 Avoid compile failure on OS/2.
22027 * lib/regex_internal.h (internal_function): Disable optimization
22028 on OS/2 (__EMX__), where it caused compiler error.
22029 Reported by Elbert Pol.
22031 2008-04-11 Bruno Haible <bruno@clisp.org>
22033 Flush the standard error stream before aborting. Needed on mingw.
22034 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
22035 * tests/test-array_list.c (ASSERT): Likewise.
22036 * tests/test-array_oset.c (ASSERT): Likewise.
22037 * tests/test-avltree_list.c (ASSERT): Likewise.
22038 * tests/test-avltree_oset.c (ASSERT): Likewise.
22039 * tests/test-avltreehash_list.c (ASSERT): Likewise.
22040 * tests/test-binary-io.c (ASSERT): Likewise.
22041 * tests/test-byteswap.c (ASSERT): Likewise.
22042 * tests/test-c-ctype.c (ASSERT): Likewise.
22043 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
22044 * tests/test-c-strcasestr.c (ASSERT): Likewise.
22045 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
22046 * tests/test-c-strstr.c (ASSERT): Likewise.
22047 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
22048 * tests/test-canonicalize.c (ASSERT): Likewise.
22049 * tests/test-carray_list.c (ASSERT): Likewise.
22050 * tests/test-ceilf1.c (ASSERT): Likewise.
22051 * tests/test-ceilf2.c (ASSERT): Likewise.
22052 * tests/test-ceill.c (ASSERT): Likewise.
22053 * tests/test-count-one-bits.c (ASSERT): Likewise.
22054 * tests/test-fbufmode.c (ASSERT): Likewise.
22055 * tests/test-fflush2.c (ASSERT): Likewise.
22056 * tests/test-floorf1.c (ASSERT): Likewise.
22057 * tests/test-floorf2.c (ASSERT): Likewise.
22058 * tests/test-floorl.c (ASSERT): Likewise.
22059 * tests/test-fopen.c (ASSERT): Likewise.
22060 * tests/test-fpending.c (ASSERT): Likewise.
22061 * tests/test-fprintf-posix.c (ASSERT): Likewise.
22062 * tests/test-fpurge.c (ASSERT): Likewise.
22063 * tests/test-freadable.c (ASSERT): Likewise.
22064 * tests/test-freadahead.c (ASSERT): Likewise.
22065 * tests/test-freading.c (ASSERT): Likewise.
22066 * tests/test-freadptr.c (ASSERT): Likewise.
22067 * tests/test-freadptr2.c (ASSERT): Likewise.
22068 * tests/test-freadseek.c (ASSERT): Likewise.
22069 * tests/test-freopen.c (ASSERT): Likewise.
22070 * tests/test-frexp.c (ASSERT): Likewise.
22071 * tests/test-frexpl.c (ASSERT): Likewise.
22072 * tests/test-fseek.c (ASSERT): Likewise.
22073 * tests/test-fseeko.c (ASSERT): Likewise.
22074 * tests/test-fstrcmp.c (ASSERT): Likewise.
22075 * tests/test-ftell.c (ASSERT): Likewise.
22076 * tests/test-ftello.c (ASSERT): Likewise.
22077 * tests/test-func.c (ASSERT): Likewise.
22078 * tests/test-fwritable.c (ASSERT): Likewise.
22079 * tests/test-fwriting.c (ASSERT): Likewise.
22080 * tests/test-getdelim.c (ASSERT): Likewise.
22081 * tests/test-getline.c (ASSERT): Likewise.
22082 * tests/test-i-ring.c (ASSERT): Likewise.
22083 * tests/test-iconv-utf.c (ASSERT): Likewise.
22084 * tests/test-iconv.c (ASSERT): Likewise.
22085 * tests/test-isfinite.c (ASSERT): Likewise.
22086 * tests/test-isnand.c (ASSERT): Likewise.
22087 * tests/test-isnanf.c (ASSERT): Likewise.
22088 * tests/test-isnanl.h (ASSERT): Likewise.
22089 * tests/test-ldexpl.c (ASSERT): Likewise.
22090 * tests/test-linked_list.c (ASSERT): Likewise.
22091 * tests/test-linkedhash_list.c (ASSERT): Likewise.
22092 * tests/test-localename.c (ASSERT): Likewise.
22093 * tests/test-lseek.c (ASSERT): Likewise.
22094 * tests/test-mbscasecmp.c (ASSERT): Likewise.
22095 * tests/test-mbscasestr1.c (ASSERT): Likewise.
22096 * tests/test-mbscasestr2.c (ASSERT): Likewise.
22097 * tests/test-mbscasestr3.c (ASSERT): Likewise.
22098 * tests/test-mbscasestr4.c (ASSERT): Likewise.
22099 * tests/test-mbschr.c (ASSERT): Likewise.
22100 * tests/test-mbscspn.c (ASSERT): Likewise.
22101 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
22102 * tests/test-mbspbrk.c (ASSERT): Likewise.
22103 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
22104 * tests/test-mbsrchr.c (ASSERT): Likewise.
22105 * tests/test-mbsspn.c (ASSERT): Likewise.
22106 * tests/test-mbsstr1.c (ASSERT): Likewise.
22107 * tests/test-mbsstr2.c (ASSERT): Likewise.
22108 * tests/test-mbsstr3.c (ASSERT): Likewise.
22109 * tests/test-memchr2.c (ASSERT): Likewise.
22110 * tests/test-memmem.c (ASSERT): Likewise.
22111 * tests/test-open.c (ASSERT): Likewise.
22112 * tests/test-printf-frexp.c (ASSERT): Likewise.
22113 * tests/test-printf-frexpl.c (ASSERT): Likewise.
22114 * tests/test-printf-posix.c (ASSERT): Likewise.
22115 * tests/test-quotearg.c (ASSERT): Likewise.
22116 * tests/test-rbtree_list.c (ASSERT): Likewise.
22117 * tests/test-rbtree_oset.c (ASSERT): Likewise.
22118 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
22119 * tests/test-round1.c (ASSERT): Likewise.
22120 * tests/test-roundf1.c (ASSERT): Likewise.
22121 * tests/test-roundl.c (ASSERT): Likewise.
22122 * tests/test-signbit.c (ASSERT): Likewise.
22123 * tests/test-sleep.c (ASSERT): Likewise.
22124 * tests/test-snprintf-posix.c (ASSERT): Likewise.
22125 * tests/test-snprintf.c (ASSERT): Likewise.
22126 * tests/test-sprintf-posix.c (ASSERT): Likewise.
22127 * tests/test-stat-time.c (ASSERT): Likewise.
22128 * tests/test-strcasestr.c (ASSERT): Likewise.
22129 * tests/test-strerror.c (ASSERT): Likewise.
22130 * tests/test-striconv.c (ASSERT): Likewise.
22131 * tests/test-striconveh.c (ASSERT): Likewise.
22132 * tests/test-striconveha.c (ASSERT): Likewise.
22133 * tests/test-strsignal.c (ASSERT): Likewise.
22134 * tests/test-strstr.c (ASSERT): Likewise.
22135 * tests/test-strtod.c (ASSERT): Likewise.
22136 * tests/test-trunc1.c (ASSERT): Likewise.
22137 * tests/test-trunc2.c (ASSERT): Likewise.
22138 * tests/test-truncf1.c (ASSERT): Likewise.
22139 * tests/test-truncf2.c (ASSERT): Likewise.
22140 * tests/test-truncl.c (ASSERT): Likewise.
22141 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
22142 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
22143 * tests/test-vasnprintf.c (ASSERT): Likewise.
22144 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
22145 * tests/test-vasprintf.c (ASSERT): Likewise.
22146 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
22147 * tests/test-vprintf-posix.c (ASSERT): Likewise.
22148 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
22149 * tests/test-vsnprintf.c (ASSERT): Likewise.
22150 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
22151 * tests/test-wcwidth.c (ASSERT): Likewise.
22152 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
22153 * tests/test-xprintf-posix.c (ASSERT): Likewise.
22154 * tests/test-xvasprintf.c (ASSERT): Likewise.
22155 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
22156 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
22157 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
22158 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
22159 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
22160 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
22161 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
22162 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
22163 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
22164 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
22165 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
22166 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
22167 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
22168 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
22169 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
22170 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
22171 * tests/unictype/test-block_list.c (ASSERT): Likewise.
22172 * tests/unictype/test-block_of.c (ASSERT): Likewise.
22173 * tests/unictype/test-block_test.c (ASSERT): Likewise.
22174 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
22175 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
22176 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
22177 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
22178 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
22179 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
22180 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
22181 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
22182 * tests/unictype/test-combining.c (ASSERT): Likewise.
22183 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
22184 * tests/unictype/test-digit.c (ASSERT): Likewise.
22185 * tests/unictype/test-mirror.c (ASSERT): Likewise.
22186 * tests/unictype/test-numeric.c (ASSERT): Likewise.
22187 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
22188 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
22189 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
22190 * tests/unictype/test-scripts.c (ASSERT): Likewise.
22191 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
22192 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
22193 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
22194 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
22195 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
22196 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
22197 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
22198 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
22199 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
22200 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
22201 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
22202 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
22203 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
22204 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
22205 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
22206 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
22207 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
22208 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
22209 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
22210 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
22211 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
22212 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
22213 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
22214 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
22215 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
22216 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
22217 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
22218 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
22219 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
22220 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
22221 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
22222 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
22223 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
22224 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
22225 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
22226 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
22227 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
22228 Reported by Eric Blake.
22230 2008-04-11 Bruno Haible <bruno@clisp.org>
22232 * lib/wchar.in.h: Tweak comment.
22234 2008-04-11 Bruno Haible <bruno@clisp.org>
22236 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
22237 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
22239 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
22241 2008-04-11 Bruno Haible <bruno@clisp.org>
22243 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
22245 2008-04-11 Simon Josefsson <simon@josefsson.org>
22247 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
22248 of attempting to use non-existing /dev/*random. Based on patch
22249 from Adam Strzelecki <ono@java.pl> in
22250 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
22252 2008-04-08 Bruno Haible <bruno@clisp.org>
22254 Add tentative support for emx+gcc.
22255 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
22256 * lib/fpurge.c (fpurge): Likewise.
22257 * lib/freadable.c (freadable): Likewise.
22258 * lib/freadahead.c (freadahead): Likewise.
22259 * lib/freading.c (freading): Likewise.
22260 * lib/freadptr.c (freadptr): Likewise.
22261 * lib/freadseek.c (freadptrinc): Likewise.
22262 * lib/fseeko.c (rpl_fseeko): Likewise.
22263 * lib/fseterr.c (fseterr): Likewise.
22264 * lib/fwritable.c (fwritable): Likewise.
22265 * lib/fwriting.c (fwriting): Likewise.
22266 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
22268 2008-04-09 Eric Blake <ebb9@byu.net>
22270 Avoid some autoconf warnings.
22271 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
22272 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
22273 * m4/afs.m4 (gl_AFS): Likewise.
22274 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
22275 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
22276 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22277 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
22278 (gl_INTEGER_TYPE_SUFFIX): Likewise.
22279 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
22280 (AC_CHECK_DECLS_ONCE): Likewise.
22282 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
22283 gnulib-tool requires autoconf 2.59 or better.
22284 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
22286 2008-04-08 Eric Blake <ebb9@byu.net>
22288 Use 'git describe --match' if present (added in git 1.5.5).
22289 * build-aux/git-version-gen: Limit result to tags that match 'v*'
22292 2008-04-08 Bruno Haible <bruno@clisp.org>
22294 Add tentative support for OpenServer.
22295 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
22297 * lib/fpurge.c (fpurge): Likewise.
22298 * lib/freadable.c (freadable): Likewise.
22299 * lib/freadahead.c (freadahead): Likewise.
22300 * lib/freading.c (freading): Likewise.
22301 * lib/freadptr.c (freadptr): Likewise.
22302 * lib/freadseek.c (freadptrinc): Likewise.
22303 * lib/fseeko.c (rpl_fseeko): Likewise.
22304 * lib/fseterr.c (fseterr): Likewise.
22305 * lib/fwritable.c (fwritable): Likewise.
22306 * lib/fwriting.c (fwriting): Likewise.
22307 Reported by Roger Cornelius <rac@tenzing.org> and
22308 Brian K. White <brian@aljex.com>.
22310 2008-04-06 Jim Meyering <meyering@redhat.com>
22312 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
22314 2008-04-06 Bruno Haible <bruno@clisp.org>
22316 Avoid possible error with non-ASCII bytes in UTF-8 locales.
22317 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
22318 * tests/test-printf-posix.sh: Likewise.
22319 * tests/test-vfprintf-posix.sh: Likewise.
22320 * tests/test-vprintf-posix.sh: Likewise.
22321 * tests/test-xprintf-posix.sh: Likewise.
22323 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22325 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
22326 hide error from 'ls', needed on OS/2.
22327 Report by Elbert Pol <elbert.pol@gmail.com>.
22329 2008-04-04 Eric Blake <ebb9@byu.net>
22331 Make test-fseeko.c failures meaningful.
22332 * tests/test-fseeko.c: Print line number on failure.
22333 * tests/test-fseek.c: Likewise.
22334 Reported by Nelson H. F. Beebe.
22336 Improve strtod bug detection check.
22337 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
22338 required for Solaris 10.
22339 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
22341 2008-04-04 Bruno Haible <bruno@clisp.org>
22343 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
22346 2008-04-03 Eric Blake <ebb9@byu.net>
22348 Ensure sane .version contents.
22349 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
22351 * build-aux/git-version-gen: Improve documentation.
22353 Make GNU make output nicer.
22354 * top/GNUmakefile [!_have-Makefile]: Add dependency on
22355 MAKECMDGOALS to enforce message for all command line targets. Set
22356 srcdir for use in maint.mk.
22358 Another maintainer tweak.
22359 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
22360 a target that regenerates version.
22362 2008-04-03 Jim Meyering <meyering@redhat.com>
22364 vc-list-files: don't cause coreutils "make po-check" failure
22365 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
22367 2008-04-03 Eric Blake <ebb9@byu.net>
22369 Allow VPATH usage of vc-list-files.
22370 * build-aux/vc-list-files (scriptversion): Add timestamp.
22371 (options): Add --help, --version, -C.
22372 (CVS): Support installed cvsu.
22374 2008-04-02 Bruno Haible <bruno@clisp.org>
22376 Avoid some "statement with no effect" warnings from gcc.
22377 * tests/test-wctype.c (main): Explicitly ignore unused values.
22378 Reported by Jim Meyering.
22380 2008-04-02 Jim Meyering <meyering@redhat.com>
22382 Avoid some warnings from "gcc -Wshadow".
22383 * tests/test-frexp.c (exp): Define to a different identifier.
22384 * tests/test-frexpl.c (exp): Likewise.
22386 2008-04-03 Jim Meyering <meyering@redhat.com>
22388 bootstrap: remove dangling *.[ch] symlinks from lib
22389 * build-aux/bootstrap [dangling symlink removal]: Move find's
22390 -depth option to precede all others, to avoid a warning.
22391 Remove *.[ch] files too, and from "$source_base" (usually lib/).
22393 2008-04-02 Bruno Haible <bruno@clisp.org>
22395 Avoid some warnings from "gcc -Wshadow".
22396 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
22397 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
22398 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
22399 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
22400 Reported by Jim Meyering.
22402 2008-04-01 Bruno Haible <bruno@clisp.org>
22404 Fix test to work on IRIX 6.5 with cc.
22405 * tests/test-math.c (numeric_equal): New function.
22408 2008-04-01 Bruno Haible <bruno@clisp.org>
22410 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
22412 2008-04-01 Bruno Haible <bruno@clisp.org>
22414 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
22415 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22416 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
22417 (Depends-on): Remove math.
22419 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
22420 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22421 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
22422 (Depends-on): Remove math.
22424 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
22425 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22426 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
22427 (Depends-on): Remove math.
22428 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
22429 (Depends-on): Remove math.
22431 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
22432 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
22433 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
22434 (Depends-on): Remove math.
22435 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
22436 (Depends-on): Remove math.
22438 * tests/test-round1.c: Include nan.h.
22439 (main): Use NaNd instead of NAN.
22440 * modules/round-tests (Files): Add tests/nan.h.
22442 * tests/test-trunc1.c: Include nan.h.
22443 (main): Use NaNd instead of NAN.
22444 * modules/trunc-tests (Files): Add tests/nan.h.
22446 * tests/test-roundf1.c: Include nan.h.
22447 (main): Use NaNf instead of NAN.
22448 * modules/roundf-tests (Files): Add tests/nan.h.
22450 * tests/test-truncf1.c: Include nan.h.
22451 (main): Use NaNf instead of NAN.
22452 * modules/truncf-tests (Files): Add tests/nan.h.
22454 * tests/test-ceilf1.c: Include nan.h.
22455 (main): Use NaNf instead of NAN.
22456 * modules/ceilf-tests (Files): Add tests/nan.h.
22458 * tests/test-floorf1.c: Include nan.h.
22459 (main): Use NaNf instead of NAN.
22460 * modules/floorf-tests (Files): Add tests/nan.h.
22462 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
22463 (main): Use NaNf instead of NAN.
22464 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
22466 * tests/test-isnand.c: Include nan.h instead of <math.h>.
22467 (main): Use NaNd instead of NAN.
22468 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
22470 * tests/test-frexp.c: Include nan.h.
22471 (main): Use NaNd instead of NAN.
22472 * modules/frexp-tests (Files): Add tests/nan.h.
22474 * lib/isnan.c: Don't include <math.h>.
22475 (FUNC): Don't use NAN macro.
22476 * modules/isnand-nolibm (Depends-on): Remove math.
22477 * modules/isnanf-nolibm (Depends-on): Remove math.
22478 * modules/isnanl (Depends-on): Remove math.
22479 * modules/isnanl-nolibm (Depends-on): Remove math.
22481 * tests/nan.h: New file.
22483 2008-04-01 Eric Blake <ebb9@byu.net>
22486 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
22487 values to be the right type.
22489 For now, cater to gnulib strtod inaccuracies.
22490 * tests/test-strtod.c (main): Allow 1-ulp error on expected
22491 fractional results. While not as nice from a QoI perspective, it
22492 is a quicker patch than correctly implementing decimal to binary
22495 2008-03-31 Eric Blake <ebb9@byu.net>
22497 Guarantee a definition of NAN.
22498 * lib/math.in.h (NAN): Define if missing.
22499 * tests/test-math.c (main): Test it.
22500 * doc/posix-headers/math.texi (math.h): Document this.
22501 * lib/isnan.c (rpl_isnand): Use it.
22502 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
22503 * tests/test-floorf1.c (NaN): Likewise.
22504 * tests/test-frexp.c (NaN): Likewise.
22505 * tests/test-isnand.c (NaN): Likewise.
22506 * tests/test-isnanf.c (NaN): Likewise.
22507 * tests/test-round1.c (NaN): Likewise.
22508 * tests/test-roundf1.c (NaN): Likewise.
22509 * tests/test-snprintf-posix.h (NaN): Likewise.
22510 * tests/test-sprintf-posix.h (NaN): Likewise.
22511 * tests/test-trunc1.c (NaN): Likewise.
22512 * tests/test-truncf1.c (NaN): Likewise.
22513 * tests/test-vasnprintf-posix.c (NaN): Likewise.
22514 * tests/test-vasprintf-posix.c (NaN): Likewise.
22515 * modules/isnand-nolibm (Depends-on): Add math.
22516 * modules/isnanf-nolibm (Depends-on): Likewise.
22517 * modules/isnanl (Depends-on): Likewise.
22518 * modules/isnanl-nolibm (Depends-on): Likewise.
22519 * modules/snprintf-posix-tests (Depends-on): Likewise.
22520 * modules/sprintf-posix-tests (Depends-on): Likewise.
22521 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
22522 * modules/vsprintf-posix-tests (Depends-on): Likewise.
22523 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
22524 * modules/vasprintf-posix-tests (Depends-on): Likewise.
22526 2008-03-31 Bruno Haible <bruno@clisp.org>
22528 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
22529 * doc/posix-functions/strtod.texi: Likewise.
22531 2008-03-31 Bruno Haible <bruno@clisp.org>
22533 * tests/test-strtod.c (main): Don't use C99 syntax.
22535 2008-03-31 Bruno Haible <bruno@clisp.org>
22537 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
22538 Reported by Eric Blake.
22540 2008-03-31 Jim Meyering <meyering@redhat.com>
22542 Don't compare actual signbit return values.
22543 * tests/test-strtod.c (main): Rather, compare only their
22544 zero/non-zero nature.
22546 2008-03-31 Eric Blake <ebb9@byu.net>
22548 More strtod documentation.
22549 * doc/posix-functions/strtod.texi (strtod): Interpret more test
22550 failures as distinct bugs.
22552 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
22554 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
22555 Problem reported by Erik Benada in
22556 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
22558 2008-03-30 Bruno Haible <bruno@clisp.org>
22560 * tests/test-strtod.c: Add comments about which assertion fails on which
22562 * doc/posix-functions/strtod.texi: Add info about many more platforms.
22564 2008-03-30 Eric Blake <ebb9@byu.net>
22566 Test signbit behavior on zeros.
22567 * tests/test-signbit.c (test_signbitf): Add tests for zero.
22568 (test_signbitd, test_signbitl): Likewise.
22570 More strtod touchups.
22571 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
22572 sign of negative underflow, for now. Use .5, not .1.
22573 * doc/posix-functions/strtod.texi (strtod): Mention these
22575 Reported by Jim Meyering.
22577 2008-03-30 Bruno Haible <bruno@clisp.org>
22579 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
22580 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
22582 2008-03-30 Bruno Haible <bruno@clisp.org>
22584 Avoid failure when attempting to return empty iconv results on some
22586 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
22587 allocation, don't report ENOMEM when the resulting string is empty.
22589 2008-03-30 Bruno Haible <bruno@clisp.org>
22591 Fix buffer overrun.
22592 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
22593 Don't consider the width for tmp_length. Check count against tmp_length
22594 before doing the padding. Ensure enough allocation during padding.
22596 2008-03-30 Eric Blake <ebb9@byu.net>
22599 * lib/strtod.c (strtod): Avoid compiler warnings.
22600 Reported by Jim Meyering.
22602 2008-03-30 Bruno Haible <bruno@clisp.org>
22604 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
22605 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
22606 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
22607 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
22608 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
22609 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
22610 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
22611 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
22613 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
22614 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
22615 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
22616 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
22617 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
22618 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
22619 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
22620 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
22622 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
22623 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
22624 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
22625 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
22626 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
22627 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
22628 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
22629 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
22631 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
22632 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
22634 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
22635 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
22637 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
22638 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
22640 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
22641 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
22642 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
22644 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
22645 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
22646 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
22648 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
22649 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
22650 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
22652 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
22653 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
22654 * modules/vasprintf (Depends-on): Add EOVERFLOW.
22656 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
22657 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
22658 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
22659 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
22660 (Depends-on): Add EOVERFLOW.
22661 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
22662 (Depends-on): Add EOVERFLOW.
22663 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
22664 (Depends-on): Add EOVERFLOW.
22665 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
22666 (Depends-on): Add EOVERFLOW.
22667 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
22668 (Depends-on): Add EOVERFLOW.
22669 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
22670 (Depends-on): Add EOVERFLOW.
22671 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
22672 (Depends-on): Add EOVERFLOW.
22673 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
22674 (Depends-on): Add EOVERFLOW.
22676 * lib/sprintf.c (EOVERFLOW): Remove fallback.
22677 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
22678 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
22680 * lib/snprintf.c (EOVERFLOW): Remove fallback.
22681 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
22682 * modules/snprintf (Depends-on): Add EOVERFLOW.
22684 * lib/poll.c (EOVERFLOW): Remove fallback.
22685 * modules/poll (Depends-on): Add EOVERFLOW.
22687 * lib/getugroups.c (EOVERFLOW): Remove fallback.
22688 * modules/getugroups (Depends-on): Add EOVERFLOW.
22690 * lib/getdelim.c (EOVERFLOW): Remove fallback.
22691 * modules/getdelim (Depends-on): Add EOVERFLOW.
22693 * lib/ftell.c (EOVERFLOW): Remove fallback.
22694 * modules/ftell (Depends-on): Add EOVERFLOW.
22696 * lib/fprintf.c (EOVERFLOW): Remove fallback.
22697 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
22698 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
22700 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
22702 * modules/EOVERFLOW-tests: New file.
22703 * tests/test-EOVERFLOW.c: New file.
22705 * modules/EOVERFLOW: New file.
22706 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
22708 2008-03-30 Bruno Haible <bruno@clisp.org>
22710 Fix bug introduced on 2007-06-10.
22711 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
22712 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
22714 2008-03-30 Bruno Haible <bruno@clisp.org>
22716 Improve freadseek's efficiency after ungetc.
22717 * lib/freadseek.c: Include freadahead.h.
22718 (freadptrinc): New function, extracted from freadseek.
22719 (freadseek): Use it in a loop. Use freadahead to determine the number
22720 of loop iterations.
22721 * modules/freadseek (Depends-on): Add freadahead.
22722 (configure.ac): Require AC_C_INLINE.
22724 2008-03-30 Bruno Haible <bruno@clisp.org>
22726 * lib/freadseek.c (freadseek): Don't ignore the return value of
22729 2008-03-29 Eric Blake <ebb9@byu.net>
22731 Add hex float support.
22732 * modules/strtod (Depends-on): Add c-ctype.
22733 (Link): Mention POW_LIB.
22734 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
22735 whitespace between 'e' and exponent.
22736 * tests/test-strtod.c (main): Enable hex float tests.
22737 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
22740 Document various strtod bugs, with some fixes.
22741 * doc/posix-functions/strtod.texi (strtod): Document bugs with
22742 "-0x", "inf", "nan", and hex constants.
22743 * doc/posix-functions/atof.texi (atof): Likewise.
22744 * modules/stdlib (Makefile.am): Support strtod.
22745 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
22746 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
22747 detect additional strtod bugs.
22748 * lib/stdlib.in.h (rpl_strtod): Add declarations.
22749 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
22750 bool where appropriate. Parse 'inf' and 'nan'.
22751 * tests/test-strtod.c: New file.
22752 * modules/strtod (Depends-on): Add stdbool, stdlib.
22753 (configure.ac): Turn on module indicator.
22754 * modules/strtod-tests: New module.
22756 2008-03-29 Eric Blake <ebb9@byu.net>
22758 Fix ftell on mingw.
22759 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
22760 * modules/ftell-tests (Depends-on): Add binary-io.
22761 * modules/ftello-tests (Depends-on): Likewise.
22762 * tests/test-ftell.c (main): Enhance test to cover behavior after
22763 ungetc. Enforce binary mode.
22764 * tests/test-ftello.c (main): Likewise.
22766 Pass test-freadseek on cygwin.
22767 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
22768 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
22771 * tests/test-fflush2.c (main): Fix typo.
22773 2008-03-29 Bruno Haible <bruno@clisp.org>
22775 * tests/test-fflush2.c (main): Temporarily disable the contents of
22777 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
22778 Reported by Eric Blake.
22780 2008-03-28 Simon Josefsson <simon@josefsson.org>
22782 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
22783 (GC_SHA224_DIGEST_SIZE): Add.
22785 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
22786 (gc_hash_digest_length): Likewise.
22787 (gc_hash_buffer): Likewise.
22789 2008-03-25 Bruno Haible <bruno@clisp.org>
22791 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
22792 detail which gettext release to use.
22793 Reported by Simon Josefsson.
22795 2008-03-26 Jim Meyering <meyering@redhat.com>
22797 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
22798 * modules/gnumakefile (clean-GNUmakefile): Also, use
22799 test ... && ... || : syntax rather than if-then ... fi.
22801 gnumakefile: Don't double-quote-expand $(VPATH) value.
22802 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
22804 2008-03-24 Eric Blake <ebb9@byu.net>
22806 Alter GNUmakefile to install into top directory.
22807 * modules/maintainer-makefile: Split, and add dependency...
22808 * modules/gnumakefile: to this new module.
22809 * build-aux/GNUmakefile: Move...
22810 * top/GNUmakefile: ...here.
22811 * build-aux/maint.mk: Move...
22812 * top/maint.mk: ...here.
22813 * MODULES.html.sh (Support for maintaining...): Document new
22816 2008-03-23 Bruno Haible <bruno@clisp.org>
22818 * gnulib-tool: New options --vc-files, --no-vc-files.
22819 (func_usage): Document them.
22820 (vc_files): New variable.
22821 (func_import): Consider vc_files.
22822 (func_create_testdir): Set vc_files to empty.
22823 Suggested by Jim Meyering and Karl Berry.
22825 2008-03-23 Bruno Haible <bruno@clisp.org>
22827 Fix regex compilation error on HP-UX 11.
22828 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
22829 * modules/regex (Files): Add m4/mbstate_t.m4.
22830 Reported by Ton Voon <ton.voon@altinity.com>.
22832 2008-03-23 Bruno Haible <bruno@clisp.org>
22834 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
22836 2008-03-23 Eric Blake <ebb9@byu.net>
22837 Bruno Haible <bruno@clisp.org>
22839 Install files from top/ in the destination directory.
22840 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
22841 augmentation also for the files from top/.
22842 (func_import, func_create_testdir): Rewrite file names:
22843 top/filename -> filename.
22845 2008-03-23 Bruno Haible <bruno@clisp.org>
22847 Tweak "gnulib --version" output.
22848 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
22850 2008-03-23 Bruno Haible <bruno@clisp.org>
22852 Tweak "gnulib --version" output.
22853 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
22854 rather than contents of ChangeLog, when possible.
22856 2008-03-21 Eric Blake <ebb9@byu.net>
22858 More --version tweaks.
22859 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
22860 date of last ChangeLog entry.
22862 2008-03-21 Jim Meyering <meyering@redhat.com>
22864 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
22866 2008-03-20 Eric Blake <ebb9@byu.net>
22869 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
22871 2008-03-20 Simon Josefsson <simon@josefsson.org>
22873 * build-aux/GNUmakefile: Make git-version-gen optional. Add
22874 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
22876 2008-03-20 Eric Blake <ebb9@byu.net>
22878 Sync GNUmakefile with coreutils.
22879 * build-aux/GNUmakefile (have-Makefile): Rename...
22880 (_have-Makefile): ...to this, for namespace consideration.
22881 (GNUmakefile.cfg): Include, if present.
22882 (_autoreconf): Define a default.
22883 (_is-dist-target): New rule for rebuilds to pick up intra-release
22885 (maint-cfg.mk): Rename...
22886 (cfg.mk): ...to this.
22888 2008-03-18 Jim Meyering <meyering@redhat.com>
22890 New script and module: mktempd
22891 * MODULES.html.sh (maint+release support): Add mktempd.
22892 * build-aux/mktempd: New file.
22893 * modules/mktempd: New file.
22895 2008-03-15 Jim Meyering <meyering@redhat.com>
22898 * lib/sha1.c, lib/md5.c: 63 != ~63.
22899 Reported by Andreas Schwab.
22901 sha1.c, md5.c: Hoist a redundant expression.
22902 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
22903 "ctx->buflen" only once, before calling *_process_block.
22904 * lib/md5.c (md5_process_bytes): Likewise.
22906 2008-03-14 Eric Blake <ebb9@byu.net>
22908 Bump copyright year in files generated by gnulib-tool.
22909 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
22910 gnulib-tool, rather than hard-coding it.
22912 Fix 'gnulib-tool --version' output to work with git.
22913 * gnulib-tool (func_gnulib_dir): New function, extracted from...
22914 (startup): ...here.
22915 (func_version): Use it to invoke git-version-gen, rather than
22916 relying on CVS keyword expansion. Modernize wording.
22917 (cvsdatestamp, last_checkin_date, version): Kill unused
22920 2008-03-12 Jim Meyering <meyering@redhat.com>
22922 Recognize optional cast of the argument to free.
22923 * build-aux/useless-if-before-free: Update regexps.
22925 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
22927 2008-03-11 Bruno Haible <bruno@clisp.org>
22929 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
22930 by a single package.
22931 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
22932 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
22933 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
22934 Reported by Sam Steingold <sds@gnu.org>.
22936 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
22938 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
22941 2008-03-11 Bruno Haible <bruno@clisp.org>
22943 Avoid conflicts between local macro definitions.
22944 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22945 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
22947 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
22948 Bruno Haible <bruno@clisp.org>
22950 Make va_copy work with some version of xlc on AIX 5.1.
22951 * lib/stdarg.in.h: New file.
22952 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
22953 On AIX, use a <stdarg.h> file substitute.
22954 * modules/stdarg (Files): Add lib/stdarg.in.h.
22955 (Depends-on): Add include_next.
22956 (Makefile.am): Build a stdarg.h substitute if requested.
22957 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
22959 2008-03-10 Bruno Haible <bruno@clisp.org>
22961 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
22962 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
22963 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
22965 2008-03-10 Bruno Haible <bruno@clisp.org>
22967 * modules/stdlib (Depends-on): Add include_next, remove
22970 2008-03-09 Bruno Haible <bruno@clisp.org>
22972 * lib/freadahead.h (freadahead): Document more precisely.
22973 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
22974 the sum of both buffer sizes.
22975 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
22976 * NEWS: Document the change.
22978 2008-03-09 Bruno Haible <bruno@clisp.org>
22980 Extend freadptr to return also the buffer size.
22981 * lib/freadptr.h (freadptr): Add sizep argument.
22982 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
22983 (freadptr): Add sizep argument. Determine buffer size like freadahead
22985 * tests/test-freadptr.c: Don't include freadahead.h.
22986 (main): Adapt for new calling convention of freadptr.
22987 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
22988 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
22989 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
22990 tests/test-freadptr2.sh.
22991 (Depends): Remove freadahead.
22992 (TESTS): Add test-freadptr2.sh.
22993 (check_PROGRAMS): Add test-freadptr2.
22995 2008-03-09 Bruno Haible <bruno@clisp.org>
22997 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
22998 Report and solution by Simon Josefsson.
23000 2008-03-06 Bruno Haible <bruno@clisp.org>
23002 Make fflush after ungetc work on BSD platforms.
23003 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
23004 * tests/test-fflush2.c: New file.
23005 * tests/test-fflush2.sh: New file.
23006 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
23007 tests/test-fflush2.c.
23008 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
23009 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
23011 2008-03-06 Eric Blake <ebb9@byu.net>
23013 Likewise for ftello.
23014 * modules/ftello (Dependencies): Add extensions.
23015 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
23017 2008-03-06 Bruno Haible <bruno@clisp.org>
23019 * modules/fseeko (Dependencies): Add extensions.
23020 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
23021 Needed on glibc systems.
23023 2008-03-06 Bruno Haible <bruno@clisp.org>
23025 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
23027 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23029 2008-03-06 Bruno Haible <bruno@clisp.org>
23031 * users.txt: Add libgnupdf.
23033 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
23035 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
23036 (Header File Substitutes, Function Substitutes,
23037 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
23038 (Build robot for gnulib): Fix typo.
23040 2008-03-06 Bruno Haible <bruno@clisp.org>
23042 * doc/gnulib-tool.texi (VCS Issues): Small updates.
23043 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23045 2008-03-06 Bruno Haible <bruno@clisp.org>
23047 * doc/func.texi: New file, extracted from doc/gnulib.texi.
23048 * doc/gnulib.texi: Include it.
23050 2008-03-06 Simon Josefsson <simon@josefsson.org>
23052 * modules/func (License): Change license to unlimited; there was
23053 no LGPL parts in the module anyway.
23055 2008-03-06 Simon Josefsson <simon@josefsson.org>
23057 * modules/__func__: Renamed to modules/func.
23058 * modules/__func__-tests: Renamed to modules/func-tests.
23059 * tests/test-__func__.c: Renamed to tests/test-func.c.
23060 * m4/__func__.m4: Renamed to m4/func.m4.
23061 * doc/gnulib.texi (__func__): Section renamed to func.
23062 Suggested by Eric Blake <ebb9@byu.net>.
23064 2008-03-06 Simon Josefsson <simon@josefsson.org>
23066 * doc/gnulib.texi (__func__): Use C99 terminology when talking
23067 about __func__. Make example self-contained. Suggested by Eric
23068 Blake <ebb9@byu.net>.
23070 * tests/test-__func__.c (main): Avoid extraneous () around __func.
23071 Suggested by Eric Blake <ebb9@byu.net>.
23073 2008-03-06 Simon Josefsson <simon@josefsson.org>
23075 * modules/__func__: New file.
23076 * modules/__func__-tests: New file.
23077 * tests/test-__func__.c: New file.
23078 * m4/__func__.m4: New file.
23079 * doc/gnulib.texi (__func__): Document __func__ module.
23081 2008-03-05 Simon Josefsson <simon@josefsson.org>
23083 * modules/byteswap (License): Re-license as LGPLv2+.
23085 2008-03-05 Simon Josefsson <simon@josefsson.org>
23087 * doc/Makefile: Add pdf target.
23089 2008-03-05 Simon Josefsson <simon@josefsson.org>
23091 * modules/inline (License): Use 'unlimited', since there are only
23092 *.m4 files in this module.
23094 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
23095 Bruno Haible <bruno@clisp.org>
23097 Add support for HP C 7.1 on OpenVMS 8.3.
23098 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
23100 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
23102 Update VMS specifics.
23103 * lib/getopt.c [VMS]: Remove include of unixlib.h.
23105 2008-03-02 Jim Meyering <meyering@redhat.com>
23107 Remove the last dependency on the "free" module.
23108 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
23109 Reported by Bob Proulx.
23111 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
23113 Remove useless "if" tests before free. Deprecate "free" module.
23114 * doc/posix-functions/free.texi: Mention that this
23115 module is no longer useful.
23116 * modules/free (Notice): Say this module is obsolete.
23117 * modules/readutmp (Depends-on): Remove free.
23118 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
23119 * lib/putenv.c (putenv): Likewise.
23120 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
23121 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
23122 * tests/test-c-strcasestr.c (main): Likewise.
23123 * tests/test-c-strstr.c (main): Likewise.
23124 * tests/test-mbscasestr1.c (main): Likewise.
23125 * tests/test-mbscasestr2.c (main): Likewise.
23126 * tests/test-mbsstr1.c (main): Likewise.
23127 * tests/test-mbsstr2.c (main): Likewise.
23128 * tests/test-memmem.c (main): Likewise.
23129 * tests/test-strcasestr.c (main): Likewise.
23130 * tests/test-striconv.c (main): Likewise.
23131 * tests/test-striconveh.c (main): Likewise.
23132 * tests/test-striconveha.c (main): Likewise.
23133 * tests/test-strstr.c (main): Likewise.
23135 * build-aux/git-version-gen: Adjust a comment and the Usage string.
23137 bootstrap: sync from coreutils again
23138 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
23140 2008-03-01 Jim Meyering <meyering@redhat.com>
23142 bootstrap: sync from coreutils
23143 * build-aux/bootstrap (update_po_files): Copy a .po file into place
23144 also when the target doesn't exist.
23146 2008-03-01 Eric Blake <ebb9@byu.net>
23148 Fix bugs in last patch.
23149 * lib/memchr2.c (memchr2): Fix typo.
23150 * tests/test-memchr2.c: Test previous bug, and don't use GNU
23152 Reported by Bruce Korb.
23154 New module 'memchr2'.
23155 * modules/memchr2: New file.
23156 * modules/memchr2-tests: Likewise.
23157 * lib/memchr2.h: Likewise.
23158 * lib/memchr2.c: Likewise, based on memchr.c.
23159 * tests/test-memchr2.c: New test.
23160 * MODULES.html.sh (String handling): Add memchr2.
23162 2008-02-29 Bruno Haible <bruno@clisp.org>
23164 * modules/freadseek-tests: New file.
23165 * tests/test-freadseek.sh: New file.
23166 * tests/test-freadseek.c: New file.
23168 New module 'freadseek'.
23169 * modules/freadseek: New file.
23170 * lib/freadseek.h: New file.
23171 * lib/freadseek.c: New file.
23172 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
23174 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
23176 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
23179 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
23180 program_invocation_name and program_invocation_short_name are
23183 2008-02-28 Bruno Haible <bruno@clisp.org>
23185 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
23186 * tests/test-freadptr.sh: Also test non-seekable stdin.
23188 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
23190 * build-aux/bootstrap (source_base, m4_base)
23191 (doc_base, tests_base): New variables.
23192 (gnulib_tool_options): Do not hardcode base directories, use
23193 the above variables instead.
23195 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
23197 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
23199 2008-02-28 Bruno Haible <bruno@clisp.org>
23201 * modules/freadptr-tests: New file.
23202 * tests/test-freadptr.sh: New file.
23203 * tests/test-freadptr.c: New file.
23205 New module 'freadptr'.
23206 * modules/freadptr: New file.
23207 * lib/freadptr.h: New file.
23208 * lib/freadptr.c: New file.
23209 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
23211 2008-02-26 Karl Berry <karl@freefriends.org>
23214 * libltdl/argz.c (argz_add, argz_count): New functions.
23215 * libltdl/argz.in.h: Declare them.
23216 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
23218 2008-02-22 Bruno Haible <bruno@clisp.org>
23220 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
23221 is a pointer type. Needed for HP-UX 10.
23222 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
23223 * doc/posix-functions/gmtime_r.texi: Likewise.
23224 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
23226 2008-02-24 Bruno Haible <bruno@clisp.org>
23228 * modules/environ-tests: New file.
23229 * tests/test-environ.c: New file.
23231 New module 'environ'.
23232 * modules/environ: New file.
23233 * lib/unistd.in.h (environ): New declaration.
23234 * m4/environ.m4: New file.
23235 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
23237 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
23239 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
23241 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
23242 wrong claim that 'environ' is missing on some systems.
23243 * modules/execute (Depends-on): Add environ.
23244 * lib/execute.c (environ): Remove fallback declaration.
23245 * modules/pipe (Depends-on): Add environ.
23246 * lib/pipe.c (environ): Remove fallback declaration.
23247 * modules/setenv (Depends-on): Add environ.
23248 * lib/setenv.c (environ): Remove fallback declaration.
23249 * modules/unsetenv (Depends-on): Add environ.
23250 * lib/unsetenv.c (environ): Remove fallback declaration.
23251 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
23253 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
23254 (gl_PREREQ_UNSETENV): Likewise.
23256 2008-02-24 Bruno Haible <bruno@clisp.org>
23258 * doc/posix-functions/environ.texi: Document the MacOS X problem.
23260 2008-02-20 Bob Proulx <bob@proulx.com>
23262 Enable use of older two part flavor 'git describe'.
23263 * build-aux/git-version-gen: If using the older two part flavor of
23264 git version then recreate the third part now present in the
23265 newer three part flavor of git describe.
23267 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
23269 * lib/fts.c (fts_build): Typo correction to comment.
23271 2008-02-17 Bruno Haible <bruno@clisp.org>
23273 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
23274 generating no-op conflicts.
23276 2008-02-17 Bruno Haible <bruno@clisp.org>
23279 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
23280 result_entries, rather than an index-based loop.
23282 2008-02-17 Bruno Haible <bruno@clisp.org>
23285 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
23287 (entry_create): New function.
23288 (entry_hashcode): Use the cached hashcode if possible.
23289 (read_changelog_file, try_split_merged_entry): Use entry_create.
23291 2008-02-17 Bruno Haible <bruno@clisp.org>
23293 Speed up from O(n^2) to O(n) for long ChangeLog files.
23294 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
23295 (read_changelog_file): Change implementation of entries_reversed list
23297 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
23299 2008-02-17 Bruno Haible <bruno@clisp.org>
23301 New option --split-merged-entry.
23302 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
23303 (find_paragraph_end, try_split_merged_entry): New functions.
23304 (long_options): Add option --split-merged-entry.
23305 (usage): Document option --split-merged-entry.
23306 (main): Implement option --split-merged-entry.
23307 Reported by Eric Blake.
23309 2008-02-17 Bruno Haible <bruno@clisp.org>
23311 * lib/git-merge-changelog.c: Include c-strstr.h.
23312 (main): Support the "git pull --rebase" situation.
23313 * modules/git-merge-changelog (Depends-on): Add c-strstr.
23314 Reported by Eric Blake.
23316 2008-02-16 Eric Blake <ebb9@byu.net>
23318 Avoid doubling \ in common case of "c-maybe" quoting style.
23319 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
23320 eliding outer quotes.
23321 * lib/quotearg.h: Document this.
23322 * tests/test-quotearg.c (result_strings, inputs, results_g)
23323 (flag_results, locale_results): Test it by adding a new string to
23325 (compare_strings): Test new string.
23327 2008-02-13 Eric Blake <ebb9@byu.net>
23329 Avoid trigraph quoting in default output.
23330 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
23331 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
23332 unless explicitly requested.
23333 * tests/test-quotearg.c (flag_results, main): Add additional tests.
23335 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
23337 Don't rely on signed integer overflowing to negative value.
23338 * lib/getugroups.c (getugroups): Include <limits.h>.
23339 Instead, compare against INT_MAX, and increment only if the test passes.
23341 2008-02-13 Jim Meyering <meyering@redhat.com>
23342 and Eric Blake <ebb9@byu.net>
23344 Avoid shadowing warning and compile errors on Linux.
23345 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
23346 forwarding macros on Linux.
23347 (dcgettext): Define a stub, for Linux.
23348 (results_g, main): Avoid warnings.
23350 2008-02-12 Eric Blake <ebb9@byu.net>
23352 Silence warning in last patch.
23353 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
23355 Quotearg part 4: add tests, fix c-maybe colon quoting.
23356 * lib/quotearg.h: Improve documentation.
23357 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
23358 escapes when adding outer quotes. When quoting trigraphs, use
23359 valid C notation. When quoting NUL, omit extra characters if next
23360 character is not digit. Alter prototype.
23361 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
23363 * modules/quotearg-tests: New module.
23364 * tests/test-quotearg.c: New test.
23366 2008-02-07 Eric Blake <ebb9@byu.net>
23368 Quotearg part 3: add flag to control outer quote elision.
23369 * lib/quotearg.h (c_maybe_quoting_style): New style.
23370 (enum quoting_flags): Better documentation of flags.
23371 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
23373 (quotearg_buffer_restyled): Handle new flag to elide outer
23376 Quotearg part 2: add flag that can control NUL elision.
23377 * lib/quotearg.h (set_quoting_flags): New prototype.
23378 * lib/quotearg.c (struct quoting_options): Add flag field.
23379 (set_quoting_flags): New function.
23380 (quotearg_buffer_restyled): Add flags parameter.
23381 (quotearg_alloc_mem): Set the flag if length cannot be returned.
23382 (quotearg_n_options): Set the flag, since length cannot be
23384 (quoting_options_from_style): Default flags correctly.
23386 Quotearg part 1: more wrappers, restore quotearg_char state.
23387 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
23388 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
23389 (quotearg_colon_mem): New wrappers.
23390 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
23391 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
23393 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
23394 (quotearg_colon_mem): New functions.
23396 2008-02-11 Bruno Haible <bruno@clisp.org>
23398 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
23399 library in the current directory: it does not work with parallel make.
23400 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23402 2008-02-11 Bruno Haible <bruno@clisp.org>
23404 * .gitattributes: New file.
23406 2008-02-11 Jim Meyering <meyering@redhat.com>
23408 useless-if-before-free: Fix reversed exit values.
23409 * build-aux/useless-if-before-free: Use correct values
23410 for EXIT_MATCH and EXIT_NO_MATCH.
23412 * build-aux/useless-if-before-free: Close stdout carefully.
23414 2008-02-10 Bruno Haible <bruno@clisp.org>
23416 New module 'git-merge-changelog'.
23417 * modules/git-merge-changelog: New file.
23418 * lib/git-merge-changelog.c: New file.
23420 2008-02-10 Jim Meyering <meyering@redhat.com>
23422 useless-if-before-free: New option: --list (-l).
23424 useless-if-before-free: Don't exit immediately upon open failure.
23425 * build-aux/useless-if-before-free: Exit 2 for errors.
23426 Upon failure to open a file, don't exit immediately.
23427 Rather, just warn and continue with any remaining files.
23429 2008-02-10 Bruno Haible <bruno@clisp.org>
23431 New abstract list operation 'node_set_value'.
23432 * lib/gl_list.h (gl_list_node_set_value): New function.
23433 (struct gl_list_implementation): New field node_set_value.
23434 * lib/gl_list.c (gl_list_node_set_value): New function.
23435 * lib/gl_array_list.c (gl_array_node_set_value): New function.
23436 (gl_array_list_implementation): Update.
23437 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
23438 (gl_carray_list_implementation): Update.
23439 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
23440 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23441 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23442 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
23443 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23444 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23445 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23447 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
23448 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
23449 (gl_sublist_list_implementation): Update.
23451 2008-02-10 Bruno Haible <bruno@clisp.org>
23453 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
23454 Needed when ELEMENT is #defined to 'some_type *'.
23456 2008-02-10 Jim Meyering <meyering@redhat.com>
23458 New script and module: useless-if-before-free
23459 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
23460 * build-aux/useless-if-before-free: New file.
23461 * modules/useless-if-before-free: New file.
23463 * build-aux/gitlog-to-changelog: Use committer date, not author date.
23465 xstrtol_error: Fix typo.
23466 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
23467 s/exit_failure/exit_status/.
23469 2008-02-09 Jim Meyering <meyering@redhat.com>
23471 New script and module: gitlog-to-changelog
23472 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
23473 * modules/gitlog-to-changelog: New file.
23474 * build-aux/gitlog-to-changelog: New file.
23476 2008-02-08 Jim Meyering <meyering@redhat.com>
23478 Avoid two "parameter unused" warnings.
23479 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
23482 Use "git COMMAND", not "git-COMMAND".
23483 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
23484 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
23485 * build-aux/git-version-gen: Use "git status", not "git-status".
23487 2008-02-07 Bruno Haible <bruno@clisp.org>
23489 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
23490 Avoids a crash on Windows Vista.
23491 Reported by Adam Strzelecki <ono@java.pl> via
23492 Simon Josefsson <simon@josefsson.org>.
23494 2008-02-06 Bruno Haible <bruno@clisp.org>
23496 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
23497 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
23498 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
23499 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
23500 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23501 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23502 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
23503 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
23504 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23505 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23506 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23507 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23508 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23509 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23510 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23511 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
23513 * tests/test-snprintf-posix.h (test_function): Likewise.
23514 * tests/test-sprintf-posix.h (test_function): Likewise.
23515 * tests/test-vasprintf-posix.c (test_function): Likewise.
23516 * doc/posix-functions/fprintf.texi: Update.
23517 * doc/posix-functions/printf.texi: Update.
23518 * doc/posix-functions/snprintf.texi: Update.
23519 * doc/posix-functions/sprintf.texi: Update.
23520 * doc/posix-functions/vfprintf.texi: Update.
23521 * doc/posix-functions/vprintf.texi: Update.
23522 * doc/posix-functions/vsnprintf.texi: Update.
23523 * doc/posix-functions/vsprintf.texi: Update.
23524 Reported by Peter Fales <psfales@alcatel-lucent.com>.
23526 2008-02-06 Bruno Haible <bruno@clisp.org>
23528 Fix bug introduced on 2008-01-26.
23529 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
23531 2008-02-06 Bruno Haible <bruno@clisp.org>
23533 Fix bug introduced on 2007-06-10.
23534 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
23535 !NEED_PRINTF_FLAG_ZERO.
23537 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
23539 getloadavg: use libperfstat on AIX5
23540 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
23542 2008-02-03 Bruno Haible <bruno@clisp.org>
23544 * lib/diffseq.h: Add comments about required #includes.
23545 Reported by Michael Biggs <gnulib@doubleplum.net>.
23547 2008-02-01 Bruno Haible <bruno@clisp.org>
23549 * users.txt: Add gnuit.
23551 2008-01-31 Bruno Haible <bruno@clisp.org>
23553 * lib/md4.c (set_uint32): Mark as inline.
23554 * lib/md5.c (set_uint32): Likewise.
23555 * lib/sha1.c (set_uint32): Likewise.
23556 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
23557 * m4/md5.m4 (gl_MD5): Likewise.
23558 * m4/sha1.m4 (gl_SHA1): Likewise.
23560 2008-01-31 Jim Meyering <meyering@redhat.com>
23562 Use "sizeof VAR", rather than a literal "4".
23563 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
23564 * lib/md4.c (md4_read_ctx): Likewise.
23565 * lib/sha1.c (sha1_read_ctx): Likewise.
23567 2008-01-31 Simon Josefsson <simon@josefsson.org>
23569 * tests/test-sha1.c: New file, based on test-md5.c.
23571 * modules/crypto/sha1-tests: New file.
23573 2008-01-31 Simon Josefsson <simon@josefsson.org>
23575 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
23577 2008-01-31 Jim Meyering <meyering@redhat.com>
23579 Prefer "sizeof v" over the equivalent "4".
23580 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
23581 * lib/md5.c (set_uint32): Likewise.
23582 * lib/sha1.c (set_uint32): Likewise.
23584 2008-01-31 Simon Josefsson <simon@josefsson.org>
23586 * lib/sha1.c (set_uint32): Mark function as static.
23588 2008-01-31 Simon Josefsson <simon@josefsson.org>
23590 md2: clarify comments to say that alignment is not required.
23591 * lib/md2.h: Remove warning about alignment in comment.
23592 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
23593 never been required.
23595 2008-01-31 Simon Josefsson <simon@josefsson.org>
23597 md4: adapt alignment constraint fix from sha1.
23598 * lib/md4.c (set_uint32): New function, from sha1.c
23599 (md4_read_ctx): Use it.
23600 (md4_finish_ctx): Doc fix.
23601 * lib/md4.h: Doc fix.
23603 2008-01-31 Simon Josefsson <simon@josefsson.org>
23605 md5: adapt alignment constraint fix from sha1.
23606 * lib/md5.c (set_uint32): New function, from sha1.c
23607 (md5_read_ctx): Use it.
23608 (md5_finish_ctx): Doc fix.
23609 * lib/md5.h: Doc fix.
23611 2008-01-30 Peter Palfrader <weasel@debian.org>
23613 sha1: remove the result buffer alignment constraint
23614 * lib/sha1.c (set_uint32): New function.
23615 (sha1_read_ctx): Rewrite to remove the result buffer alignment
23617 (sha1_finish_ctx): Remove comment warning about alignment constraint.
23618 * lib/sha1.h: Likewise.
23620 2008-01-30 Andreas Schwab <schwab@suse.de>
23621 Bruno Haible <bruno@clisp.org>
23623 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
23624 correct definition of LDBL_MIN_EXP.
23626 2008-01-30 Karl Berry <karl@gnu.org>
23628 * config/srclist-update: try to preserve x bit on updates.
23629 * config/srclistvars.sh: update for karl.
23631 2008-01-29 Jim Meyering <meyering@redhat.com>
23633 vasnprintf.c: Avoid warning about unused label
23634 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
23635 "overflow" label definition and associated code with the
23636 same cpp condition that guards the sole use of that label.
23638 2008-01-26 Bruno Haible <bruno@clisp.org>
23640 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
23641 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
23642 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
23643 * lib/isnanl-nolibm.h (isnanl): Likewise.
23644 Reported by Paul Eggert <eggert@cs.ucla.edu>.
23646 2008-01-26 Bruno Haible <bruno@clisp.org>
23648 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
23649 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
23651 2008-01-26 Bruno Haible <bruno@clisp.org>
23653 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
23654 GCC >= 4.0 built-in.
23655 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
23657 2008-01-26 Bruno Haible <bruno@clisp.org>
23659 Rename isnan, applicable to 'double' only, to isnand.
23660 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
23661 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
23662 (configure.ac): Update.
23663 (Include): Replace "isnan.h" with "isnand.h".
23664 * m4/isnand.m4: Renamed from m4/isnan.m4.
23665 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
23666 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
23667 instead of isnan.c.
23668 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
23669 instead of HAVE_ISNAN_IN_LIBC.
23670 (isnand): Renamed from isnan.
23671 * lib/isnand.c: New file.
23672 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
23673 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
23674 (Makefile.am): Update.
23675 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
23676 Include isnand.h instead of isnan.h.
23677 (main): Test isnand instead of isnan.
23678 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
23680 * modules/frexp (Depends-on): Likewise.
23681 * modules/frexp-tests (Depends-on): Likewise.
23682 * modules/frexp-nolibm (Depends-on): Likewise.
23683 * modules/frexp-nolibm-tests (Depends-on): Likewise.
23684 * modules/isfinite (Depends-on): Likewise.
23685 * modules/round-tests (Depends-on): Likewise.
23686 * modules/signbit (Depends-on): Likewise.
23687 * modules/signbit-tests (Depends-on): Likewise.
23688 * modules/snprintf-posix (Depends-on): Likewise.
23689 * modules/sprintf-posix (Depends-on): Likewise.
23690 * modules/trunc-tests (Depends-on): Likewise.
23691 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23692 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23693 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23694 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23695 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23696 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23697 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23698 * modules/vasnprintf-posix (Depends-on): Likewise.
23699 * modules/vasprintf-posix (Depends-on): Likewise.
23700 * modules/vfprintf-posix (Depends-on): Likewise.
23701 * modules/vsnprintf-posix (Depends-on): Likewise.
23702 * modules/vsprintf-posix (Depends-on): Likewise.
23703 * lib/frexp.c: Include isnand.h instead of isnan.h.
23704 (ISNAN): Set to isnand instead of isnan.
23705 * lib/isfinite.c: Include isnand.h instead of isnan.h.
23706 (gl_isfinited): Use isnand instead of isnan.
23707 * lib/signbitd.c: Include isnand.h instead of isnan.h.
23708 (gl_signbitd): Use isnand instead of isnan.
23709 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
23710 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
23711 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
23712 (main): Use isnand instead of isnan.
23713 * tests/test-round1.c: Include isnand.h.
23714 (main): Use isnand instead of isnan.
23715 * tests/test-round2.c: Include isnand.h instead of isnan.h.
23716 (ISNAN): Set to isnand instead of isnan.
23717 * tests/test-trunc1.c: Include isnand.h.
23718 (main): Use isnand instead of isnan.
23719 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
23720 (equal): Use isnand instead of isnan.
23721 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
23723 * NEWS: Mention the change.
23725 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
23726 Bruno Haible <bruno@clisp.org>
23728 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
23729 the GCC builtins for signbits are present and set
23730 REPLACE_SIGNBIT_USING_GCC if so.
23731 * lib/math.in.h (signbit): Define using GCC builtins if
23732 REPLACE_SIGNBIT_USING_GCC is set.
23733 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
23734 REPLACE_SIGNBIT_USING_GCC.
23735 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
23737 2008-01-25 Jim Meyering <meyering@redhat.com>
23739 Prefer <config.h> over "config.h". See autoconf doc for explanation.
23740 * lib/poll.c: Include <config.h>, not "config.h".
23741 * tests/test-getaddrinfo.c: Likewise.
23743 2008-01-25 Simon Josefsson <simon@josefsson.org>
23745 * modules/sockets-tests: New file.
23747 2008-01-24 Simon Josefsson <simon@josefsson.org>
23749 * modules/sockets: New module, can be used to call WSA_Startup and
23750 WSA_Cleanup when needed.
23752 * lib/sockets.h, lib/sockets.c: New files.
23754 * m4/sockets.m4: New file.
23756 * tests/test-sockets.c: New file.
23758 2008-01-19 Bruno Haible <bruno@clisp.org>
23760 * doc/posix-headers: Renamed from doc/headers.
23761 * doc/posix-functions: Renamed from doc/functions.
23762 * doc/gnulib.texi: Update.
23764 2008-01-19 Bruno Haible <bruno@clisp.org>
23766 * doc/glibc-functions/strcasestr.texi: Include contents of
23767 doc/functions/strcasestr.texi, fixing the list of platforms.
23768 * doc/functions/strcasestr.texi: Remove file.
23770 2008-01-19 Bruno Haible <bruno@clisp.org>
23772 * doc/glibc-functions/memmem.texi: Include contents of
23773 doc/functions/memmem.texi.
23774 * doc/functions/memmem.texi: Remove file.
23776 2008-01-18 Bruno Haible <bruno@clisp.org>
23778 * doc/glibc-functions/*.texi: New files.
23779 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
23780 to use the new files.
23782 2008-01-17 Bruno Haible <bruno@clisp.org>
23784 * tests/test-gethostname.c (main): Fix printf statement.
23786 2008-01-17 Simon Josefsson <simon@josefsson.org>
23788 * modules/gethostname-tests: New file.
23790 * tests/test-gethostname.c: New file.
23792 2008-01-17 Simon Josefsson <simon@josefsson.org>
23794 * lib/gethostname.c: Include string.h unconditionally, strncpy is
23795 used by the UNAME case. Reported by Bruno Haible
23798 2008-01-17 Eric Blake <ebb9@byu.net>
23800 Convert c-strcasestr to be more efficient.
23801 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
23802 (Depends-on): Add c-strcase, remove malloca, strnlen.
23803 * tests/test-c-strcasestr.c (main): Enhance test.
23804 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
23806 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
23808 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
23809 Use it in creating po/Makevars.
23811 2008-01-15 Simon Josefsson <simon@josefsson.org>
23813 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
23814 Applications that requires it should initialize libgcrypt
23817 2008-01-16 Simon Josefsson <simon@josefsson.org>
23819 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
23821 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
23823 Fix problem with getdate on mingw32 reported by Simon Josefsson
23824 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
23825 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
23826 tzname", when deciding whether to declare tzname.
23827 * lib/strftime.c (tzname): Likewise.
23829 2008-01-15 Bruno Haible <bruno@clisp.org>
23831 Work around a MacOS X 10.5 bug in frexpl().
23832 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
23833 * doc/functions/frexpl.texi: Document the bug.
23834 Reported by Elias Pipping <pipping@gentoo.org>.
23836 2008-01-14 Eric Blake <ebb9@byu.net>
23838 Touch up previous patch.
23839 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
23840 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
23842 Convert strcasestr module to use Two-Way algorithm.
23843 * modules/strcasestr-simple: New module, based on the old
23844 strcasestr, but with Two-Way rather than KMP.
23845 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
23846 * lib/string.in.h (rpl_strcasestr): Declare.
23847 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
23849 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
23850 * modules/string (Makefile.am): Support strcasestr.
23851 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
23852 * modules/strcasestr-tests (Depends-on): Check for alarm.
23853 * tests/test-strcasestr.c: Augment test.
23854 * lib/str-two-way.h: Clean up stray macro.
23855 * NEWS: Document new module.
23856 * MODULES.html.sh (string handling): Likewise.
23857 * doc/functions/strcasestr.texi: New file.
23858 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
23859 here, since it is not a POSIX function.
23861 2008-01-14 Colin Watson <cjwatson@debian.org>
23862 Bruno Haible <bruno@clisp.org>
23864 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
23865 works fine; if not, set REPLACE_STRSIGNAL.
23866 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
23867 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23869 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
23870 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
23871 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
23873 2008-01-14 Bruno Haible <bruno@clisp.org>
23875 * modules/strsignal (Include): Change to <string.h>.
23877 2008-01-14 Colin Watson <cjwatson@debian.org>
23879 * modules/argp (Notice): Add a notice recommending to change
23881 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
23883 2008-01-13 Colin Watson <cjwatson@debian.org>
23885 * modules/strsignal-tests: New file.
23886 * tests/test-strsignal.c: New file.
23888 * lib/strsignal.c: New file, from glibc with modifications.
23889 * lib/siglist.h: New file, from glibc with modifications.
23890 * lib/string.in.h (strsignal): New declaration.
23891 * m4/strsignal.m4: New file.
23892 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
23893 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
23894 * modules/strsignal: New file.
23895 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
23896 HAVE_DECL_STRSIGNAL.
23898 2008-01-13 Bruno Haible <bruno@clisp.org>
23900 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
23901 locale encoding is not ASCII. Needed for OpenBSD 4.0.
23902 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23903 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23905 2008-01-13 Bruno Haible <bruno@clisp.org>
23907 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
23908 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
23909 * lib/argp.h (__attribute__): Likewise.
23910 * lib/c-stack.c (__attribute__): Likewise.
23911 * lib/error.h (__attribute__): Likewise.
23912 * lib/fts.c (__attribute__): Likewise.
23913 * lib/openat.h (__attribute__): Likewise.
23914 * lib/stdio.in.h (__attribute__): Likewise.
23915 * lib/string.in.h (__attribute__): Likewise.
23916 * lib/utimens.c (__attribute__): Likewise.
23917 * lib/vasnprintf.h (__attribute__): Likewise.
23918 * lib/xalloc.h (__attribute__): Likewise.
23919 * lib/xprintf.h (__attribute__): Likewise.
23920 * lib/xstrtol.h (__attribute__): Likewise.
23921 * lib/xvasprintf.h (__attribute__): Likewise.
23923 2008-01-12 Bruno Haible <bruno@clisp.org>
23925 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
23926 * doc/glibc-headers/a.out.texi: New file.
23927 * doc/glibc-headers/aliases.texi: New file.
23928 * doc/glibc-headers/alloca.texi: New file.
23929 * doc/glibc-headers/ar.texi: New file.
23930 * doc/glibc-headers/argp.texi: New file.
23931 * doc/glibc-headers/argz.texi: New file.
23932 * doc/glibc-headers/byteswap.texi: New file.
23933 * doc/glibc-headers/crypt.texi: New file.
23934 * doc/glibc-headers/endian.texi: New file.
23935 * doc/glibc-headers/envz.texi: New file.
23936 * doc/glibc-headers/err.texi: New file.
23937 * doc/glibc-headers/error.texi: New file.
23938 * doc/glibc-headers/execinfo.texi: New file.
23939 * doc/glibc-headers/fpu_control.texi: New file.
23940 * doc/glibc-headers/fstab.texi: New file.
23941 * doc/glibc-headers/fts.texi: New file.
23942 * doc/glibc-headers/getopt.texi: New file.
23943 * doc/glibc-headers/ieee754.texi: New file.
23944 * doc/glibc-headers/ifaddrs.texi: New file.
23945 * doc/glibc-headers/libintl.texi: New file.
23946 * doc/glibc-headers/mcheck.texi: New file.
23947 * doc/glibc-headers/mntent.texi: New file.
23948 * doc/glibc-headers/obstack.texi: New file.
23949 * doc/glibc-headers/paths.texi: New file.
23950 * doc/glibc-headers/printf.texi: New file.
23951 * doc/glibc-headers/pty.texi: New file.
23952 * doc/glibc-headers/resolv.texi: New file.
23953 * doc/glibc-headers/shadow.texi: New file.
23954 * doc/glibc-headers/sysexits.texi: New file.
23955 * doc/glibc-headers/ttyent.texi: New file.
23957 2008-01-12 Jim Meyering <meyering@redhat.com>
23959 announce-gen: emit Gnulib's git-based version string.
23960 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
23961 New option --gnulib-version=V, where V is expected to be
23962 the output of running git describe in the gnulib directory.
23963 (get_tool_versions): Request feedback on xdelta. I suspect it's
23964 not useful, and plan to stop publishing an xdelta file with each
23967 * build-aux/announce-gen: Also check for lzma-compressed files.
23969 2008-01-11 Bruno Haible <bruno@clisp.org>
23971 * tests/test-memmem.c (main): Increase maximum allowed time.
23972 * tests/test-strstr.c (main): Likewise.
23974 2008-01-11 Bruno Haible <bruno@clisp.org>
23976 * doc/functions/memmem.texi: Add more precisions about platforms.
23977 * doc/functions/strstr.texi: Likewise.
23979 2008-01-10 Eric Blake <ebb9@byu.net>
23981 * m4/strstr.m4: Delete cruft from copy-n-paste.
23982 Reported by Bruno Haible.
23984 2008-01-10 Bruno Haible <bruno@clisp.org>
23986 Make c-strstr rely on strstr.
23987 * lib/c-strstr.c: Don't include str-kmp.h.
23988 (c_strstr): Define in terms of strstr.
23989 * modules/c-strstr (Files): Remove lib/str-kmp.h.
23990 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
23992 2008-01-10 Bruno Haible <bruno@clisp.org>
23994 * doc/gnulib.texi (String Functions in C Locale): New section.
23995 * doc/c-ctype.texi: New file.
23996 * doc/c-strcase.texi: New file.
23997 * doc/c-strcaseeq.texi: New file.
23998 * doc/c-strcasestr.texi: New file.
23999 * doc/c-strstr.texi: New file.
24000 * doc/c-strtod.texi: New file.
24001 * doc/c-strtold.texi: New file.
24003 2008-01-10 Eric Blake <ebb9@byu.net>
24005 * lib/relocatable.h: Fix a comment.
24007 2008-01-10 Eric Blake <ebb9@byu.net>
24009 Share two-way algorithm.
24010 * lib/str-two-way.h: New file, merged from...
24011 * lib/memmem.c: ...here...
24012 * lib/strstr.c: ...and here.
24013 * modules/memmem (Files): Use it.
24014 * modules/strstr (Files): Likewise.
24016 Avoid quadratic strstr implementations.
24017 * lib/strstr.c: New file.
24018 * m4/strstr.m4: Likewise.
24019 * modules/strstr: Likewise.
24020 * modules/strstr-tests: Likewise.
24021 * tests/test-strstr.c: Likewise.
24022 * lib/string.in.h (rpl_strstr): Declare.
24023 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
24024 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
24025 * modules/string (Makefile.am): Likewise.
24026 * MODULES.html.sh (string handling): Mention new module.
24027 * doc/functions/strstr.texi (strstr): Document the bug.
24029 2008-01-10 Bruno Haible <bruno@clisp.org>
24031 * lib/relocatable.h (relocate): State whether result is freshly
24033 * lib/relocatable.c (relocate): Return a freshly allocated string
24034 instead of a pointer to a privately held string.
24035 Reported by Sylvain Beucler <beuc@gnu.org>.
24037 2008-01-10 Colin Watson <cjwatson@debian.org>
24039 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
24040 s/S_ISNLK/S_ISLNK/.
24042 2008-01-09 Bruno Haible <bruno@clisp.org>
24044 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
24046 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
24047 if it's only a guess.
24048 * modules/memmem: Simplify by depending on memmem-simple.
24050 2008-01-09 Bruno Haible <bruno@clisp.org>
24052 Work around OpenBSD 4.0 tdelete() bug.
24053 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
24054 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
24055 macros and don't redefine the enum values.
24056 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
24057 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
24058 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
24060 2008-01-09 Bruno Haible <bruno@clisp.org>
24062 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
24063 (main): Don't perform the tests if setlocale did not install a UTF-8
24064 locale. Needed on OpenBSD 4.0.
24065 * modules/wcwidth-tests (Depends-on): Add localcharset.
24067 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
24069 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
24070 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
24071 * NEWS: announce this.
24072 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
24074 2008-01-09 Simon Josefsson <simon@josefsson.org>
24075 and Eric Blake <ebb9@byu.net>
24077 Add memmem-simple module.
24078 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
24079 (gl_FUNC_MEMMEM): Separate performance from presence checks.
24080 * modules/memmem-simple: New file.
24081 * modules/memmem (Description): Tweak.
24082 * MODULES.html.sh (string handling): Mention new module.
24083 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
24084 addressed by memmem-simple.
24085 * NEWS: Document the difference.
24087 2008-01-09 Eric Blake <ebb9@byu.net>
24089 Give gcc some memmem optimization hints.
24090 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
24091 (strcasestr): Declare as pure.
24092 * modules/memmem (Maintainer): Claim my implementation.
24094 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24096 Support AIX 6.1 and higher.
24097 * build-aux/config.libpath: Likewise.
24098 * build-aux/config.rpath: Likewise.
24100 2008-01-08 Jim Meyering <meyering@redhat.com>
24101 Bruno Haible <bruno@clisp.org>
24103 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
24104 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
24105 Reported by Peter Fales in
24106 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
24108 2008-01-08 Bruno Haible <bruno@clisp.org>
24110 * modules/unictype/category-of (Depends-on): Add
24111 unictype/category-none.
24112 * modules/unictype/category-and-tests (Depends-on): Add
24113 unictype/category-{L,N,Lu,Nd}.
24114 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
24115 * modules/unictype/category-or-tests (Depends-on): Add
24116 unictype/category-{L,N}.
24117 * modules/unictype/category-name-tests (Depends-on): Add
24118 unictype/category-{Z,Nl}.
24119 Reported by Simon Josefsson.
24121 2008-01-08 Bruno Haible <bruno@clisp.org>
24123 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
24125 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
24126 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
24127 Reported by Peter Miller <millerp@canb.auug.org.au>.
24129 2008-01-08 Eric Blake <ebb9@byu.net>
24131 Rewrite memmem to guarantee linear complexity without malloc.
24132 * lib/memmem.c (memmem): Use Two-Way rather than
24133 Knuth-Morris-Pratt, to allow O(1) space usage.
24134 (critical_factorization, two_way_short_needle)
24135 (two_way_long_needle): New functions.
24136 (knuth_morris_pratt): Delete.
24137 * modules/memmem (Depends-on): No longer need malloca or stdbool.
24139 * tests/test-memmem.c (main): Add tests for periodic needle and
24140 sublinear performance.
24141 * doc/functions/memmem.texi (memmem): Document other deficiencies
24142 in cygwin and older glibc.
24144 2008-01-08 Bruno Haible <bruno@clisp.org>
24146 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
24149 2008-01-08 Mike Frysinger <vapier@gentoo.org>
24151 Add a configure time option: --disable-acl.
24152 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
24153 AC_ARG_ENABLE(acl).
24155 2008-01-06 Simon Josefsson <simon@josefsson.org>
24157 * tests/test-localename.c: Don't include obsolete "setenv.h".
24159 * modules/localename-tests (Depends-on): Need unsetenv.
24161 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24163 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
24165 2008-01-06 Colin Watson <cjwatson@debian.org>
24167 * users.txt: Add man-db.
24169 2008-01-07 Bruno Haible <bruno@clisp.org>
24171 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
24172 previous section name.
24174 2008-01-07 Bruno Haible <bruno@clisp.org>
24176 * lib/progname.c (set_program_name): Don't strip off a leading
24177 "lt-" prefix outside a .libs directory.
24178 Suggested by Paul Eggert.
24180 2008-01-01 Sylvain Beucler <beuc@gnu.org>
24181 Bruno Haible <bruno@clisp.org>
24183 Improve memory cleanup in 'relocatable' module.
24184 * lib/relocatable.h (compute_curr_prefix): Change return type to
24186 * lib/relocatable.c (compute_curr_prefix): Change return type to
24187 'char *'. Free curr_installdir after use.
24188 (relocate): Free curr_prefix_better after use.
24189 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
24191 2008-01-01 Bruno Haible <bruno@clisp.org>
24193 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
24194 failure on older glibc systems.
24195 Reported by Peter Fales <psfales@alcatel-lucent.com>.
24197 2008-01-05 Eric Blake <ebb9@byu.net>
24199 Avoid quadratic system memmem.
24200 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
24201 Reported by Ralf Wildenhues.
24203 Fix memmem test for mingw.
24204 * modules/memmem-tests (configure.ac): Check for alarm.
24205 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
24207 * doc/functions/memmem.texi: New file.
24208 * doc/gnulib.texi (Function Substitutes): Add memmem.
24209 Reported by Bruno Haible.
24211 2008-01-04 Bruno Haible <bruno@clisp.org>
24213 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
24214 Require gl_HEADER_STRINGS_H_DEFAULTS, not
24215 gl_HEADER_STRING_H_DEFAULTS.
24217 2008-01-04 Eric Blake <ebb9@byu.net>
24219 Shorten duration of memmem test.
24220 * tests/test-memmem.c (main): Use alarm to declare failure if test
24221 is taking too long.
24222 Reported by Ralf Wildenhues.
24224 2007-12-21 Simon Josefsson <simon@josefsson.org>
24226 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
24227 string, needed by strerror.
24229 2008-01-03 Colin Watson <cjwatson@debian.org>
24230 Bruno Haible <bruno@clisp.org>
24232 * doc/gnulib-tool.texi (Localization): New section.
24234 2008-01-02 Bruno Haible <bruno@clisp.org>
24236 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
24237 variables to 'unsigned char *' type.
24238 Reported by Paul Eggert.
24240 2008-01-02 Jim Meyering <jim@meyering.net>
24242 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
24244 2007-12-31 Jim Meyering <jim@meyering.net>
24246 Avoid use of private FTS type name.
24247 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
24249 2007-12-30 Karl Berry <karl@gnu.org>
24251 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
24252 work around defect in Texinfo and/or the standalone Info browser.
24254 2007-12-30 Bruno Haible <bruno@clisp.org>
24256 Unify 5 copies of the KMP code.
24257 * lib/str-kmp.h: New file.
24258 * lib/c-strcasestr.c: Include str-kmp.h.
24259 (knuth_morris_pratt): Remove function.
24260 (c_strcasestr): Update.
24261 * lib/c-strstr.c: Include str-kmp.h.
24262 (knuth_morris_pratt): Remove function.
24263 (c_strcasestr): Update.
24264 * lib/mbscasestr.c: Include str-kmp.h.
24265 (knuth_morris_pratt_unibyte): Remove function.
24266 * lib/mbsstr.c: Include str-kmp.h.
24267 (knuth_morris_pratt_unibyte): Remove function.
24268 * lib/strcasestr.c: Include str-kmp.h.
24269 (knuth_morris_pratt): Remove function.
24270 (strcasestr): Update.
24271 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
24272 * modules/c-strstr (Files): Likewise.
24273 * modules/mbscasestr (Files): Likewise.
24274 * modules/mbsstr (Files): Likewise.
24275 * modules/strcasestr (Files): Likewise.
24276 Suggested by Paul Eggert.
24278 2007-12-30 Bruno Haible <bruno@clisp.org>
24280 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
24283 2007-12-30 Bruno Haible <bruno@clisp.org>
24285 * lib/xmalloca.h: Include xalloc.h.
24286 (xnmalloca): New macro.
24288 2007-12-30 Bruno Haible <bruno@clisp.org>
24290 * lib/malloca.h (nmalloca): New macro.
24291 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
24292 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
24293 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
24294 knuth_morris_pratt_multibyte): Likewise.
24295 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
24296 knuth_morris_pratt_multibyte): Likewise.
24297 * lib/memmem.c (knuth_morris_pratt): Likewise.
24298 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
24300 2007-12-25 Bruno Haible <bruno@clisp.org>
24302 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
24303 * lib/glob.c: Don't include openat.h.
24304 (link_exists2_p): Add back the code that deals with the
24305 !GLOB_ALTDIRFUNC case.
24306 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
24307 let it do the filename concatenation.
24308 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
24309 * modules/glob (Depends-on): Remove openat.
24311 2007-12-31 Bruno Haible <bruno@clisp.org>
24313 * modules/dirfd (License): Change to LGPLv2+.
24314 Approved by Jim Meyering.
24316 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
24318 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
24319 when multiplying M by sizeof (size_t).
24321 2007-12-10 Martin Lambers <marlam@marlam.de>
24323 Override getpagesize on mingw.
24324 * lib/getpagesize.c: New file.
24325 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
24326 * modules/getpagesize (Files): Add lib/getpagesize.c.
24327 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
24328 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24329 REPLACE_GETPAGESIZE.
24330 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
24332 2007-12-25 Bruno Haible <bruno@clisp.org>
24334 * modules/localcharset (Notice): New field.
24335 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
24336 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
24338 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
24339 Bruno Haible <bruno@clisp.org>
24341 Avoid using the syntax symbol() in formatted documentation.
24342 * MODULES.html.sh (func_module): When replacing symbol() with a
24343 hyperlink, remove the parentheses. Show an error if some remain.
24344 Recognize and render the '...' syntax.
24345 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
24346 Rework. Add paragraph about GCC's inlining.
24347 * doc/alloca.texi: Likewise.
24348 * doc/error.texi: Remove parentheses from symbol reference.
24349 * doc/gnulib-intro.texi: Likewise.
24350 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
24351 * modules/fnmatch (Description): Reword to say "the ... function".
24352 * modules/full-read (Description): Likewise.
24353 * modules/full-write (Description): Likewise.
24354 * modules/safe-read (Description): Likewise.
24355 * modules/safe-write (Description): Likewise.
24356 * modules/strchrnul (Description): Likewise.
24357 * modules/trim (Description): Likewise.
24358 * modules/error (Description): Remove parentheses from symbol
24360 * modules/verror (Description): Likewise.
24361 Reported by Karl Berry.
24363 2007-12-25 Bruno Haible <bruno@clisp.org>
24365 Fixup after 2007-10-16 commit.
24366 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
24368 2007-12-24 Bruno Haible <bruno@clisp.org>
24370 Make --enable-relocatable work with DESTDIR.
24371 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
24372 to compute installdir from destprog.
24373 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
24374 also set the RELOC_DESTDIR variable.
24375 Reported by Левашев Иван <octagram@bluebottle.com>.
24377 2007-12-24 Bruno Haible <bruno@clisp.org>
24379 Fix link error due to xalloc_die().
24380 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
24382 * lib/relocwrapper.c: Update comments.
24383 * build-aux/install-reloc: Remove xreadlink.c from file list.
24384 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
24386 Reported by Левашев Иван <octagram@bluebottle.com>.
24388 2007-12-24 Bruno Haible <bruno@clisp.org>
24390 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
24391 * lib/setenv.h: Remove file.
24392 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
24394 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
24395 (Depends-on): Add stdlib.
24396 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
24398 (Include): Replace setenv.h with <stdlib.h>.
24399 * modules/unsetenv: New file.
24400 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
24401 * lib/unsetenv.c: Include <stdlib.h> first.
24402 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
24403 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
24404 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
24405 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
24406 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
24407 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24408 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
24409 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
24410 * doc/functions/unsetenv.texi: Update.
24411 * modules/xsetenv (Depends-on): Add unsetenv.
24412 * modules/getdate (Depends-on): Likewise.
24413 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
24414 * lib/xsetenv.c: Don't include setenv.h.
24415 * lib/getdate.y: Likewise.
24416 * lib/relocwrapper.c: Likewise.
24417 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
24418 (Depends-on): Add stdlib.
24419 * NEWS: Mention the changes.
24420 Reported by Левашев Иван <octagram@bluebottle.com>.
24422 2007-12-23 Bruno Haible <bruno@clisp.org>
24424 * lib/memmem.c (memmem): Use lowercase variable names. Tab
24427 2007-12-23 Bruno Haible <bruno@clisp.org>
24429 * lib/c-strcasestr.c: Add more comments.
24430 * lib/c-strstr.c: Likewise.
24431 * lib/mbscasestr.c: Likewise.
24432 * lib/mbsstr.c: Likewise.
24433 * lib/strcasestr.c: Likewise.
24434 * lib/memmem.c: Likewise.
24436 2007-12-23 Bruno Haible <bruno@clisp.org>
24438 * tests/test-memmem.c: Include <string.h> first.
24440 2007-12-22 Bruno Haible <bruno@clisp.org>
24442 * gnulib-tool (func_create_testdir): Change $auxdir while generating
24443 the contents of $testsbase.
24444 Reported by Ralf Wildenhues.
24446 2007-12-22 Bruno Haible <bruno@clisp.org>
24448 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
24449 two variables local_ldadd_before, local_ldadd_last.
24451 2007-12-20 Eric Blake <ebb9@byu.net>
24453 Work around circular library issue when cross-compiling.
24454 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
24455 that progname.o does not need to pull in rpl_memcmp.
24457 2007-12-19 Eric Blake <ebb9@byu.net>
24459 Fix memmem to avoid O(n^2) worst-case complexity.
24460 * lib/memmem.c (knuth_morris_pratt): New function.
24461 (memmem): Use it if first few naive iterations fail.
24462 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
24463 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
24464 * modules/memchr (License): Likewise.
24465 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
24467 * tests/test-memmem.c: Rewrite, borrowing ideas from
24468 test-mbsstr1.c; the old version wouldn't even compile!
24469 * modules/memmem-tests: New file.
24470 * lib/string.in.h (rpl_memmem): Add declaration.
24471 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
24472 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
24475 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
24477 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
24478 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
24479 before any system include files, and undef after them all. This
24480 should fix a problem on VMS reported by John E. Malmberg in
24481 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
24483 2007-12-17 Eric Blake <ebb9@byu.net>
24485 Revert addition of verify, for BSD/OS.
24486 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
24487 can't handle large files, for the sake of obsolete platforms.
24488 * modules/fseeko (Depends-on): Remove verify.
24489 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
24490 * doc/functions/ftello.texi (ftello): Likewise.
24491 * doc/functions/fgetpos.texi (fgetpos): Likewise.
24492 Reported by Larry Jones.
24494 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
24496 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
24497 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
24499 2007-12-17 Jim Meyering <meyering@redhat.com>
24501 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
24502 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
24503 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
24504 * modules/getcwd (Depends-on): Add openat.
24505 Reported by Petr Salinger.
24507 2007-12-17 Bruno Haible <bruno@clisp.org>
24509 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
24510 avoid a segmentation fault of the configure test on x86_64 systems.
24512 2007-12-15 Jim Meyering <meyering@redhat.com>
24514 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
24516 2007-12-13 Eric Blake <ebb9@byu.net>
24518 Another fseek test.
24519 * tests/test-fseek.c (main): Also test ungetc handling.
24520 * tests/test-fseeko.c (main): Likewise.
24521 * modules/fseeko (Depends-on): Add verify.
24522 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
24524 Reported by Larry Jones.
24526 Fix fseeko on mingw.
24527 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
24530 Beef up fseek tests.
24531 * tests/test-fseek.c (main): Also test eof handling.
24532 * tests/test-fseeko.c (main): Likewise.
24533 Reported by Larry Jones.
24535 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
24537 Fix fseeko on BSD-based platforms.
24538 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
24541 2007-12-12 Eric Blake <ebb9@byu.net>
24543 Allow circular dependency of separate libtests.a
24544 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
24547 2007-12-11 Eric Blake <ebb9@byu.net>
24549 Fix bug with -0.0L in previous patch.
24550 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
24551 * tests/test-isnan.c (main): Also test on zeroes.
24552 * tests/test-isnanf.c (main): Likewise.
24553 * tests/test-isnanl.h (main): Likewise.
24555 Detect pseudo-denormals on x86 even when cross-compiling.
24556 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
24557 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
24558 invalid bit patterns that happen to satisfy ==.
24560 Avoid link failures with separate libtests.a.
24561 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
24562 last, to satisfy circular dependencies.
24564 2007-12-11 Eric Blake <ebb9@byu.net>
24565 and Bruno Haible <bruno@clisp.org>
24567 Fix OpenBSD 4.0 <float.h> handling of long double.
24568 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
24569 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
24570 * doc/headers/float.texi (float.h): Document OpenBSD bug.
24572 2007-12-11 Jim Meyering <meyering@redhat.com>
24574 * users.txt: Add libvirt.
24576 Support versions of autoconf prior to 2.59c.
24577 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
24578 if it is not already defined.
24580 2007-12-09 Bruno Haible <bruno@clisp.org>
24582 Let 'gnulib-tool --import' collect sources needed for the tests in
24583 tests/ rather than in lib/.
24584 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
24585 argument. If true, add rules to generate libtests.a, and put libtests.a
24586 into $(LDADD). Consider source files in subdirectories and set
24588 (func_emit_initmacro_start, func_emit_initmacro_end,
24589 func_emit_initmacro_done): Pass all arguments explicitly.
24590 (func_import): Determine two module lists main_modules,
24591 testsrelated_modules. Determine use_libtests. Determine two variables
24592 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
24593 instead of just sed_transform_lib_file. Determine two variables
24594 main_files and testsrelated_files. Compute 'files' as the union of
24595 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
24596 func_add_or_update. In the generated gnulib-comp.m4, collect the
24597 object files for tests/ in different variables than those for lib/.
24598 Substitute LIBTESTS_LIBDEPS.
24599 (func_create_testdir): Combine the uses_subdirs results from
24600 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
24602 2007-12-09 Bruno Haible <bruno@clisp.org>
24604 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
24605 the build-aux directory.
24607 2007-12-09 Bruno Haible <bruno@clisp.org>
24609 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
24610 introduced on 2006-09-09.
24612 2007-12-07 Jim Meyering <meyering@redhat.com>
24614 Let these macros work also with autoconf-2.59.
24615 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
24616 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
24617 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24619 2007-12-06 Jim Meyering <meyering@redhat.com>
24621 Avoid a configure-time syntax error in gl_FUNC_ACL.
24622 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
24623 function in each branch, before testing the cache variable.
24625 2007-12-04 Eric Blake <ebb9@byu.net>
24627 Make scripts executable.
24628 * build-aux/config.guess: Add execute permissions.
24629 * build-aux/config.sub: Likewise.
24630 * build-aux/gendocs.sh: Likewise.
24632 Fix frexp on mingw.
24633 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
24635 * doc/functions/frexp.texi (frexp): Document the bug.
24637 Make cygwin fseeko check more reliable.
24638 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
24639 version numbers, rather than unrelated feature check.
24640 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
24641 * doc/functions/ftello.texi (ftello): Likewise.
24642 Reported by Bruno Haible.
24644 * m4/strerror.m4: Bump version number.
24646 2007-12-03 Bruno Haible <bruno@clisp.org>
24648 * doc/functions/mprotect.texi: Mention the mingw problem.
24650 2007-12-03 Eric Blake <ebb9@byu.net>
24652 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
24653 REPLACE_STRERROR is initialized before this macro.
24655 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
24657 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
24658 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
24659 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
24660 put -lsec in even for programs other than 'ls'. This fixes a problem
24661 for gettext reported by Bruno Haible in
24662 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
24663 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
24664 Add support for Solaris 10. This isn't efficient, but should get the
24667 2007-12-03 James Youngman <jay@gnu.org>
24669 * doc/regexprops-generic.texi: change "an close-group" to "a
24670 close-group" and "illegal" to "not allowed".
24672 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24674 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
24675 pr_byname.h. Needed for the rare case when the maintainer has done
24676 "make maintainer-clean" in the source directory and then attempts a
24677 build outside the source directory.
24678 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
24681 2007-12-02 Martin Lambers <marlam@marlam.de>
24682 Bruno Haible <bruno@clisp.org>
24684 * lib/getpagesize.h: Remove file.
24685 * lib/unistd.in.h: Include declaration of getpagesize here.
24686 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
24687 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
24689 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
24690 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
24691 * modules/getpagesize (Files): Remove lib/getpagesize.h.
24692 (Depends-on): Add unistd.
24693 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
24694 (Include): Use <unistd.h> instead of getpagesize.h.
24695 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
24696 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
24697 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
24698 gl_GETPAGESIZE invocation, already handled by module dependency.
24699 * lib/pagealign_alloc.c: Don't include getpagesize.h.
24701 2007-12-02 Bruno Haible <bruno@clisp.org>
24703 * modules/strings-tests: New file.
24704 * tests/test-strings.c: New file.
24706 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
24707 * lib/strings.in.h: New file.
24708 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
24709 * m4/strings_h.m4: New file.
24710 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
24711 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
24712 * modules/strings: New file.
24713 * modules/string (Makefile.am): Update.
24714 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
24715 Reported by Karl Berry.
24717 2007-12-01 Eric Blake <ebb9@byu.net>
24719 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
24720 accomodate fix in cygwin 1.5.25.
24722 2007-12-01 Jim Meyering <meyering@redhat.com>
24724 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
24725 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
24726 that would inhibit utf8-optimization of a regexp containing line-
24727 or buffer-anchors, e.g., `^', `$'.
24729 2007-11-30 Bruno Haible <bruno@clisp.org>
24731 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
24732 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
24733 glthread_recursive_lock_init.
24734 * lib/lock.c (glthread_recursive_lock_init)
24735 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
24736 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
24738 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
24740 New function qset_acl, like set_acl but with syscall semantics.
24741 * lib/acl.h (qset_acl): New decl.
24742 * lib/acl.c (qset_acl): New function.
24743 (set_acl): Use new function. Use more-consistent diagnostics.
24745 2007-11-28 Jim Meyering <meyering@redhat.com>
24747 * modules/physmem (License): Change from GPL to LGPLv2+.
24749 2007-11-26 Bruno Haible <bruno@clisp.org>
24751 * lib/vasnprintf.c (decode_long_double): Don't abort if the
24752 'long double' type has excess precision.
24753 Reported by Jim Meyering in
24754 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
24756 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24758 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
24759 Sync from <http://gnu.org/licenses>.
24760 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
24761 with license text from same location.
24762 * doc/maintain.texi, doc/standards.texi: Sync from
24763 <http://savannah.gnu.org/projects/gnustandards>.
24765 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
24766 and Jim Meyering <meyering@redhat.com>
24768 Adjust getdate' grammar to accept a slightly more regular language.
24769 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
24770 Before, the former was rejected.
24771 * lib/getdate.y (digits_to_date_time): New function, factored
24773 (number): ...here. Just call digits_to_date_time.
24774 (hybrid): New non-terminal to handle an <unsigned number,
24775 signed relative offset> sequence consistently.
24777 2007-11-18 Jim Meyering <meyering@redhat.com>
24779 Pull my changes from coreutils:
24780 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
24781 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
24782 use of $gnulib_tool_option_extras, so that it's separated from the
24783 preceding argument.
24785 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
24786 * build-aux/bootstrap (cp_mark_as_generated): Create any required
24787 parent destination directories before copying a file into place.
24789 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
24791 bootstrap: work also with 4-argument variant of AC_INIT
24792 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
24794 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
24796 Port test-getaddrinfo to Solaris.
24797 Problem reported by Bruno Haible in
24798 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
24799 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
24800 explanation of setting 'hints'.
24801 Don't reject an implementation merely because it returns EAI_SERVICE.
24802 (EAI_SERVICE): Define to 0 if not defined.
24804 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
24806 The license of gnu-make and posix-shell is now "GPLed build tool".
24807 * modules/gnu-make (License): Likewise.
24808 * modules/posix-shell (License): Likewise.
24810 New module posix-shell, for determining a POSIX shell
24811 or perhaps something that is close enough to a POSIX shell.
24812 * m4/posix-shell.m4: New file.
24813 * modules/posix-shell: New file.
24815 * MODULES.html.sh: Mention new module.
24817 New module gnu-make, for determining whether we're using GNU Make.
24818 * m4/gnu-make.m4: New file.
24819 * modules/gnu-make: New file.
24820 * MODULES.html.sh: Mention new module.
24822 2007-11-14 Jim Meyering <meyering@redhat.com>
24824 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
24825 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
24826 use this macro to create a function _definition_.
24827 Remove useless "#undef ARGMATCH_DIE".
24829 2007-11-14 Bruno Haible <bruno@clisp.org>
24831 * lib/config.charset: Update for OpenBSD 4.1.
24832 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
24834 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
24836 Document 64-bit #if problems in stdint.texi.
24837 * doc/headers/stdint.texi (stdint.h): Mention problems with
24838 64-bit-#if, and how to work around them.
24840 Don't insist on 'long long int' support in the preprocessor. It
24841 breaks too many things. For example, PRIdMAX still uses a 'long
24842 long int' format with the latest Sun compiler, even though
24843 HAVE_LONG_LONG_INT isn't defined due to that compiler's
24844 preprocessor problem. This causes the latest coreutils to dump
24845 core on Solaris 10 sparc with the Sun C compiler.
24846 Instead, fix the 2007-10-16 problem in a different way, by evaluating
24847 the troublesome expressions at configure-time, not at #if-time.
24848 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
24850 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
24851 compile-time C checks, done at 'configure'-time.
24852 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
24853 * modules/inttypes (Makefile): Substitute the new symbols that
24854 gl_INTTYPES_H now generates.
24855 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
24857 2007-11-12 Bruno Haible <bruno@clisp.org>
24859 Tests for Unicode character classification functions.
24861 * modules/unictype/bidicategory-byname-tests: New file.
24862 * modules/unictype/bidicategory-name-tests: New file.
24863 * modules/unictype/bidicategory-of-tests: New file.
24864 * modules/unictype/bidicategory-test-tests: New file.
24865 * modules/unictype/block-list-tests: New file.
24866 * modules/unictype/block-of-tests: New file.
24867 * modules/unictype/block-test-tests: New file.
24868 * modules/unictype/category-C-tests: New file.
24869 * modules/unictype/category-Cc-tests: New file.
24870 * modules/unictype/category-Cf-tests: New file.
24871 * modules/unictype/category-Cn-tests: New file.
24872 * modules/unictype/category-Co-tests: New file.
24873 * modules/unictype/category-Cs-tests: New file.
24874 * modules/unictype/category-L-tests: New file.
24875 * modules/unictype/category-Ll-tests: New file.
24876 * modules/unictype/category-Lm-tests: New file.
24877 * modules/unictype/category-Lo-tests: New file.
24878 * modules/unictype/category-Lt-tests: New file.
24879 * modules/unictype/category-Lu-tests: New file.
24880 * modules/unictype/category-M-tests: New file.
24881 * modules/unictype/category-Mc-tests: New file.
24882 * modules/unictype/category-Me-tests: New file.
24883 * modules/unictype/category-Mn-tests: New file.
24884 * modules/unictype/category-N-tests: New file.
24885 * modules/unictype/category-Nd-tests: New file.
24886 * modules/unictype/category-Nl-tests: New file.
24887 * modules/unictype/category-No-tests: New file.
24888 * modules/unictype/category-P-tests: New file.
24889 * modules/unictype/category-Pc-tests: New file.
24890 * modules/unictype/category-Pd-tests: New file.
24891 * modules/unictype/category-Pe-tests: New file.
24892 * modules/unictype/category-Pf-tests: New file.
24893 * modules/unictype/category-Pi-tests: New file.
24894 * modules/unictype/category-Po-tests: New file.
24895 * modules/unictype/category-Ps-tests: New file.
24896 * modules/unictype/category-S-tests: New file.
24897 * modules/unictype/category-Sc-tests: New file.
24898 * modules/unictype/category-Sk-tests: New file.
24899 * modules/unictype/category-Sm-tests: New file.
24900 * modules/unictype/category-So-tests: New file.
24901 * modules/unictype/category-Z-tests: New file.
24902 * modules/unictype/category-Zl-tests: New file.
24903 * modules/unictype/category-Zp-tests: New file.
24904 * modules/unictype/category-Zs-tests: New file.
24905 * modules/unictype/category-and-not-tests: New file.
24906 * modules/unictype/category-and-tests: New file.
24907 * modules/unictype/category-byname-tests: New file.
24908 * modules/unictype/category-name-tests: New file.
24909 * modules/unictype/category-none-tests: New file.
24910 * modules/unictype/category-of-tests: New file.
24911 * modules/unictype/category-or-tests: New file.
24912 * modules/unictype/category-test-withtable-tests: New file.
24913 * modules/unictype/combining-class-tests: New file.
24914 * modules/unictype/ctype-alnum-tests: New file.
24915 * modules/unictype/ctype-alpha-tests: New file.
24916 * modules/unictype/ctype-blank-tests: New file.
24917 * modules/unictype/ctype-cntrl-tests: New file.
24918 * modules/unictype/ctype-digit-tests: New file.
24919 * modules/unictype/ctype-graph-tests: New file.
24920 * modules/unictype/ctype-lower-tests: New file.
24921 * modules/unictype/ctype-print-tests: New file.
24922 * modules/unictype/ctype-punct-tests: New file.
24923 * modules/unictype/ctype-space-tests: New file.
24924 * modules/unictype/ctype-upper-tests: New file.
24925 * modules/unictype/ctype-xdigit-tests: New file.
24926 * modules/unictype/decimal-digit-tests: New file.
24927 * modules/unictype/digit-tests: New file.
24928 * modules/unictype/mirror-tests: New file.
24929 * modules/unictype/numeric-tests: New file.
24930 * modules/unictype/property-alphabetic-tests: New file.
24931 * modules/unictype/property-ascii-hex-digit-tests: New file.
24932 * modules/unictype/property-bidi-arabic-digit-tests: New file.
24933 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
24934 * modules/unictype/property-bidi-block-separator-tests: New file.
24935 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
24936 * modules/unictype/property-bidi-common-separator-tests: New file.
24937 * modules/unictype/property-bidi-control-tests: New file.
24938 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
24939 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
24940 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
24941 * modules/unictype/property-bidi-european-digit-tests: New file.
24942 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
24943 * modules/unictype/property-bidi-left-to-right-tests: New file.
24944 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
24945 * modules/unictype/property-bidi-other-neutral-tests: New file.
24946 * modules/unictype/property-bidi-pdf-tests: New file.
24947 * modules/unictype/property-bidi-segment-separator-tests: New file.
24948 * modules/unictype/property-bidi-whitespace-tests: New file.
24949 * modules/unictype/property-byname-tests: New file.
24950 * modules/unictype/property-combining-tests: New file.
24951 * modules/unictype/property-composite-tests: New file.
24952 * modules/unictype/property-currency-symbol-tests: New file.
24953 * modules/unictype/property-dash-tests: New file.
24954 * modules/unictype/property-decimal-digit-tests: New file.
24955 * modules/unictype/property-default-ignorable-code-point-tests: New file.
24956 * modules/unictype/property-deprecated-tests: New file.
24957 * modules/unictype/property-diacritic-tests: New file.
24958 * modules/unictype/property-extender-tests: New file.
24959 * modules/unictype/property-format-control-tests: New file.
24960 * modules/unictype/property-grapheme-base-tests: New file.
24961 * modules/unictype/property-grapheme-extend-tests: New file.
24962 * modules/unictype/property-grapheme-link-tests: New file.
24963 * modules/unictype/property-hex-digit-tests: New file.
24964 * modules/unictype/property-hyphen-tests: New file.
24965 * modules/unictype/property-id-continue-tests: New file.
24966 * modules/unictype/property-id-start-tests: New file.
24967 * modules/unictype/property-ideographic-tests: New file.
24968 * modules/unictype/property-ids-binary-operator-tests: New file.
24969 * modules/unictype/property-ids-trinary-operator-tests: New file.
24970 * modules/unictype/property-ignorable-control-tests: New file.
24971 * modules/unictype/property-iso-control-tests: New file.
24972 * modules/unictype/property-join-control-tests: New file.
24973 * modules/unictype/property-left-of-pair-tests: New file.
24974 * modules/unictype/property-line-separator-tests: New file.
24975 * modules/unictype/property-logical-order-exception-tests: New file.
24976 * modules/unictype/property-lowercase-tests: New file.
24977 * modules/unictype/property-math-tests: New file.
24978 * modules/unictype/property-non-break-tests: New file.
24979 * modules/unictype/property-not-a-character-tests: New file.
24980 * modules/unictype/property-numeric-tests: New file.
24981 * modules/unictype/property-other-alphabetic-tests: New file.
24982 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
24983 * modules/unictype/property-other-grapheme-extend-tests: New file.
24984 * modules/unictype/property-other-id-continue-tests: New file.
24985 * modules/unictype/property-other-id-start-tests: New file.
24986 * modules/unictype/property-other-lowercase-tests: New file.
24987 * modules/unictype/property-other-math-tests: New file.
24988 * modules/unictype/property-other-uppercase-tests: New file.
24989 * modules/unictype/property-paired-punctuation-tests: New file.
24990 * modules/unictype/property-paragraph-separator-tests: New file.
24991 * modules/unictype/property-pattern-syntax-tests: New file.
24992 * modules/unictype/property-pattern-white-space-tests: New file.
24993 * modules/unictype/property-private-use-tests: New file.
24994 * modules/unictype/property-punctuation-tests: New file.
24995 * modules/unictype/property-quotation-mark-tests: New file.
24996 * modules/unictype/property-radical-tests: New file.
24997 * modules/unictype/property-sentence-terminal-tests: New file.
24998 * modules/unictype/property-soft-dotted-tests: New file.
24999 * modules/unictype/property-space-tests: New file.
25000 * modules/unictype/property-terminal-punctuation-tests: New file.
25001 * modules/unictype/property-test-tests: New file.
25002 * modules/unictype/property-titlecase-tests: New file.
25003 * modules/unictype/property-unassigned-code-value-tests: New file.
25004 * modules/unictype/property-unified-ideograph-tests: New file.
25005 * modules/unictype/property-uppercase-tests: New file.
25006 * modules/unictype/property-variation-selector-tests: New file.
25007 * modules/unictype/property-white-space-tests: New file.
25008 * modules/unictype/property-xid-continue-tests: New file.
25009 * modules/unictype/property-xid-start-tests: New file.
25010 * modules/unictype/property-zero-width-tests: New file.
25011 * modules/unictype/scripts-tests: New file.
25012 * modules/unictype/syntax-c-ident-tests: New file.
25013 * modules/unictype/syntax-c-whitespace-tests: New file.
25014 * modules/unictype/syntax-java-ident-tests: New file.
25015 * modules/unictype/syntax-java-whitespace-tests: New file.
25016 * tests/unictype/test-bidi_byname.c: New file.
25017 * tests/unictype/test-bidi_name.c: New file.
25018 * tests/unictype/test-bidi_of.c: New file.
25019 * tests/unictype/test-bidi_test.c: New file.
25020 * tests/unictype/test-block_list.c: New file.
25021 * tests/unictype/test-block_of.c: New file.
25022 * tests/unictype/test-block_test.c: New file.
25023 * tests/unictype/test-categ_and.c: New file.
25024 * tests/unictype/test-categ_and_not.c: New file.
25025 * tests/unictype/test-categ_byname.c: New file.
25026 * tests/unictype/test-categ_name.c: New file.
25027 * tests/unictype/test-categ_none.c: New file.
25028 * tests/unictype/test-categ_of.c: New file.
25029 * tests/unictype/test-categ_or.c: New file.
25030 * tests/unictype/test-categ_test_withtable.c: New file.
25031 * tests/unictype/test-combining.c: New file.
25032 * tests/unictype/test-decdigit.c: New file.
25033 * tests/unictype/test-digit.c: New file.
25034 * tests/unictype/test-mirror.c: New file.
25035 * tests/unictype/test-numeric.c: New file.
25036 * tests/unictype/test-pr_byname.c: New file.
25037 * tests/unictype/test-pr_test.c: New file.
25038 * tests/unictype/test-predicate-part1.h: New file.
25039 * tests/unictype/test-predicate-part2.h: New file.
25040 * tests/unictype/test-scripts.c: New file.
25041 * tests/unictype/test-sy_c_ident.c: New file.
25042 * tests/unictype/test-sy_java_ident.c: New file.
25044 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
25046 * tests/unictype/test-categ_Cc.c: Likewise.
25047 * tests/unictype/test-categ_Cf.c: Likewise.
25048 * tests/unictype/test-categ_Cn.c: Likewise.
25049 * tests/unictype/test-categ_Co.c: Likewise.
25050 * tests/unictype/test-categ_Cs.c: Likewise.
25051 * tests/unictype/test-categ_L.c: Likewise.
25052 * tests/unictype/test-categ_Ll.c: Likewise.
25053 * tests/unictype/test-categ_Lm.c: Likewise.
25054 * tests/unictype/test-categ_Lo.c: Likewise.
25055 * tests/unictype/test-categ_Lt.c: Likewise.
25056 * tests/unictype/test-categ_Lu.c: Likewise.
25057 * tests/unictype/test-categ_M.c: Likewise.
25058 * tests/unictype/test-categ_Mc.c: Likewise.
25059 * tests/unictype/test-categ_Me.c: Likewise.
25060 * tests/unictype/test-categ_Mn.c: Likewise.
25061 * tests/unictype/test-categ_N.c: Likewise.
25062 * tests/unictype/test-categ_Nd.c: Likewise.
25063 * tests/unictype/test-categ_Nl.c: Likewise.
25064 * tests/unictype/test-categ_No.c: Likewise.
25065 * tests/unictype/test-categ_P.c: Likewise.
25066 * tests/unictype/test-categ_Pc.c: Likewise.
25067 * tests/unictype/test-categ_Pd.c: Likewise.
25068 * tests/unictype/test-categ_Pe.c: Likewise.
25069 * tests/unictype/test-categ_Pf.c: Likewise.
25070 * tests/unictype/test-categ_Pi.c: Likewise.
25071 * tests/unictype/test-categ_Po.c: Likewise.
25072 * tests/unictype/test-categ_Ps.c: Likewise.
25073 * tests/unictype/test-categ_S.c: Likewise.
25074 * tests/unictype/test-categ_Sc.c: Likewise.
25075 * tests/unictype/test-categ_Sk.c: Likewise.
25076 * tests/unictype/test-categ_Sm.c: Likewise.
25077 * tests/unictype/test-categ_So.c: Likewise.
25078 * tests/unictype/test-categ_Z.c: Likewise.
25079 * tests/unictype/test-categ_Zl.c: Likewise.
25080 * tests/unictype/test-categ_Zp.c: Likewise.
25081 * tests/unictype/test-categ_Zs.c: Likewise.
25082 * tests/unictype/test-ctype_alnum.c: Likewise.
25083 * tests/unictype/test-ctype_alpha.c: Likewise.
25084 * tests/unictype/test-ctype_blank.c: Likewise.
25085 * tests/unictype/test-ctype_cntrl.c: Likewise.
25086 * tests/unictype/test-ctype_digit.c: Likewise.
25087 * tests/unictype/test-ctype_graph.c: Likewise.
25088 * tests/unictype/test-ctype_lower.c: Likewise.
25089 * tests/unictype/test-ctype_print.c: Likewise.
25090 * tests/unictype/test-ctype_punct.c: Likewise.
25091 * tests/unictype/test-ctype_space.c: Likewise.
25092 * tests/unictype/test-ctype_upper.c: Likewise.
25093 * tests/unictype/test-ctype_xdigit.c: Likewise.
25094 * tests/unictype/test-decdigit.h: Likewise.
25095 * tests/unictype/test-digit.h: Likewise.
25096 * tests/unictype/test-numeric.h: Likewise.
25097 * tests/unictype/test-pr_alphabetic.c: Likewise.
25098 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
25099 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25100 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25101 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
25102 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25103 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
25104 * tests/unictype/test-pr_bidi_control.c: Likewise.
25105 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
25106 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
25107 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25108 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25109 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25110 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25111 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25112 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25113 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
25114 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
25115 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
25116 * tests/unictype/test-pr_combining.c: Likewise.
25117 * tests/unictype/test-pr_composite.c: Likewise.
25118 * tests/unictype/test-pr_currency_symbol.c: Likewise.
25119 * tests/unictype/test-pr_dash.c: Likewise.
25120 * tests/unictype/test-pr_decimal_digit.c: Likewise.
25121 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
25122 * tests/unictype/test-pr_deprecated.c: Likewise.
25123 * tests/unictype/test-pr_diacritic.c: Likewise.
25124 * tests/unictype/test-pr_extender.c: Likewise.
25125 * tests/unictype/test-pr_format_control.c: Likewise.
25126 * tests/unictype/test-pr_grapheme_base.c: Likewise.
25127 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25128 * tests/unictype/test-pr_grapheme_link.c: Likewise.
25129 * tests/unictype/test-pr_hex_digit.c: Likewise.
25130 * tests/unictype/test-pr_hyphen.c: Likewise.
25131 * tests/unictype/test-pr_id_continue.c: Likewise.
25132 * tests/unictype/test-pr_id_start.c: Likewise.
25133 * tests/unictype/test-pr_ideographic.c: Likewise.
25134 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
25135 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
25136 * tests/unictype/test-pr_ignorable_control.c: Likewise.
25137 * tests/unictype/test-pr_iso_control.c: Likewise.
25138 * tests/unictype/test-pr_join_control.c: Likewise.
25139 * tests/unictype/test-pr_left_of_pair.c: Likewise.
25140 * tests/unictype/test-pr_line_separator.c: Likewise.
25141 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25142 * tests/unictype/test-pr_lowercase.c: Likewise.
25143 * tests/unictype/test-pr_math.c: Likewise.
25144 * tests/unictype/test-pr_non_break.c: Likewise.
25145 * tests/unictype/test-pr_not_a_character.c: Likewise.
25146 * tests/unictype/test-pr_numeric.c: Likewise.
25147 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25148 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
25149 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
25150 * tests/unictype/test-pr_other_id_continue.c: Likewise.
25151 * tests/unictype/test-pr_other_id_start.c: Likewise.
25152 * tests/unictype/test-pr_other_lowercase.c: Likewise.
25153 * tests/unictype/test-pr_other_math.c: Likewise.
25154 * tests/unictype/test-pr_other_uppercase.c: Likewise.
25155 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
25156 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
25157 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
25158 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
25159 * tests/unictype/test-pr_private_use.c: Likewise.
25160 * tests/unictype/test-pr_punctuation.c: Likewise.
25161 * tests/unictype/test-pr_quotation_mark.c: Likewise.
25162 * tests/unictype/test-pr_radical.c: Likewise.
25163 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25164 * tests/unictype/test-pr_soft_dotted.c: Likewise.
25165 * tests/unictype/test-pr_space.c: Likewise.
25166 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25167 * tests/unictype/test-pr_titlecase.c: Likewise.
25168 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25169 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25170 * tests/unictype/test-pr_uppercase.c: Likewise.
25171 * tests/unictype/test-pr_variation_selector.c: Likewise.
25172 * tests/unictype/test-pr_white_space.c: Likewise.
25173 * tests/unictype/test-pr_xid_continue.c: Likewise.
25174 * tests/unictype/test-pr_xid_start.c: Likewise.
25175 * tests/unictype/test-pr_zero_width.c: Likewise.
25176 * tests/unictype/test-sy_c_whitespace.c: Likewise.
25177 * tests/unictype/test-sy_java_whitespace.c: Likewise.
25179 2007-11-12 Bruno Haible <bruno@clisp.org>
25181 Unicode character classification functions.
25182 * lib/unictype.h: New file.
25183 * modules/unictype/base: New file.
25184 * modules/unictype/category-L: New file.
25185 * modules/unictype/category-Lu: New file.
25186 * modules/unictype/category-Ll: New file.
25187 * modules/unictype/category-Lt: New file.
25188 * modules/unictype/category-Lm: New file.
25189 * modules/unictype/category-Lo: New file.
25190 * modules/unictype/category-M: New file.
25191 * modules/unictype/category-Mn: New file.
25192 * modules/unictype/category-Mc: New file.
25193 * modules/unictype/category-Me: New file.
25194 * modules/unictype/category-N: New file.
25195 * modules/unictype/category-Nd: New file.
25196 * modules/unictype/category-Nl: New file.
25197 * modules/unictype/category-No: New file.
25198 * modules/unictype/category-P: New file.
25199 * modules/unictype/category-Pc: New file.
25200 * modules/unictype/category-Pd: New file.
25201 * modules/unictype/category-Ps: New file.
25202 * modules/unictype/category-Pe: New file.
25203 * modules/unictype/category-Pi: New file.
25204 * modules/unictype/category-Pf: New file.
25205 * modules/unictype/category-Po: New file.
25206 * modules/unictype/category-S: New file.
25207 * modules/unictype/category-Sm: New file.
25208 * modules/unictype/category-Sc: New file.
25209 * modules/unictype/category-Sk: New file.
25210 * modules/unictype/category-So: New file.
25211 * modules/unictype/category-Z: New file.
25212 * modules/unictype/category-Zs: New file.
25213 * modules/unictype/category-Zl: New file.
25214 * modules/unictype/category-Zp: New file.
25215 * modules/unictype/category-C: New file.
25216 * modules/unictype/category-Cc: New file.
25217 * modules/unictype/category-Cf: New file.
25218 * modules/unictype/category-Cs: New file.
25219 * modules/unictype/category-Co: New file.
25220 * modules/unictype/category-Cn: New file.
25221 * modules/unictype/category-or: New file.
25222 * modules/unictype/category-of: New file.
25223 * modules/unictype/category-test: New file.
25224 * modules/unictype/category-test-withtable: New file.
25225 * modules/unictype/category-byname: New file.
25226 * modules/unictype/category-none: New file.
25227 * modules/unictype/category-and: New file.
25228 * modules/unictype/category-and-not: New file.
25229 * modules/unictype/category-name: New file.
25230 * modules/unictype/combining-class: New file.
25231 * modules/unictype/category-all: New file.
25232 * modules/unictype/bidicategory-all: New file.
25233 * modules/unictype/bidicategory-byname: New file.
25234 * modules/unictype/bidicategory-name: New file.
25235 * modules/unictype/bidicategory-of: New file.
25236 * modules/unictype/bidicategory-test: New file.
25237 * modules/unictype/decimal-digit: New file.
25238 * modules/unictype/digit: New file.
25239 * modules/unictype/numeric: New file.
25240 * modules/unictype/mirror: New file.
25241 * modules/unictype/property-white-space: New file.
25242 * modules/unictype/property-alphabetic: New file.
25243 * modules/unictype/property-other-alphabetic: New file.
25244 * modules/unictype/property-not-a-character: New file.
25245 * modules/unictype/property-default-ignorable-code-point: New file.
25246 * modules/unictype/property-other-default-ignorable-code-point: New
25248 * modules/unictype/property-deprecated: New file.
25249 * modules/unictype/property-logical-order-exception: New file.
25250 * modules/unictype/property-variation-selector: New file.
25251 * modules/unictype/property-private-use: New file.
25252 * modules/unictype/property-unassigned-code-value: New file.
25253 * modules/unictype/property-uppercase: New file.
25254 * modules/unictype/property-other-uppercase: New file.
25255 * modules/unictype/property-lowercase: New file.
25256 * modules/unictype/property-other-lowercase: New file.
25257 * modules/unictype/property-titlecase: New file.
25258 * modules/unictype/property-soft-dotted: New file.
25259 * modules/unictype/property-id-start: New file.
25260 * modules/unictype/property-other-id-start: New file.
25261 * modules/unictype/property-id-continue: New file.
25262 * modules/unictype/property-other-id-continue: New file.
25263 * modules/unictype/property-xid-start: New file.
25264 * modules/unictype/property-xid-continue: New file.
25265 * modules/unictype/property-pattern-white-space: New file.
25266 * modules/unictype/property-pattern-syntax: New file.
25267 * modules/unictype/property-join-control: New file.
25268 * modules/unictype/property-grapheme-base: New file.
25269 * modules/unictype/property-grapheme-extend: New file.
25270 * modules/unictype/property-other-grapheme-extend: New file.
25271 * modules/unictype/property-grapheme-link: New file.
25272 * modules/unictype/property-bidi-control: New file.
25273 * modules/unictype/property-bidi-left-to-right: New file.
25274 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
25275 * modules/unictype/property-bidi-arabic-right-to-left: New file.
25276 * modules/unictype/property-bidi-european-digit: New file.
25277 * modules/unictype/property-bidi-eur-num-separator: New file.
25278 * modules/unictype/property-bidi-eur-num-terminator: New file.
25279 * modules/unictype/property-bidi-arabic-digit: New file.
25280 * modules/unictype/property-bidi-common-separator: New file.
25281 * modules/unictype/property-bidi-block-separator: New file.
25282 * modules/unictype/property-bidi-segment-separator: New file.
25283 * modules/unictype/property-bidi-whitespace: New file.
25284 * modules/unictype/property-bidi-non-spacing-mark: New file.
25285 * modules/unictype/property-bidi-boundary-neutral: New file.
25286 * modules/unictype/property-bidi-pdf: New file.
25287 * modules/unictype/property-bidi-embedding-or-override: New file.
25288 * modules/unictype/property-bidi-other-neutral: New file.
25289 * modules/unictype/property-hex-digit: New file.
25290 * modules/unictype/property-ascii-hex-digit: New file.
25291 * modules/unictype/property-ideographic: New file.
25292 * modules/unictype/property-unified-ideograph: New file.
25293 * modules/unictype/property-radical: New file.
25294 * modules/unictype/property-ids-binary-operator: New file.
25295 * modules/unictype/property-ids-trinary-operator: New file.
25296 * modules/unictype/property-zero-width: New file.
25297 * modules/unictype/property-space: New file.
25298 * modules/unictype/property-non-break: New file.
25299 * modules/unictype/property-iso-control: New file.
25300 * modules/unictype/property-format-control: New file.
25301 * modules/unictype/property-dash: New file.
25302 * modules/unictype/property-hyphen: New file.
25303 * modules/unictype/property-punctuation: New file.
25304 * modules/unictype/property-line-separator: New file.
25305 * modules/unictype/property-paragraph-separator: New file.
25306 * modules/unictype/property-quotation-mark: New file.
25307 * modules/unictype/property-sentence-terminal: New file.
25308 * modules/unictype/property-terminal-punctuation: New file.
25309 * modules/unictype/property-currency-symbol: New file.
25310 * modules/unictype/property-math: New file.
25311 * modules/unictype/property-other-math: New file.
25312 * modules/unictype/property-paired-punctuation: New file.
25313 * modules/unictype/property-left-of-pair: New file.
25314 * modules/unictype/property-combining: New file.
25315 * modules/unictype/property-composite: New file.
25316 * modules/unictype/property-decimal-digit: New file.
25317 * modules/unictype/property-numeric: New file.
25318 * modules/unictype/property-diacritic: New file.
25319 * modules/unictype/property-extender: New file.
25320 * modules/unictype/property-ignorable-control: New file.
25321 * modules/unictype/property-test: New file.
25322 * modules/unictype/property-byname: New file.
25323 * modules/unictype/property-all: New file.
25324 * modules/unictype/scripts: New file.
25325 * modules/unictype/scripts-all: New file.
25326 * modules/unictype/block-of: New file.
25327 * modules/unictype/block-test: New file.
25328 * modules/unictype/block-list: New file.
25329 * modules/unictype/block-all: New file.
25330 * modules/unictype/syntax-c-whitespace: New file.
25331 * modules/unictype/syntax-java-whitespace: New file.
25332 * modules/unictype/syntax-c-ident: New file.
25333 * modules/unictype/syntax-java-ident: New file.
25334 * modules/unictype/ctype-alnum: New file.
25335 * modules/unictype/ctype-alpha: New file.
25336 * modules/unictype/ctype-cntrl: New file.
25337 * modules/unictype/ctype-digit: New file.
25338 * modules/unictype/ctype-graph: New file.
25339 * modules/unictype/ctype-lower: New file.
25340 * modules/unictype/ctype-print: New file.
25341 * modules/unictype/ctype-punct: New file.
25342 * modules/unictype/ctype-space: New file.
25343 * modules/unictype/ctype-upper: New file.
25344 * modules/unictype/ctype-xdigit: New file.
25345 * modules/unictype/ctype-blank: New file.
25346 * lib/unictype/bidi_byname.c: New file.
25347 * lib/unictype/bidi_name.c: New file.
25348 * lib/unictype/bidi_of.c: New file.
25349 * lib/unictype/bidi_test.c: New file.
25350 * lib/unictype/bitmap.h: New file.
25351 * lib/unictype/block_test.c: New file.
25352 * lib/unictype/blocks.c: New file.
25353 * lib/unictype/categ_C.c: New file.
25354 * lib/unictype/categ_Cc.c: New file.
25355 * lib/unictype/categ_Cf.c: New file.
25356 * lib/unictype/categ_Cn.c: New file.
25357 * lib/unictype/categ_Co.c: New file.
25358 * lib/unictype/categ_Cs.c: New file.
25359 * lib/unictype/categ_L.c: New file.
25360 * lib/unictype/categ_Ll.c: New file.
25361 * lib/unictype/categ_Lm.c: New file.
25362 * lib/unictype/categ_Lo.c: New file.
25363 * lib/unictype/categ_Lt.c: New file.
25364 * lib/unictype/categ_Lu.c: New file.
25365 * lib/unictype/categ_M.c: New file.
25366 * lib/unictype/categ_Mc.c: New file.
25367 * lib/unictype/categ_Me.c: New file.
25368 * lib/unictype/categ_Mn.c: New file.
25369 * lib/unictype/categ_N.c: New file.
25370 * lib/unictype/categ_Nd.c: New file.
25371 * lib/unictype/categ_Nl.c: New file.
25372 * lib/unictype/categ_No.c: New file.
25373 * lib/unictype/categ_P.c: New file.
25374 * lib/unictype/categ_Pc.c: New file.
25375 * lib/unictype/categ_Pd.c: New file.
25376 * lib/unictype/categ_Pe.c: New file.
25377 * lib/unictype/categ_Pf.c: New file.
25378 * lib/unictype/categ_Pi.c: New file.
25379 * lib/unictype/categ_Po.c: New file.
25380 * lib/unictype/categ_Ps.c: New file.
25381 * lib/unictype/categ_S.c: New file.
25382 * lib/unictype/categ_Sc.c: New file.
25383 * lib/unictype/categ_Sk.c: New file.
25384 * lib/unictype/categ_Sm.c: New file.
25385 * lib/unictype/categ_So.c: New file.
25386 * lib/unictype/categ_Z.c: New file.
25387 * lib/unictype/categ_Zl.c: New file.
25388 * lib/unictype/categ_Zp.c: New file.
25389 * lib/unictype/categ_Zs.c: New file.
25390 * lib/unictype/categ_and.c: New file.
25391 * lib/unictype/categ_and_not.c: New file.
25392 * lib/unictype/categ_byname.c: New file.
25393 * lib/unictype/categ_name.c: New file.
25394 * lib/unictype/categ_none.c: New file.
25395 * lib/unictype/categ_of.c: New file.
25396 * lib/unictype/categ_or.c: New file.
25397 * lib/unictype/categ_test.c: New file.
25398 * lib/unictype/combining.c: New file.
25399 * lib/unictype/ctype_alnum.c: New file.
25400 * lib/unictype/ctype_alpha.c: New file.
25401 * lib/unictype/ctype_blank.c: New file.
25402 * lib/unictype/ctype_cntrl.c: New file.
25403 * lib/unictype/ctype_digit.c: New file.
25404 * lib/unictype/ctype_graph.c: New file.
25405 * lib/unictype/ctype_lower.c: New file.
25406 * lib/unictype/ctype_print.c: New file.
25407 * lib/unictype/ctype_punct.c: New file.
25408 * lib/unictype/ctype_space.c: New file.
25409 * lib/unictype/ctype_upper.c: New file.
25410 * lib/unictype/ctype_xdigit.c: New file.
25411 * lib/unictype/decdigit.c: New file.
25412 * lib/unictype/digit.c: New file.
25413 * lib/unictype/identsyntaxmap.h: New file.
25414 * lib/unictype/mirror.c: New file.
25415 * lib/unictype/numeric.c: New file.
25416 * lib/unictype/pr_alphabetic.c: New file.
25417 * lib/unictype/pr_ascii_hex_digit.c: New file.
25418 * lib/unictype/pr_bidi_arabic_digit.c: New file.
25419 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
25420 * lib/unictype/pr_bidi_block_separator.c: New file.
25421 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
25422 * lib/unictype/pr_bidi_common_separator.c: New file.
25423 * lib/unictype/pr_bidi_control.c: New file.
25424 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
25425 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
25426 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
25427 * lib/unictype/pr_bidi_european_digit.c: New file.
25428 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
25429 * lib/unictype/pr_bidi_left_to_right.c: New file.
25430 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
25431 * lib/unictype/pr_bidi_other_neutral.c: New file.
25432 * lib/unictype/pr_bidi_pdf.c: New file.
25433 * lib/unictype/pr_bidi_segment_separator.c: New file.
25434 * lib/unictype/pr_bidi_whitespace.c: New file.
25435 * lib/unictype/pr_byname.c: New file.
25436 * lib/unictype/pr_byname.gperf: New file.
25437 * lib/unictype/pr_combining.c: New file.
25438 * lib/unictype/pr_composite.c: New file.
25439 * lib/unictype/pr_currency_symbol.c: New file.
25440 * lib/unictype/pr_dash.c: New file.
25441 * lib/unictype/pr_decimal_digit.c: New file.
25442 * lib/unictype/pr_default_ignorable_code_point.c: New file.
25443 * lib/unictype/pr_deprecated.c: New file.
25444 * lib/unictype/pr_diacritic.c: New file.
25445 * lib/unictype/pr_extender.c: New file.
25446 * lib/unictype/pr_format_control.c: New file.
25447 * lib/unictype/pr_grapheme_base.c: New file.
25448 * lib/unictype/pr_grapheme_extend.c: New file.
25449 * lib/unictype/pr_grapheme_link.c: New file.
25450 * lib/unictype/pr_hex_digit.c: New file.
25451 * lib/unictype/pr_hyphen.c: New file.
25452 * lib/unictype/pr_id_continue.c: New file.
25453 * lib/unictype/pr_id_start.c: New file.
25454 * lib/unictype/pr_ideographic.c: New file.
25455 * lib/unictype/pr_ids_binary_operator.c: New file.
25456 * lib/unictype/pr_ids_trinary_operator.c: New file.
25457 * lib/unictype/pr_ignorable_control.c: New file.
25458 * lib/unictype/pr_iso_control.c: New file.
25459 * lib/unictype/pr_join_control.c: New file.
25460 * lib/unictype/pr_left_of_pair.c: New file.
25461 * lib/unictype/pr_line_separator.c: New file.
25462 * lib/unictype/pr_logical_order_exception.c: New file.
25463 * lib/unictype/pr_lowercase.c: New file.
25464 * lib/unictype/pr_math.c: New file.
25465 * lib/unictype/pr_non_break.c: New file.
25466 * lib/unictype/pr_not_a_character.c: New file.
25467 * lib/unictype/pr_numeric.c: New file.
25468 * lib/unictype/pr_other_alphabetic.c: New file.
25469 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
25470 * lib/unictype/pr_other_grapheme_extend.c: New file.
25471 * lib/unictype/pr_other_id_continue.c: New file.
25472 * lib/unictype/pr_other_id_start.c: New file.
25473 * lib/unictype/pr_other_lowercase.c: New file.
25474 * lib/unictype/pr_other_math.c: New file.
25475 * lib/unictype/pr_other_uppercase.c: New file.
25476 * lib/unictype/pr_paired_punctuation.c: New file.
25477 * lib/unictype/pr_paragraph_separator.c: New file.
25478 * lib/unictype/pr_pattern_syntax.c: New file.
25479 * lib/unictype/pr_pattern_white_space.c: New file.
25480 * lib/unictype/pr_private_use.c: New file.
25481 * lib/unictype/pr_punctuation.c: New file.
25482 * lib/unictype/pr_quotation_mark.c: New file.
25483 * lib/unictype/pr_radical.c: New file.
25484 * lib/unictype/pr_sentence_terminal.c: New file.
25485 * lib/unictype/pr_soft_dotted.c: New file.
25486 * lib/unictype/pr_space.c: New file.
25487 * lib/unictype/pr_terminal_punctuation.c: New file.
25488 * lib/unictype/pr_test.c: New file.
25489 * lib/unictype/pr_titlecase.c: New file.
25490 * lib/unictype/pr_unassigned_code_value.c: New file.
25491 * lib/unictype/pr_unified_ideograph.c: New file.
25492 * lib/unictype/pr_uppercase.c: New file.
25493 * lib/unictype/pr_variation_selector.c: New file.
25494 * lib/unictype/pr_white_space.c: New file.
25495 * lib/unictype/pr_xid_continue.c: New file.
25496 * lib/unictype/pr_xid_start.c: New file.
25497 * lib/unictype/pr_zero_width.c: New file.
25498 * lib/unictype/scripts.c: New file.
25499 * lib/unictype/sy_c_ident.c: New file.
25500 * lib/unictype/sy_c_whitespace.c: New file.
25501 * lib/unictype/sy_java_ident.c: New file.
25502 * lib/unictype/sy_java_whitespace.c: New file.
25504 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
25506 * lib/unictype/blocks.h: Likewise.
25507 * lib/unictype/categ_C.h: Likewise.
25508 * lib/unictype/categ_Cc.h: Likewise.
25509 * lib/unictype/categ_Cf.h: Likewise.
25510 * lib/unictype/categ_Cn.h: Likewise.
25511 * lib/unictype/categ_Co.h: Likewise.
25512 * lib/unictype/categ_Cs.h: Likewise.
25513 * lib/unictype/categ_L.h: Likewise.
25514 * lib/unictype/categ_Ll.h: Likewise.
25515 * lib/unictype/categ_Lm.h: Likewise.
25516 * lib/unictype/categ_Lo.h: Likewise.
25517 * lib/unictype/categ_Lt.h: Likewise.
25518 * lib/unictype/categ_Lu.h: Likewise.
25519 * lib/unictype/categ_M.h: Likewise.
25520 * lib/unictype/categ_Mc.h: Likewise.
25521 * lib/unictype/categ_Me.h: Likewise.
25522 * lib/unictype/categ_Mn.h: Likewise.
25523 * lib/unictype/categ_N.h: Likewise.
25524 * lib/unictype/categ_Nd.h: Likewise.
25525 * lib/unictype/categ_Nl.h: Likewise.
25526 * lib/unictype/categ_No.h: Likewise.
25527 * lib/unictype/categ_P.h: Likewise.
25528 * lib/unictype/categ_Pc.h: Likewise.
25529 * lib/unictype/categ_Pd.h: Likewise.
25530 * lib/unictype/categ_Pe.h: Likewise.
25531 * lib/unictype/categ_Pf.h: Likewise.
25532 * lib/unictype/categ_Pi.h: Likewise.
25533 * lib/unictype/categ_Po.h: Likewise.
25534 * lib/unictype/categ_Ps.h: Likewise.
25535 * lib/unictype/categ_S.h: Likewise.
25536 * lib/unictype/categ_Sc.h: Likewise.
25537 * lib/unictype/categ_Sk.h: Likewise.
25538 * lib/unictype/categ_Sm.h: Likewise.
25539 * lib/unictype/categ_So.h: Likewise.
25540 * lib/unictype/categ_Z.h: Likewise.
25541 * lib/unictype/categ_Zl.h: Likewise.
25542 * lib/unictype/categ_Zp.h: Likewise.
25543 * lib/unictype/categ_Zs.h: Likewise.
25544 * lib/unictype/categ_of.h: Likewise.
25545 * lib/unictype/combining.h: Likewise.
25546 * lib/unictype/ctype_alnum.h: Likewise.
25547 * lib/unictype/ctype_alpha.h: Likewise.
25548 * lib/unictype/ctype_blank.h: Likewise.
25549 * lib/unictype/ctype_cntrl.h: Likewise.
25550 * lib/unictype/ctype_digit.h: Likewise.
25551 * lib/unictype/ctype_graph.h: Likewise.
25552 * lib/unictype/ctype_lower.h: Likewise.
25553 * lib/unictype/ctype_print.h: Likewise.
25554 * lib/unictype/ctype_punct.h: Likewise.
25555 * lib/unictype/ctype_space.h: Likewise.
25556 * lib/unictype/ctype_upper.h: Likewise.
25557 * lib/unictype/ctype_xdigit.h: Likewise.
25558 * lib/unictype/decdigit.h: Likewise.
25559 * lib/unictype/digit.h: Likewise.
25560 * lib/unictype/mirror.h: Likewise.
25561 * lib/unictype/numeric.h: Likewise.
25562 * lib/unictype/pr_alphabetic.h: Likewise.
25563 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25564 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25565 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25566 * lib/unictype/pr_bidi_block_separator.h: Likewise.
25567 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25568 * lib/unictype/pr_bidi_common_separator.h: Likewise.
25569 * lib/unictype/pr_bidi_control.h: Likewise.
25570 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25571 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25572 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25573 * lib/unictype/pr_bidi_european_digit.h: Likewise.
25574 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25575 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25576 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25577 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25578 * lib/unictype/pr_bidi_pdf.h: Likewise.
25579 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25580 * lib/unictype/pr_bidi_whitespace.h: Likewise.
25581 * lib/unictype/pr_combining.h: Likewise.
25582 * lib/unictype/pr_composite.h: Likewise.
25583 * lib/unictype/pr_currency_symbol.h: Likewise.
25584 * lib/unictype/pr_dash.h: Likewise.
25585 * lib/unictype/pr_decimal_digit.h: Likewise.
25586 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25587 * lib/unictype/pr_deprecated.h: Likewise.
25588 * lib/unictype/pr_diacritic.h: Likewise.
25589 * lib/unictype/pr_extender.h: Likewise.
25590 * lib/unictype/pr_format_control.h: Likewise.
25591 * lib/unictype/pr_grapheme_base.h: Likewise.
25592 * lib/unictype/pr_grapheme_extend.h: Likewise.
25593 * lib/unictype/pr_grapheme_link.h: Likewise.
25594 * lib/unictype/pr_hex_digit.h: Likewise.
25595 * lib/unictype/pr_hyphen.h: Likewise.
25596 * lib/unictype/pr_id_continue.h: Likewise.
25597 * lib/unictype/pr_id_start.h: Likewise.
25598 * lib/unictype/pr_ideographic.h: Likewise.
25599 * lib/unictype/pr_ids_binary_operator.h: Likewise.
25600 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25601 * lib/unictype/pr_ignorable_control.h: Likewise.
25602 * lib/unictype/pr_iso_control.h: Likewise.
25603 * lib/unictype/pr_join_control.h: Likewise.
25604 * lib/unictype/pr_left_of_pair.h: Likewise.
25605 * lib/unictype/pr_line_separator.h: Likewise.
25606 * lib/unictype/pr_logical_order_exception.h: Likewise.
25607 * lib/unictype/pr_lowercase.h: Likewise.
25608 * lib/unictype/pr_math.h: Likewise.
25609 * lib/unictype/pr_non_break.h: Likewise.
25610 * lib/unictype/pr_not_a_character.h: Likewise.
25611 * lib/unictype/pr_numeric.h: Likewise.
25612 * lib/unictype/pr_other_alphabetic.h: Likewise.
25613 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25614 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25615 * lib/unictype/pr_other_id_continue.h: Likewise.
25616 * lib/unictype/pr_other_id_start.h: Likewise.
25617 * lib/unictype/pr_other_lowercase.h: Likewise.
25618 * lib/unictype/pr_other_math.h: Likewise.
25619 * lib/unictype/pr_other_uppercase.h: Likewise.
25620 * lib/unictype/pr_paired_punctuation.h: Likewise.
25621 * lib/unictype/pr_paragraph_separator.h: Likewise.
25622 * lib/unictype/pr_pattern_syntax.h: Likewise.
25623 * lib/unictype/pr_pattern_white_space.h: Likewise.
25624 * lib/unictype/pr_private_use.h: Likewise.
25625 * lib/unictype/pr_punctuation.h: Likewise.
25626 * lib/unictype/pr_quotation_mark.h: Likewise.
25627 * lib/unictype/pr_radical.h: Likewise.
25628 * lib/unictype/pr_sentence_terminal.h: Likewise.
25629 * lib/unictype/pr_soft_dotted.h: Likewise.
25630 * lib/unictype/pr_space.h: Likewise.
25631 * lib/unictype/pr_terminal_punctuation.h: Likewise.
25632 * lib/unictype/pr_titlecase.h: Likewise.
25633 * lib/unictype/pr_unassigned_code_value.h: Likewise.
25634 * lib/unictype/pr_unified_ideograph.h: Likewise.
25635 * lib/unictype/pr_uppercase.h: Likewise.
25636 * lib/unictype/pr_variation_selector.h: Likewise.
25637 * lib/unictype/pr_white_space.h: Likewise.
25638 * lib/unictype/pr_xid_continue.h: Likewise.
25639 * lib/unictype/pr_xid_start.h: Likewise.
25640 * lib/unictype/pr_zero_width.h: Likewise.
25641 * lib/unictype/scripts.h: Likewise.
25642 * lib/unictype/scripts_byname.gperf: Likewise.
25643 * lib/unictype/sy_c_ident.h: Likewise.
25644 * lib/unictype/sy_c_whitespace.h: Likewise.
25645 * lib/unictype/sy_java_ident.h: Likewise.
25646 * lib/unictype/sy_java_whitespace.h: Likewise.
25648 * lib/unictype/Makefile: New file.
25649 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
25651 * lib/unictype/3level.h: New file, copied from glibc.
25652 * lib/unictype/3levelbit.h: New file.
25654 2007-11-11 Bruno Haible <bruno@clisp.org>
25656 * modules/gperf: New file.
25657 * modules/iconv_open (Depends-on): Add it.
25658 (Makefile.am): Remove the GPERF definition.
25660 2007-11-11 Bruno Haible <bruno@clisp.org>
25662 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
25663 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
25665 2007-11-11 Bruno Haible <bruno@clisp.org>
25667 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
25668 (usage): Remove function.
25670 2007-11-11 Bruno Haible <bruno@clisp.org>
25672 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
25673 gl_FUNC_CEILF_LIBS.
25674 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
25676 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
25677 gl_FUNC_CEILL_LIBS.
25678 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
25679 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
25680 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
25682 2007-11-11 Bruno Haible <bruno@clisp.org>
25684 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
25685 roundf were declared but do not exist on functions.
25686 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
25687 roundl were declared but do not exist on functions.
25688 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
25689 HAVE_FLOORL_AND_CEILL, respectively.
25690 Needed for Sun C on Solaris 10.
25692 2007-11-11 Bruno Haible <bruno@clisp.org>
25694 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
25695 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
25696 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
25697 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
25698 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
25699 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
25700 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
25702 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
25703 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
25704 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
25705 of HAVE_DECL_ROUND*.
25706 * modules/math (Makefile.am): Update.
25708 2007-11-10 Bruno Haible <bruno@clisp.org>
25710 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
25711 ptrdiff_t as m4/intl.m4.
25713 2007-11-10 Jim Meyering <meyering@redhat.com>
25715 Avoid link failure for the argmatch test.
25716 * tests/test-argmatch.c (usage): Define function to avoid a link
25717 failure: argmatch_die requires a usage function.
25719 2007-11-09 Bruno Haible <bruno@clisp.org>
25721 * doc/functions/snprintf.texi: Mention BeOS deficiency.
25722 * doc/functions/vsnprintf.texi: Likewise.
25723 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
25724 with a size argument < 2.
25726 2007-11-09 Bruno Haible <bruno@clisp.org>
25728 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
25729 buffer. Fixes an inefficiency introduced on 2007-11-03.
25731 2007-11-09 Bruno Haible <bruno@clisp.org>
25733 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
25734 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
25736 2007-11-08 Jim Meyering <meyering@redhat.com>
25738 Change cache variable name prefix "jm_" to "gl_" everywhere.
25739 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
25740 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
25741 * m4/uptime.m4: s/gl_/jm_/
25743 2007-11-07 Bruno Haible <bruno@clisp.org>
25745 Update to GNU gettext 0.17.
25746 * m4/intl.m4: Update to GNU gettext 0.17.
25747 * m4/po.m4: Likewise.
25748 * modules/gettext (Files): Remove m4/ulonglong.m4.
25749 (configure.ac): Require gettext infrastructure from version 0.17.
25751 2007-11-06 Bruno Haible <bruno@clisp.org>
25753 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
25754 symbolic values are not defined in a public header.
25755 * lib/freadable.c (freadable) [QNX]: Likewise.
25756 * lib/freadahead.c (freadahead) [QNX]: Likewise.
25757 * lib/freading.c (freading) [QNX]: Likewise.
25758 * lib/fseterr.c (fseterr) [QNX]: Likewise.
25759 * lib/fwritable.c (fwritable) [QNX]: Likewise.
25760 * lib/fwriting.c (fwriting) [QNX]: Likewise.
25761 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
25762 Reported by Alain Magloire.
25764 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
25766 2007-11-05 Bruno Haible <bruno@clisp.org>
25768 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
25769 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
25770 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
25771 Reported by Eric Blake.
25773 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25774 Bruno Haible <bruno@clisp.org>
25776 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
25777 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
25778 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
25779 (malloc): Undefine also before including <stdlib.h>.
25780 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
25781 Needed on OSF/1 4.0.
25783 2007-11-05 Jim Meyering <meyering@redhat.com>
25785 git-version-gen: sync from coreutils.
25786 * build-aux/git-version-gen: Add comments.
25787 Change the first '-' to '.' in the snapshot version string,
25788 e.g., 6.9-377-08144 -> 6.9.377-08144
25789 Remove first parameter.
25790 Don't declare a version "-dirty" merely because a time
25793 2007-11-04 Bruno Haible <bruno@clisp.org>
25795 * lib/lock.h: Protect all macro definitions containing an 'if'
25796 statement through a "do { ... } while (0)".
25797 * lib/tls.h: Likewise.
25799 2007-11-04 Bruno Haible <bruno@clisp.org>
25801 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
25803 2007-11-04 Bruno Haible <bruno@clisp.org>
25805 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
25806 * modules/fprintf-posix (Depends-on): Add nocrash.
25807 * modules/snprintf-posix (Depends-on): Likewise.
25808 * modules/sprintf-posix (Depends-on): Likewise.
25809 * modules/vasnprintf-posix (Depends-on): Likewise.
25810 * modules/vasprintf-posix (Depends-on): Likewise.
25811 * modules/vfprintf-posix (Depends-on): Likewise.
25812 * modules/vsnprintf-posix (Depends-on): Likewise.
25813 * modules/vsprintf-posix (Depends-on): Likewise.
25814 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25815 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25816 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25817 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25818 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25819 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25820 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25822 2007-11-04 Bruno Haible <bruno@clisp.org>
25824 * modules/nocrash: New file.
25825 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
25826 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
25828 2007-11-04 Bruno Haible <bruno@clisp.org>
25830 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
25831 precision handling.
25832 * tests/test-vasprintf-posix.c (test_function): Likewise.
25833 * tests/test-snprintf-posix.h (test_function): Likewise.
25834 * tests/test-sprintf-posix.h (test_function): Likewise.
25836 Fix *printf behaviour for large precisions on mingw and BeOS.
25837 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
25838 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
25839 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
25840 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25841 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25842 gl_PRINTF_PRECISION and test its result. Invoke
25843 gl_PREREQ_VASNPRINTF_PRECISION.
25844 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25845 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25846 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25847 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25848 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25849 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25850 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25851 * doc/functions/fprintf.texi: Update.
25852 * doc/functions/printf.texi: Update.
25853 * doc/functions/snprintf.texi: Update.
25854 * doc/functions/sprintf.texi: Update.
25855 * doc/functions/vfprintf.texi: Update.
25856 * doc/functions/vprintf.texi: Update.
25857 * doc/functions/vsnprintf.texi: Update.
25858 * doc/functions/vsprintf.texi: Update.
25860 2007-11-04 Bruno Haible <bruno@clisp.org>
25862 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
25864 2007-11-04 Bruno Haible <bruno@clisp.org>
25866 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
25867 Reported by Sylvain Beucler <beuc@gnu.org>.
25869 2007-11-03 Bruno Haible <bruno@clisp.org>
25871 * tests/test-fprintf-posix2.sh: New file.
25872 * tests/test-fprintf-posix2.c: New file.
25873 * modules/fprintf-posix-tests (Files): Add them.
25874 (TESTS): Add test-fprintf-posix2.sh.
25875 (configure.ac): Check for getrlimit and setrlimit.
25876 (check_PROGRAMS): Add test-fprintf-posix2.
25878 * tests/test-printf-posix2.sh: New file.
25879 * tests/test-printf-posix2.c: New file.
25880 * modules/printf-posix-tests (Files): Add them.
25881 (TESTS): Add test-printf-posix2.sh.
25882 (configure.ac): Check for getrlimit and setrlimit.
25883 (check_PROGRAMS): Add test-printf-posix2.
25885 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
25886 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
25887 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
25888 (decode_double): New function, copied from decode_long_double.
25889 (scale10_round_decimal_decoded): New function, extracted from
25890 scale10_round_decimal_long_double.
25891 (scale10_round_decimal_long_double): Use it.
25892 (scale10_round_decimal_double): New function.
25893 (floorlog10): New function.
25894 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
25895 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
25896 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25897 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25898 gl_PRINTF_ENOMEM and test its result. Invoke
25899 gl_PREREQ_VASNPRINTF_ENOMEM.
25900 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25901 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25902 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25903 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25904 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25905 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25906 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25907 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
25908 * modules/snprintf-posix (Depends-on): Likewise.
25909 * modules/sprintf-posix (Depends-on): Likewise.
25910 * modules/vasnprintf-posix (Depends-on): Likewise.
25911 * modules/vasprintf-posix (Depends-on): Likewise.
25912 * modules/vfprintf-posix (Depends-on): Likewise.
25913 * modules/vsnprintf-posix (Depends-on): Likewise.
25914 * modules/vsprintf-posix (Depends-on): Likewise.
25915 * doc/functions/fprintf.texi: Update.
25916 * doc/functions/printf.texi: Update.
25917 * doc/functions/snprintf.texi: Update.
25918 * doc/functions/sprintf.texi: Update.
25919 * doc/functions/vfprintf.texi: Update.
25920 * doc/functions/vprintf.texi: Update.
25921 * doc/functions/vsnprintf.texi: Update.
25922 * doc/functions/vsprintf.texi: Update.
25924 2007-11-03 Bruno Haible <bruno@clisp.org>
25926 * modules/frexp-nolibm-tests: New file.
25928 * modules/frexp-nolibm: New file.
25929 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
25931 2007-11-03 Bruno Haible <bruno@clisp.org>
25933 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
25934 value is C99 compliant.
25935 Needed for OSF/1 5.1.
25937 2007-11-03 Bruno Haible <bruno@clisp.org>
25939 Fix out-of-memory handling of vasnprintf.
25940 * lib/printf-parse.c: Include <errno.h>.
25941 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
25942 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
25945 2007-11-02 Eric Blake <ebb9@byu.net>
25947 Fix tests on cygwin.
25948 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
25950 2007-11-01 Bruno Haible <bruno@clisp.org>
25952 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
25954 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
25955 needed for POSIX compatibility.
25957 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
25959 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
25960 for compatibility with GNU.
25962 2007-11-01 Bruno Haible <bruno@clisp.org>
25964 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
25965 (putenv): Renamed from rpl_putenv. Change argument type from
25966 'const char *' to 'char *'.
25967 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
25968 of defining putenv in config.h, just set REPLACE_PUTENV.
25969 * modules/putenv (Depends-on): Add stdlib.
25970 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25971 (Include): Use <stdlib.h>.
25972 * lib/stdlib.in.h (putenv): New declaration.
25973 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
25975 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
25977 Needed for MacOS X 10.5.0.
25978 Reported by Peter O'Gorman <peter@pogma.com>.
25980 2007-11-01 Jim Meyering <meyering@redhat.com>
25982 Treat an empty date string exactly like "0".
25983 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
25984 if the remaining date string (to be parsed) is empty, use "0".
25985 Reported by Mischa Molhoek and discussed in this thread:
25986 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
25988 2007-10-31 Bruno Haible <bruno@clisp.org>
25990 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
25991 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
25992 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
25993 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
25994 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
25995 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
25997 2007-10-31 Bruno Haible <bruno@clisp.org>
25999 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
26000 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
26001 (AC_TYPE_LONG_LONG_INT): Use it.
26002 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
26004 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
26006 * modules/stdint (Files): Remove m4/ulonglong.m4.
26007 * modules/strtoull (Files): Use m4/longlong.m4 instead of
26009 * modules/strtoumax (Files): Likewise.
26011 2007-10-30 Bruno Haible <bruno@clisp.org>
26013 * modules/xvasprintf-posix: New file.
26014 Suggested by Eric Blake.
26016 2007-10-30 Bruno Haible <bruno@clisp.org>
26018 * modules/xprintf-posix-tests: New file.
26019 * tests/test-xprintf-posix.sh: New file.
26020 * tests/test-xprintf-posix.c: New file.
26021 * tests/test-xfprintf-posix.c: New file.
26023 * modules/xprintf-posix: New file.
26025 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26027 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
26028 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
26029 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
26031 2007-10-29 Bruno Haible <bruno@clisp.org>
26033 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
26034 contain the special marker '_cv_'.
26035 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26036 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26037 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26038 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26039 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26040 Reported by Ralf Wildenhues.
26042 2007-10-29 Bruno Haible <bruno@clisp.org>
26044 * gnulib-tool (func_import): When --lgpl is not specified, set
26045 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
26047 Reported by Simon Josefsson.
26049 2007-10-28 Bruno Haible <bruno@clisp.org>
26051 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
26052 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
26053 HAVE_DECL_ISFINITE.
26054 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
26055 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
26056 HAVE_DECL_ISFINITE.
26058 2007-10-28 Bruno Haible <bruno@clisp.org>
26060 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
26061 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
26063 2007-10-28 Bruno Haible <bruno@clisp.org>
26065 Fix link errors with Sun C 5.0 on Solaris 10.
26066 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
26067 function is declared but not present in the compiler's libm.
26068 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26069 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
26070 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
26071 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
26072 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
26073 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
26074 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
26075 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
26076 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
26077 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
26078 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
26081 2007-10-28 Bruno Haible <bruno@clisp.org>
26083 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
26084 gl_FUNC_FLOORL. Cache the result.
26085 (gl_FUNC_FLOORL): Use it.
26086 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
26087 gl_FUNC_CEILL. Cache the result.
26088 (gl_FUNC_CEILL): Use it.
26090 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
26091 gl_FUNC_FLOOR. Cache the result.
26092 (gl_FUNC_FLOOR): Use it.
26093 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
26094 gl_FUNC_CEIL. Cache the result.
26095 (gl_FUNC_CEIL): Use it.
26097 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
26098 gl_FUNC_FLOORF. Cache the result.
26099 (gl_FUNC_FLOORF): Use it.
26100 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
26101 gl_FUNC_CEILF. Cache the result.
26102 (gl_FUNC_CEILF): Use it.
26104 2007-10-28 Bruno Haible <bruno@clisp.org>
26106 * gnulib-tool: Allow specifying the LGPL version number through
26107 --lgpl=2 or --lgpl=3.
26108 (func_usage): Document --lgpl with argument.
26109 Handle --lgpl=... arguments.
26110 (func_import): Recognize also gl_LGPL calls with an argument. When
26111 --lgpl=2 is used and the module's license is just LGPL, report an
26112 error. Set sed_transform_lib_file according to the lgpl variable. In
26113 the generated files, use --lgpl or gl_LGPL invocations with argument,
26115 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
26117 * doc/gnulib-tool.texi (Modified imports): Update explanation of
26120 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26121 Bruno Haible <bruno@clisp.org>
26123 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
26124 (u16_uctomb_aux): Likewise.
26125 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
26127 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
26129 2007-10-28 Bruno Haible <bruno@clisp.org>
26131 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
26132 Invoke AM_GETTEXT_OPTION if it exists.
26133 * modules/vasprintf: Likewise.
26134 * modules/verror: Likewise.
26135 * modules/xprintf: Likewise.
26136 * modules/xvasprintf: Likewise.
26138 2007-10-27 Ben Pfaff <blp@gnu.org>
26140 * lib/math.in.h: Define isfinite macro and prototypes for
26141 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
26143 * m4/math_h.m4: New substitutions for isfinite module.
26144 * lib/isfinite.c: New file.
26145 * m4/isfinite.m4: New file.
26146 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
26147 * modules/isfinite: New file.
26148 * modules/isfinite-tests: New file.
26149 * tests/tests-isfinite.c: New file.
26150 * doc/functions/isfinite.texi: Mention isfinite module.
26151 * MODULES.html.sh: Mention new module.
26153 2007-10-27 Ben Pfaff <blp@gnu.org>
26155 Ralf Wildenhues reported that Tru64 4.0D declares the round
26156 functions but does not have definitions.
26157 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
26158 cannot be found in any library, set the output variable to
26159 "missing" instead of "".
26160 * m4/round.m4: Also use our substitute if we cannot find round in
26161 any library, even if it is declared.
26162 * m4/roundf.m4: Likewise for roundf.
26163 * m4/roundl.m4: Likewise for roundl.
26164 * lib/math.in.h: Undefine roundf, round, roundl before defining
26165 their replacements, to allow for hypothetical systems where these
26166 may be defined as macros but not available in libraries.
26168 2007-10-27 Bruno Haible <bruno@clisp.org>
26170 * doc/gnulib.texi: Invoke @firstparagraphindent.
26171 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
26173 (Source changes): New section.
26175 2007-10-26 Bruno Haible <bruno@clisp.org>
26177 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
26178 borrowed from autoconf.
26180 2007-10-26 Bruno Haible <bruno@clisp.org>
26182 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
26183 strerror returned the empty string. Needed on HP-UX 11.00.
26185 2007-10-24 Micah Cowan <micah@cowan.name>
26187 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
26188 * build-aux/bootstrap: Remove support for now-unnecessary option,
26189 --cvs-user, and envvars CVS_USER, CVS_RSH.
26191 2007-10-24 Jim Meyering <meyering@redhat.com>
26193 Avoid diagnostics from sha1sum when there is no cached checksum.
26194 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
26195 if the po.s1 file hasn't been created yet.
26197 * build-aux/bootstrap: Sync from coreutils:
26198 2007-10-24 Jim Meyering <meyering@redhat.com>
26199 Get gnulib from the git repository, not from an obsolete cvs one.
26200 * build-aux/bootstrap: Suggestion from Micah Cowan.
26201 2007-10-04 Jim Meyering <jim@meyering.net>
26202 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
26203 (update_po_files): Work also when there are no .po files in po/.
26205 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
26207 * README: Append ".git" to git and cg examples.
26208 Problem reported by Benoit Sigoure.
26210 2007-10-23 Micah Cowan <micah@cowan.name>
26212 * users.txt: Add wget.
26214 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26216 Fix linking of some unistdio tests on FreeBSD.
26217 * modules/unistdio/u16-vsnprintf-tests
26218 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
26219 * modules/unistdio/u16-vsprintf-tests
26220 (test_u16_vsnprintf1_LDADD): Likewise.
26221 * modules/unistdio/u32-vsnprintf-tests
26222 (test_u32_vsnprintf1_LDADD): Likewise.
26223 * modules/unistdio/u32-vsprintf-tests
26224 (test_u32_vsprintf1_LDADD): Likewise.
26225 * modules/unistdio/u8-vsnprintf-tests
26226 (test_u8_vsnprintf1_LDADD): Likewise.
26227 * modules/unistdio/u8-vsprintf-tests
26228 (test_u8_vsprintf1_LDADD): Likewise.
26229 * modules/unistdio/ulc-vsnprintf-tests
26230 (test_ulc_vsnprintf1_LDADD): Likewise.
26231 * modules/unistdio/ulc-vsprintf-tests
26232 (test_ulc_vsprintf1_LDADD): Likewise.
26234 Fix linking of some uniconv tests on FreeBSD.
26235 * modules/uniconv/u16-conv-from-enc-tests
26236 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
26237 * modules/uniconv/u16-conv-to-enc-tests
26238 (test_u16_conv_to_enc_LDADD): Likewise.
26239 * modules/uniconv/u16-strconv-from-enc-tests
26240 (test_u16_strconv_from_enc_LDADD): Likewise.
26241 * modules/uniconv/u16-strconv-to-enc-tests
26242 (test_u16_strconv_to_enc_LDADD): Likewise.
26243 * modules/uniconv/u32-conv-from-enc-tests
26244 (test_u32_conv_from_enc_LDADD): Likewise.
26245 * modules/uniconv/u32-conv-to-enc-tests
26246 (test_u32_conv_to_enc_LDADD): Likewise.
26247 * modules/uniconv/u32-strconv-from-enc-tests
26248 (test_u32_strconv_from_enc_LDADD): Likewise.
26249 * modules/uniconv/u32-strconv-to-enc-tests
26250 (test_u32_strconv_to_enc_LDADD): Likewise.
26251 * modules/uniconv/u8-conv-from-enc-tests
26252 (test_u8_conv_from_enc_LDADD): Likewise.
26253 * modules/uniconv/u8-conv-to-enc-tests
26254 (test_u8_conv_to_enc_LDADD): Likewise.
26255 * modules/uniconv/u8-strconv-from-enc-tests
26256 (test_u8_strconv_from_enc_LDADD): Likewise.
26257 * modules/uniconv/u8-strconv-to-enc-tests
26258 (test_u8_strconv_to_enc_LDADD): Likewise.
26260 2007-10-22 Bruno Haible <bruno@clisp.org>
26262 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
26265 2007-10-22 Eric Blake <ebb9@byu.net>
26267 Tweak x*printf documentation.
26268 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
26269 variable name and comments.
26270 Suggested by Bruno Haible.
26272 2007-10-22 Bruno Haible <bruno@clisp.org>
26274 * lib/acl.c (copy_acl): Fix file name in comment.
26276 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
26278 Fix Tru64 problem with stdbool.h.
26279 * lib/stdbool.in.h (false, true):
26280 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
26281 Don't declare as an enum in this situation; it runs afoul of Tru64.
26282 Problem reported by Steven M. Schweda in
26283 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
26285 2007-10-22 Eric Blake <ebb9@byu.net>
26287 Also wrap vf?printf.
26288 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
26289 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
26290 (xvprintf, xvfprintf): New functions.
26292 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26294 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
26295 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
26297 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
26298 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
26300 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
26302 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
26305 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26308 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
26309 Undef `sys' after including sys/table.h, for Tru64 4.0D.
26311 * tests/test-i-ring.c: Work for C89.
26313 2007-10-22 Bruno Haible <bruno@clisp.org>
26315 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
26316 -1u, in preprocessor expression, so that we don't test for the bug
26317 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
26318 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
26320 2007-10-22 Eric Blake <ebb9@byu.net>
26322 * tests/test-yesno.sh: Silence stderr during test.
26324 2007-10-22 Simon Josefsson <simon@josefsson.org>
26326 * modules/crypto/gc-camellia: New file.
26328 * m4/gc-camellia.m4: New file.
26330 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
26332 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
26334 2007-10-22 Simon Josefsson <simon@josefsson.org>
26336 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
26337 --help to stdout. Reported by sms@antinode.org (Steven
26340 2007-10-22 Simon Josefsson <simon@josefsson.org>
26342 * users.txt: Fix link to libksba.
26344 2007-10-21 Ben Pfaff <blp@gnu.org>
26346 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
26347 round.c roundf implementation that depends on floorf and ceilf to
26348 be tested unconditionally.
26350 2007-10-21 Ben Pfaff <blp@gnu.org>
26352 * m4/check-libm-func.m4: Removed.
26353 * m4/check-math-lib.m4: New file.
26354 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
26355 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
26356 definition and lack of AC_LIBOBJ([roundf]).
26357 * m4/roundl.m4: Ditto, and similarly for roundl.
26358 * modules/round: Reference new m4 file.
26359 * modules/roundf: Ditto.
26360 * modules/roundl: Ditto.
26361 * tests/test-round2.c (main): Use ROUND instead of round.
26362 Bug report from Bruno Haible.
26364 2007-10-21 Bruno Haible <bruno@clisp.org>
26366 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
26369 2007-10-21 Bruno Haible <bruno@clisp.org>
26371 * tests/test-wcwidth.c (main): Allow negative result for some control
26374 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
26375 Needed on OSF/1 5.1.
26377 2007-10-21 Bruno Haible <bruno@clisp.org>
26379 * tests/test-floorf1.c: Include isnanf.h.
26380 (main): Use isnanf() instead of isnan().
26381 * tests/test-ceilf1.c: Include isnanf.h.
26382 (main): Use isnanf() instead of isnan().
26383 * tests/test-truncf1.c: Include isnanf.h.
26384 (main): Use isnanf() instead of isnan().
26385 * tests/test-roundf1.c: Include isnanf.h.
26386 (main): Use isnanf() instead of isnan().
26388 2007-10-21 Eric Blake <ebb9@byu.net>
26390 * users.txt: Update URL for m4.
26392 2007-10-21 Bruno Haible <bruno@clisp.org>
26394 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
26396 2007-10-21 Bruno Haible <bruno@clisp.org>
26398 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
26399 Git's management files if the CVS files are not present.
26401 2007-10-20 Bruno Haible <bruno@clisp.org>
26403 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
26406 2007-10-20 Ben Pfaff <blp@gnu.org>
26408 * lib/math.in.h: Declare round, roundf, roundl if we are providing
26410 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
26411 * lib/round.c: New file.
26412 * lib/roundf.c: New file.
26413 * lib/roundl.c: New file.
26414 * m4/round.m4: New file.
26415 * m4/roundf.m4: New file.
26416 * m4/roundl.m4: New file.
26417 * m4/check-libm-func-m4: New file.
26418 * modules/math: Replace round, roundf, roundl related @VARS@ in
26420 * modules/round: New file.
26421 * modules/round-tests: New file.
26422 * modules/roundf: New file.
26423 * modules/roundf-tests: New file.
26424 * modules/roundl: New file.
26425 * modules/roundl-tests: New file.
26426 * tests/test-round1.c: New file.
26427 * tests/test-round2.c: New file.
26428 * tests/test-roundf1.c: New file.
26429 * tests/test-roundf2.c: New file.
26430 * tests/test-roundl.c: New file.
26431 * doc/functions/round.texi: Mention round module.
26432 * doc/functions/roundf.texi: Mention roundf module.
26433 * doc/functions/roundl.texi: Mention roundl module.
26434 * MODULES.html.sh: Mention new modules.
26435 Thanks to Bruno Haible for suggestions.
26437 2007-10-20 Jim Meyering <meyering@redhat.com>
26439 * lib/xprintf.c: Include <config.h> unconditionally.
26441 Change xprintf's license to GPL.
26442 * modules/xprintf (License): s/LGPL/GPL/, since this module
26443 depends on modules (exit and exitfail) which are GPL.
26444 Suggestion from Bruno Haible.
26447 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
26448 Use a clearer diagnostic.
26449 Patch from Bruno Haible.
26451 2007-10-20 Bruno Haible <bruno@clisp.org>
26453 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
26454 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
26455 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26457 2007-10-20 Bruno Haible <bruno@clisp.org>
26459 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
26460 precision in the comparison result > x - 1 or similar.
26461 * tests/test-ceilf2.c (correct_result_p): Likewise.
26462 * tests/test-truncf2.c (correct_result_p): Likewise.
26463 * tests/test-trunc2.c (correct_result_p): Likewise.
26464 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26466 2007-10-20 Bruno Haible <bruno@clisp.org>
26468 * modules/ceil: New file.
26469 * m4/ceil.m4: New file.
26470 * doc/functions/ceil.texi: Mention the 'ceil' module.
26472 2007-10-20 Bruno Haible <bruno@clisp.org>
26474 * modules/floor: New file.
26475 * m4/floor.m4: New file.
26476 * doc/functions/floor.texi: Mention the 'floor' module.
26478 2007-10-20 Bruno Haible <bruno@clisp.org>
26480 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
26482 * modules/floorf-tests (Depends-on): Likewise.
26483 * modules/truncf-tests (Depends-on): Likewise.
26484 * modules/trunc-tests (Depends-on): Likewise.
26485 Reported by Ben Pfaff.
26487 2007-10-19 Jim Meyering <meyering@redhat.com>
26489 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
26490 Don't bother testing specific errno values. Just test ferror.
26492 New module: xprintf
26493 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
26495 2007-10-19 Bruno Haible <bruno@clisp.org>
26497 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
26499 * modules/javaexec (Makefile.am): Likewise.
26500 * modules/relocatable-prog (Makefile.am): Likewise.
26501 Suggested by Jim Meyering.
26503 2007-10-18 Bruno Haible <bruno@clisp.org>
26505 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
26506 Reported by Jim Meyering.
26508 2007-10-18 Eric Blake <ebb9@byu.net>
26510 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
26512 2007-10-18 Bruno Haible <bruno@clisp.org>
26514 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
26515 the format string into writable memory. Needed in Fortify conditions.
26517 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
26518 Bruno Haible <bruno@clisp.org>
26520 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
26521 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
26522 * modules/trim (Depends-on): Add mbchar.
26523 (configure.ac): Add gl_FUNC_MBRTOWC.
26524 (Makefile.am): Augment lib_SOURCES.
26526 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
26528 Modify glob.c to use fstatat and dirfd, to simplify it.
26529 Suggested by Eric Blake.
26530 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
26531 Don't include <stdbool.h>; not used.
26532 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
26533 (link_exists_p): Simplify implementation, since we can now assume
26535 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
26537 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26539 * gnulib-tool (func_get_dependencies): Fix sed script to
26542 2007-10-17 Bruno Haible <bruno@clisp.org>
26544 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
26545 allow locale names without encoding suffix.
26546 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
26547 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26549 2007-10-16 Bruno Haible <bruno@clisp.org>
26551 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
26552 * lib/getgroups.c (getgroups): Likewise.
26553 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
26555 2007-10-16 Bruno Haible <bruno@clisp.org>
26557 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
26558 * modules/malloc-posix (License): Likewise.
26559 * modules/realloc-posix (License): Likewise.
26560 * modules/calloc-posix (License): Likewise.
26561 * modules/intprops (License): Change from GPL to LGPL, with
26562 Paul Eggert's approval.
26564 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
26566 Merge glibc changes into lib/glob.c.
26568 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
26569 2007-10-15 04:59:03 UTC. Here are the changes:
26571 2007-10-14 Ulrich Drepper <drepper@redhat.com>
26573 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
26575 * lib/glob.c: Add some branch prediction throughout.
26577 2007-10-07 Ulrich Drepper <drepper@redhat.com>
26580 * lib/glob.c (glob): Recognize patterns starting \/.
26582 2007-02-14 Jakub Jelinek <jakub@redhat.com>
26585 * lib/glob.c (attribute_hidden): Define if not defined.
26586 (glob): Unescape dirname, filename or username when needed and not
26587 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
26588 is NULL. Handle unescaped [ in pattern without closing ].
26589 Don't pass GLOB_CHECK down to recursive glob for directories.
26590 (__glob_pattern_type): New function.
26591 (__glob_pattern_p): Implement using __glob_pattern_type.
26592 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
26593 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
26594 Remove unreachable code.
26596 2006-09-30 Ulrich Drepper <drepper@redhat.com>
26598 * lib/glob.c (glob_in_dir): Add some comments and asserts to
26599 explain why there are no leaks.
26601 2006-09-25 Jakub Jelinek <jakub@redhat.com>
26604 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
26605 time, rather allocate increasingly bigger arrays of pointers, if
26606 possible with alloca, if too large with malloc.
26608 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
26610 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
26611 Problem reported by H.Merijn Brand in
26612 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
26613 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
26614 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26616 2007-10-15 Bruno Haible <bruno@clisp.org>
26618 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
26619 with explicit rpl_ prefix.
26620 * lib/fopen.c (fopen): Likewise.
26621 * lib/freopen.c (freopen): Likewise.
26622 * lib/iconv.c (iconv): Likewise.
26623 * lib/iconv_close.c (iconv_close): Likewise.
26625 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26627 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
26629 2007-10-15 Bruno Haible <bruno@clisp.org>
26631 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
26632 <stddef.h> instead of <stdlib.h> since we only need NULL.
26633 Reported by Ben Pfaff <blp@cs.stanford.edu>.
26635 2007-10-15 Bruno Haible <bruno@clisp.org>
26637 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
26638 Replace paragraph talking about LIBOBJS.
26639 Reported by Colin Watson <cjwatson@debian.org>.
26641 2007-10-15 Bruno Haible <bruno@clisp.org>
26643 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
26644 <stdlib.h> before using NULL.
26646 2007-10-15 Simon Josefsson <simon@josefsson.org>
26648 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
26649 Reported by Albert Chin <china@thewrittenword.com>.
26651 2007-10-14 Bruno Haible <bruno@clisp.org>
26653 * modules/iconv_open-utf-tests: New file.
26654 * tests/test-iconv-utf.c: New file.
26656 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
26657 * modules/iconv_open-utf: New file.
26658 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
26659 (iconv, iconv_close): New declarations.
26660 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
26662 (iconv_open): Add special handling of conversion between UTF-8 and
26663 UTF-{16,32}{BE,LE}.
26664 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
26665 * lib/iconv_close.c: New file.
26666 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
26667 gl_FUNC_ICONV_OPEN.
26668 (gl_FUNC_ICONV_OPEN): Use it.
26669 (gl_FUNC_ICONV_OPEN_UTF): New macro.
26670 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
26671 and REPLACE_ICONV_UTF.
26672 * modules/iconv_open (Depends-on): Add c-strcase.
26673 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
26675 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
26677 2007-10-13 Albert Chin <china@thewrittenword.com>
26678 Bruno Haible <bruno@clisp.org>
26680 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
26681 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
26683 2007-10-13 Bruno Haible <bruno@clisp.org>
26685 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
26686 defined, use the ISO C99 inline semantics.
26687 * lib/argp.h (ARGP_EI): Likewise.
26689 2007-10-13 Bruno Haible <bruno@clisp.org>
26691 Handle 'inline' change in gcc 4.3.0.
26692 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
26693 argp_fmtstream_write, argp_fmtstream_set_lmargin,
26694 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
26695 argp_fmtstream_point): Disable 'extern' declaration if the function
26696 definition is going to be provided inline.
26697 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
26698 semantics, not the ISO C99 inline semantics.
26699 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
26700 'extern' declaration if the function definition is going to be provided
26702 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
26703 the GNU C inline semantics, not the ISO C99 inline semantics. With
26704 GCC 4.2, avoid a warning.
26706 2007-10-13 Bruno Haible <bruno@clisp.org>
26708 * lib/freading.h (freading): Enable the use of __freading for
26710 * lib/freading.c (freading): Likewise.
26712 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
26714 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
26715 "warning: C99 inline functions are not supported; using GNU89".
26717 2007-10-12 Bruno Haible <bruno@clisp.org>
26719 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
26721 * tests/test-ceilf2.c: New file.
26722 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
26724 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
26725 * modules/ceilf-tests: Update.
26727 2007-10-12 Bruno Haible <bruno@clisp.org>
26729 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
26731 * tests/test-floorf2.c: New file.
26732 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
26734 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
26735 * modules/floorf-tests: Update.
26737 2007-10-12 Bruno Haible <bruno@clisp.org>
26739 * tests/test-trunc2.c: New file.
26740 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
26742 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
26743 * modules/trunc-tests: Update.
26745 2007-10-12 Bruno Haible <bruno@clisp.org>
26747 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
26749 * tests/test-truncf2.c: New file.
26750 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
26752 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
26753 * modules/truncf-tests: Update.
26755 2007-10-11 Eric Blake <ebb9@byu.net>
26757 Don't claim strerror is broken on Interix.
26758 * doc/functions/strerror.texi (strerror): Known broken systems are
26759 now Solaris 8, and not Interix.
26760 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
26761 Interix on cross-compile.
26762 Reported by Martin Koeppe in
26763 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
26765 2007-10-11 Bruno Haible <bruno@clisp.org>
26767 * modules/i-ring-tests: New file.
26768 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
26771 2007-10-11 Bruno Haible <bruno@clisp.org>
26773 * modules/filenamecat-tests: New file.
26774 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
26775 * lib/filenamecat.c: Remove test code.
26777 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
26779 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
26781 * lib/strerror.c: Include <string.h> always, to test interface,
26782 and to remove the need for the dummy.
26783 Include intprops.h to compute width instead of doing it ourselves
26784 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
26785 (strerror): Define it to return NULL if there's no system strerror.
26786 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
26787 Omit !HAVE_STRERROR code. We don't need to worry about supporting
26788 ancient pre-strerror Unix systems well any more. Saying "unknown
26789 system error" is enough.
26790 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
26791 simpler strerror.c implementation.
26792 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
26793 Simplify the tests to reflect the simpler strerror implementation.
26794 * modules/strerror (Depends-on): Add intprops.
26796 2007-10-09 Eric Blake <ebb9@byu.net>
26798 Silence test-fpending.
26799 * modules/fpending-tests (Files): Add wrapper script.
26800 * tests/test-fpending.sh: New file.
26802 2007-10-09 Bruno Haible <bruno@clisp.org>
26804 * MODULES.html.sh (func_module): Don't create a hyperlink for
26805 function names like 'printf_frexp'.
26806 (Misc): Add crc, memxor.
26807 (Characteristics of floating types): New section.
26808 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
26809 isnanf-nolibm, signbit, trunc, truncf, truncl.
26810 (Enhancements for ISO C 99 functions): New subsection Input/output.
26811 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
26812 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
26813 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
26814 (Compatibility checks for POSIX:2001 functions): Add clock-time.
26815 (Enhancements for POSIX:2001 functions): Add chdir-long.
26816 (File system functions): Add areadlink, chdir-safer, read-file.
26817 Remove cycle-check.
26818 (File system as inode set): New section.
26819 (Date and time): Add gethrxtime.
26820 (Multithreading): Add openmp.
26821 (Internationalization functions): Add localename.
26822 (Unicode string functions): Add unistr/u*-mbsnlen.
26823 (Support for maintaining and releasing projects): Add git-version-gen.
26824 (Lone files): Remove directories.
26826 2007-10-08 Ben Pfaff <blp@gnu.org>
26828 * lib/xmalloca.h: Fix typo in comment.
26830 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
26832 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
26833 when avoiding problems with integer overflow. Use a portable test
26836 2007-10-08 Simon Josefsson <simon@josefsson.org>
26838 * modules/dummy (License): Change to LGPLv2+.
26839 * modules/float (License): Likewise
26840 * modules/realloc (License): Likewise
26841 * modules/stdlib (License): Likewise
26843 2007-10-07 Bruno Haible <bruno@clisp.org>
26845 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
26846 * floor.c (TWO_MANT_DIG): Likewise.
26847 * ceil.c (TWO_MANT_DIG): Likewise.
26848 Reported by Ben Pfaff.
26850 2007-10-07 Bruno Haible <bruno@clisp.org>
26852 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
26853 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
26854 * lib/frexp.c (FUNC): Likewise.
26855 * lib/printf-frexp.h (printf_frexp): Likewise.
26856 * lib/printf-frexpl.h (printf_frexpl): Likewise.
26857 * lib/printf-frexp.c (FUNC): Likewise.
26858 Suggested by Jim Meyering.
26860 2007-10-07 Jim Meyering <meyering@redhat.com>
26862 Make xnanosleep's integer overflow test more robust.
26863 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
26864 so that gcc-4.3.0 doesn't optimize away this test for overflow.
26866 2007-10-07 Bruno Haible <bruno@clisp.org>
26868 * NEWS: Mention the license change.
26870 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
26871 abbreviations in the modules files.
26873 Change copyright notice from GPLv2+ to GPLv3+.
26874 * README: Change copyright notice.
26875 * MODULES.html.sh: Likewise.
26876 * build-aux/bootstrap.conf: Likewise.
26877 * build-aux/config.libpath: Likewise.
26878 * build-aux/csharpcomp.sh.in: Likewise.
26879 * build-aux/csharpexec.sh.in: Likewise.
26880 * build-aux/install-reloc: Likewise.
26881 * build-aux/javacomp.sh.in: Likewise.
26882 * build-aux/javaexec.sh.in: Likewise.
26883 * build-aux/ldd.sh.in: Likewise.
26884 * build-aux/reloc-ldflags: Likewise.
26885 * build-aux/relocatable.sh.in: Likewise.
26886 * build-aux/x-to-1.in: Likewise.
26887 * check-module: Likewise.
26888 * config/srclistvars.sh: Likewise.
26889 * gnulib-tool: Likewise.
26890 * lib/acl-internal.h: Likewise.
26891 * lib/acl.c: Likewise.
26892 * lib/acl.h: Likewise.
26893 * lib/acl_entries.c: Likewise.
26894 * lib/areadlink-with-size.c: Likewise.
26895 * lib/areadlink.c: Likewise.
26896 * lib/areadlink.h: Likewise.
26897 * lib/argmatch.c: Likewise.
26898 * lib/argmatch.h: Likewise.
26899 * lib/argp-ba.c: Likewise.
26900 * lib/argp-eexst.c: Likewise.
26901 * lib/argp-fmtstream.c: Likewise.
26902 * lib/argp-fmtstream.h: Likewise.
26903 * lib/argp-fs-xinl.c: Likewise.
26904 * lib/argp-help.c: Likewise.
26905 * lib/argp-namefrob.h: Likewise.
26906 * lib/argp-parse.c: Likewise.
26907 * lib/argp-pin.c: Likewise.
26908 * lib/argp-pv.c: Likewise.
26909 * lib/argp-pvh.c: Likewise.
26910 * lib/argp-xinl.c: Likewise.
26911 * lib/argp.h: Likewise.
26912 * lib/at-func.c: Likewise.
26913 * lib/atanl.c: Likewise.
26914 * lib/backupfile.c: Likewise.
26915 * lib/backupfile.h: Likewise.
26916 * lib/basename.c: Likewise.
26917 * lib/binary-io.h: Likewise.
26918 * lib/byteswap.in.h: Likewise.
26919 * lib/c-stack.c: Likewise.
26920 * lib/c-stack.h: Likewise.
26921 * lib/c-strcasestr.c: Likewise.
26922 * lib/c-strcasestr.h: Likewise.
26923 * lib/c-strstr.c: Likewise.
26924 * lib/c-strstr.h: Likewise.
26925 * lib/c-strtod.c: Likewise.
26926 * lib/calloc.c: Likewise.
26927 * lib/canon-host.c: Likewise.
26928 * lib/canon-host.h: Likewise.
26929 * lib/canonicalize-lgpl.c: Likewise.
26930 * lib/canonicalize.c: Likewise.
26931 * lib/canonicalize.h: Likewise.
26932 * lib/ceil.c: Likewise.
26933 * lib/ceilf.c: Likewise.
26934 * lib/ceill.c: Likewise.
26935 * lib/chdir-long.c: Likewise.
26936 * lib/chdir-long.h: Likewise.
26937 * lib/chdir-safer.c: Likewise.
26938 * lib/chdir-safer.h: Likewise.
26939 * lib/chown.c: Likewise.
26940 * lib/classpath.c: Likewise.
26941 * lib/classpath.h: Likewise.
26942 * lib/clean-temp.c: Likewise.
26943 * lib/clean-temp.h: Likewise.
26944 * lib/cloexec.c: Likewise.
26945 * lib/close-stream.c: Likewise.
26946 * lib/closein.c: Likewise.
26947 * lib/closein.h: Likewise.
26948 * lib/closeout.c: Likewise.
26949 * lib/closeout.h: Likewise.
26950 * lib/concat-filename.c: Likewise.
26951 * lib/copy-file.c: Likewise.
26952 * lib/copy-file.h: Likewise.
26953 * lib/count-one-bits.h: Likewise.
26954 * lib/crc.c: Likewise.
26955 * lib/crc.h: Likewise.
26956 * lib/creat-safer.c: Likewise.
26957 * lib/csharpcomp.c: Likewise.
26958 * lib/csharpcomp.h: Likewise.
26959 * lib/csharpexec.c: Likewise.
26960 * lib/csharpexec.h: Likewise.
26961 * lib/cycle-check.c: Likewise.
26962 * lib/cycle-check.h: Likewise.
26963 * lib/diacrit.c: Likewise.
26964 * lib/diacrit.h: Likewise.
26965 * lib/diffseq.h: Likewise.
26966 * lib/dirchownmod.c: Likewise.
26967 * lib/dirent.in.h: Likewise.
26968 * lib/dirfd.c: Likewise.
26969 * lib/dirfd.h: Likewise.
26970 * lib/dirname.c: Likewise.
26971 * lib/dirname.h: Likewise.
26972 * lib/dummy.c: Likewise.
26973 * lib/dup-safer.c: Likewise.
26974 * lib/dup2.c: Likewise.
26975 * lib/eealloc.h: Likewise.
26976 * lib/error.c: Likewise.
26977 * lib/error.h: Likewise.
26978 * lib/euidaccess.c: Likewise.
26979 * lib/exclude.c: Likewise.
26980 * lib/exclude.h: Likewise.
26981 * lib/execute.c: Likewise.
26982 * lib/execute.h: Likewise.
26983 * lib/exitfail.c: Likewise.
26984 * lib/exitfail.h: Likewise.
26985 * lib/expl.c: Likewise.
26986 * lib/fatal-signal.c: Likewise.
26987 * lib/fatal-signal.h: Likewise.
26988 * lib/fbufmode.c: Likewise.
26989 * lib/fbufmode.h: Likewise.
26990 * lib/fchdir.c: Likewise.
26991 * lib/fchmodat.c: Likewise.
26992 * lib/fchownat.c: Likewise.
26993 * lib/fcntl--.h: Likewise.
26994 * lib/fcntl-safer.h: Likewise.
26995 * lib/fcntl.in.h: Likewise.
26996 * lib/fd-safer.c: Likewise.
26997 * lib/fflush.c: Likewise.
26998 * lib/file-has-acl.c: Likewise.
26999 * lib/file-set.c: Likewise.
27000 * lib/file-type.c: Likewise.
27001 * lib/file-type.h: Likewise.
27002 * lib/fileblocks.c: Likewise.
27003 * lib/filemode.c: Likewise.
27004 * lib/filemode.h: Likewise.
27005 * lib/filename.h: Likewise.
27006 * lib/filenamecat.c: Likewise.
27007 * lib/filenamecat.h: Likewise.
27008 * lib/findprog.c: Likewise.
27009 * lib/findprog.h: Likewise.
27010 * lib/float.in.h: Likewise.
27011 * lib/floor.c: Likewise.
27012 * lib/floorf.c: Likewise.
27013 * lib/floorl.c: Likewise.
27014 * lib/fopen-safer.c: Likewise.
27015 * lib/fopen.c: Likewise.
27016 * lib/fpending.c: Likewise.
27017 * lib/fpending.h: Likewise.
27018 * lib/fprintf.c: Likewise.
27019 * lib/fprintftime.h: Likewise.
27020 * lib/fpucw.h: Likewise.
27021 * lib/fpurge.c: Likewise.
27022 * lib/fpurge.h: Likewise.
27023 * lib/freadable.c: Likewise.
27024 * lib/freadable.h: Likewise.
27025 * lib/freadahead.c: Likewise.
27026 * lib/freadahead.h: Likewise.
27027 * lib/freading.c: Likewise.
27028 * lib/freading.h: Likewise.
27029 * lib/free.c: Likewise.
27030 * lib/freopen.c: Likewise.
27031 * lib/frexp.c: Likewise.
27032 * lib/frexpl.c: Likewise.
27033 * lib/fseek.c: Likewise.
27034 * lib/fseterr.c: Likewise.
27035 * lib/fseterr.h: Likewise.
27036 * lib/fstatat.c: Likewise.
27037 * lib/fstrcmp.c: Likewise.
27038 * lib/fstrcmp.h: Likewise.
27039 * lib/fsusage.c: Likewise.
27040 * lib/fsusage.h: Likewise.
27041 * lib/ftell.c: Likewise.
27042 * lib/ftello.c: Likewise.
27043 * lib/fts-cycle.c: Likewise.
27044 * lib/fts.c: Likewise.
27045 * lib/fts_.h: Likewise.
27046 * lib/full-read.c: Likewise.
27047 * lib/full-read.h: Likewise.
27048 * lib/full-write.c: Likewise.
27049 * lib/full-write.h: Likewise.
27050 * lib/fwritable.c: Likewise.
27051 * lib/fwritable.h: Likewise.
27052 * lib/fwriteerror.c: Likewise.
27053 * lib/fwriteerror.h: Likewise.
27054 * lib/fwriting.c: Likewise.
27055 * lib/fwriting.h: Likewise.
27056 * lib/gcd.c: Likewise.
27057 * lib/gcd.h: Likewise.
27058 * lib/getcwd.c: Likewise.
27059 * lib/getdate.h: Likewise.
27060 * lib/getdate.y: Likewise.
27061 * lib/getdomainname.c: Likewise.
27062 * lib/getdomainname.h: Likewise.
27063 * lib/getgroups.c: Likewise.
27064 * lib/gethostname.c: Likewise.
27065 * lib/gethrxtime.c: Likewise.
27066 * lib/gethrxtime.h: Likewise.
27067 * lib/getloadavg.c: Likewise.
27068 * lib/getndelim2.c: Likewise.
27069 * lib/getndelim2.h: Likewise.
27070 * lib/getnline.c: Likewise.
27071 * lib/getnline.h: Likewise.
27072 * lib/getopt.c: Likewise.
27073 * lib/getopt.in.h: Likewise.
27074 * lib/getopt1.c: Likewise.
27075 * lib/getopt_int.h: Likewise.
27076 * lib/getpagesize.h: Likewise.
27077 * lib/getsubopt.c: Likewise.
27078 * lib/gettime.c: Likewise.
27079 * lib/getugroups.c: Likewise.
27080 * lib/getugroups.h: Likewise.
27081 * lib/getusershell.c: Likewise.
27082 * lib/gl_anyavltree_list1.h: Likewise.
27083 * lib/gl_anyavltree_list2.h: Likewise.
27084 * lib/gl_anyhash_list1.h: Likewise.
27085 * lib/gl_anyhash_list2.h: Likewise.
27086 * lib/gl_anylinked_list1.h: Likewise.
27087 * lib/gl_anylinked_list2.h: Likewise.
27088 * lib/gl_anyrbtree_list1.h: Likewise.
27089 * lib/gl_anyrbtree_list2.h: Likewise.
27090 * lib/gl_anytree_list1.h: Likewise.
27091 * lib/gl_anytree_list2.h: Likewise.
27092 * lib/gl_anytree_oset.h: Likewise.
27093 * lib/gl_anytreehash_list1.h: Likewise.
27094 * lib/gl_anytreehash_list2.h: Likewise.
27095 * lib/gl_array_list.c: Likewise.
27096 * lib/gl_array_list.h: Likewise.
27097 * lib/gl_array_oset.c: Likewise.
27098 * lib/gl_array_oset.h: Likewise.
27099 * lib/gl_avltree_list.c: Likewise.
27100 * lib/gl_avltree_list.h: Likewise.
27101 * lib/gl_avltree_oset.c: Likewise.
27102 * lib/gl_avltree_oset.h: Likewise.
27103 * lib/gl_avltreehash_list.c: Likewise.
27104 * lib/gl_avltreehash_list.h: Likewise.
27105 * lib/gl_carray_list.c: Likewise.
27106 * lib/gl_carray_list.h: Likewise.
27107 * lib/gl_linked_list.c: Likewise.
27108 * lib/gl_linked_list.h: Likewise.
27109 * lib/gl_linkedhash_list.c: Likewise.
27110 * lib/gl_linkedhash_list.h: Likewise.
27111 * lib/gl_list.c: Likewise.
27112 * lib/gl_list.h: Likewise.
27113 * lib/gl_oset.c: Likewise.
27114 * lib/gl_oset.h: Likewise.
27115 * lib/gl_rbtree_list.c: Likewise.
27116 * lib/gl_rbtree_list.h: Likewise.
27117 * lib/gl_rbtree_oset.c: Likewise.
27118 * lib/gl_rbtree_oset.h: Likewise.
27119 * lib/gl_rbtreehash_list.c: Likewise.
27120 * lib/gl_rbtreehash_list.h: Likewise.
27121 * lib/gl_sublist.c: Likewise.
27122 * lib/gl_sublist.h: Likewise.
27123 * lib/group-member.c: Likewise.
27124 * lib/group-member.h: Likewise.
27125 * lib/hard-locale.c: Likewise.
27126 * lib/hard-locale.h: Likewise.
27127 * lib/hash-pjw.c: Likewise.
27128 * lib/hash-pjw.h: Likewise.
27129 * lib/hash-triple.c: Likewise.
27130 * lib/hash.c: Likewise.
27131 * lib/hash.h: Likewise.
27132 * lib/human.c: Likewise.
27133 * lib/human.h: Likewise.
27134 * lib/i-ring.c: Likewise.
27135 * lib/i-ring.h: Likewise.
27136 * lib/idcache.c: Likewise.
27137 * lib/imaxabs.c: Likewise.
27138 * lib/imaxdiv.c: Likewise.
27139 * lib/inet_pton.c: Likewise.
27140 * lib/inet_pton.h: Likewise.
27141 * lib/intprops.h: Likewise.
27142 * lib/inttostr.c: Likewise.
27143 * lib/inttostr.h: Likewise.
27144 * lib/inttypes.in.h: Likewise.
27145 * lib/isapipe.c: Likewise.
27146 * lib/isdir.c: Likewise.
27147 * lib/isnan.c: Likewise.
27148 * lib/isnan.h: Likewise.
27149 * lib/isnanf.c: Likewise.
27150 * lib/isnanf.h: Likewise.
27151 * lib/isnanl-nolibm.h: Likewise.
27152 * lib/isnanl.c: Likewise.
27153 * lib/isnanl.h: Likewise.
27154 * lib/javacomp.c: Likewise.
27155 * lib/javacomp.h: Likewise.
27156 * lib/javaexec.c: Likewise.
27157 * lib/javaexec.h: Likewise.
27158 * lib/javaversion.c: Likewise.
27159 * lib/javaversion.h: Likewise.
27160 * lib/javaversion.java: Likewise.
27161 * lib/lbrkprop.h: Likewise.
27162 * lib/lchmod.h: Likewise.
27163 * lib/lchown.c: Likewise.
27164 * lib/ldexpl.c: Likewise.
27165 * lib/linebreak.c: Likewise.
27166 * lib/linebreak.h: Likewise.
27167 * lib/linebuffer.c: Likewise.
27168 * lib/linebuffer.h: Likewise.
27169 * lib/locale.in.h: Likewise.
27170 * lib/logl.c: Likewise.
27171 * lib/long-options.c: Likewise.
27172 * lib/long-options.h: Likewise.
27173 * lib/lstat.c: Likewise.
27174 * lib/lstat.h: Likewise.
27175 * lib/math.in.h: Likewise.
27176 * lib/mbchar.c: Likewise.
27177 * lib/mbchar.h: Likewise.
27178 * lib/mbfile.h: Likewise.
27179 * lib/mbiter.h: Likewise.
27180 * lib/mbscasecmp.c: Likewise.
27181 * lib/mbscasestr.c: Likewise.
27182 * lib/mbschr.c: Likewise.
27183 * lib/mbscspn.c: Likewise.
27184 * lib/mbslen.c: Likewise.
27185 * lib/mbsncasecmp.c: Likewise.
27186 * lib/mbsnlen.c: Likewise.
27187 * lib/mbspbrk.c: Likewise.
27188 * lib/mbspcasecmp.c: Likewise.
27189 * lib/mbsrchr.c: Likewise.
27190 * lib/mbssep.c: Likewise.
27191 * lib/mbsspn.c: Likewise.
27192 * lib/mbsstr.c: Likewise.
27193 * lib/mbstok_r.c: Likewise.
27194 * lib/mbswidth.c: Likewise.
27195 * lib/mbswidth.h: Likewise.
27196 * lib/mbuiter.h: Likewise.
27197 * lib/memcasecmp.c: Likewise.
27198 * lib/memcasecmp.h: Likewise.
27199 * lib/memchr.c: Likewise.
27200 * lib/memcmp.c: Likewise.
27201 * lib/memcoll.c: Likewise.
27202 * lib/memcoll.h: Likewise.
27203 * lib/memcpy.c: Likewise.
27204 * lib/memrchr.c: Likewise.
27205 * lib/mkancesdirs.c: Likewise.
27206 * lib/mkdir-p.c: Likewise.
27207 * lib/mkdir-p.h: Likewise.
27208 * lib/mkdir.c: Likewise.
27209 * lib/mkdirat.c: Likewise.
27210 * lib/mkdtemp.c: Likewise.
27211 * lib/mkstemp-safer.c: Likewise.
27212 * lib/mkstemp.c: Likewise.
27213 * lib/modechange.c: Likewise.
27214 * lib/modechange.h: Likewise.
27215 * lib/mountlist.c: Likewise.
27216 * lib/mountlist.h: Likewise.
27217 * lib/mpsort.c: Likewise.
27218 * lib/nanosleep.c: Likewise.
27219 * lib/obstack.c: Likewise.
27220 * lib/obstack.h: Likewise.
27221 * lib/open-safer.c: Likewise.
27222 * lib/open.c: Likewise.
27223 * lib/openat-die.c: Likewise.
27224 * lib/openat-priv.h: Likewise.
27225 * lib/openat-proc.c: Likewise.
27226 * lib/openat.c: Likewise.
27227 * lib/openat.h: Likewise.
27228 * lib/pagealign_alloc.c: Likewise.
27229 * lib/pagealign_alloc.h: Likewise.
27230 * lib/physmem.c: Likewise.
27231 * lib/physmem.h: Likewise.
27232 * lib/pipe-safer.c: Likewise.
27233 * lib/pipe.c: Likewise.
27234 * lib/pipe.h: Likewise.
27235 * lib/posixtm.c: Likewise.
27236 * lib/posixtm.h: Likewise.
27237 * lib/posixver.c: Likewise.
27238 * lib/printf-frexp.c: Likewise.
27239 * lib/printf-frexp.h: Likewise.
27240 * lib/printf-frexpl.c: Likewise.
27241 * lib/printf-frexpl.h: Likewise.
27242 * lib/printf.c: Likewise.
27243 * lib/progname.c: Likewise.
27244 * lib/progname.h: Likewise.
27245 * lib/progreloc.c: Likewise.
27246 * lib/putenv.c: Likewise.
27247 * lib/quote.c: Likewise.
27248 * lib/quote.h: Likewise.
27249 * lib/quotearg.c: Likewise.
27250 * lib/quotearg.h: Likewise.
27251 * lib/raise.c: Likewise.
27252 * lib/readline.c: Likewise.
27253 * lib/readline.h: Likewise.
27254 * lib/readlink.c: Likewise.
27255 * lib/readtokens.c: Likewise.
27256 * lib/readtokens.h: Likewise.
27257 * lib/readtokens0.c: Likewise.
27258 * lib/readtokens0.h: Likewise.
27259 * lib/readutmp.c: Likewise.
27260 * lib/readutmp.h: Likewise.
27261 * lib/realloc.c: Likewise.
27262 * lib/relocwrapper.c: Likewise.
27263 * lib/rename-dest-slash.c: Likewise.
27264 * lib/rename.c: Likewise.
27265 * lib/rmdir.c: Likewise.
27266 * lib/rpmatch.c: Likewise.
27267 * lib/safe-read.c: Likewise.
27268 * lib/safe-read.h: Likewise.
27269 * lib/safe-write.c: Likewise.
27270 * lib/safe-write.h: Likewise.
27271 * lib/same-inode.h: Likewise.
27272 * lib/same.c: Likewise.
27273 * lib/same.h: Likewise.
27274 * lib/save-cwd.c: Likewise.
27275 * lib/save-cwd.h: Likewise.
27276 * lib/savedir.c: Likewise.
27277 * lib/savedir.h: Likewise.
27278 * lib/savewd.c: Likewise.
27279 * lib/savewd.h: Likewise.
27280 * lib/search.in.h: Likewise.
27281 * lib/setenv.c: Likewise.
27282 * lib/setenv.h: Likewise.
27283 * lib/settime.c: Likewise.
27284 * lib/sh-quote.c: Likewise.
27285 * lib/sh-quote.h: Likewise.
27286 * lib/sig2str.c: Likewise.
27287 * lib/sig2str.h: Likewise.
27288 * lib/signal.in.h: Likewise.
27289 * lib/signbitd.c: Likewise.
27290 * lib/signbitf.c: Likewise.
27291 * lib/signbitl.c: Likewise.
27292 * lib/sigprocmask.c: Likewise.
27293 * lib/sincosl.c: Likewise.
27294 * lib/sleep.c: Likewise.
27295 * lib/sprintf.c: Likewise.
27296 * lib/sqrtl.c: Likewise.
27297 * lib/stat-time.h: Likewise.
27298 * lib/stdio--.h: Likewise.
27299 * lib/stdio-safer.h: Likewise.
27300 * lib/stdlib--.h: Likewise.
27301 * lib/stdlib-safer.h: Likewise.
27302 * lib/stdlib.in.h: Likewise.
27303 * lib/stpcpy.c: Likewise.
27304 * lib/stpncpy.c: Likewise.
27305 * lib/strchrnul.c: Likewise.
27306 * lib/strcspn.c: Likewise.
27307 * lib/strerror.c: Likewise.
27308 * lib/strftime.c: Likewise.
27309 * lib/strftime.h: Likewise.
27310 * lib/striconveh.c: Likewise.
27311 * lib/striconveh.h: Likewise.
27312 * lib/striconveha.c: Likewise.
27313 * lib/striconveha.h: Likewise.
27314 * lib/stripslash.c: Likewise.
27315 * lib/strnlen1.c: Likewise.
27316 * lib/strnlen1.h: Likewise.
27317 * lib/strtod.c: Likewise.
27318 * lib/strtoimax.c: Likewise.
27319 * lib/strtok_r.c: Likewise.
27320 * lib/strtol.c: Likewise.
27321 * lib/strtoll.c: Likewise.
27322 * lib/strtoul.c: Likewise.
27323 * lib/strtoull.c: Likewise.
27324 * lib/sysexits.in.h: Likewise.
27325 * lib/tempname.c: Likewise.
27326 * lib/tempname.h: Likewise.
27327 * lib/timespec.h: Likewise.
27328 * lib/tls.c: Likewise.
27329 * lib/tls.h: Likewise.
27330 * lib/tmpdir.c: Likewise.
27331 * lib/tmpdir.h: Likewise.
27332 * lib/tmpfile-safer.c: Likewise.
27333 * lib/tmpfile.c: Likewise.
27334 * lib/trigl.c: Likewise.
27335 * lib/trigl.h: Likewise.
27336 * lib/trim.c: Likewise.
27337 * lib/trim.h: Likewise.
27338 * lib/trunc.c: Likewise.
27339 * lib/truncf.c: Likewise.
27340 * lib/truncl.c: Likewise.
27341 * lib/tsearch.c: Likewise.
27342 * lib/unicodeio.c: Likewise.
27343 * lib/unicodeio.h: Likewise.
27344 * lib/unistd--.h: Likewise.
27345 * lib/unistd-safer.h: Likewise.
27346 * lib/unistdio/ulc-fprintf.c: Likewise.
27347 * lib/unistdio/ulc-vfprintf.c: Likewise.
27348 * lib/unlinkdir.c: Likewise.
27349 * lib/unlinkdir.h: Likewise.
27350 * lib/unlocked-io.h: Likewise.
27351 * lib/unsetenv.c: Likewise.
27352 * lib/userspec.c: Likewise.
27353 * lib/utime.c: Likewise.
27354 * lib/utimecmp.c: Likewise.
27355 * lib/utimecmp.h: Likewise.
27356 * lib/utimens.c: Likewise.
27357 * lib/verify.h: Likewise.
27358 * lib/verror.c: Likewise.
27359 * lib/verror.h: Likewise.
27360 * lib/version-etc-fsf.c: Likewise.
27361 * lib/version-etc.c: Likewise.
27362 * lib/version-etc.h: Likewise.
27363 * lib/vfprintf.c: Likewise.
27364 * lib/vprintf.c: Likewise.
27365 * lib/vsprintf.c: Likewise.
27366 * lib/w32spawn.h: Likewise.
27367 * lib/wait-process.c: Likewise.
27368 * lib/wait-process.h: Likewise.
27369 * lib/wcwidth.c: Likewise.
27370 * lib/write-any-file.c: Likewise.
27371 * lib/xalloc-die.c: Likewise.
27372 * lib/xalloc.h: Likewise.
27373 * lib/xasprintf.c: Likewise.
27374 * lib/xgetcwd.c: Likewise.
27375 * lib/xgetcwd.h: Likewise.
27376 * lib/xgetdomainname.c: Likewise.
27377 * lib/xgetdomainname.h: Likewise.
27378 * lib/xgethostname.c: Likewise.
27379 * lib/xmalloc.c: Likewise.
27380 * lib/xmalloca.c: Likewise.
27381 * lib/xmalloca.h: Likewise.
27382 * lib/xmemcoll.c: Likewise.
27383 * lib/xnanosleep.c: Likewise.
27384 * lib/xreadlink.c: Likewise.
27385 * lib/xreadlink.h: Likewise.
27386 * lib/xsetenv.c: Likewise.
27387 * lib/xsetenv.h: Likewise.
27388 * lib/xstriconv.c: Likewise.
27389 * lib/xstriconv.h: Likewise.
27390 * lib/xstrndup.c: Likewise.
27391 * lib/xstrndup.h: Likewise.
27392 * lib/xstrtod.c: Likewise.
27393 * lib/xstrtod.h: Likewise.
27394 * lib/xstrtol-error.c: Likewise.
27395 * lib/xstrtol.c: Likewise.
27396 * lib/xstrtol.h: Likewise.
27397 * lib/xtime.h: Likewise.
27398 * lib/xvasprintf.c: Likewise.
27399 * lib/xvasprintf.h: Likewise.
27400 * lib/yesno.c: Likewise.
27401 * lib/yesno.h: Likewise.
27402 * posix-modules: Likewise.
27403 * tests/test-alloca-opt.c: Likewise.
27404 * tests/test-arcfour.c: Likewise.
27405 * tests/test-arctwo.c: Likewise.
27406 * tests/test-argmatch.c: Likewise.
27407 * tests/test-argp-2.sh: Likewise.
27408 * tests/test-argp.c: Likewise.
27409 * tests/test-arpa_inet.c: Likewise.
27410 * tests/test-array_list.c: Likewise.
27411 * tests/test-array_oset.c: Likewise.
27412 * tests/test-atexit.c: Likewise.
27413 * tests/test-avltree_list.c: Likewise.
27414 * tests/test-avltree_oset.c: Likewise.
27415 * tests/test-avltreehash_list.c: Likewise.
27416 * tests/test-base64.c: Likewise.
27417 * tests/test-binary-io.c: Likewise.
27418 * tests/test-byteswap.c: Likewise.
27419 * tests/test-c-ctype.c: Likewise.
27420 * tests/test-c-strcasecmp.c: Likewise.
27421 * tests/test-c-strcasestr.c: Likewise.
27422 * tests/test-c-strncasecmp.c: Likewise.
27423 * tests/test-c-strstr.c: Likewise.
27424 * tests/test-canonicalize-lgpl.c: Likewise.
27425 * tests/test-canonicalize.c: Likewise.
27426 * tests/test-carray_list.c: Likewise.
27427 * tests/test-ceilf.c: Likewise.
27428 * tests/test-ceill.c: Likewise.
27429 * tests/test-count-one-bits.c: Likewise.
27430 * tests/test-crc.c: Likewise.
27431 * tests/test-dirname.c: Likewise.
27432 * tests/test-fbufmode.c: Likewise.
27433 * tests/test-fcntl.c: Likewise.
27434 * tests/test-fflush.c: Likewise.
27435 * tests/test-floorf.c: Likewise.
27436 * tests/test-floorl.c: Likewise.
27437 * tests/test-fopen.c: Likewise.
27438 * tests/test-fprintf-posix.c: Likewise.
27439 * tests/test-fprintf-posix.h: Likewise.
27440 * tests/test-fpurge.c: Likewise.
27441 * tests/test-freadable.c: Likewise.
27442 * tests/test-freadahead.c: Likewise.
27443 * tests/test-freading.c: Likewise.
27444 * tests/test-freopen.c: Likewise.
27445 * tests/test-frexp.c: Likewise.
27446 * tests/test-frexpl.c: Likewise.
27447 * tests/test-fseek.c: Likewise.
27448 * tests/test-fseeko.c: Likewise.
27449 * tests/test-fseterr.c: Likewise.
27450 * tests/test-fstrcmp.c: Likewise.
27451 * tests/test-ftell.c: Likewise.
27452 * tests/test-ftello.c: Likewise.
27453 * tests/test-fwritable.c: Likewise.
27454 * tests/test-fwriting.c: Likewise.
27455 * tests/test-getaddrinfo.c: Likewise.
27456 * tests/test-getpass.c: Likewise.
27457 * tests/test-gettimeofday.c: Likewise.
27458 * tests/test-hmac-md5.c: Likewise.
27459 * tests/test-hmac-sha1.c: Likewise.
27460 * tests/test-iconv.c: Likewise.
27461 * tests/test-iconvme.c: Likewise.
27462 * tests/test-inttypes.c: Likewise.
27463 * tests/test-isnan.c: Likewise.
27464 * tests/test-isnanf.c: Likewise.
27465 * tests/test-isnanl-nolibm.c: Likewise.
27466 * tests/test-isnanl.c: Likewise.
27467 * tests/test-isnanl.h: Likewise.
27468 * tests/test-ldexpl.c: Likewise.
27469 * tests/test-linked_list.c: Likewise.
27470 * tests/test-linkedhash_list.c: Likewise.
27471 * tests/test-locale.c: Likewise.
27472 * tests/test-localename.c: Likewise.
27473 * tests/test-lock.c: Likewise.
27474 * tests/test-lseek.c: Likewise.
27475 * tests/test-malloca.c: Likewise.
27476 * tests/test-math.c: Likewise.
27477 * tests/test-mbscasecmp.c: Likewise.
27478 * tests/test-mbscasestr1.c: Likewise.
27479 * tests/test-mbscasestr2.c: Likewise.
27480 * tests/test-mbscasestr3.c: Likewise.
27481 * tests/test-mbscasestr4.c: Likewise.
27482 * tests/test-mbschr.c: Likewise.
27483 * tests/test-mbscspn.c: Likewise.
27484 * tests/test-mbsncasecmp.c: Likewise.
27485 * tests/test-mbspbrk.c: Likewise.
27486 * tests/test-mbspcasecmp.c: Likewise.
27487 * tests/test-mbsrchr.c: Likewise.
27488 * tests/test-mbsspn.c: Likewise.
27489 * tests/test-mbsstr1.c: Likewise.
27490 * tests/test-mbsstr2.c: Likewise.
27491 * tests/test-mbsstr3.c: Likewise.
27492 * tests/test-md5.c: Likewise.
27493 * tests/test-memmem.c: Likewise.
27494 * tests/test-netinet_in.c: Likewise.
27495 * tests/test-open.c: Likewise.
27496 * tests/test-printf-frexp.c: Likewise.
27497 * tests/test-printf-frexpl.c: Likewise.
27498 * tests/test-printf-posix.c: Likewise.
27499 * tests/test-printf-posix.h: Likewise.
27500 * tests/test-rbtree_list.c: Likewise.
27501 * tests/test-rbtree_oset.c: Likewise.
27502 * tests/test-rbtreehash_list.c: Likewise.
27503 * tests/test-read-file.c: Likewise.
27504 * tests/test-rijndael.c: Likewise.
27505 * tests/test-search.c: Likewise.
27506 * tests/test-signbit.c: Likewise.
27507 * tests/test-sleep.c: Likewise.
27508 * tests/test-snprintf-posix.c: Likewise.
27509 * tests/test-snprintf-posix.h: Likewise.
27510 * tests/test-snprintf.c: Likewise.
27511 * tests/test-sprintf-posix.c: Likewise.
27512 * tests/test-sprintf-posix.h: Likewise.
27513 * tests/test-stat-time.c: Likewise.
27514 * tests/test-stdbool.c: Likewise.
27515 * tests/test-stdint.c: Likewise.
27516 * tests/test-stdio.c: Likewise.
27517 * tests/test-stdlib.c: Likewise.
27518 * tests/test-stpncpy.c: Likewise.
27519 * tests/test-strcasestr.c: Likewise.
27520 * tests/test-striconv.c: Likewise.
27521 * tests/test-striconveh.c: Likewise.
27522 * tests/test-striconveha.c: Likewise.
27523 * tests/test-string.c: Likewise.
27524 * tests/test-sys_select.c: Likewise.
27525 * tests/test-sys_socket.c: Likewise.
27526 * tests/test-sys_stat.c: Likewise.
27527 * tests/test-sys_time.c: Likewise.
27528 * tests/test-sysexits.c: Likewise.
27529 * tests/test-time.c: Likewise.
27530 * tests/test-tls.c: Likewise.
27531 * tests/test-trunc.c: Likewise.
27532 * tests/test-truncf.c: Likewise.
27533 * tests/test-truncl.c: Likewise.
27534 * tests/test-unistd.c: Likewise.
27535 * tests/test-vasnprintf-posix.c: Likewise.
27536 * tests/test-vasnprintf-posix2.c: Likewise.
27537 * tests/test-vasnprintf.c: Likewise.
27538 * tests/test-vasprintf-posix.c: Likewise.
27539 * tests/test-vasprintf.c: Likewise.
27540 * tests/test-verify.c: Likewise.
27541 * tests/test-vfprintf-posix.c: Likewise.
27542 * tests/test-vprintf-posix.c: Likewise.
27543 * tests/test-vsnprintf-posix.c: Likewise.
27544 * tests/test-vsnprintf.c: Likewise.
27545 * tests/test-vsprintf-posix.c: Likewise.
27546 * tests/test-wchar.c: Likewise.
27547 * tests/test-wctype.c: Likewise.
27548 * tests/test-wcwidth.c: Likewise.
27549 * tests/test-xstrtol.c: Likewise.
27550 * tests/test-xvasprintf.c: Likewise.
27551 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
27552 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
27553 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27554 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27555 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27556 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
27557 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27558 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27559 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27560 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
27561 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27562 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27563 * tests/uniname/test-uninames.c: Likewise.
27564 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
27565 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
27566 * tests/unistdio/test-u16-printf1.h: Likewise.
27567 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
27568 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
27569 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
27570 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
27571 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27572 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27573 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
27574 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
27575 * tests/unistdio/test-u32-printf1.h: Likewise.
27576 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
27577 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
27578 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
27579 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
27580 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27581 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27582 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
27583 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
27584 * tests/unistdio/test-u8-printf1.h: Likewise.
27585 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
27586 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
27587 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
27588 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
27589 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27590 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27591 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
27592 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
27593 * tests/unistdio/test-ulc-printf1.h: Likewise.
27594 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
27595 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
27596 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
27597 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
27598 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27599 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27600 * tests/uniwidth/test-u16-strwidth.c: Likewise.
27601 * tests/uniwidth/test-u16-width.c: Likewise.
27602 * tests/uniwidth/test-u32-strwidth.c: Likewise.
27603 * tests/uniwidth/test-u32-width.c: Likewise.
27604 * tests/uniwidth/test-u8-strwidth.c: Likewise.
27605 * tests/uniwidth/test-u8-width.c: Likewise.
27606 * tests/uniwidth/test-uc_width.c: Likewise.
27607 * config/srclist-update: Likewise.
27608 (fixlicense): Update to GPLv3+.
27610 Change copyright notice from LGPLv2.1+ to LGPLv3+.
27611 * tests/test-tsearch.c: Change copyright notice.
27613 Change copyright notice from LGPLv2.0+ to LGPLv3+.
27614 * lib/c-strcaseeq.h: Change copyright notice.
27615 * lib/streq.h: Likewise.
27616 * lib/uniconv.h: Likewise.
27617 * lib/uniconv/u-conv-from-enc.h: Likewise.
27618 * lib/uniconv/u-conv-to-enc.h: Likewise.
27619 * lib/uniconv/u-strconv-from-enc.h: Likewise.
27620 * lib/uniconv/u-strconv-to-enc.h: Likewise.
27621 * lib/uniconv/u16-conv-from-enc.c: Likewise.
27622 * lib/uniconv/u16-conv-to-enc.c: Likewise.
27623 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
27624 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
27625 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
27626 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
27627 * lib/uniconv/u32-conv-from-enc.c: Likewise.
27628 * lib/uniconv/u32-conv-to-enc.c: Likewise.
27629 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
27630 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
27631 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
27632 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
27633 * lib/uniconv/u8-conv-from-enc.c: Likewise.
27634 * lib/uniconv/u8-conv-to-enc.c: Likewise.
27635 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
27636 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
27637 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
27638 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
27639 * lib/uniname.h: Likewise.
27640 * lib/uniname/uniname.c: Likewise.
27641 * lib/unistdio.h: Likewise.
27642 * lib/unistdio/u-asnprintf.h: Likewise.
27643 * lib/unistdio/u-asprintf.h: Likewise.
27644 * lib/unistdio/u-printf-args.c: Likewise.
27645 * lib/unistdio/u-printf-args.h: Likewise.
27646 * lib/unistdio/u-printf-parse.h: Likewise.
27647 * lib/unistdio/u-snprintf.h: Likewise.
27648 * lib/unistdio/u-sprintf.h: Likewise.
27649 * lib/unistdio/u-vasprintf.h: Likewise.
27650 * lib/unistdio/u-vsnprintf.h: Likewise.
27651 * lib/unistdio/u-vsprintf.h: Likewise.
27652 * lib/unistdio/u16-asnprintf.c: Likewise.
27653 * lib/unistdio/u16-asprintf.c: Likewise.
27654 * lib/unistdio/u16-printf-parse.c: Likewise.
27655 * lib/unistdio/u16-snprintf.c: Likewise.
27656 * lib/unistdio/u16-sprintf.c: Likewise.
27657 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
27658 * lib/unistdio/u16-u16-asprintf.c: Likewise.
27659 * lib/unistdio/u16-u16-snprintf.c: Likewise.
27660 * lib/unistdio/u16-u16-sprintf.c: Likewise.
27661 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
27662 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
27663 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
27664 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
27665 * lib/unistdio/u16-vasnprintf.c: Likewise.
27666 * lib/unistdio/u16-vasprintf.c: Likewise.
27667 * lib/unistdio/u16-vsnprintf.c: Likewise.
27668 * lib/unistdio/u16-vsprintf.c: Likewise.
27669 * lib/unistdio/u32-asnprintf.c: Likewise.
27670 * lib/unistdio/u32-asprintf.c: Likewise.
27671 * lib/unistdio/u32-printf-parse.c: Likewise.
27672 * lib/unistdio/u32-snprintf.c: Likewise.
27673 * lib/unistdio/u32-sprintf.c: Likewise.
27674 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
27675 * lib/unistdio/u32-u32-asprintf.c: Likewise.
27676 * lib/unistdio/u32-u32-snprintf.c: Likewise.
27677 * lib/unistdio/u32-u32-sprintf.c: Likewise.
27678 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
27679 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
27680 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
27681 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
27682 * lib/unistdio/u32-vasnprintf.c: Likewise.
27683 * lib/unistdio/u32-vasprintf.c: Likewise.
27684 * lib/unistdio/u32-vsnprintf.c: Likewise.
27685 * lib/unistdio/u32-vsprintf.c: Likewise.
27686 * lib/unistdio/u8-asnprintf.c: Likewise.
27687 * lib/unistdio/u8-asprintf.c: Likewise.
27688 * lib/unistdio/u8-printf-parse.c: Likewise.
27689 * lib/unistdio/u8-snprintf.c: Likewise.
27690 * lib/unistdio/u8-sprintf.c: Likewise.
27691 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
27692 * lib/unistdio/u8-u8-asprintf.c: Likewise.
27693 * lib/unistdio/u8-u8-snprintf.c: Likewise.
27694 * lib/unistdio/u8-u8-sprintf.c: Likewise.
27695 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
27696 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
27697 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
27698 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
27699 * lib/unistdio/u8-vasnprintf.c: Likewise.
27700 * lib/unistdio/u8-vasprintf.c: Likewise.
27701 * lib/unistdio/u8-vsnprintf.c: Likewise.
27702 * lib/unistdio/u8-vsprintf.c: Likewise.
27703 * lib/unistdio/ulc-asnprintf.c: Likewise.
27704 * lib/unistdio/ulc-asprintf.c: Likewise.
27705 * lib/unistdio/ulc-printf-parse.c: Likewise.
27706 * lib/unistdio/ulc-snprintf.c: Likewise.
27707 * lib/unistdio/ulc-sprintf.c: Likewise.
27708 * lib/unistdio/ulc-vasnprintf.c: Likewise.
27709 * lib/unistdio/ulc-vasprintf.c: Likewise.
27710 * lib/unistdio/ulc-vsnprintf.c: Likewise.
27711 * lib/unistdio/ulc-vsprintf.c: Likewise.
27712 * lib/unistr.h: Likewise.
27713 * lib/unistr/u-cpy-alloc.h: Likewise.
27714 * lib/unistr/u-cpy.h: Likewise.
27715 * lib/unistr/u-endswith.h: Likewise.
27716 * lib/unistr/u-move.h: Likewise.
27717 * lib/unistr/u-set.h: Likewise.
27718 * lib/unistr/u-startswith.h: Likewise.
27719 * lib/unistr/u-stpcpy.h: Likewise.
27720 * lib/unistr/u-stpncpy.h: Likewise.
27721 * lib/unistr/u-strcat.h: Likewise.
27722 * lib/unistr/u-strcpy.h: Likewise.
27723 * lib/unistr/u-strcspn.h: Likewise.
27724 * lib/unistr/u-strdup.h: Likewise.
27725 * lib/unistr/u-strlen.h: Likewise.
27726 * lib/unistr/u-strncat.h: Likewise.
27727 * lib/unistr/u-strncpy.h: Likewise.
27728 * lib/unistr/u-strnlen.h: Likewise.
27729 * lib/unistr/u-strpbrk.h: Likewise.
27730 * lib/unistr/u-strspn.h: Likewise.
27731 * lib/unistr/u-strstr.h: Likewise.
27732 * lib/unistr/u-strtok.h: Likewise.
27733 * lib/unistr/u16-check.c: Likewise.
27734 * lib/unistr/u16-chr.c: Likewise.
27735 * lib/unistr/u16-cmp.c: Likewise.
27736 * lib/unistr/u16-cpy-alloc.c: Likewise.
27737 * lib/unistr/u16-cpy.c: Likewise.
27738 * lib/unistr/u16-endswith.c: Likewise.
27739 * lib/unistr/u16-mblen.c: Likewise.
27740 * lib/unistr/u16-mbsnlen.c: Likewise.
27741 * lib/unistr/u16-mbtouc-aux.c: Likewise.
27742 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
27743 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
27744 * lib/unistr/u16-mbtouc.c: Likewise.
27745 * lib/unistr/u16-mbtoucr.c: Likewise.
27746 * lib/unistr/u16-move.c: Likewise.
27747 * lib/unistr/u16-next.c: Likewise.
27748 * lib/unistr/u16-prev.c: Likewise.
27749 * lib/unistr/u16-set.c: Likewise.
27750 * lib/unistr/u16-startswith.c: Likewise.
27751 * lib/unistr/u16-stpcpy.c: Likewise.
27752 * lib/unistr/u16-stpncpy.c: Likewise.
27753 * lib/unistr/u16-strcat.c: Likewise.
27754 * lib/unistr/u16-strchr.c: Likewise.
27755 * lib/unistr/u16-strcmp.c: Likewise.
27756 * lib/unistr/u16-strcpy.c: Likewise.
27757 * lib/unistr/u16-strcspn.c: Likewise.
27758 * lib/unistr/u16-strdup.c: Likewise.
27759 * lib/unistr/u16-strlen.c: Likewise.
27760 * lib/unistr/u16-strmblen.c: Likewise.
27761 * lib/unistr/u16-strmbtouc.c: Likewise.
27762 * lib/unistr/u16-strncat.c: Likewise.
27763 * lib/unistr/u16-strncmp.c: Likewise.
27764 * lib/unistr/u16-strncpy.c: Likewise.
27765 * lib/unistr/u16-strnlen.c: Likewise.
27766 * lib/unistr/u16-strpbrk.c: Likewise.
27767 * lib/unistr/u16-strrchr.c: Likewise.
27768 * lib/unistr/u16-strspn.c: Likewise.
27769 * lib/unistr/u16-strstr.c: Likewise.
27770 * lib/unistr/u16-strtok.c: Likewise.
27771 * lib/unistr/u16-to-u32.c: Likewise.
27772 * lib/unistr/u16-to-u8.c: Likewise.
27773 * lib/unistr/u16-uctomb-aux.c: Likewise.
27774 * lib/unistr/u16-uctomb.c: Likewise.
27775 * lib/unistr/u32-check.c: Likewise.
27776 * lib/unistr/u32-chr.c: Likewise.
27777 * lib/unistr/u32-cmp.c: Likewise.
27778 * lib/unistr/u32-cpy-alloc.c: Likewise.
27779 * lib/unistr/u32-cpy.c: Likewise.
27780 * lib/unistr/u32-endswith.c: Likewise.
27781 * lib/unistr/u32-mblen.c: Likewise.
27782 * lib/unistr/u32-mbsnlen.c: Likewise.
27783 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
27784 * lib/unistr/u32-mbtouc.c: Likewise.
27785 * lib/unistr/u32-mbtoucr.c: Likewise.
27786 * lib/unistr/u32-move.c: Likewise.
27787 * lib/unistr/u32-next.c: Likewise.
27788 * lib/unistr/u32-prev.c: Likewise.
27789 * lib/unistr/u32-set.c: Likewise.
27790 * lib/unistr/u32-startswith.c: Likewise.
27791 * lib/unistr/u32-stpcpy.c: Likewise.
27792 * lib/unistr/u32-stpncpy.c: Likewise.
27793 * lib/unistr/u32-strcat.c: Likewise.
27794 * lib/unistr/u32-strchr.c: Likewise.
27795 * lib/unistr/u32-strcmp.c: Likewise.
27796 * lib/unistr/u32-strcpy.c: Likewise.
27797 * lib/unistr/u32-strcspn.c: Likewise.
27798 * lib/unistr/u32-strdup.c: Likewise.
27799 * lib/unistr/u32-strlen.c: Likewise.
27800 * lib/unistr/u32-strmblen.c: Likewise.
27801 * lib/unistr/u32-strmbtouc.c: Likewise.
27802 * lib/unistr/u32-strncat.c: Likewise.
27803 * lib/unistr/u32-strncmp.c: Likewise.
27804 * lib/unistr/u32-strncpy.c: Likewise.
27805 * lib/unistr/u32-strnlen.c: Likewise.
27806 * lib/unistr/u32-strpbrk.c: Likewise.
27807 * lib/unistr/u32-strrchr.c: Likewise.
27808 * lib/unistr/u32-strspn.c: Likewise.
27809 * lib/unistr/u32-strstr.c: Likewise.
27810 * lib/unistr/u32-strtok.c: Likewise.
27811 * lib/unistr/u32-to-u16.c: Likewise.
27812 * lib/unistr/u32-to-u8.c: Likewise.
27813 * lib/unistr/u32-uctomb.c: Likewise.
27814 * lib/unistr/u8-check.c: Likewise.
27815 * lib/unistr/u8-chr.c: Likewise.
27816 * lib/unistr/u8-cmp.c: Likewise.
27817 * lib/unistr/u8-cpy-alloc.c: Likewise.
27818 * lib/unistr/u8-cpy.c: Likewise.
27819 * lib/unistr/u8-endswith.c: Likewise.
27820 * lib/unistr/u8-mblen.c: Likewise.
27821 * lib/unistr/u8-mbsnlen.c: Likewise.
27822 * lib/unistr/u8-mbtouc-aux.c: Likewise.
27823 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
27824 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
27825 * lib/unistr/u8-mbtouc.c: Likewise.
27826 * lib/unistr/u8-mbtoucr.c: Likewise.
27827 * lib/unistr/u8-move.c: Likewise.
27828 * lib/unistr/u8-next.c: Likewise.
27829 * lib/unistr/u8-prev.c: Likewise.
27830 * lib/unistr/u8-set.c: Likewise.
27831 * lib/unistr/u8-startswith.c: Likewise.
27832 * lib/unistr/u8-stpcpy.c: Likewise.
27833 * lib/unistr/u8-stpncpy.c: Likewise.
27834 * lib/unistr/u8-strcat.c: Likewise.
27835 * lib/unistr/u8-strchr.c: Likewise.
27836 * lib/unistr/u8-strcmp.c: Likewise.
27837 * lib/unistr/u8-strcpy.c: Likewise.
27838 * lib/unistr/u8-strcspn.c: Likewise.
27839 * lib/unistr/u8-strdup.c: Likewise.
27840 * lib/unistr/u8-strlen.c: Likewise.
27841 * lib/unistr/u8-strmblen.c: Likewise.
27842 * lib/unistr/u8-strmbtouc.c: Likewise.
27843 * lib/unistr/u8-strncat.c: Likewise.
27844 * lib/unistr/u8-strncmp.c: Likewise.
27845 * lib/unistr/u8-strncpy.c: Likewise.
27846 * lib/unistr/u8-strnlen.c: Likewise.
27847 * lib/unistr/u8-strpbrk.c: Likewise.
27848 * lib/unistr/u8-strrchr.c: Likewise.
27849 * lib/unistr/u8-strspn.c: Likewise.
27850 * lib/unistr/u8-strstr.c: Likewise.
27851 * lib/unistr/u8-strtok.c: Likewise.
27852 * lib/unistr/u8-to-u16.c: Likewise.
27853 * lib/unistr/u8-to-u32.c: Likewise.
27854 * lib/unistr/u8-uctomb-aux.c: Likewise.
27855 * lib/unistr/u8-uctomb.c: Likewise.
27856 * lib/unitypes.h: Likewise.
27857 * lib/uniwidth.h: Likewise.
27858 * lib/uniwidth/cjk.h: Likewise.
27859 * lib/uniwidth/u16-strwidth.c: Likewise.
27860 * lib/uniwidth/u16-width.c: Likewise.
27861 * lib/uniwidth/u32-strwidth.c: Likewise.
27862 * lib/uniwidth/u32-width.c: Likewise.
27863 * lib/uniwidth/u8-strwidth.c: Likewise.
27864 * lib/uniwidth/u8-width.c: Likewise.
27865 * lib/uniwidth/width.c: Likewise.
27867 2007-10-07 Bruno Haible <bruno@clisp.org>
27869 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
27870 The file is still under LGPL (see modules/inttypes).
27872 2007-10-06 Bruno Haible <bruno@clisp.org>
27874 * modules/trunc (Dependencies): Add 'extensions'.
27875 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
27876 Reported by Ben Pfaff <blp@gnu.org>.
27878 2007-10-06 Bruno Haible <bruno@clisp.org>
27880 * modules/freopen-tests: New file.
27881 * tests/test-freopen.c: New file.
27883 * modules/fopen-tests: New file.
27884 * tests/test-fopen.c: New file.
27886 * modules/fopen: New file.
27887 * lib/fopen.c: New file.
27888 * m4/fopen.m4: New file.
27889 * modules/freopen: New file.
27890 * lib/freopen.c: New file.
27891 * m4/freopen.m4: New file.
27892 * lib/stdio.in.h (fopen, freopen): New declarations.
27893 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
27894 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
27895 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
27896 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
27897 * doc/functions/fopen.texi: Mention the 'fopen' module.
27898 * doc/functions/freopen.texi: Mention the 'freopen' module.
27900 2007-10-06 Bruno Haible <bruno@clisp.org>
27902 * modules/open-tests: New file.
27903 * tests/test-open.c: New file.
27905 * modules/open: New file.
27906 * lib/open.c: New file.
27907 * m4/open.m4: New file.
27908 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
27910 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
27911 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
27913 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
27914 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
27916 * doc/functions/open.texi: Mention the 'open' module.
27918 2007-10-04 Bruno Haible <bruno@clisp.org>
27920 * modules/ceill-tests: New file.
27921 * tests/test-ceill.c: New file.
27923 * modules/ceill: New file.
27924 * lib/ceill.c: Replace entire file.
27925 * m4/ceill.m4: New file.
27926 * lib/math.in.h (ceill): Replace declaration.
27927 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
27928 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
27929 * doc/functions/ceill.texi: Mention the 'ceill' module.
27930 * modules/mathl (Files): Remove lib/ceill.c.
27931 (Depends-on): Add ceill.
27933 2007-10-04 Bruno Haible <bruno@clisp.org>
27935 * modules/ceilf-tests: New file.
27936 * tests/test-ceilf.c: New file.
27938 * modules/ceilf: New file.
27939 * lib/ceil.c: New file.
27940 * lib/ceilf.c: New file.
27941 * m4/ceilf.m4: New file.
27942 * lib/math.in.h (ceilf): New declaration.
27943 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
27945 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
27947 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
27949 2007-10-04 Bruno Haible <bruno@clisp.org>
27951 * modules/floorl-tests: New file.
27952 * tests/test-floorl.c: New file.
27954 * modules/floorl: New file.
27955 * lib/floorl.c: Replace entire file.
27956 * m4/floorl.m4: New file.
27957 * lib/math.in.h (floorl): Replace declaration.
27958 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
27959 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
27960 * doc/functions/floorl.texi: Mention the 'floorl' module.
27961 * modules/mathl (Files): Remove lib/floorl.c.
27962 (Depends-on): Add floorl.
27964 2007-10-04 Bruno Haible <bruno@clisp.org>
27966 * modules/floorf-tests: New file.
27967 * tests/test-floorf.c: New file.
27969 * modules/floorf: New file.
27970 * lib/floor.c: New file.
27971 * lib/floorf.c: New file.
27972 * m4/floorf.m4: New file.
27973 * lib/math.in.h (floorf): New declaration.
27974 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
27976 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
27978 * doc/functions/floorf.texi: Mention the 'floorf' module.
27980 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
27981 Bruno Haible <bruno@clisp.org>
27983 Advertise for the Git server instead of the CVS server.
27984 * doc/gnulib-intro.texi (Steady Development): Mention the Git
27985 repository instead of the CVS one.
27986 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
27987 about all VCS systems generically.
27988 * doc/gnulib.texi (Introduction): Capitalize `Git'.
27990 2007-10-04 Bruno Haible <bruno@clisp.org>
27992 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
27994 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
27996 2007-10-04 Bruno Haible <bruno@clisp.org>
27998 * modules/truncl-tests: New file.
27999 * tests/test-truncl.c: New file.
28001 * modules/truncl: New file.
28002 * lib/truncl.c: New file.
28003 * m4/truncl.m4: New file.
28004 * lib/math.in.h (truncl): New declaration.
28005 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
28007 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
28009 * doc/functions/truncl.texi: Mention the 'truncl' module.
28011 2007-10-04 Bruno Haible <bruno@clisp.org>
28013 * modules/truncf-tests: New file.
28014 * tests/test-truncf.c: New file.
28016 * modules/truncf: New file.
28017 * lib/trunc.c: Make paramerizable through USE_* macros.
28018 * lib/truncf.c: New file.
28019 * m4/truncf.m4: New file.
28020 * lib/math.in.h (truncf): New declaration.
28021 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
28023 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
28025 * doc/functions/truncf.texi: Mention the 'truncf' module.
28027 2007-10-03 Bruno Haible <bruno@clisp.org>
28029 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
28030 augmentation also for tests modules.
28031 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
28032 * modules/atexit-tests (Makefile.am): Likewise.
28033 * modules/binary-io-tests (Makefile.am): Likewise.
28034 * modules/c-strcase-tests (Makefile.am): Likewise.
28035 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
28036 * modules/canonicalize-tests (Makefile.am): Likewise.
28037 * modules/closein-tests (Makefile.am): Likewise.
28038 * modules/fprintf-posix-tests (Makefile.am): Likewise.
28039 * modules/freadahead-tests (Makefile.am): Likewise.
28040 * modules/fseek-tests (Makefile.am): Likewise.
28041 * modules/fseeko-tests (Makefile.am): Likewise.
28042 * modules/ftell-tests (Makefile.am): Likewise.
28043 * modules/ftello-tests (Makefile.am): Likewise.
28044 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
28045 * modules/isnanl-tests (Makefile.am): Likewise.
28046 * modules/lseek-tests (Makefile.am): Likewise.
28047 * modules/mbscasecmp-tests (Makefile.am): Likewise.
28048 * modules/mbscasestr-tests (Makefile.am): Likewise.
28049 * modules/mbschr-tests (Makefile.am): Likewise.
28050 * modules/mbscspn-tests (Makefile.am): Likewise.
28051 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28052 * modules/mbspbrk-tests (Makefile.am): Likewise.
28053 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28054 * modules/mbsrchr-tests (Makefile.am): Likewise.
28055 * modules/mbsspn-tests (Makefile.am): Likewise.
28056 * modules/mbsstr-tests (Makefile.am): Likewise.
28057 * modules/printf-posix-tests (Makefile.am): Likewise.
28058 * modules/snprintf-posix-tests (Makefile.am): Likewise.
28059 * modules/sprintf-posix-tests (Makefile.am): Likewise.
28060 * modules/tsearch-tests (Makefile.am): Likewise.
28061 * modules/uniname/uniname-tests (Makefile.am): Likewise.
28062 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28063 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28064 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28065 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28066 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28067 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28068 * modules/vprintf-posix-tests (Makefile.am): Likewise.
28069 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
28070 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
28071 * modules/xstrtoimax-tests (Makefile.am): Likewise.
28072 * modules/xstrtol-tests (Makefile.am): Likewise.
28073 * modules/xstrtoumax-tests (Makefile.am): Likewise.
28074 * modules/yesno-tests (Makefile.am): Likewise.
28076 2007-10-03 Bruno Haible <bruno@clisp.org>
28078 * modules/trunc-tests: New file.
28079 * tests/test-trunc.c: New file.
28081 * modules/trunc: New file.
28082 * lib/trunc.c: New file.
28083 * m4/trunc.m4: New file.
28084 * lib/math.in.h (trunc): New declaration.
28085 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
28087 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
28089 * doc/functions/trunc.texi: Mention the 'trunc' module.
28091 2007-10-03 Bruno Haible <bruno@clisp.org>
28093 * tests/test-fpending.c: New file, mostly copied
28094 from coreutils/lib/t-fpending.c.
28095 * modules/fpending-tests: New file.
28097 2007-10-03 Bruno Haible <bruno@clisp.org>
28099 Port the stdio extensions to QNX (untested).
28100 * lib/fseterr.c (fseterr): Add support for QNX.
28101 * lib/fbufmode.c (fbufmode): Likewise.
28102 * lib/freadable.c (freadable): Likewise.
28103 * lib/fwritable.c (fwritable): Likewise.
28104 * lib/freading.c (freading): Likewise.
28105 * lib/fwriting.c (fwriting): Likewise.
28106 * lib/freadahead.c (freadahed): Likewise.
28107 * lib/fpurge.c (fpurge): Likewise.
28108 * lib/fseeko.c (rpl_fseeko): Likewise.
28110 2007-10-03 Bruno Haible <bruno@clisp.org>
28111 Jim Meyering <jim@meyering.net>
28112 Eric Blake <ebb9@byu.net>
28114 * doc/relocatable.texi: Use @command instead of @program.
28116 2007-10-02 Jim Meyering <jim@meyering.net>
28118 Perform one more "_.h" -> ".in.h" substitution.
28119 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
28120 instead of unistd_.h here, too.
28122 2007-10-01 Bruno Haible <bruno@clisp.org>
28124 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
28125 Needed for the alloca-opt module.
28127 2007-09-30 Bruno Haible <bruno@clisp.org>
28129 * lib/alloca.in.h: Renamed from lib/alloca_.h.
28130 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
28132 * lib/argz.in.h: Renamed from lib/argz_.h.
28133 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
28134 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
28135 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
28137 * lib/dirent.in.h: Renamed from lib/dirent_.h.
28138 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
28140 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
28141 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
28143 * lib/float.in.h: Renamed from lib/float_.h.
28144 * modules/float (Files, Makefile.am): Use float.in.h instead of
28146 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
28147 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
28149 * lib/getopt.in.h: Renamed from lib/getopt_.h.
28150 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
28152 * lib/glob.in.h: Renamed from lib/glob_.h.
28153 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
28154 * lib/iconv.in.h: Renamed from lib/iconv_.h.
28155 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
28157 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
28158 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
28160 * lib/locale.in.h: Renamed from lib/locale_.h.
28161 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
28163 * lib/math.in.h: Renamed from lib/math_.h.
28164 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
28165 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
28166 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
28167 of netinet_in_.h. Add dependency.
28168 * lib/poll.in.h: Renamed from lib/poll_.h.
28169 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
28170 * lib/search.in.h: Renamed from lib/search_.h.
28171 * modules/search (Files, Makefile.am): Use search.in.h instead of
28173 * lib/signal.in.h: Renamed from lib/signal_.h.
28174 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
28176 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
28177 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
28179 * lib/stdint.in.h: Renamed from lib/stdint_.h.
28180 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
28182 * lib/stdio.in.h: Renamed from lib/stdio_.h.
28183 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
28185 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
28186 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
28188 * lib/string.in.h: Renamed from lib/string_.h.
28189 * modules/string (Files, Makefile.am): Use string.in.h instead of
28191 * doc/gnulib-tool.texi (Initial import): Update.
28192 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
28193 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
28194 of sys_select_.h. Add dependency.
28195 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
28196 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
28198 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
28199 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
28201 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
28202 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
28204 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
28205 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
28207 * lib/time.in.h: Renamed from lib/time_.h.
28208 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
28209 * lib/unistd.in.h: Renamed from lib/unistd_.h.
28210 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
28212 * lib/wchar.in.h: Renamed from lib/wchar_.h.
28213 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
28215 * lib/wctype.in.h: Renamed from lib/wctype_.h.
28216 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
28218 * build-aux/bootstrap (slurp): Update.
28219 * lib/.cppi-disable: Update.
28221 2007-09-30 Bruno Haible <bruno@clisp.org>
28223 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
28226 2007-09-30 Bruno Haible <bruno@clisp.org>
28228 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
28230 2007-09-29 Bruno Haible <bruno@clisp.org>
28232 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
28234 2007-09-29 Bruno Haible <bruno@clisp.org>
28236 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
28237 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
28238 * build-aux/install-reloc: Compile also areadlink.c.
28239 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
28241 2007-09-29 Bruno Haible <bruno@clisp.org>
28243 * gnulib-tool (func_emit_initmacro_done): Indentation.
28245 2007-09-29 Bruno Haible <bruno@clisp.org>
28247 * README: Add CVS checkout update instructions.
28248 Info from Bob Proulx <bob@proulx.com>.
28250 2007-09-28 Eric Blake <ebb9@byu.net>
28252 Provide move-if-change.
28253 * build-aux/move-if-change: New file, based on best practice
28254 rather than any canonical upstream location.
28256 2007-09-28 Jim Meyering <jim@meyering.net>
28258 Fix canonicalize loop-detection corner case.
28259 Do not attempt to stat the symlink values stored via seen_triple.
28260 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
28261 on linux-2.6.18, (but not 2.6.22).
28262 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
28263 triple_compare. The former compares dev,ino,filename, while the latter
28264 would actually stat dirname(filename) when dev and ino were equal.
28265 * lib/hash-triple.c: Install <string.h>.
28267 (triple_compare_ino_str): New function.
28268 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
28270 2007-09-28 Eric Blake <ebb9@byu.net>
28272 Enforce that AC_REPLACE_FUNCS files exist.
28273 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
28274 override check for typos.
28276 Fix test-closein on Solaris 10.
28277 * tests/test-closein.c (main): Don't assume stdin can be inherited
28278 closed on all systems.
28279 * tests/test-closein.sh: Likewise.
28280 Reported by Piotr Tarnowski.
28282 2007-09-28 Jim Meyering <jim@meyering.net>
28284 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
28286 2007-09-27 Jim Meyering <jim@meyering.net>
28288 canonicalize: Avoid a false-positive cycle failure.
28289 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
28290 Sort. Remove cycle-check.
28291 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
28293 (seen_triple): New function.
28294 (canonicalize_filename_mode): Use it instead of cycle-check.
28295 * tests/test-canonicalize.c: Add a test for this bug.
28296 * tests/test-canonicalize.sh: Set up and run the test.
28298 New module, file-set, from coreutils.
28299 * modules/file-set: Define it.
28300 * lib/file-set.c, lib/file-set.h: Implement.
28302 New module, hash-triple, from coreutils.
28303 * modules/hash-triple: Define it.
28304 * lib/hash-triple.c, lib/hash-triple.h: Implement.
28306 2007-09-25 Eric Blake <ebb9@byu.net>
28308 Fix strerror on Interix.
28309 * lib/string_.h (strerror): Declare replacement.
28310 * doc/functions/strerror.texi (strerror): Document the Interix
28312 * modules/string (Makefile.am): Support new hooks.
28313 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
28314 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
28315 gl_FUNC_STRERROR_SEPARATE.
28316 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
28317 * lib/strerror.c (rpl_strerror): Provide replacement.
28318 * modules/strerror (Depends-on): Add string.
28319 (configure.ac): Detect use of module.
28320 * tests/test-strerror.c: New file.
28321 * modules/strerror-tests: New test module.
28322 * modules/argp (Depends-on): Add strerror.
28323 * modules/error (Depends-on): Likewise.
28324 Reported by Martin Koeppe.
28326 2007-09-24 Bruno Haible <bruno@clisp.org>
28328 * README: Update git instructions.
28330 2007-09-24 Eric Blake <ebb9@byu.net>
28332 Revert fpending breakage from 2007-09-08.
28333 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
28336 2007-09-24 Jim Meyering <jim@meyering.net>
28338 filenamecat.c: Add a test.
28339 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
28340 showing how the function works when DIR is the empty string.
28342 2007-09-21 Simon Josefsson <simon@josefsson.org>
28344 * tests/test-canonicalize.sh: Turn on executable bit.
28346 2007-09-19 Eric Blake <ebb9@byu.net>
28348 * README: Update CVS instructions.
28350 2007-09-18 Bruno Haible <bruno@clisp.org>
28352 * modules/areadlink: New file.
28353 * lib/areadlink.h (areadlink): New declaration.
28354 * lib/areadlink.c: New file, based on lib/xreadlink.c.
28356 2007-09-17 Jim Meyering <jim@meyering.net>
28358 * lib/savewd.c (ESTALE) [!defined]: Define.
28359 Reported to be required on Interix by Martin Koeppe.
28361 2007-09-17 Bruno Haible <bruno@clisp.org>
28363 * gnulib-tool (func_version): Use $version.
28365 2007-09-16 Bruno Haible <bruno@clisp.org>
28367 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
28368 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
28369 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
28370 Reported by Greg Schafer <gschafer@zip.com.au>.
28372 2007-09-15 Bruno Haible <bruno@clisp.org>
28374 * gnulib-tool (sed): Try a little harder to make bash understand the
28376 Reported by Bruce Korb <bruce.korb@gmail.com>.
28378 2007-09-13 Eric Blake <ebb9@byu.net>
28380 * ChangeLog: Remove conflict markers.
28382 2007-09-13 Simon Josefsson <simon@josefsson.org>
28384 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
28385 Reported by Bruno Haible <bruno@clisp.org>.
28387 2007-09-12 Bruno Haible <bruno@clisp.org>
28389 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
28390 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
28393 2007-09-12 Eric Blake <ebb9@byu.net>
28395 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
28396 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
28397 Autoconf definition.
28398 * modules/euidaccess (Depends-on): Add extensions, for
28399 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
28400 * modules/fnmatch (Depends-on): Likewise.
28401 * modules/getaddrinfo (Depends-on): Likewise.
28402 * modules/getdelim (Depends-on): Likewise.
28403 * modules/getline (Depends-on): Likewise.
28404 * modules/getsubopt (Depends-on): Likewise.
28405 * modules/gettext (Depends-on): Likewise.
28406 * modules/group-member (Depends-on): Likewise.
28407 * modules/mbchar (Depends-on): Likewise.
28408 * modules/memmem (Depends-on): Likewise.
28409 * modules/mempcpy (Depends-on): Likewise.
28410 * modules/memrchr (Depends-on): Likewise.
28411 * modules/pagealign_alloc (Depends-on): Likewise.
28412 * modules/readutmp (Depends-on): Likewise.
28413 * modules/stpcpy (Depends-on): Likewise.
28414 * modules/stpncpy (Depends-on): Likewise.
28415 * modules/strchrnul (Depends-on): Likewise.
28416 * modules/strndup (Depends-on): Likewise.
28417 * modules/strsep (Depends-on): Likewise.
28418 * modules/strverscmp (Depends-on): Likewise.
28419 * modules/vasprintf (Depends-on): Likewise.
28420 * modules/wcwidth (Depends-on): Likewise.
28421 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
28422 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
28423 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
28424 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
28425 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
28426 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28427 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
28428 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
28429 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
28430 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
28431 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28432 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
28433 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
28434 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28435 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
28436 * m4/readutmp.m4 (gl_READUTMP): Likewise.
28437 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28438 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
28439 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28440 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
28441 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28442 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
28443 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
28444 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
28445 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
28446 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28447 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
28448 so that lock.m4 can be used in gettext without extensions module.
28450 2007-09-11 Bruno Haible <bruno@clisp.org>
28452 * m4/isc-posix.m4: Remove file.
28453 Suggested by Eric Blake.
28455 2007-09-11 Eric Blake <ebb9@byu.net>
28457 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
28459 2007-09-10 Bruno Haible <bruno@clisp.org>
28461 * posix-modules: Fix typo in error message.
28462 Reported by Matt <mkraai@beckman.com>.
28464 2007-09-09 Bruno Haible <bruno@clisp.org>
28466 * doc/functions/getdelim.texi: Update list of platforms lacking the
28468 * doc/functions/getline.texi: Likewise.
28470 2007-09-09 Jim Meyering <jim@meyering.net>
28472 * lib/hash.c (hash_initialize): Detect calloc failure.
28473 Reported by Bruno Haible.
28475 2007-09-09 Bruno Haible <bruno@clisp.org>
28477 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
28478 malloc or realloc fails.
28480 2007-09-09 Bruno Haible <bruno@clisp.org>
28482 * modules/getcwd (Depends-on): Add malloc-posix.
28483 * modules/glob (Depends-on): Likewise.
28484 * modules/putenv (Depends-on): Likewise.
28485 * modules/strdup (Depends-on): Likewise.
28486 * modules/getdelim (Depends-on): Add realloc-posix.
28487 * modules/read-file (Depends-on): Likewise.
28489 2007-09-09 Bruno Haible <bruno@clisp.org>
28491 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
28492 (gl_FUNC_MALLOC_POSIX): Require it.
28493 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
28494 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
28495 * modules/realloc (Files): Add m4/malloc.m4.
28496 * modules/calloc (Files): Likewise.
28498 2007-09-09 Bruno Haible <bruno@clisp.org>
28500 * modules/malloc-posix: New file.
28501 * modules/malloc (Depends-on): Add malloc-posix.
28502 * lib/malloc.c: Include errno.h.
28503 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
28504 and a POSIX-compatible malloc into a single function. Set ENOMEM
28505 when returning NULL.
28506 * m4/malloc.m4: New file.
28507 * doc/functions/malloc.texi: Mention the malloc-posix module.
28508 * lib/stdlib_.h (malloc): New declaration.
28509 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28510 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
28511 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
28512 and HAVE_MALLOC_POSIX.
28514 2007-09-09 Bruno Haible <bruno@clisp.org>
28516 * modules/realloc-posix: New file.
28517 * modules/realloc (Depends-on): Add realloc-posix.
28518 * lib/realloc.c: Include errno.h.
28519 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
28520 and a POSIX-compatible realloc into a single function. Set ENOMEM
28521 when returning NULL.
28522 * m4/realloc.m4: New file.
28523 * doc/functions/realloc.texi: Mention the realloc-posix module.
28524 * lib/stdlib_.h (realloc): New declaration.
28525 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28526 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
28527 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
28528 and HAVE_REALLOC_POSIX.
28530 2007-09-09 Bruno Haible <bruno@clisp.org>
28532 * modules/calloc-posix: New file.
28533 * modules/calloc (Depends-on): Add calloc-posix.
28534 * lib/calloc.c: Include errno.h.
28535 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
28536 and a POSIX-compatible calloc into a single function. Set ENOMEM
28537 when returning NULL.
28538 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
28539 * doc/functions/calloc.texi: Mention the calloc-posix module.
28540 * lib/stdlib_.h (calloc): New declaration.
28541 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28542 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
28543 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
28544 and HAVE_CALLOC_POSIX.
28546 2007-09-09 Bruno Haible <bruno@clisp.org>
28548 Allow for modules to show an arbitrary notice.
28549 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
28550 * gnulib-tool: New option --extract-notice.
28551 (func_usage): Document it.
28552 (sed_extract_prog): Update.
28553 (func_get_notice): New function.
28554 (func_modules_notice): New function.
28555 (func_import, func_create_testdir): Invoke it.
28556 Suggested by Jim Meyering.
28558 2007-09-09 Bruno Haible <bruno@clisp.org>
28560 * gnulib-tool: New options --verbose, --quiet.
28561 (func_usage): Document them.
28562 (verbose): New variable.
28563 (func_execute_command): New function.
28564 (func_import): Don't show the module list and the file list if
28566 (func_create_testdir): Likewise. Use func_execute_command.
28567 (func_create_megatestdir): Use func_execute_command.
28569 2007-09-08 Bruno Haible <bruno@clisp.org>
28571 * gnulib-tool (func_import): Prefer rsync over wget when available,
28572 for fetching the PO files.
28574 2007-09-08 Bruno Haible <bruno@clisp.org>
28576 * posix-modules: New file. Portions copied from gnulib-tool.
28577 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
28579 2007-09-08 Jim Meyering <jim@meyering.net>
28581 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
28582 * lib/fpending.h: Rename from __fpending.h.
28583 * lib/fpending.c: Rename from __fpending.c.
28584 Include "fpending.h", not "__fpending.h".
28585 * lib/__fpending.h, lib/__fpending.c: Remove files.
28586 * modules/fpending (Files): Reflect new file names.
28587 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
28589 2007-09-08 Bruno Haible <bruno@clisp.org>
28591 * m4/inttypes-h.m4: Remove stub file.
28593 2007-09-07 Simon Josefsson <simon@josefsson.org>
28595 * doc/headers/stdint.texi: Discuss #include_next issue.
28597 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
28599 * build-aux/bootstrap: Remove obsolete comment about wget --help.
28601 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28603 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
28606 2007-09-03 Jim Meyering <jim@meyering.net>
28608 New module: git-version-gen.
28609 * modules/git-version-gen: New file.
28611 Import changes from coreutils for bootstrap script.
28613 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
28615 bootstrap: uses rsync to download the .po files
28616 * build-aux/bootstrap (po_download_command_format): New global.
28617 (download_po_files): Use rsync.
28618 (update_po_files): Don't remove .po files after download,
28619 so future rsync runs can take advantage of the copies.
28621 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
28623 Solve the unnecessary-.po-file-regeneration problem once and for all.
28624 * build-aux/bootstrap (download_po_files): New function, renamed from
28625 get_translations. Now, downloads, but doesn't update LINGUAS.
28626 (update_po_files): New function.
28628 bootstrap: Ignore more.
28629 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
28630 uniwidth to e.g., lib/.gitignore.
28631 (slurp): Handle the sys_stat_.h -> sys mapping, too.
28633 * build-aux/bootstrap: New setting: vc_ignore.
28634 (insert_sorted_if_absent): Create $file if absent.
28635 Adapt to new, possibly empty, list: $vc_ignore.
28637 bootstrap: generate more ignorable names
28638 * build-aux/bootstrap (slurp): When generating ignorable names,
28639 also map .sin to .sed, .gperf to .c, and .y to .c.
28641 2007-09-03 Jim Meyering <jim@meyering.net>
28643 * build-aux/git-version-gen: New file, from coreutils. For details, see
28644 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
28646 2007-09-02 Bruno Haible <bruno@clisp.org>
28648 Fix mis-recognition of 'mcs' on QNX 6.
28649 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
28650 output contains the string "Mono".
28651 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
28652 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
28654 2007-09-01 Bruno Haible <bruno@clisp.org>
28656 Fix collision between uniwidth/* and linebreak modules.
28657 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
28658 u32_width): Remove declarations.
28659 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
28660 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
28661 streq3, streq2, streq1, streq0): Remove functions.
28662 (STREQ): Remove macro.
28663 (is_cjk_encoding): Remove function.
28664 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
28665 (uc_width, u8_width, u16_width, u32_width): Remove functions.
28666 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
28667 * NEWS: Document the change.
28669 2007-09-01 Bruno Haible <bruno@clisp.org>
28671 * lib/streq.h: Add double-inclusion guard.
28673 2007-09-01 Karl Berry <karl@gnu.org>
28675 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
28677 2007-08-28 Jim Meyering <jim@meyering.net>
28679 Rename mreadlink_with_size to areadlink_with_size.
28680 * NEWS: Document the change.
28681 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
28682 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
28683 * lib/mreadlink.h: Rename this to...
28684 * lib/areadlink.h: ...this.
28685 * modules/mreadlink-with-size: Rename this to...
28686 * modules/areadlink-with-size: ...this.
28687 * lib/canonicalize.c: Reflect the renaming.
28688 * modules/canonicalize: Likewise.
28690 2007-08-26 Bruno Haible <bruno@clisp.org>
28692 * gnulib-tool (func_import): When deciding which files to remove,
28693 consider also dangling symbolic links.
28694 Reported by Eric Blake.
28696 2007-08-26 Bruno Haible <bruno@clisp.org>
28698 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
28700 2007-08-23 Simon Josefsson <simon@josefsson.org>
28702 * lib/readline.c: Don't include getline.h, the prototype is now
28705 2007-08-23 Jim Meyering <jim@meyering.net>
28708 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
28709 around the funlockfile call, since funlockfile never sets errno.
28710 Don't set errno upon failed realloc.
28712 2007-08-22 Eric Blake <ebb9@byu.net>
28715 * lib/getdelim.c (getdelim): Revert regression that required *n to
28716 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
28717 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
28718 getdelim, rather than whether implementation is missing.
28719 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
28720 * lib/stdio_.h (getline): Also declare if replacement is
28722 * doc/functions/getdelim.texi: New file.
28723 * doc/functions/getline.texi: Likewise.
28724 * doc/gnulib.texi (Function Substitutes): Add new files.
28725 Reported by Bruno Haible.
28727 2007-08-22 Ludovic Courtès <ludo@gnu.org>
28729 * users.txt: Add Guile.
28731 2007-08-22 Eric Blake <ebb9@byu.net>
28733 * tests/test-getdelim.c (main): Use remove, not unlink.
28734 * tests/test-getline.c (main): Likewise.
28736 Move getline and getdelim into stdio.h, per POSIX 200x.
28737 * modules/getline (Files): Remove getline.h.
28738 (Depends-on): Add stdio.
28739 (configure.ac): Add module indicator.
28740 * modules/getdelim (Files): Remove getdelim.h.
28741 (Depends-on): Add stdio.
28742 (configure.ac): Add module indicator.
28743 * modules/stdio (Makefile.am): Work with new indicators.
28744 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
28745 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
28746 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
28747 * lib/getdelim.h: Delete.
28748 * lib/getline.h: Delete.
28749 * lib/stdio_.h (getdelim, getline): Declare.
28750 * modules/getdelim-tests: New module.
28751 * modules/getline-tests: Likewise.
28752 * tests/test-getdelim.c: New file.
28753 * tests/test-getline.c: Likewise.
28754 * NEWS: Document the change.
28755 * lib/getline.c: Update choice of header.
28756 * lib/csharpcomp.c: Likewise.
28757 * lib/getpass.c: Likewise.
28758 * lib/javacomp.c: Likewise.
28759 * lib/javaversion.c: Likewise.
28760 * lib/yesno.c: Likewise.
28761 * lib/getdelim.c: Likewise.
28762 (getdelim): Set errno on failure, and avoid memory leak.
28764 2007-08-19 Bruno Haible <bruno@clisp.org>
28766 * modules/closein (Depends-on): Add freadahead.
28767 * lib/closein.c: Include freadahead.h.
28768 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
28771 2007-08-19 Bruno Haible <bruno@clisp.org>
28773 * modules/freadahead-tests: New file.
28774 * tests/test-freadahead.sh: New file.
28775 * tests/test-freadahead.c: New file.
28777 * modules/freadahead: New file.
28778 * lib/freadahead.h: New file.
28779 * lib/freadahead.c: New file.
28780 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
28781 fbufmode, fpurge, freadable, fwritable.
28783 2007-08-19 Eric Blake <ebb9@byu.net>
28785 Test yesno in combination with closein.
28786 * lib/yesno.c (yesno): Document use of stdin.
28787 * modules/yesno-tests (Files): New module.
28788 * tests/test-yesno.c (main): New file.
28789 * tests/test-yesno.sh: Likewise.
28791 2007-08-19 Bruno Haible <bruno@clisp.org>
28793 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
28794 * lib/fseeko.c (rpl_fseeko): Likewise.
28795 * lib/fseterr.c (fseterr): Likewise.
28797 2007-08-19 Bruno Haible <bruno@clisp.org>
28799 * tests/test-lseek.c (main): Disable a test for BeOS.
28800 * doc/functions/lseek.texi: Document the BeOS bug.
28802 2007-08-19 Bruno Haible <bruno@clisp.org>
28803 Eric Blake <ebb9@byu.net>
28805 * lib/lseek.c: Include <sys/stat.h>.
28806 (rpl_lseek): Add workaround code also for Unix platforms.
28808 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
28809 * doc/functions/lseek.texi: Document BeOS definiency.
28811 2007-08-18 Bruno Haible <bruno@clisp.org>
28813 * modules/fstrcmp-tests: New file.
28814 * tests/test-fstrcmp.c: New file.
28816 2007-08-18 Bruno Haible <bruno@clisp.org>
28818 * modules/fstrcmp: New file, from GNU gettext with modifications.
28819 * lib/fstrcmp.h: New file, from GNU gettext.
28820 * lib/fstrcmp.c: New file, from GNU gettext.
28821 * MODULES.html.sh (String handling): Add fstrcmp.
28823 2007-08-18 Bruno Haible <bruno@clisp.org>
28825 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
28827 (diag, compareseq): Remove const from the ctxt argument.
28828 (USE_HEURISTIC): Undefine at the end.
28830 2007-08-18 Jim Meyering <jim@meyering.net>
28832 New file: lib/idcache.h
28833 * NEWS: Mention the addition.
28834 * modules/idcache (Files): Add lib/idcache.h
28835 * lib/idcache.c: Include "idcache.h".
28836 Don't include <sys/types.h>.
28837 Add a FIXME comment.
28838 Move file-scoped "static" declarations to the top.
28839 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
28841 2007-08-17 Bruno Haible <bruno@clisp.org>
28842 and Paul Eggert <eggert@cs.ucla.edu>
28844 * MODULES.html.sh: Add diffseq.
28845 * modules/diffseq: New file.
28846 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
28847 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
28849 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
28851 Import changes from coreutils for bootstrap script.
28853 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
28855 * build-aux/bootstrap (slurp): Work even in environments where
28856 "ls" defaults to "ls -A". Put in a FIXME, though, since the
28857 current code does not slurp files whose names start with ".", and
28858 this looks like it might be a troublesome area.
28860 2007-07-11 Jim Meyering <jim@meyering.net>
28862 If there's a GPL vN copyright comment, require that N == 3.
28864 2007-07-08 Jim Meyering <jim@meyering.net>
28866 Run the coreutils-specific code only if tests/Makefile.am.in exists.
28867 * build-aux/bootstrap (mam_template): Move definition out of loop.
28869 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
28871 * build-aux/bootstrap (symlink_to_dir): Rename function from
28872 symlink_to_gnulib. Add a directory parameter. Update all
28874 (cp_mark_as_generated): Also check for -- and link to -- files in
28877 2007-07-08 Jim Meyering <jim@meyering.net>
28879 Adapt to deeper hierarchy in gnulib.
28880 * build-aux/bootstrap (symlink_to_dir): If the destination
28881 directory doesn't exist, create it. This is required at least for
28882 "lib/uniwidth/cjk.h".
28884 2007-05-15 Jim Meyering <jim@meyering.net>
28886 * build-aux/bootstrap: Now that generated Makefile.am files
28887 are no longer under version control, they must be created at
28890 2007-08-14 Ben Pfaff <blp@gnu.org>
28892 * lib/count-one-bits.h: Add comments. From Bruno Haible.
28894 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
28896 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
28897 given the changes below.
28898 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
28899 even on hosts that have padding bits beyond the supported 64.
28901 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
28903 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
28904 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
28905 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
28907 (xstrtol_error): Remove.
28908 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
28909 but with a different signature.
28910 (ATTRIBUTE_NORETURN, __attribute__): New macros.
28911 * lib/xstrtol-error.c: Include exitfail.h.
28912 (xstrtol_fatal): New function, with a different signature from the
28913 old xstrtol_error, so that the caller need not worry about passing
28914 in an exit status, or about storage management of the option argument.
28915 (xstrtol_error): Now a static function. Redo signature to
28916 implement xstrtol_fatal. Output the correct number of hyphens in
28917 front of the option so that the caller need not worry about
28918 storage management.
28920 (_): Remove; not used now.
28921 * modules/xstrtol: Depend on getopt.
28922 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
28923 of old STRTOL_FATAL_ERROR macro.
28924 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
28926 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
28927 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
28929 2007-08-08 Eric Blake <ebb9@byu.net>
28931 * lib/xstrtol-error.c: Add missing include.
28933 Move xstrtol messages into gnulib domain, when --pobase is used.
28934 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
28935 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
28936 * modules/xstrtol (Files): Distribute new file.
28937 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
28938 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
28939 * tests/test-xstrtol.c: ...into new file.
28940 * tests/test-xstrtoul.c: Also test xstrtoul.
28941 * tests/test-xstrtoimax.c: Also test xstrtoimax.
28942 * tests/test-xstrtoumax.c: Also test xstrtoumax.
28943 * tests/test-xstrtol.sh: Drive the tests.
28944 * tests/test-xstrtoimax.sh: Likewise.
28945 * tests/test-xstrtoumax.sh: Likewise.
28946 * modules/xstrtol-tests: New module.
28947 * modules/xstrtoimax-tests: Likewise.
28948 * modules/xstrtoumax-tests: Likewise.
28950 2007-08-08 Jim Meyering <jim@meyering.net>
28952 New function: mfile_name_concat.
28953 * lib/filenamecat.c (mfile_name_concat): New function, just like
28954 file_name_concat, but return NULL upon failure rather than exiting
28956 * lib/filenamecat.h: Declare it.
28958 2007-08-07 Bruno Haible <bruno@clisp.org>
28960 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
28961 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
28963 Reported by Eric Blake.
28965 2007-08-07 Simon Josefsson <simon@josefsson.org>
28967 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
28968 * modules/crypto/arcfour (License): Likewise.
28969 * modules/crypto/des-tests (License): Likewise.
28970 * modules/crypto/gc-arctwo-tests (License): Likewise.
28971 * modules/crypto/gc-des-tests (License): Likewise.
28972 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
28973 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
28974 * modules/crypto/gc-md2-tests (License): Likewise.
28975 * modules/crypto/gc-md4-tests (License): Likewise.
28976 * modules/crypto/gc-md5-tests (License): Likewise.
28977 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
28978 * modules/crypto/gc-rijndael-tests (License): Likewise.
28979 * modules/crypto/gc-sha1-tests (License): Likewise.
28980 * modules/crypto/gc-tests (License): Likewise.
28981 * modules/crypto/hmac-md5 (License): Likewise.
28982 * modules/crypto/hmac-sha1 (License): Likewise.
28983 * modules/crypto/md2-tests (License): Likewise.
28984 * modules/crypto/md4-tests (License): Likewise.
28985 * modules/crypto/md5 (License): Likewise.
28986 * modules/crypto/rijndael (License): Likewise.
28987 * modules/crypto/sha1 (License): Likewise.
28988 * modules/memxor (License): Likewise.
28990 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
28991 and Bruno Haible <bruno@clisp.org>
28993 * NEWS: Describe interface changes to human, xstrtol.
28994 * lib/human.h: Include <xstrtol.h>.
28995 (human_options): Return enum strtol_error, not int. Remove
28996 bool arg; take int * instead.
28997 * lib/human.c: Don't include "gettext.h".
28998 (_): Remove; no longer used.
28999 Don't include <xstrtol.h>, since human.h does it.
29000 (human_options): Adjust to abovementioned interface changes.
29001 Do not report error to stderr; that's now the caller's
29003 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
29005 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
29006 Str, Argument_type_string. All uses changed. Put " argument"
29007 in diagnostics to make them clearer. Change wording of suffix
29008 message for clarity.
29009 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
29010 Argument_type_string.
29011 (STRTOL_FATAL_WARN): Remove; no longer used.
29012 * modules/human (Depends-on): Remove gettext-h.
29014 2007-08-06 Simon Josefsson <simon@josefsson.org>
29016 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
29018 2007-07-31 Bruno Haible <bruno@clisp.org>
29020 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
29021 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
29022 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
29024 2007-07-31 Bruno Haible <bruno@clisp.org>
29026 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
29027 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
29029 2007-07-30 Bruno Haible <bruno@clisp.org>
29031 * modules/base64 (License): Use the synonymous term "LGPLv2+".
29032 * modules/c-ctype (License): Likewise.
29033 * modules/c-strcase (License): Likewise.
29034 * modules/check-version (License): Likewise.
29035 * modules/iconv (License): Likewise.
29036 * modules/iconv_open (License): Likewise.
29037 * modules/read-file (License): Likewise.
29038 * modules/striconv (License): Likewise.
29039 * modules/strverscmp (License): Likewise.
29040 * modules/vasprintf (License): Likewise.
29041 * modules/crypto/des (License): Likewise.
29042 * modules/crypto/gc (License): Likewise.
29043 * modules/crypto/gc-arcfour (License): Likewise.
29044 * modules/crypto/gc-arctwo (License): Likewise.
29045 * modules/crypto/gc-des (License): Likewise.
29046 * modules/crypto/gc-hmac-md5 (License): Likewise.
29047 * modules/crypto/gc-hmac-sha1 (License): Likewise.
29048 * modules/crypto/gc-md2 (License): Likewise.
29049 * modules/crypto/gc-md4 (License): Likewise.
29050 * modules/crypto/gc-md5 (License): Likewise.
29051 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
29052 * modules/crypto/gc-random (License): Likewise.
29053 * modules/crypto/gc-rijndael (License): Likewise.
29054 * modules/crypto/gc-sha1 (License): Likewise.
29055 * modules/crypto/md2 (License): Likewise.
29056 * modules/crypto/md4 (License): Likewise.
29058 2007-07-30 Jim Meyering <jim@meyering.net>
29060 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
29061 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
29062 it has valid stat data. This bug would cause du not to count the
29063 sizes of inaccessible directories.
29064 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
29065 in <http://bugzilla.redhat.com/250077>.
29067 2007-07-25 Peter O'Gorman <peter@pogma.com>
29068 Bruno Haible <bruno@clisp.org>
29070 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
29071 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
29072 #include_next, gives a diagnostic about it, but reports no error in
29074 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
29076 2007-07-24 Ben Pfaff <blp@gnu.org>
29078 Improve name: "count-one-bits" is better than "popcount".
29079 * MODULES.html.sh: Update name.
29080 * lib/popcount.h: Renamed lib/count-one-bits.h.
29081 (popcount): Renamed count_one_bits.
29082 (popcountl): Renamed count_one_bits_l.
29083 (popcountll): Renamed count_one_bits_ll.
29084 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
29085 * modules/popcount: Renamed module/count-one-bits.
29086 * modules/popcount-tests: Renamed module/count-one-bits-tests.
29087 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
29089 2007-07-23 Ben Pfaff <blp@gnu.org>
29091 * lib/popcount.h (popcount32): Reduce size of constants, to allow
29092 better code generation, and add U to large constants to avoid
29093 warnings, in non-GCC case.
29094 Suggested by Bruno Haible.
29096 2007-07-23 Ben Pfaff <blp@gnu.org>
29098 * lib/popcount.h: Use verify_true instead of if...abort.
29099 * modules/popcount: Depend on verify module.
29100 Suggested by Jim Meyering.
29102 2007-07-23 Bruno Haible <bruno@clisp.org>
29104 * gnulib-tool (func_import): Create a .cvsignore file also when the
29105 directory is not yet in CVS but the toplevel directory is. When
29106 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
29107 Reported by Karl Berry.
29109 2007-07-22 Ben Pfaff <blp@gnu.org>
29111 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
29113 Suggested by Eric Blake.
29115 2007-07-22 Ben Pfaff <blp@gnu.org>
29117 New module: popcount.
29118 * MODULES.html.sh: Add popcount.
29119 * modules/popcount: New file.
29120 * modules/popcount-tests: New file.
29121 * tests/test-popcount.c: New file.
29122 * lib/popcount.h: New file.
29123 * m4/popcount.m4: New file.
29125 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
29127 * build-aux/announce-gen: Update to GPLv3.
29129 * build-aux/config.guess: Update from config.
29131 2007-07-21 Bruno Haible <bruno@clisp.org>
29133 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
29134 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
29136 2007-07-20 Jim Meyering <jim@meyering.net>
29138 * check-module: Diagnose a self-dependency.
29140 2007-07-19 Bruno Haible <bruno@clisp.org>
29142 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
29144 Reported by Eric Blake.
29146 2007-07-18 Bruno Haible <bruno@clisp.org>
29148 * gnulib-tool: New options --po-base, --po-domain.
29149 (func_usage): Document them.
29150 (pobase, po_domain): New variables.
29151 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
29152 DEFAULT_TEXT_DOMAIN.
29153 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
29154 (func_import): Consider pobase and po_domain. Create a po/ directory.
29155 (func_create_testdir): Set pobase and po_domain to empty.
29156 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
29157 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
29159 2007-07-18 Bruno Haible <bruno@clisp.org>
29161 * gnulib-tool (func_get_automake_snippet): Synthesize also an
29162 EXTRA_DIST augmentation for files in build-aux/.
29164 2007-07-16 Bruno Haible <bruno@clisp.org>
29166 * modules/lseek (License): Use the synonymous term "LGPLv2+".
29167 * modules/getdelim (License): Likewise.
29169 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
29171 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
29172 * modules/d-type (License): Likewise.
29173 * modules/extensions (License): Likewise.
29174 * modules/fnmatch (License): Likewise.
29175 * modules/fseeko (License): Likewise.
29176 * modules/getaddrinfo (License): Likewise.
29177 * modules/getline (License): Likewise.
29178 * modules/getlogin_r (License): Likewise.
29179 * modules/getpass (License): Likewise.
29180 * modules/gettimeofday (License): Likewise.
29181 * modules/glob (License): Likewise.
29182 * modules/inet_ntop (License): Likewise.
29183 * modules/malloc (License): Likewise.
29184 * modules/malloca (License): Likewise.
29185 * modules/memmem (License): Likewise.
29186 * modules/mempcpy (License): Likewise.
29187 * modules/memset (License): Likewise.
29188 * modules/minmax (License): Likewise.
29189 * modules/mktime (License): Likewise.
29190 * modules/netinet_in (License): Likewise.
29191 * modules/pathmax (License): Likewise.
29192 * modules/poll (License): Likewise.
29193 * modules/regex (License): Likewise.
29194 * modules/snprintf (License): Likewise.
29195 * modules/stdbool (License): Likewise.
29196 * modules/stdint (License): Likewise.
29197 * modules/stdio (License): Likewise.
29198 * modules/strcase (License): Likewise.
29199 * modules/strcasestr (License): Likewise.
29200 * modules/strdup (License): Likewise.
29201 * modules/string (License): Likewise.
29202 * modules/strndup (License): Likewise.
29203 * modules/strnlen (License): Likewise.
29204 * modules/strpbrk (License): Likewise.
29205 * modules/strptime (License): Likewise.
29206 * modules/strsep (License): Likewise.
29207 * modules/sys_select (License): Likewise.
29208 * modules/sys_socket (License): Likewise.
29209 * modules/sys_stat (License): Likewise.
29210 * modules/sys_time (License): Likewise.
29211 * modules/time (License): Likewise.
29212 * modules/time_r (License): Likewise.
29213 * modules/timegm (License): Likewise.
29214 * modules/unistd (License): Likewise.
29215 * modules/vsnprintf (License): Likewise.
29216 * modules/wctype (License): Likewise.
29218 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29220 * modules/argz (License): LGPLv2+.
29222 2007-07-15 Karl Berry <karl@gnu.org>
29224 * doc/gnulib.texi: revise node structure per new fdl.texi.
29226 2007-07-14 Bruno Haible <bruno@clisp.org>
29228 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
29230 * lib/uniname/uninames.h: Regenerated.
29232 2007-07-14 Karl Berry <karl@gnu.org>
29234 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
29235 omitting sectioning and index commands.
29237 2007-07-13 Bruno Haible <bruno@clisp.org>
29239 New gnulib-tool option --more-symlinks.
29240 * gnulib-tool (func_usage): Document --more-symlinks.
29241 (do_copyrights): New variable.
29242 Recognize option --more-symlinks.
29243 (func_import): Don't add a copyright notice transform to
29244 sed_transform_lib_file if do_copyrights is empty.
29246 2007-07-13 Bruno Haible <bruno@clisp.org>
29248 * lib/vasnprintf.c (decimal_point_char): Define also if
29249 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
29250 && !NEED_PRINTF_DIRECTIVE_A.
29251 Reported by Clemens Koller <clemens.koller@anagramm.de> via
29252 Gary V. Vaughan <gary@gnu.org>.
29254 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
29256 * lib/inttypes_.h: Undo previous change, since it was fixed
29257 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
29259 2007-07-13 Bruno Haible <bruno@clisp.org>
29261 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
29262 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
29264 2007-07-13 Jim Meyering <jim@meyering.net>
29266 df: Don't fail for Tru64's "file-on-file mount".
29267 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
29268 so we fall through and use statfs instead. Details here:
29269 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
29270 Reported by Albert Chin.
29272 2007-07-13 Bruno Haible <bruno@clisp.org>
29274 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
29275 * modules/configmake (License): Likewise.
29276 * modules/gettext (License): Likewise.
29277 * modules/gettext-h (License): Likewise.
29278 * modules/include_next (License): Likewise.
29279 * modules/link-warning (License): Likewise.
29280 * modules/localcharset (License): Likewise.
29281 * modules/localename (License): Likewise.
29282 * modules/lock (License): Likewise.
29283 * modules/relocatable-lib-lgpl (License): Likewise.
29284 * modules/size_max (License): Likewise.
29285 * modules/vasnprintf (License): Likewise.
29286 * modules/wchar (License): Likewise.
29287 * modules/xsize (License): Likewise.
29289 2007-07-13 Bruno Haible <bruno@clisp.org>
29291 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
29292 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
29294 2007-07-12 Bruno Haible <bruno@clisp.org>
29296 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
29297 in the modules files.
29299 2007-07-11 Karl Berry <karl@gnu.org>
29301 * MODULES.html.sh (func_module): use
29302 sed -e '\|^'"${includefile}"'$|d'
29303 instead of /.../d, to avoid errors on $includefile's containing /.
29305 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
29307 * gnulib-tool (func_import): Avoid duplication of --avoid
29309 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
29310 names to `_' in variable names.
29312 2007-07-10 Eric Blake <ebb9@byu.net>
29314 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
29315 * NEWS: Document this change.
29317 2007-07-08 Bruno Haible <bruno@clisp.org>
29319 Update to Unicode 5.0.
29320 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
29321 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
29322 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
29323 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
29324 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
29325 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
29326 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
29327 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
29328 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
29329 U+10A3F, U+1D242..U+1D244.
29330 (nonspacing_table_ind): Update.
29331 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
29332 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
29334 2007-07-08 Bruno Haible <bruno@clisp.org>
29336 Update to Unicode 5.0.
29337 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
29338 code transform. Extend the name index field of unicode_name_to_code and
29339 unicode_code_to_name from 16 to 24 bits.
29340 * lib/uniname/uniname.c (unicode_character_name,
29341 unicode_name_character): Add the range 0x12xxx to the code transform.
29342 * lib/uniname/uninames.h: Regenerated.
29343 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
29345 2007-07-07 Bruno Haible <bruno@clisp.org>
29347 * modules/wcwidth-tests: New file.
29348 * tests/test-wcwidth.c: New file.
29350 Work around MacOS X wcwidth() bug.
29351 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
29352 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
29353 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
29354 original wcwidth in non-UTF-8 locales.
29355 * modules/wcwidth (Depends-on): Add localcharset, streq,
29357 * doc/functions/wcwidth.texi: Update.
29359 2007-07-07 Bruno Haible <bruno@clisp.org>
29361 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
29362 (wcwidth): New declaration.
29363 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
29365 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
29366 here. Prepare for creating <wchar.h> unconditionally.
29367 * modules/wchar (Depends-on): Add link-warning.
29368 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
29369 REPLACE_WCWIDTH, and GL_LINK_WARNING.
29370 * lib/wcwidth.h: Remove file.
29371 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
29372 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
29373 * modules/wcwidth (Files): Remove lib/wcwidth.h.
29374 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
29375 (Include): Replace wcwidth.h with <wchar.h>.
29376 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
29377 * lib/mbchar.h: Don't include wcwidth.h.
29378 * lib/mbswidth.c: Likewise.
29379 * NEWS: Mention the change.
29381 2007-07-07 Bruno Haible <bruno@clisp.org>
29383 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
29384 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
29385 definition with an external declaration.
29386 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
29387 defined as a function. Remove AC_C_INLINE requirement.
29388 * modules/wcwidth (Files): Add lib/wcwidth.c.
29389 (Makefile.am): Remove redundant statement.
29391 2007-07-07 Bruno Haible <bruno@clisp.org>
29393 * MODULES.html.sh (Unicode string functions): Add the new modules.
29395 * tests/uniwidth/test-u32-strwidth.c: New file.
29396 * modules/uniwidth/u32-strwidth-tests: New file.
29398 * lib/uniwidth/u32-strwidth.c: New file.
29399 * modules/uniwidth/u32-strwidth: New file.
29401 * tests/uniwidth/test-u16-strwidth.c: New file.
29402 * modules/uniwidth/u16-strwidth-tests: New file.
29404 * lib/uniwidth/u16-strwidth.c: New file.
29405 * modules/uniwidth/u16-strwidth: New file.
29407 * tests/uniwidth/test-u8-strwidth.c: New file.
29408 * modules/uniwidth/u8-strwidth-tests: New file.
29410 * lib/uniwidth/u8-strwidth.c: New file.
29411 * modules/uniwidth/u8-strwidth: New file.
29413 * tests/uniwidth/test-u32-width.c: New file.
29414 * modules/uniwidth/u32-width-tests: New file.
29416 * lib/uniwidth/u32-width.c: New file.
29417 * modules/uniwidth/u32-width: New file.
29419 * tests/uniwidth/test-u16-width.c: New file.
29420 * modules/uniwidth/u16-width-tests: New file.
29422 * lib/uniwidth/u16-width.c: New file.
29423 * modules/uniwidth/u16-width: New file.
29425 * tests/uniwidth/test-u8-width.c: New file.
29426 * modules/uniwidth/u8-width-tests: New file.
29428 * lib/uniwidth/u8-width.c: New file.
29429 * modules/uniwidth/u8-width: New file.
29431 * tests/uniwidth/test-uc_width.c: New file.
29432 * modules/uniwidth/width-tests: New file.
29434 * lib/uniwidth/width.c: New file, from GNU libiconv.
29435 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
29436 * modules/uniwidth/width: New file.
29438 * lib/uniwidth.h: New file, from GNU libiconv.
29439 * modules/uniwidth/base: New file.
29441 2007-07-07 Bruno Haible <bruno@clisp.org>
29443 * lib/uniname.h: New file, from GNU gettext.
29444 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
29445 * lib/uniname/uninames.h: New file, from GNU gettext.
29446 * lib/uniname/uniname.c: New file, from GNU gettext.
29447 * tests/uniname/test-uninames.sh: New file.
29448 * tests/uniname/test-uninames.c: New file, from GNU gettext.
29449 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
29450 * modules/uniname/base: New file.
29451 * modules/uniname/uniname: New file.
29452 * modules/uniname/uniname-tests: New file.
29453 * MODULES.html.sh (Unicode string functions): Add the new modules.
29455 2007-07-06 Bruno Haible <bruno@clisp.org>
29457 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
29459 2007-07-06 Bruno Haible <bruno@clisp.org>
29461 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
29462 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
29463 includes <cygwin/sys_time.h> which includes <sys/select.h> which
29464 include <sys/time.h>.
29465 Reported by Eric Blake.
29467 2007-07-06 Eric Blake <ebb9@byu.net>
29469 Fix testing canonicalize on cygwin.
29470 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
29471 Revert patch from 2007-06-19.
29472 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
29473 canonicalize module is also in use.
29474 * tests/test-canonicalize.c: New file.
29475 * tests/test-canonicalize.sh: Likewise.
29476 * modules/canonicalize-tests: Likewise.
29478 2007-07-06 Jim Meyering <jim@meyering.net>
29480 * lib/getugroups.c (getugroups): Detect getgrent failure.
29481 Adjust comment to reflect reality: this function may return -1.
29483 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
29485 * build-aux/bootstrap (TP_URL,get_translations): Update to use
29486 the new TP address.
29488 (gnulib_mk): New variable.
29490 2007-07-05 Jim Meyering <jim@meyering.net>
29492 Don't let endgrent clobber errno, no matter how improbable.
29493 * lib/getugroups.c (getugroups): Save and restore errno around
29496 Close the group DB even when failing with 2^31 or more members.
29497 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
29499 2007-07-04 Jim Meyering <jim@meyering.net>
29501 * lib/getugroups.h: New file.
29502 * lib/getugroups.c: Include "getugroups.h".
29503 Remove uses of "register" keyword.
29504 Move local variable, "cp", down into scope where used.
29505 Give "username" parameter the "const" attribute.
29506 * modules/getugroups (Files): Add lib/getugroups.h
29508 2007-07-04 Karl Berry <karl@gnu.org>
29510 * MODULES.html.sh (func_all_modules): Complete rename of
29511 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
29513 2007-07-02 Bruno Haible <bruno@clisp.org>
29515 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
29516 mode, when inttypes.h comes from gnulib.
29517 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29519 2007-07-02 Simon Josefsson <simon@josefsson.org>
29521 * NEWS: Mention lgpl module name change.
29523 * modules/lgpl-2.1: Renamed from lgpl.
29525 * NEWS: Mention gpl module name change.
29527 * modules/gpl-3.0: New file, based on gpl-2.0.
29529 * modules/gpl-2.0: Renamed from gpl.
29531 * modules/gpl: Fix filename, doc/gpl.texi is now found at
29534 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
29536 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
29537 #define __STDC_LIMIT_MACROS temporarily while including
29538 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
29539 Problem reported by Joel E. Denny in
29540 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
29542 2007-07-01 Bruno Haible <bruno@clisp.org>
29544 * lib/unistdio.h: New file.
29545 * lib/unistdio/u-asnprintf.h: New file.
29546 * lib/unistdio/u-asprintf.h: New file.
29547 * lib/unistdio/u-printf-args.c: New file.
29548 * lib/unistdio/u-printf-args.h: New file.
29549 * lib/unistdio/u-printf-parse.h: New file.
29550 * lib/unistdio/u-snprintf.h: New file.
29551 * lib/unistdio/u-sprintf.h: New file.
29552 * lib/unistdio/u-vasprintf.h: New file.
29553 * lib/unistdio/u-vsnprintf.h: New file.
29554 * lib/unistdio/u-vsprintf.h: New file.
29555 * lib/unistdio/ulc-asnprintf.c: New file.
29556 * lib/unistdio/ulc-asprintf.c: New file.
29557 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
29558 * lib/unistdio/ulc-printf-parse.c: New file.
29559 * lib/unistdio/ulc-snprintf.c: New file.
29560 * lib/unistdio/ulc-sprintf.c: New file.
29561 * lib/unistdio/ulc-vasnprintf.c: New file.
29562 * lib/unistdio/ulc-vasprintf.c: New file.
29563 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
29564 * lib/unistdio/ulc-vsnprintf.c: New file.
29565 * lib/unistdio/ulc-vsprintf.c: New file.
29566 * lib/unistdio/u8-asnprintf.c: New file.
29567 * lib/unistdio/u8-asprintf.c: New file.
29568 * lib/unistdio/u8-printf-parse.c: New file.
29569 * lib/unistdio/u8-snprintf.c: New file.
29570 * lib/unistdio/u8-sprintf.c: New file.
29571 * lib/unistdio/u8-vasnprintf.c: New file.
29572 * lib/unistdio/u8-vasprintf.c: New file.
29573 * lib/unistdio/u8-vsnprintf.c: New file.
29574 * lib/unistdio/u8-vsprintf.c: New file.
29575 * lib/unistdio/u8-u8-asnprintf.c: New file.
29576 * lib/unistdio/u8-u8-asprintf.c: New file.
29577 * lib/unistdio/u8-u8-snprintf.c: New file.
29578 * lib/unistdio/u8-u8-sprintf.c: New file.
29579 * lib/unistdio/u8-u8-vasnprintf.c: New file.
29580 * lib/unistdio/u8-u8-vasprintf.c: New file.
29581 * lib/unistdio/u8-u8-vsnprintf.c: New file.
29582 * lib/unistdio/u8-u8-vsprintf.c: New file.
29583 * lib/unistdio/u16-asnprintf.c: New file.
29584 * lib/unistdio/u16-asprintf.c: New file.
29585 * lib/unistdio/u16-printf-parse.c: New file.
29586 * lib/unistdio/u16-snprintf.c: New file.
29587 * lib/unistdio/u16-sprintf.c: New file.
29588 * lib/unistdio/u16-vasnprintf.c: New file.
29589 * lib/unistdio/u16-vasprintf.c: New file.
29590 * lib/unistdio/u16-vsnprintf.c: New file.
29591 * lib/unistdio/u16-vsprintf.c: New file.
29592 * lib/unistdio/u16-u16-asnprintf.c: New file.
29593 * lib/unistdio/u16-u16-asprintf.c: New file.
29594 * lib/unistdio/u16-u16-snprintf.c: New file.
29595 * lib/unistdio/u16-u16-sprintf.c: New file.
29596 * lib/unistdio/u16-u16-vasnprintf.c: New file.
29597 * lib/unistdio/u16-u16-vasprintf.c: New file.
29598 * lib/unistdio/u16-u16-vsnprintf.c: New file.
29599 * lib/unistdio/u16-u16-vsprintf.c: New file.
29600 * lib/unistdio/u32-asnprintf.c: New file.
29601 * lib/unistdio/u32-asprintf.c: New file.
29602 * lib/unistdio/u32-printf-parse.c: New file.
29603 * lib/unistdio/u32-snprintf.c: New file.
29604 * lib/unistdio/u32-sprintf.c: New file.
29605 * lib/unistdio/u32-vasnprintf.c: New file.
29606 * lib/unistdio/u32-vasprintf.c: New file.
29607 * lib/unistdio/u32-vsnprintf.c: New file.
29608 * lib/unistdio/u32-vsprintf.c: New file.
29609 * lib/unistdio/u32-u32-asnprintf.c: New file.
29610 * lib/unistdio/u32-u32-asprintf.c: New file.
29611 * lib/unistdio/u32-u32-snprintf.c: New file.
29612 * lib/unistdio/u32-u32-sprintf.c: New file.
29613 * lib/unistdio/u32-u32-vasnprintf.c: New file.
29614 * lib/unistdio/u32-u32-vasprintf.c: New file.
29615 * lib/unistdio/u32-u32-vsnprintf.c: New file.
29616 * lib/unistdio/u32-u32-vsprintf.c: New file.
29617 * tests/unistdio/test-ulc-asnprintf1.c: New file.
29618 * tests/unistdio/test-ulc-asnprintf1.h: New file.
29619 * tests/unistdio/test-ulc-printf1.h: New file.
29620 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
29621 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
29622 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
29623 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
29624 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
29625 * tests/unistdio/test-ulc-vasprintf1.c: New file.
29626 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
29627 * tests/unistdio/test-ulc-vsprintf1.c: New file.
29628 * tests/unistdio/test-u8-asnprintf1.c: New file.
29629 * tests/unistdio/test-u8-asnprintf1.h: New file.
29630 * tests/unistdio/test-u8-printf1.h: New file.
29631 * tests/unistdio/test-u8-vasnprintf1.c: New file.
29632 * tests/unistdio/test-u8-vasnprintf2.c: New file.
29633 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
29634 * tests/unistdio/test-u8-vasnprintf3.c: New file.
29635 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
29636 * tests/unistdio/test-u8-vasprintf1.c: New file.
29637 * tests/unistdio/test-u8-vsnprintf1.c: New file.
29638 * tests/unistdio/test-u8-vsprintf1.c: New file.
29639 * tests/unistdio/test-u16-asnprintf1.c: New file.
29640 * tests/unistdio/test-u16-asnprintf1.h: New file.
29641 * tests/unistdio/test-u16-printf1.h: New file.
29642 * tests/unistdio/test-u16-vasnprintf1.c: New file.
29643 * tests/unistdio/test-u16-vasnprintf2.c: New file.
29644 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
29645 * tests/unistdio/test-u16-vasnprintf3.c: New file.
29646 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
29647 * tests/unistdio/test-u16-vasprintf1.c: New file.
29648 * tests/unistdio/test-u16-vsnprintf1.c: New file.
29649 * tests/unistdio/test-u16-vsprintf1.c: New file.
29650 * tests/unistdio/test-u32-asnprintf1.c: New file.
29651 * tests/unistdio/test-u32-asnprintf1.h: New file.
29652 * tests/unistdio/test-u32-printf1.h: New file.
29653 * tests/unistdio/test-u32-vasnprintf1.c: New file.
29654 * tests/unistdio/test-u32-vasnprintf2.c: New file.
29655 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
29656 * tests/unistdio/test-u32-vasnprintf3.c: New file.
29657 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
29658 * tests/unistdio/test-u32-vasprintf1.c: New file.
29659 * tests/unistdio/test-u32-vsnprintf1.c: New file.
29660 * tests/unistdio/test-u32-vsprintf1.c: New file.
29661 * modules/unistdio/base: New file.
29662 * modules/unistdio/u-printf-args: New file.
29663 * modules/unistdio/ulc-asnprintf: New file.
29664 * modules/unistdio/ulc-asprintf: New file.
29665 * modules/unistdio/ulc-fprintf: New file.
29666 * modules/unistdio/ulc-printf-parse: New file.
29667 * modules/unistdio/ulc-snprintf: New file.
29668 * modules/unistdio/ulc-sprintf: New file.
29669 * modules/unistdio/ulc-vasnprintf: New file.
29670 * modules/unistdio/ulc-vasprintf: New file.
29671 * modules/unistdio/ulc-vfprintf: New file.
29672 * modules/unistdio/ulc-vsnprintf: New file.
29673 * modules/unistdio/ulc-vsprintf: New file.
29674 * modules/unistdio/u8-asnprintf: New file.
29675 * modules/unistdio/u8-asprintf: New file.
29676 * modules/unistdio/u8-printf-parse: New file.
29677 * modules/unistdio/u8-snprintf: New file.
29678 * modules/unistdio/u8-sprintf: New file.
29679 * modules/unistdio/u8-vasnprintf: New file.
29680 * modules/unistdio/u8-vasprintf: New file.
29681 * modules/unistdio/u8-vsnprintf: New file.
29682 * modules/unistdio/u8-vsprintf: New file.
29683 * modules/unistdio/u8-u8-asnprintf: New file.
29684 * modules/unistdio/u8-u8-asprintf: New file.
29685 * modules/unistdio/u8-u8-snprintf: New file.
29686 * modules/unistdio/u8-u8-sprintf: New file.
29687 * modules/unistdio/u8-u8-vasnprintf: New file.
29688 * modules/unistdio/u8-u8-vasprintf: New file.
29689 * modules/unistdio/u8-u8-vsnprintf: New file.
29690 * modules/unistdio/u8-u8-vsprintf: New file.
29691 * modules/unistdio/u16-asnprintf: New file.
29692 * modules/unistdio/u16-asprintf: New file.
29693 * modules/unistdio/u16-printf-parse: New file.
29694 * modules/unistdio/u16-snprintf: New file.
29695 * modules/unistdio/u16-sprintf: New file.
29696 * modules/unistdio/u16-vasnprintf: New file.
29697 * modules/unistdio/u16-vasprintf: New file.
29698 * modules/unistdio/u16-vsnprintf: New file.
29699 * modules/unistdio/u16-vsprintf: New file.
29700 * modules/unistdio/u16-u16-asnprintf: New file.
29701 * modules/unistdio/u16-u16-asprintf: New file.
29702 * modules/unistdio/u16-u16-snprintf: New file.
29703 * modules/unistdio/u16-u16-sprintf: New file.
29704 * modules/unistdio/u16-u16-vasnprintf: New file.
29705 * modules/unistdio/u16-u16-vasprintf: New file.
29706 * modules/unistdio/u16-u16-vsnprintf: New file.
29707 * modules/unistdio/u16-u16-vsprintf: New file.
29708 * modules/unistdio/u32-asnprintf: New file.
29709 * modules/unistdio/u32-asprintf: New file.
29710 * modules/unistdio/u32-printf-parse: New file.
29711 * modules/unistdio/u32-snprintf: New file.
29712 * modules/unistdio/u32-sprintf: New file.
29713 * modules/unistdio/u32-vasnprintf: New file.
29714 * modules/unistdio/u32-vasprintf: New file.
29715 * modules/unistdio/u32-vsnprintf: New file.
29716 * modules/unistdio/u32-vsprintf: New file.
29717 * modules/unistdio/u32-u32-asnprintf: New file.
29718 * modules/unistdio/u32-u32-asprintf: New file.
29719 * modules/unistdio/u32-u32-snprintf: New file.
29720 * modules/unistdio/u32-u32-sprintf: New file.
29721 * modules/unistdio/u32-u32-vasnprintf: New file.
29722 * modules/unistdio/u32-u32-vasprintf: New file.
29723 * modules/unistdio/u32-u32-vsnprintf: New file.
29724 * modules/unistdio/u32-u32-vsprintf: New file.
29725 * modules/unistdio/ulc-asnprintf-tests: New file.
29726 * modules/unistdio/ulc-vasnprintf-tests: New file.
29727 * modules/unistdio/ulc-vasprintf-tests: New file.
29728 * modules/unistdio/ulc-vsnprintf-tests: New file.
29729 * modules/unistdio/ulc-vsprintf-tests: New file.
29730 * modules/unistdio/u8-asnprintf-tests: New file.
29731 * modules/unistdio/u8-vasnprintf-tests: New file.
29732 * modules/unistdio/u8-vasprintf-tests: New file.
29733 * modules/unistdio/u8-vsnprintf-tests: New file.
29734 * modules/unistdio/u8-vsprintf-tests: New file.
29735 * modules/unistdio/u16-asnprintf-tests: New file.
29736 * modules/unistdio/u16-vasnprintf-tests: New file.
29737 * modules/unistdio/u16-vasprintf-tests: New file.
29738 * modules/unistdio/u16-vsnprintf-tests: New file.
29739 * modules/unistdio/u16-vsprintf-tests: New file.
29740 * modules/unistdio/u32-asnprintf-tests: New file.
29741 * modules/unistdio/u32-vasnprintf-tests: New file.
29742 * modules/unistdio/u32-vasprintf-tests: New file.
29743 * modules/unistdio/u32-vsnprintf-tests: New file.
29744 * modules/unistdio/u32-vsprintf-tests: New file.
29745 * MODULES.html.sh (Unicode string functions): Add the new modules.
29747 2007-07-01 Bruno Haible <bruno@clisp.org>
29749 * lib/sprintf.c (sprintf): Limit the available length estimation,
29750 to avoid address wraparound.
29751 * lib/vsprintf.c (vsprintf): Likewise.
29752 * modules/sprintf-posix (Dependencies): Add stdint.
29753 * modules/vsprintf-posix (Dependencies): Likewise.
29755 2007-07-01 Bruno Haible <bruno@clisp.org>
29757 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
29758 Windows PATH as well. Conservative double-quoting. Comments.
29760 2007-07-01 Bruno Haible <bruno@clisp.org>
29761 Eric Blake <ebb9@byu.net>
29762 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29764 * gnulib-tool (self_abspathname): Fix algorithm to cope with
29765 empty components in $PATH, denoting '.'.
29767 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29769 * gnulib-tool: Fix indentation.
29770 (func_create_megatestdir): Likewise.
29771 Report by Bruno Haible.
29773 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29775 Sync from Automake.
29776 * build-aux/gnupload: Fix shell portability issues with for loops.
29777 Report by Karl Berry.
29779 2007-06-29 Simon Josefsson <simon@josefsson.org>
29781 * build-aux/maint.mk (POURL): Use translationproject.org.
29783 2007-06-27 Simon Josefsson <simon@josefsson.org>
29784 Bruno Haible <bruno@clisp.org>
29786 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
29787 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
29788 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
29789 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
29790 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
29792 2007-06-27 Bruno Haible <bruno@clisp.org>
29794 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
29795 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
29797 2007-06-26 Karl Berry <karl@gnu.org>
29799 * MODULES.html.sh: remove xreadlink-with-size.
29801 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
29803 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
29804 method that I hope also handles the double-include problem noted
29806 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
29808 2007-06-23 Bruno Haible <bruno@clisp.org>
29810 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29811 Don't let the 'mostlyclean' target fail if the last subdirectory could
29813 Reported by Karl Berry.
29815 2007-06-23 Bruno Haible <bruno@clisp.org>
29817 * gnulib-tool (echo): Add a speedier workaround for ksh.
29818 * tests/test-echo.sh: Likewise.
29820 2007-06-23 Bruno Haible <bruno@clisp.org>
29822 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
29823 * tests/test-echo.sh: Likewise.
29825 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29827 * gnulib-tool (IFS): Initialize early, so we don't set it to
29829 (self_abspathname): Rewrite algorithm to set it, reindent.
29830 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
29831 (func_create_megatestdir): Merge some sed scripts.
29833 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
29835 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
29836 exposed by Sun Studio 11 cc on Solaris 8.
29838 2007-06-22 Bruno Haible <bruno@clisp.org>
29840 * gnulib-tool (echo): Ensure the echo primitive does not interpret
29842 * tests/test-echo.sh: New file.
29844 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29846 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
29847 simplify `sed_replace_build_aux' scripts, they are portable but
29848 echoing them with `echo' is not.
29849 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
29851 2007-06-21 Karl Berry <karl@gnu.org>
29853 * config/srclist.txt: guess we can't handle the licenses via
29854 srclist at the moment.
29856 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
29858 * MODULES.html.sh: Add include_next.
29859 * modules/include_next: New file.
29861 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
29863 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
29865 (gl_CHECK_NEXT_HEADERS): New macro.
29866 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
29867 the obsolescent gl_ABSOLUTE_HEADER.
29868 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
29869 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
29870 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29871 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29872 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29873 * m4/math_h.m4 (gl_MATH_H): Likewise.
29874 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
29875 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29876 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29877 * m4/stdint.m4 (gl_STDINT_H): Likewise.
29878 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29879 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29880 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29881 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29882 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29883 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29884 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29885 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
29886 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
29887 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29888 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29889 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29890 * m4/inttypes.m4 (gl_INTTYPES_H): Define
29891 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
29892 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
29893 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
29894 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
29895 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
29896 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
29897 * lib/float_.h: Likewise.
29898 * lib/inttypes_.h: Likewise.
29899 * lib/math_.h: Likewise.
29900 * lib/search_.h: Likewise.
29901 * lib/signal_.h: Likewise.
29902 * lib/stdint_.h: Likewise.
29903 * lib/stdio_.h: Likewise.
29904 * lib/stdlib_.h: Likewise.
29905 * lib/string_.h: Likewise.
29906 * lib/sys_stat_.h: Likewise.
29907 * lib/sys_time_.h: Likewise.
29908 * lib/time_.h: Likewise.
29909 * lib/unistd_.h: Likewise.
29910 * lib/wchar_.h: Likewise.
29911 * lib/wctype_.h: Likewise.
29912 * lib/dirent_.h: Likewise.
29913 * lib/iconv_.h: Likewise.
29914 * lib/locale_.h: Likewise.
29915 * lib/netinet_in_.h: Likewise.
29916 * lib/sys_select_.h: Likewise.
29917 * lib/sys_socket_.h: Likewise.
29918 * lib/sysexits_.h: Likewise.
29919 * modules/fcntl (Depends-on): Depend on include_next, not
29921 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
29922 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
29923 * modules/fchdir: Likewise.
29924 * modules/float: Likewise.
29925 * modules/iconv_open: Likewise.
29926 * modules/inttypes: Likewise.
29927 * modules/locale: Likewise.
29928 * modules/math: Likewise.
29929 * modules/netinet_in: Likewise.
29930 * modules/search: Likewise.
29931 * modules/signal: Likewise.
29932 * modules/stdint: Likewise.
29933 * modules/stdio: Likewise.
29934 * modules/stdlib: Likewise.
29935 * modules/string: Likewise.
29936 * modules/sys_select: Likewise.
29937 * modules/sys_socket: Likewise.
29938 * modules/sys_stat: Likewise.
29939 * modules/sys_time: Likewise.
29940 * modules/sysexits: Likewise.
29941 * modules/time: Likewise.
29942 * modules/unistd: Likewise.
29943 * modules/wchar: Likewise.
29944 * modules/wctype: Likewise.
29945 * modules/sys_stat: Change maintainer to "all".
29946 * modules/unistd: Likewise.
29948 2007-06-20 Karl Berry <karl@gnu.org>
29950 * config/srclist.txt: track www changes in license files.
29952 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
29954 * build-aux/bootstrap: Remove stray dot.
29955 Make sure build_aux settings are honored when linking
29956 gnulib_extra_files.
29958 2007-06-19 Eric Blake <ebb9@byu.net>
29960 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
29961 Allow compilation on cygwin.
29963 2007-06-19 Jim Meyering <jim@meyering.net>
29965 xreadlink-with-size: Remove module. No longer used.
29966 Ex-callers now use xreadlink or mreadlink-with-size.
29967 * modules/xreadlink-with-size: Remove module.
29968 * lib/xreadlink-with-size.c: Remove file.
29969 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
29970 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
29971 just before the function definition *is* accurate.
29973 Eliminate one way canonicalize_filename_mode could exit.
29974 * lib/canonicalize.c (canonicalize_filename_mode):
29975 Use mreadlink_with_size, not xreadlink_with_size.
29977 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
29979 Detect porting problems to FreeBSD/arm, which has time_t wider than
29980 long int. Original problem reported for GNU diff by Xin Li in
29981 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
29982 * modules/getdate (Depends-on): Add intprops, verify.
29983 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
29984 is an integer type no wider than long int.
29986 2007-06-18 Jim Meyering <jim@meyering.net>
29988 New module: mreadlink-with-size.
29989 * MODULES.html.sh: Add mreadlink-with-size.
29990 * modules/mreadlink-with-size: New module
29991 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
29992 not xreadlink-with-size.
29993 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
29995 2007-06-16 Bruno Haible <bruno@clisp.org>
29997 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
29998 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
29999 Reported by Gary V. Vaughan <gary@gnu.org>.
30001 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
30003 Revamp lchown so that it lives in unistd.h where it belongs.
30004 * lib/lchown.h: Remove.
30005 * lib/dirchownmod.c: Don't include lib/lchown.h.
30006 * lib/fchownat.c: Likewise.
30007 * lib/openat.c: Likewise.
30008 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
30009 does not follow symlinks.
30010 (EOPNOTSUPP): Define if not defined.
30011 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
30013 (lchown): New decl.
30014 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
30015 Do not check for lchown decl.
30016 Set REPLACE_LCHOWN.
30017 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
30019 * modules/chown: Make it clear it follows symlinks.
30020 * modules/lchown: Make it clear it doesn't follow symlinks.
30021 (Files): Remove lib/lchown.h
30022 (Depends-on): Add unistd.
30023 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
30024 (Include): Include <unistd.h>, not "lchown.h".
30025 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
30028 2007-06-15 Jim Meyering <jim@meyering.net>
30030 Change license (GPL to LGPL) of fsusage and dependents.
30031 * modules/fsusage (License): Change to LGPL.
30032 * modules/full-read (License): Likewise.
30033 * modules/full-write (License): Likewise.
30034 * modules/safe-read (License): Likewise.
30035 * modules/safe-write (License): Likewise.
30037 2007-06-14 Ben Pfaff <blp@gnu.org>
30039 Missing part of allocsa -> malloca transition.
30040 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
30043 2007-06-12 Bruno Haible <bruno@clisp.org>
30045 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
30046 to ia64, x86_64, i386.
30047 Reported by Eric Blake.
30049 2007-06-12 Bruno Haible <bruno@clisp.org>
30051 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
30052 cross-compiling to x86_64.
30054 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
30056 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
30057 glitch reported by Ralf Wildenhues in
30058 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
30060 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
30063 2007-06-11 Bruno Haible <bruno@clisp.org>
30065 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
30066 replacement string.
30067 Reported by Eric Blake.
30069 2007-06-10 Bruno Haible <bruno@clisp.org>
30071 Prepare vasnprintf code for use with Unicode strings.
30072 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
30073 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
30075 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
30076 a_u32_string variants.
30077 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
30078 * lib/printf-args.c: Don't include config.h and the specification
30079 header if PRINTF_FETCHARGS is already defined.
30080 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
30081 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
30082 TYPE_U16_STRING, TYPE_U32_STRING.
30083 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
30084 u16_directive, u16_directives, u32_directive, u32_directives): New
30086 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
30088 * lib/printf-parse.c: Don't include config.h and the specification
30089 header if PRINTF_PARSE is already defined. Eliminate the set of
30090 parameters for WIDE_CHAR_VERSION; the user of this file must provide
30091 them now. Include c-ctype.h.
30092 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
30093 directive and CHAR_T_ONLY_ASCII.
30094 * lib/vasnprintf.c: Don't include config.h and the specification header
30095 if VASNPRINTF is already defined.
30096 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
30097 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
30098 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
30099 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
30100 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
30101 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
30103 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
30104 pad_ourselves also in this case, with the 'c' and 's' directives, and
30105 with a different notion of "width".
30106 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
30108 2007-06-10 Bruno Haible <bruno@clisp.org>
30110 * modules/unistr/u32-mbsnlen: New file.
30111 * lib/unistr/u32-mbsnlen.c: New file.
30113 * modules/unistr/u16-mbsnlen: New file.
30114 * lib/unistr/u16-mbsnlen.c: New file.
30116 * modules/unistr/u8-mbsnlen: New file.
30117 * lib/unistr/u8-mbsnlen.c: New file.
30119 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
30122 2007-06-10 Bruno Haible <bruno@clisp.org>
30124 * lib/string_.h (mbsnlen): New declaration.
30125 * lib/mbsnlen.c: New file.
30126 * m4/mbsnlen.m4: New file.
30127 * modules/mbsnlen: New file.
30128 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
30129 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
30130 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
30132 2007-06-10 Bruno Haible <bruno@clisp.org>
30134 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
30136 2007-06-10 Bruno Haible <bruno@clisp.org>
30138 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
30139 * lib/mbuiter.h: Likewise.
30141 2007-06-10 Bruno Haible <bruno@clisp.org>
30143 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
30146 2007-06-10 Karl Berry <karl@gnu.org>
30148 * config/srclist.txt: remove gettext entries, Bruno prefers
30149 to update individually.
30151 2007-06-10 Bruno Haible <bruno@clisp.org>
30153 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
30154 'maxlen'. Ensure only length + width bytes are allocated, not
30155 length + 1 + width.
30157 2007-06-09 Bruno Haible <bruno@clisp.org>
30159 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
30160 (CHAR_T): Remove macro.
30161 (VASNPRINTF): Update.
30163 2007-06-09 Bruno Haible <bruno@clisp.org>
30165 * MODULES.html.sh (Unicode string functions): Add the new modules.
30167 * modules/uniconv/u32-conv-to-enc: New file.
30168 * lib/uniconv/u32-conv-to-enc.c: New file.
30169 * modules/uniconv/u32-conv-to-enc-tests: New file.
30170 * tests/uniconv/test-u32-conv-to-enc.c: New file.
30172 * modules/uniconv/u16-conv-to-enc: New file.
30173 * lib/uniconv/u16-conv-to-enc.c: New file.
30174 * lib/uniconv/u-conv-to-enc.h: New file.
30175 * modules/uniconv/u16-conv-to-enc-tests: New file.
30176 * tests/uniconv/test-u16-conv-to-enc.c: New file.
30178 * modules/uniconv/u8-conv-to-enc: New file.
30179 * lib/uniconv/u8-conv-to-enc.c: New file.
30180 * modules/uniconv/u8-conv-to-enc-tests: New file.
30181 * tests/uniconv/test-u8-conv-to-enc.c: New file.
30183 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30184 u32_conv_to_encoding): New declarations.
30186 2007-06-09 Bruno Haible <bruno@clisp.org>
30188 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
30190 2007-06-09 Bruno Haible <bruno@clisp.org>
30192 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
30193 * modules/malloca: Renamed from modules/allocsa, updated.
30194 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
30195 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
30196 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
30197 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
30198 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
30199 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
30200 * modules/xmalloca: Renamed from modules/xallocsa, updated.
30201 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
30202 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
30203 * modules/c-strcasestr (Depends-on): Update.
30204 * lib/c-strcasestr.c: Update.
30205 * modules/c-strstr (Depends-on): Update.
30206 * lib/c-strstr.c: Update.
30207 * modules/canonicalize-lgpl (Depends-on): Update.
30208 * lib/canonicalize-lgpl.c: Update.
30209 * modules/clean-temp (Depends-on): Update.
30210 * lib/clean-temp.c: Update.
30211 * modules/csharpcomp (Depends-on): Update.
30212 * lib/csharpcomp.c: Update.
30213 * modules/csharpexec (Depends-on): Update.
30214 * lib/csharpexec.c: Update.
30215 * modules/javacomp (Depends-on): Update.
30216 * lib/javacomp.c: Update.
30217 * modules/javaexec (Depends-on): Update.
30218 * lib/javaexec.c: Update.
30219 * modules/mbscasestr (Depends-on): Update.
30220 * lib/mbscasestr.c: Update.
30221 * modules/mbsstr (Depends-on): Update.
30222 * lib/mbsstr.c: Update.
30223 * modules/setenv (Depends-on): Update.
30224 * lib/setenv.c: Update.
30225 * modules/strcasestr (Depends-on): Update.
30226 * lib/strcasestr.c: Update.
30227 * modules/striconveha (Depends-on): Update.
30228 * lib/striconveha.c: Update.
30229 * modules/relocatable-prog-wrapper (Files): Update.
30230 * lib/relocwrapper.c: Update.
30231 * build-aux/install-reloc: Update.
30232 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
30234 2007-06-08 Bruno Haible <bruno@clisp.org>
30237 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
30238 * lib/fpurge.c (fpurge): Likewise.
30239 * lib/freading.c (freading): Likewise.
30240 * lib/fseeko.c (rpl_fseeko): Likewise.
30241 * lib/fseterr.c (fseterr): Likewise.
30242 * lib/fwriting.c (fwriting): Likewise.
30243 * tests/test-fflush.c (main): Avoid a failure on uClibc.
30245 2007-06-08 Bruno Haible <bruno@clisp.org>
30247 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
30248 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
30249 * modules/gettext (Files): Add m4/intlmacosx.m4.
30251 2007-06-07 Bruno Haible <bruno@clisp.org>
30253 * modules/localename-tests: New file.
30254 * tests/test-localename.c: New file.
30256 New module 'localename'.
30257 * lib/localename.h: New file.
30258 * lib/localename.c: New file, from GNU gettext.
30259 * m4/localename.m4: New file.
30260 * modules/localename: New file.
30262 2007-06-07 Bruno Haible <bruno@clisp.org>
30264 Work around the lack of <wchar.h> on some builds of uClibc.
30265 * doc/headers/wchar.texi: Update.
30266 * lib/wchar_.h: Include <wchar.h> only if it exists.
30267 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
30268 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
30269 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
30271 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
30272 * modules/mbfile (Depends-on): Add wchar.
30273 * modules/mbiter (Depends-on): Likewise.
30274 * modules/mbuiter (Depends-on): Likewise.
30275 Reported by Simon Josefsson.
30277 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
30279 Work around problem reported by Steven M. Schweda in
30280 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
30281 Tru64 5.1B with the Compaq compiler environment installed declares
30282 an 'isblank' function but does not define it in the C library.
30283 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
30284 * lib/regex_internal.h (isblank): Likewise.
30285 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
30286 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30288 2007-06-05 Bruno Haible <bruno@clisp.org>
30290 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
30292 * modules/printf-safe: New file.
30293 * modules/fprintf-posix (Depends-on): Add printf-safe.
30294 * modules/printf-posix (Depends-on): Likewise.
30295 * modules/snprintf-posix (Depends-on): Likewise.
30296 * modules/sprintf-posix (Depends-on): Likewise.
30297 * modules/vasnprintf-posix (Depends-on): Likewise.
30298 * modules/vasprintf-posix (Depends-on): Likewise.
30299 * modules/vfprintf-posix (Depends-on): Likewise.
30300 * modules/vprintf-posix (Depends-on): Likewise.
30301 * modules/vsnprintf-posix (Depends-on): Likewise.
30302 * modules/vsprintf-posix (Depends-on): Likewise.
30303 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
30304 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
30305 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
30306 "no" on i386, x86_64, ia64.
30307 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
30308 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30309 on i386, x86_64, ia64.
30310 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
30311 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
30312 on i386, x86_64, ia64.
30313 * tests/test-vasnprintf-posix.c: Include float.h.
30314 (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-vasprintf-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-snprintf-posix.c: Include float.h.
30322 * tests/test-sprintf-posix.c: Likewise.
30323 * tests/test-vsnprintf-posix.c: Likewise.
30324 * tests/test-vsprintf-posix.c: Likewise.
30326 2007-06-05 Bruno Haible <bruno@clisp.org>
30328 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
30329 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
30330 non-IEEE numbers on i386, x86_64, ia64.
30331 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
30332 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
30333 * tests/test-isnanl.h: Include float.h.
30334 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
30336 2007-06-05 Bruno Haible <bruno@clisp.org>
30338 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
30339 also the %a / %A. Handle the %a / %A code before this extra handling.
30341 2007-06-05 Bruno Haible <bruno@clisp.org>
30343 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
30344 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
30346 2007-06-05 Bruno Haible <bruno@clisp.org>
30348 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
30349 typo in variable name.
30351 2007-06-05 Eric Blake <ebb9@byu.net>
30353 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
30354 Reported by Simon Josefsson.
30356 2007-06-04 Bruno Haible <bruno@clisp.org>
30358 Avoid test failures on some PowerPC platforms.
30359 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
30360 Define differently for PowerPC.
30361 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
30362 Reported by Gary V. Vaughan <gary@gnu.org>.
30364 2007-06-02 Bruno Haible <bruno@clisp.org>
30366 Fix test-stdint failure on FreeBSD/ia64.
30367 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
30368 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
30369 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
30370 * doc/headers/stdint.texi: Update.
30372 2007-06-01 Bruno Haible <bruno@clisp.org>
30374 * tests/test-binary-io.c (main): Pass a third argument to open().
30375 Reported by Gary V. Vaughan <gary@gnu.org>.
30377 2007-06-01 Bruno Haible <bruno@clisp.org>
30379 * doc/functions/frexpl.texi: Update for mingw.
30381 2007-06-01 Bruno Haible <bruno@clisp.org>
30383 * tests/test-lseek.c (main): Disable test of errno for invalid third
30385 * doc/functions/lseek.texi: Update.
30386 Reported by Gary V. Vaughan <gary@gnu.org>.
30388 2007-05-28 Bruno Haible <bruno@clisp.org>
30390 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
30392 2007-05-31 Eric Blake <ebb9@byu.net>
30394 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
30397 2007-05-30 Eric Blake <ebb9@byu.net>
30398 and Bruno Haible <bruno@clisp.org>
30400 Work around mingw test failures exposed by m4-1.4.9b.
30401 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
30402 * tests/test-unistd.c: Disable uid_t and git_t tests for the
30405 2007-05-30 Bruno Haible <bruno@clisp.org>
30407 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
30408 assuming that they are closed. Needed on HP-UX 11.
30410 2007-05-29 Bruno Haible <bruno@clisp.org>
30412 Fix a problem with #include_next.
30413 * lib/dirent_.h: Split the double-inclusion guard.
30414 * lib/fcntl_.h: Likewise.
30415 * lib/float_.h: Likewise.
30416 * lib/iconv_.h: Likewise.
30417 * lib/inttypes_.h: Likewise.
30418 * lib/locale_.h: Likewise.
30419 * lib/math_.h: Likewise.
30420 * lib/netinet_in_.h: Likewise.
30421 * lib/search_.h: Likewise.
30422 * lib/signal_.h: Likewise.
30423 * lib/stdint_.h: Likewise.
30424 * lib/stdio_.h: Likewise.
30425 * lib/stdlib_.h: Likewise.
30426 * lib/string_.h: Likewise.
30427 * lib/sys_select_.h: Likewise.
30428 * lib/sys_socket_.h: Likewise.
30429 * lib/sys_stat_.h: Likewise.
30430 * lib/sys_time_.h: Likewise.
30431 * lib/sysexits_.h: Likewise.
30432 * lib/time_.h: Likewise.
30433 * lib/unistd_.h: Likewise.
30434 * lib/wchar_.h: Likewise.
30435 * lib/wctype_.h: Likewise.
30437 2007-05-29 Bruno Haible <bruno@clisp.org>
30439 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
30442 2007-05-29 Bruno Haible <bruno@clisp.org>
30444 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
30446 Reported by Eric Blake.
30448 2007-05-29 Bruno Haible <bruno@clisp.org>
30450 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
30453 2007-05-29 Eric Blake <ebb9@byu.net>
30454 Bruno Haible <bruno@clisp.org>
30456 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
30459 2007-05-28 Eric Blake <ebb9@byu.net>
30461 * modules/closein-tests (test_closein_LDADD): Support test on
30462 cygwin with libtool.
30464 2007-05-28 Bruno Haible <bruno@clisp.org>
30466 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
30467 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30468 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30469 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30470 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30471 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30472 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30473 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30474 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30476 2007-05-28 Eric Blake <ebb9@byu.net>
30478 Unconditionally include <config.h> in unit tests.
30479 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
30480 * tests/test-allocsa.c, tests/test-arcfour.c,
30481 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
30482 tests/test-array_list.c, tests/test-array_oset.c,
30483 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
30484 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
30485 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
30486 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
30487 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
30488 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
30489 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
30490 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
30491 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
30492 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
30493 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
30494 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
30495 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
30496 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
30497 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
30498 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
30499 test-md5.c, test-memmem.c, test-printf-posix.c,
30500 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
30501 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
30502 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
30503 test-strcasestr.c, test-striconv.c, test-striconveh.c,
30504 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
30505 test-vasnprintf-posix2.c, test-vasnprintf.c,
30506 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
30507 test-vfprintf-posix.c, test-vprintf-posix.c,
30508 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
30509 test-xvasprintf.c: Likewise.
30511 2007-05-28 Bruno Haible <bruno@clisp.org>
30513 * gnulib-tool (func_import): Remember the --with-tests command-line
30514 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
30515 Reported by Eric Blake.
30517 2007-05-28 Bruno Haible <bruno@clisp.org>
30519 * modules/ftell-tests: New file.
30520 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
30521 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
30523 * lib/ftell.c: New file.
30524 * modules/ftell: New file.
30525 * m4/ftell.m4: New file.
30526 * doc/functions/ftell.texi: Update.
30527 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
30529 * lib/stdio_.h (rpl_ftell): New declaration.
30530 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
30533 2007-05-28 Eric Blake <ebb9@byu.net>
30535 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
30537 2007-05-28 Bruno Haible <bruno@clisp.org>
30539 * modules/fseek-tests: New file.
30540 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
30541 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
30543 * lib/fseek.c: New file.
30544 * modules/fseek: New file.
30545 * m4/fseek.m4: New file.
30546 * doc/functions/fseek.texi: Update.
30547 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
30549 * lib/stdio_.h (rpl_fseek): New declaration.
30550 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
30553 2007-05-28 Bruno Haible <bruno@clisp.org>
30555 * lib/stdio_.h (fflush): More comments.
30557 2007-05-28 Bruno Haible <bruno@clisp.org>
30559 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
30562 2007-05-28 Eric Blake <ebb9@byu.net>
30564 Improve lseek module.
30565 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
30566 * lib/unistd_.h (lseek): Scale back link warning message.
30567 * tests/test-lseek.c: Beef up test.
30568 * tests/test-lseek.sh: Exercise more facets of lseek.
30569 Reported by Bruno Haible.
30571 2007-05-28 Bruno Haible <bruno@clisp.org>
30573 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
30576 2007-05-27 Bruno Haible <bruno@clisp.org>
30578 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
30580 2007-05-27 Bruno Haible <bruno@clisp.org>
30582 * modules/openmp: New file.
30583 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
30586 2007-05-26 Bruno Haible <bruno@clisp.org>
30588 * modules/chdir-long (Depends-on): Add fchdir.
30589 * modules/chdir-safer (Depends-on): Likewise.
30590 * modules/fts (Depends-on): Likewise.
30591 * modules/fts-lgpl (Depends-on): Likewise.
30592 * modules/openat (Depends-on): Likewise.
30593 * modules/savewd (Depends-on): Likewise.
30595 2007-05-24 Eric Blake <ebb9@byu.net>
30597 Fix lseek on mingw.
30598 * modules/lseek: New module.
30599 * m4/lseek.m4: New file.
30600 * lib/lseek.c: New file.
30601 * modules/lseek-tests: New file.
30602 * tests/test-lseek.c: New file.
30603 * tests/test-lseek.sh: New file.
30604 * MODULES.html.sh: Document lseek module.
30605 * modules/fflush (Depends-on): Add lseek, fseeko.
30606 * modules/fseeko (Depends-on): Likewise.
30607 * modules/ftello (Depends-on): Likewise.
30608 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
30610 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
30612 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
30613 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
30614 * lib/ftello.c (rpl_ftello): Likewise.
30615 * tests/test-fseeko.c (main): Test this.
30616 * tests/test-fseeko.sh: Likewise.
30617 * tests/test-ftello.c (main): Likewise.
30618 * tests/test-ftello.sh: Likewise.
30619 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
30620 implies replacing fseek.
30621 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
30623 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
30624 * modules/unistd (Makefile.am): Likewise.
30625 * lib/unistd_.h (lseek): Declare a replacement.
30626 * doc/functions/lseek.texi (lseek): Document this fix.
30627 * doc/functions/fseek.texi (fseek): Likewise.
30628 * doc/functions/ftell.texi (ftell): Likewise.
30630 2007-05-24 Bruno Haible <bruno@clisp.org>
30632 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
30633 in the printed representation of a NaN.
30634 * tests/test-vasprintf-posix.c (test_function): Likewise.
30635 * tests/test-snprintf-posix.h (test_function): Likewise.
30636 * tests/test-sprintf-posix.h (test_function): Likewise.
30637 Reported by Eric Blake.
30639 2007-05-23 Eric Blake <ebb9@byu.net>
30641 Fix fseeko/ftello on cygwin 1.5.24.
30642 * doc/functions/fseeko.texi (fseeko): Document the fix.
30643 * doc/functions/ftello.texi (ftello): Document the fix.
30644 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
30645 * doc/functions/stdout.text (stdout): New file.
30646 * doc/functions/stderr.text (stderr): New file.
30647 * doc/gnulib.texi (Function Substitutes): Use new files.
30648 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
30650 * tests/test-ftello.c (main): Likewise for ftello.
30651 * tests/test-fseeko.sh: New file.
30652 * tests/test-ftello.sh: New file.
30653 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
30654 with seekable stdin.
30655 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
30656 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
30657 (gl_REPLACE_FSEEKO): New macro.
30658 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
30659 * modules/fseeko (Files): Distribute fseeko.c.
30660 * modules/ftello (Files): Distribute ftello.c.
30661 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
30663 * lib/ftello.c (rpl_ftello): New file.
30664 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
30666 (gl_STDIN_LARGE_OFFSET): New macro.
30667 * modules/stdio (Makefile.am): Perform the replacement.
30668 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
30670 2007-05-23 Bruno Haible <bruno@clisp.org>
30672 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
30673 GNULIB_POSIXCHECK is defined.
30675 2007-05-21 Bruno Haible <bruno@clisp.org>
30677 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
30678 Check also the output for NaN arguments. When cross-compiling, guess
30680 * lib/vasnprintf.c: Update comments.
30681 * tests/test-vasnprintf-posix.c (strisnan): New function.
30682 (test_function): Use it.
30683 * tests/test-vasprintf-posix.c (strisnan): New function.
30684 (test_function): Use it.
30685 * tests/test-snprintf-posix.h (strisnan): New function.
30686 (test_function): Use it.
30687 * tests/test-sprintf-posix.h (strisnan): New function.
30688 (test_function): Use it.
30689 Reported by Eric Blake.
30691 2007-05-20 Bruno Haible <bruno@clisp.org>
30693 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
30694 numbers that fails on BeOS.
30695 * doc/functions/frexpl.texi: Update.
30697 2007-05-20 Jim Meyering <jim@meyering.net>
30699 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
30700 forced upon us by glibc-2.6.
30702 2007-05-20 Bruno Haible <bruno@clisp.org>
30704 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
30705 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
30706 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
30707 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
30708 NEED_PRINTF_INFINITE.
30709 (is_infinitel): New function.
30710 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
30711 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
30712 gl_PREREQ_VASNPRINTF_INFINITE.
30713 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
30714 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30715 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
30716 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
30717 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
30718 gl_PREREQ_VASNPRINTF_INFINITE.
30719 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30720 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30721 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30722 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30723 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30724 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30725 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30726 * doc/functions/fprintf.texi: Update.
30727 * doc/functions/printf.texi: Update.
30728 * doc/functions/snprintf.texi: Update.
30729 * doc/functions/sprintf.texi: Update.
30730 * doc/functions/vfprintf.texi: Update.
30731 * doc/functions/vprintf.texi: Update.
30732 * doc/functions/vsnprintf.texi: Update.
30733 * doc/functions/vsprintf.texi: Update.
30735 2007-05-20 Bruno Haible <bruno@clisp.org>
30737 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
30738 was not found in libc.
30739 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30741 2007-05-20 Bruno Haible <bruno@clisp.org>
30743 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
30744 printed as "-nan" instead of "nan".
30745 * tests/test-vasprintf-posix.c (test_function): Likewise.
30746 * tests/test-snprintf-posix.h (test_function): Likewise.
30747 * tests/test-sprintf-posix.h (test_function): Likewise.
30748 Needed for HP-UX 11.
30750 2007-05-20 Jim Meyering <jim@meyering.net>
30752 Fix buggy test for the fchownat-deref bug.
30753 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
30754 symlink required for the run-test. Without it, this test would
30755 always declare that fchownat doesn't work, and client code would
30756 unnecessarily use the replacement function with fixed libc.
30757 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
30758 Reported by Greg Schafer.
30760 2007-05-19 Bruno Haible <bruno@clisp.org>
30762 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
30763 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
30764 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
30765 Needed for IRIX 6.5 and Solaris 2.5.1.
30767 2007-05-19 Bruno Haible <bruno@clisp.org>
30769 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
30770 (test_function): Skip tests involving -0.0 on platforms where
30772 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
30773 (test_function): Skip tests involving -0.0 on platforms where
30775 * tests/test-snprintf-posix.h (have_minus_zero): New function.
30776 (test_function): Skip tests involving -0.0 on platforms where
30778 * tests/test-sprintf-posix.h (have_minus_zero): New function.
30779 (test_function): Skip tests involving -0.0 on platforms where
30781 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
30783 * tests/test-printf-posix.h (test_function): Likewise.
30784 * tests/test-printf-posix.output: Remove all -0.0 related results.
30785 Needed for IRIX 6.5.
30787 2007-05-19 Bruno Haible <bruno@clisp.org>
30789 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
30790 printed as "nan0x7fffffff" instead of "nan".
30791 * tests/test-vasprintf-posix.c (test_function): Likewise.
30792 * tests/test-snprintf-posix.h (test_function): Likewise.
30793 * tests/test-sprintf-posix.h (test_function): Likewise.
30794 * tests/test-fprintf-posix.h (NaN): Remove macro.
30795 (test_function): Remove all NaN related tests.
30796 * tests/test-printf-posix.h (NaN): Remove macro.
30797 (test_function): Remove all NaN related tests.
30798 * tests/test-printf-posix.output: Remove all NaN related results.
30799 Needed for IRIX 6.5.
30801 2007-05-19 Bruno Haible <bruno@clisp.org>
30803 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
30804 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30806 2007-05-19 Bruno Haible <bruno@clisp.org>
30808 * lib/float_.h: New file.
30809 * m4/float_h.m4: New file.
30810 * modules/float: New file.
30811 * modules/isnanl (Dependencies): Add float.
30812 * modules/isnanl-nolibm (Dependencies): Likewise.
30813 * modules/mathl (Dependencies): Likewise.
30814 * modules/printf-frexpl (Dependencies): Likewise.
30815 * modules/signbit (Dependencies): Likewise.
30816 * modules/vasnprintf (Dependencies): Likewise.
30817 * doc/headers/float.texi: Update.
30819 2007-05-19 Jim Meyering <jim@meyering.net>
30821 * lib/utimens.c (gl_futimens): Rename from futimens,
30822 now that glibc-2.6 declares futimens.
30823 * lib/utimens.h: Likewise.
30825 2007-05-19 Bruno Haible <bruno@clisp.org>
30827 Avoid test failures on mingw.
30828 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
30829 * tests/test-printf-posix.sh: Likewise.
30830 * tests/test-vfprintf-posix.sh: Likewise.
30831 * tests/test-vprintf-posix.sh: Likewise.
30833 2007-05-19 Bruno Haible <bruno@clisp.org>
30835 Fix *printf result for NaN, Inf, -0.0 on mingw.
30836 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
30837 * lib/vasnprintf.c: Include math.h and isnan.h.
30838 (is_infinite_or_zero): New function.
30839 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
30840 values in the %f, %F, %e, %E, %g, %G directives.
30841 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
30842 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30843 gl_PRINTF_INFINITE and test its result. Invoke
30844 gl_PREREQ_VASNPRINTF_INFINITE.
30845 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30846 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30847 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30848 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30849 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30850 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30851 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30852 * doc/functions/fprintf.texi: Update.
30853 * doc/functions/printf.texi: Update.
30854 * doc/functions/snprintf.texi: Update.
30855 * doc/functions/sprintf.texi: Update.
30856 * doc/functions/vfprintf.texi: Update.
30857 * doc/functions/vprintf.texi: Update.
30858 * doc/functions/vsnprintf.texi: Update.
30859 * doc/functions/vsprintf.texi: Update.
30861 2007-05-19 Bruno Haible <bruno@clisp.org>
30863 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
30864 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
30865 Instead of multiplying with 10^k, set extra_zeroes to k.
30866 (scale10_round_long_double): Remove function.
30868 2007-05-18 Bruno Haible <bruno@clisp.org>
30870 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
30871 introduced on 2007-05-06.
30873 2007-05-18 Bruno Haible <bruno@clisp.org>
30875 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
30877 * tests/test-vasprintf-posix.c (test_function): Likewise.
30878 * tests/test-snprintf-posix.h (test_function): Likewise.
30879 * tests/test-sprintf-posix.h (test_function): Likewise.
30881 2007-05-18 Bruno Haible <bruno@clisp.org>
30883 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
30884 (strmatch): New function.
30885 (test_function): Test the %f directive on numbers of various exponents.
30886 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
30887 (strmatch): New function.
30888 (test_function): Test the %f directive on numbers of various exponents.
30889 * tests/test-snprintf-posix.h (strmatch): New function.
30890 (test_function): Test the %f directive on numbers of various exponents.
30891 * tests/test-sprintf-posix.h (strmatch): New function.
30892 (test_function): Test the %f directive on numbers of various exponents.
30893 * tests/test-snprintf-posix.c (SIZEOF): New macro.
30894 * tests/test-sprintf-posix.c (SIZEOF): New macro.
30895 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
30896 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
30898 2007-05-18 Bruno Haible <bruno@clisp.org>
30900 Add support for 'long double' number output.
30901 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
30902 * lib/vasnprintf.c: Include math.h and float+.h.
30903 (mp_limb_t): New type.
30904 (GMP_LIMB_BITS): New macro.
30905 (mp_twolimb_t): New type.
30906 (GMP_TWOLIMB_BITS): New macro.
30908 (multiply, divide, convert_to_decimal, decode_long_double,
30909 scale10_round_long_double, scale10_round_decimal_long_double,
30910 floorlog10l): New functions.
30911 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
30912 for the %f, %F, %e, %E, %g, %G directives.
30913 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
30914 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30915 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
30916 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
30917 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30918 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30919 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30920 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30921 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30922 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30923 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30924 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
30925 * modules/snprintf-posix (Depends-on): Likewise.
30926 * modules/sprintf-posix (Depends-on): Likewise.
30927 * modules/vasnprintf-posix (Depends-on): Likewise.
30928 * modules/vasprintf-posix (Depends-on): Likewise.
30929 * modules/vfprintf-posix (Depends-on): Likewise.
30930 * modules/vsnprintf-posix (Depends-on): Likewise.
30931 * modules/vsprintf-posix (Depends-on): Likewise.
30932 * modules/vasnprintf (Files): Add lib/float+.h.
30933 * doc/functions/fprintf.texi: Update.
30934 * doc/functions/printf.texi: Update.
30935 * doc/functions/snprintf.texi: Update.
30936 * doc/functions/sprintf.texi: Update.
30937 * doc/functions/vfprintf.texi: Update.
30938 * doc/functions/vprintf.texi: Update.
30939 * doc/functions/vsnprintf.texi: Update.
30940 * doc/functions/vsprintf.texi: Update.
30942 2007-05-18 Bruno Haible <bruno@clisp.org>
30944 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
30946 2007-05-18 Bruno Haible <bruno@clisp.org>
30948 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
30949 for printing 64-bit integers. Needed for mingw.
30951 2007-05-18 Bruno Haible <bruno@clisp.org>
30953 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
30954 gl_FUNC_FREXPL_WORKS.
30955 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
30957 2007-05-18 Bruno Haible <bruno@clisp.org>
30959 * modules/frexpl-nolibm-tests: New file.
30961 * modules/frexpl-nolibm: New file.
30962 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
30964 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
30966 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
30967 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
30968 GCC 4.2, which otherwise issues a lot of warnings.
30969 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
30970 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
30972 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
30973 * modules/iconv_open (iconv.h): Likewise.
30974 * modules/locale (locale.h): Likewise.
30975 * modules/netinet_in (netinet/in.h): Likewise.
30976 * modules/sys_select (sys_select.h): Likewise.
30977 * modules/sys_socket (sys/socket.h): Likewise.
30978 * modules/sys_stat (sys/stat.h): Likewise.
30979 * modules/sysexits (sysexits.h): Likewise.
30980 * modules/unistd (unistd.h): Likewise.
30982 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30984 * modules/closein-tests (Makefile.am): Distribute
30987 2007-05-17 Bruno Haible <bruno@clisp.org>
30989 * tests/test-printf-posix.output: Renamed from
30990 tests/test-fprintf-posix.out.
30991 * modules/fprintf-posix-tests: Update.
30992 * modules/printf-posix-tests: Update.
30993 * modules/vfprintf-posix-tests: Update.
30994 * modules/vprintf-posix-tests: Update.
30995 * tests/test-fprintf-posix.sh: Update.
30996 * tests/test-printf-posix.sh: Update.
30997 * tests/test-vfprintf-posix.sh: Update.
30998 * tests/test-vprintf-posix.sh: Update.
30999 Reported by Ralf Wildenhues.
31001 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
31003 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
31004 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
31005 GCC 4.2, which otherwise issues a lot of warnings.
31006 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
31007 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
31008 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
31009 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
31010 it should no longer be needed.
31011 * lib/string_.h: Likewise.
31012 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
31013 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
31014 * modules/inttypes (inttypes.h): Likewise.
31015 * modules/math (math.h): Likewise.
31016 * modules/search (search.h): Likewise.
31017 * modules/signal (signal.h): Likewise.
31018 * modules/stdint (stdint.h): Likewise.
31019 * modules/stdio (stdio.h): Likewise.
31020 * modules/stdlib (stdlib.h): Likewise.
31021 * modules/string (string.h): Likewise.
31022 * modules/sys_time (sys/time.h): Likewise.
31023 * modules/time (time.h): Likewise.
31024 * modules/wchar (wchar.h): Likewise.
31025 * modules/wctype (wtype.h): Likewise.
31027 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
31029 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
31031 2007-05-13 Bruno Haible <bruno@clisp.org>
31033 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
31034 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
31035 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
31036 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
31037 (gl_PREREQ_STRTOK_R): Don't require it here.
31039 2007-05-13 Bruno Haible <bruno@clisp.org>
31041 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
31042 when used in C++ mode.
31044 2007-05-12 Bruno Haible <bruno@clisp.org>
31046 * lib/linebuffer.h: Tweak doc.
31047 * lib/linebuffer.c: Likewise.
31049 2007-05-12 James Youngman <jay@gnu.org>
31051 * lib/linebuffer.c (readlinebuffer_delim): New function,
31052 like readlinebuffer, but use a caller-specified delimiter.
31053 (readlinebuffer): Just call readlinebuffer_delim with '\n'
31055 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
31057 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
31059 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
31060 * modules/openat (Files): Remove openat-die.c.
31061 (Depends-on): Add openat-die.
31062 * modules/openat-die: New module.
31064 2007-05-06 Bruno Haible <bruno@clisp.org>
31066 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
31067 Update with info about Cygwin.
31068 * doc/functions/fprintf.texi: Update.
31069 * doc/functions/printf.texi: Update.
31070 * doc/functions/snprintf.texi: Update.
31071 * doc/functions/sprintf.texi: Update.
31072 * doc/functions/vfprintf.texi: Update.
31073 * doc/functions/vprintf.texi: Update.
31074 * doc/functions/vsnprintf.texi: Update.
31075 * doc/functions/vsprintf.texi: Update.
31076 Reported by Eric Blake.
31078 2007-05-06 Bruno Haible <bruno@clisp.org>
31080 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
31081 padding ourselves for the floating-point directives.
31082 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
31083 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
31084 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31085 gl_PRINTF_FLAG_ZERO and test its result. Invoke
31086 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
31087 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31088 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
31089 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31090 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31091 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31092 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31093 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31094 * tests/test-snprintf-posix.h (test_function): Also check the width
31095 and some flags in the %f directive.
31096 * tests/test-sprintf-posix.h (test_function): Likewise.
31097 * tests/test-vasnprintf-posix.c (test_function): Likewise.
31098 * tests/test-vasprintf-posix.c (test_function): Likewise.
31099 * doc/functions/fprintf.texi: Update.
31100 * doc/functions/printf.texi: Update.
31101 * doc/functions/snprintf.texi: Update.
31102 * doc/functions/sprintf.texi: Update.
31103 * doc/functions/vfprintf.texi: Update.
31104 * doc/functions/vprintf.texi: Update.
31105 * doc/functions/vsnprintf.texi: Update.
31106 * doc/functions/vsprintf.texi: Update.
31108 2007-05-06 Bruno Haible <bruno@clisp.org>
31110 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
31111 pass the ' flag character to sprintf or snprintf.
31112 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
31113 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
31114 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31115 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
31116 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
31117 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31118 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
31119 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31120 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31121 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31122 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31123 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31124 * tests/test-snprintf-posix.h (test_function): Also check the grouping
31126 * tests/test-sprintf-posix.h (test_function): Likewise.
31127 * tests/test-vasnprintf-posix.c (test_function): Likewise.
31128 * tests/test-vasprintf-posix.c (test_function): Likewise.
31129 * doc/functions/fprintf.texi: Update.
31130 * doc/functions/printf.texi: Update.
31131 * doc/functions/snprintf.texi: Update.
31132 * doc/functions/sprintf.texi: Update.
31133 * doc/functions/vfprintf.texi: Update.
31134 * doc/functions/vprintf.texi: Update.
31135 * doc/functions/vsnprintf.texi: Update.
31136 * doc/functions/vsprintf.texi: Update.
31138 2007-05-01 Bruno Haible <bruno@clisp.org>
31140 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
31142 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
31144 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
31145 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
31147 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
31149 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
31150 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
31151 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
31153 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
31155 * lib/argp-help.c (struct hol_entry): New member `ord'.
31156 (HOL_ENTRY_PTRCMP): Use ord for comparison
31157 (hol_sort): Initialize ord.
31159 2007-05-01 Bruno Haible <bruno@clisp.org>
31161 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
31162 Reported by Eric Blake.
31163 * doc/gnulib.texi (Function Substitutes): Update.
31165 2007-05-01 Bruno Haible <bruno@clisp.org>
31167 * doc/functions.texi: Remove file, now redundant through
31168 doc/functions/*.texi.
31170 2007-05-01 Bruno Haible <bruno@clisp.org>
31172 * modules/argp (Depends-on): Add sleep.
31174 2007-05-01 Bruno Haible <bruno@clisp.org>
31176 * modules/sleep-tests: New file.
31177 * tests/test-sleep.c: New file.
31179 * modules/sleep: New file.
31180 * lib/sleep.c: New file.
31181 * m4/sleep.m4: New file.
31182 * lib/unistd_.h (sleep): New declaration.
31183 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
31185 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
31186 * doc/functions/sleep.texi: Document the sleep module.
31188 2007-05-01 Bruno Haible <bruno@clisp.org>
31190 * lib/sigprocmask.h: Remove file.
31191 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
31192 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
31193 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
31194 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
31195 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
31196 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
31197 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
31198 HAVE_SIGSET_T as a shell variable.
31199 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
31200 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
31201 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
31202 (Depends-on): Add signal. Remove verify.
31203 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
31204 (Include): Mention <signal.h> instead of sigprocmask.h.
31205 * NEWS: Mention the change.
31206 * lib/fatal-signal.c: Don't include sigprocmask.h.
31208 2007-05-01 Bruno Haible <bruno@clisp.org>
31210 * modules/signal: New file.
31211 * lib/signal_.h: New file.
31212 * m4/signal_h.m4: New file.
31214 2007-05-01 Bruno Haible <bruno@clisp.org>
31216 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
31217 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
31218 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
31219 HAVE_WCTYPE_CTMP_BUG into wctype.h.
31221 2007-05-01 Bruno Haible <bruno@clisp.org>
31223 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
31225 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
31226 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
31227 * modules/sys_stat (Makefile.am): Substitute their values into
31230 2007-05-01 Bruno Haible <bruno@clisp.org>
31232 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
31233 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
31234 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
31236 2007-05-01 Bruno Haible <bruno@clisp.org>
31238 * doc/header/assert.texi: Undo last change: don't mention the gnulib
31239 'assert' module here.
31241 2007-05-01 Bruno Haible <bruno@clisp.org>
31243 * doc/functions/*.texi: New files.
31244 * doc/functions/google-ranking.txt: New file.
31245 * doc/gnulib.texi (Function Substitutes): New chapter.
31246 (ctime, inet_ntoa): Remove sections.
31247 * doc/ctime.texi: Remove file.
31248 * doc/inet_ntoa.texi: Remove file.
31249 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
31251 (%.info): New rule, specifying a --reference-limit.
31253 2007-05-01 Bruno Haible <bruno@clisp.org>
31255 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
31257 2007-05-01 Bruno Haible <bruno@clisp.org>
31259 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
31260 the portability of 'mkdir' to mingw systems.
31262 2007-05-01 Bruno Haible <bruno@clisp.org>
31264 * doc/headers/google-ranking.txt: New file.
31266 2007-04-30 Eric Blake <ebb9@byu.net>
31268 Prefer fseeko to fseek.
31269 * modules/getpass (Depends-on): Add fseeko.
31270 * lib/getpass.c (getpass): Use fseeko, not fseek.
31272 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
31274 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
31275 assumes the sorting is stable, while most qsort implementations
31276 are not. Use argument addresses to ensure they never compare as
31279 * tests/test-argp-2.sh (usage-indent test): Fix output
31280 (func_compare): Restore diff options
31281 * tests/test-argp.c: Restore #include "progname.h"
31283 2007-04-29 Bruno Haible <bruno@clisp.org>
31285 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
31286 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31287 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
31288 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31289 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
31290 (configure.ac): Define CHECK_SNPRINTF_POSIX.
31291 (TESTS, check_PROGRAMS): Add test-snprintf.
31292 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
31293 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
31294 (TESTS, check_PROGRAMS): Add test-vsnprintf.
31295 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
31296 assertions that fail on HP-UX, OSF/1, or IRIX.
31297 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
31299 2007-04-29 Bruno Haible <bruno@clisp.org>
31301 * MODULES.html.sh (posix_functions): Remove 'contents'.
31303 2007-04-29 Karl Berry <karl@gnu.org>
31305 * config/srclist.txt (gendocs_template_min): new entry.
31307 2007-04-29 Bruno Haible <bruno@clisp.org>
31309 Work around fpurge bug on BSD systems.
31310 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
31311 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
31312 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
31313 fpurge to rpl_fpurge if the system already has this function.
31314 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
31315 the case where the system already has this function. Correct invariants
31317 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
31320 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
31322 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
31323 proposed by Sven Verdoolaege.
31325 * tests/test-argp.c: Fix option ordering. Test deeply clustered
31327 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
31328 (usage and help tests): Update
31330 2007-04-29 Bruno Haible <bruno@clisp.org>
31332 * tests/test-fflush.c (main): Use a file of size 17, not 10.
31333 Print more information in case of failure. Disable a test on BeOS.
31335 2007-04-29 Bruno Haible <bruno@clisp.org>
31337 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
31338 This helps debugging on systems on which no gdb is available.
31340 2007-04-29 Bruno Haible <bruno@clisp.org>
31342 * lib/freading.h: Improve comments.
31343 * lib/fwriting.h: Likewise.
31344 * tests/test-freading.c (main): Don't check freading immediately after
31345 repositioning. Needed for glibc.
31347 2007-04-29 Bruno Haible <bruno@clisp.org>
31349 * lib/freading.c (freading): Trivial simplification.
31351 2007-04-28 Bruno Haible <bruno@clisp.org>
31353 * tests/test-fwriting.c (main): Also test the interaction between
31354 fflush and fwriting.
31355 * modules/fwriting-tests (Depends-on): Add fflush.
31357 * tests/test-freading.c (main): Also test the interaction between
31358 fflush and freading.
31359 * modules/freading-tests (Depends-on): Add fflush.
31361 2007-04-28 Bruno Haible <bruno@clisp.org>
31363 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
31365 Suggested by Eric Blake.
31367 2007-04-28 Jim Meyering <jim@meyering.net>
31369 Avoid false-negative in gl_STDINT_H's C99 conformance test.
31370 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
31371 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
31373 2007-04-27 Eric Blake <ebb9@byu.net>
31375 * doc/headers/assert.texi (assert.h): Document assert module use.
31377 2007-04-27 Bruno Haible <bruno@clisp.org>
31379 * doc/headers/*.texi: New files.
31380 * doc/gnulib.texi (Header File Substitutes): New chapter.
31381 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
31383 (standards.info ,standards.html, standards.dvi): Update dependencies.
31384 (mostlyclean, clean): New targets.
31386 2007-04-27 Bruno Haible <bruno@clisp.org>
31388 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
31389 * modules/sysexits (Files, Makefile.am): Update.
31391 * lib/sys_socket_.h: Renamed from lib/socket_.h.
31392 * modules/sys_socket (Files, Makefile.am): Update.
31394 * lib/sys_stat_.h: Renamed from lib/stat_.h.
31395 * modules/sys_stat (Files, Makefile.am): Update.
31397 2007-04-27 Eric Blake <ebb9@byu.net>
31399 * lib/freading.h: Improve comments.
31400 * lib/fwriting.h: Likewise.
31401 * lib/fflush.c: Likewise.
31403 Fix closein for mingw.
31404 * modules/closein-tests: Add tests for closein.
31405 * tests/test-closein.c: New file.
31406 * tests/test-closein.sh: Likewise.
31407 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
31408 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
31410 2007-04-27 Bruno Haible <bruno@clisp.org>
31412 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
31414 * lib/math_.h [__DECC]: Likewise.
31415 * lib/stdio_.h [__DECC]: Likewise.
31416 * lib/stdlib_.h [__DECC]: Likewise.
31417 * lib/string_.h [__DECC]: Likewise.
31418 * lib/time_.h [__DECC]: Likewise.
31419 * lib/wchar_.h [__DECC]: Likewise.
31420 * lib/wctype_.h [__DECC]: Likewise.
31422 2007-04-27 Bruno Haible <bruno@clisp.org>
31424 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
31426 2007-04-27 Bruno Haible <bruno@clisp.org>
31428 * lib/fflush.c: Add comments.
31429 * modules/fpurge-tests (Depends-on): Add fflush.
31430 * modules/freadable-tests (Depends-on): Likewise.
31431 * modules/fwritable-tests (Depends-on): Likewise.
31433 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
31435 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
31436 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
31437 Report by Bruno Haible <bruno@clisp.org>.
31439 2007-04-26 Eric Blake <ebb9@byu.net>
31441 Fix fflush on mingw.
31442 * modules/fflush (Depends-on): Add freading.
31443 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
31446 2007-04-26 Eric Blake <ebb9@byu.net>
31447 and Bruno Haible <bruno@clisp.org>
31449 Implement freading and fwriting.
31450 * lib/freading.c: New file.
31451 * lib/freading.h: Likewise.
31452 * m4/freading.m4: Likewise.
31453 * modules/freading: Likewise.
31454 * modules/freading-tests: Likewise.
31455 * tests/test-freading.c: Likewise.
31456 * lib/fwriting.c: New file.
31457 * lib/fwriting.h: Likewise.
31458 * m4/fwriting.m4: Likewise.
31459 * modules/fwriting: Likewise.
31460 * modules/fwriting-tests: Likewise.
31461 * tests/test-fwriting.c: Likewise.
31462 * MODULES.html.sh (File stream based Input/Output): Mention them.
31464 2007-04-26 Bruno Haible <bruno@clisp.org>
31466 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
31467 'long' when we assume it.
31468 Suggested by Eric Blake.
31470 2007-04-26 Bruno Haible <bruno@clisp.org>
31472 Ensure fseeko, ftello are declared on glibc systems.
31473 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
31474 * modules/fseeko (configure.ac-early): Likewise.
31475 * modules/ftello (configure.ac-early): Likewise.
31476 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
31477 AC_FUNC_FSEEKO for this.
31478 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
31479 (gl_CHECK_FSEEKO): Remove macro.
31481 2007-04-26 Bruno Haible <bruno@clisp.org>
31483 * tests/test-fflush.c (main): Also check the ftell result after
31484 fflush and fseek/fseeko.
31485 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
31486 file descriptor position cache in the stream.
31487 * lib/fseeko.c (rpl_fseeko): Likewise.
31489 2007-04-26 Bruno Haible <bruno@clisp.org>
31491 * modules/fflush-tests (Depends-on): Add fseeko.
31493 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
31494 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31496 * lib/argz_.h: ensure error_t definition is obtained in same
31497 mechanism system argz.h would have.
31498 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
31499 argz facilities are known bad. Err on the side of caution if
31502 2007-04-25 Eric Blake <ebb9@byu.net>
31504 * lib/fpurge.c (includes): Use stdlib.h for free.
31505 * tests/test-fflush.c (main): Also test fflush-fseeko.
31507 2007-04-25 Bruno Haible <bruno@clisp.org>
31509 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
31510 * lib/fseeko.c: New file.
31511 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
31512 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
31513 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
31515 (gl_FUNC_FSEEKO): Invoke it.
31516 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
31517 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
31518 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
31520 2007-04-25 Bruno Haible <bruno@clisp.org>
31522 * modules/fflush (Depends-on): Add ftello.
31524 2007-04-25 Bruno Haible <bruno@clisp.org>
31526 * modules/ftello-tests: New file.
31527 * tests/test-ftello.c: New file.
31529 * modules/ftello: New file.
31530 * m4/ftello.m4: New file.
31531 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
31533 * lib/stdio_.h (ftello): New declaration.
31534 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
31537 2007-04-25 Bruno Haible <bruno@clisp.org>
31539 * modules/fseeko-tests: New file.
31540 * tests/test-fseeko.c: New file.
31542 * modules/fseeko: New file.
31543 * m4/fseeko.m4: New file.
31544 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
31546 * lib/stdio_.h (fseeko): New declaration.
31547 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
31550 2007-04-25 Bruno Haible <bruno@clisp.org>
31552 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
31554 2007-04-25 Bruno Haible <bruno@clisp.org>
31556 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
31557 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
31558 * tests/test-unistd.c: Likewise.
31559 * tests/test-fcntl.c: Likewise.
31561 2007-04-23 Eric Blake <ebb9@byu.net>
31563 * lib/fflush.c: Fix missing include.
31564 Reported by Bruno Haible.
31566 2007-04-23 Bruno Haible <bruno@clisp.org>
31568 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
31569 Reported by Eric Blake.
31571 2007-04-23 Bruno Haible <bruno@clisp.org>
31573 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
31575 2007-04-23 Bruno Haible <bruno@clisp.org>
31577 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
31579 2007-04-23 Bruno Haible <bruno@clisp.org>
31581 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
31582 Needed on HP-UX 11.
31584 2007-04-16 Eric Blake <ebb9@byu.net>
31586 Make fflush rely on fpurge.
31587 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
31588 open coding all variants.
31589 * modules/fflush (Depends-on): Add fpurge and unistd.
31590 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
31591 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
31593 Fix --with-tests compilation on cygwin.
31594 * modules/argmatch-tests (Makefile.am): List gnulib library first
31596 * modules/argp-tests (Makefile.am): Likewise.
31597 * modules/array-list-tests (Makefile.am): Likewise.
31598 * modules/array-oset-tests (Makefile.am): Likewise.
31599 * modules/avltree-list-tests (Makefile.am): Likewise.
31600 * modules/avltree-oset-tests (Makefile.am): Likewise.
31601 * modules/avltreehash-list-tests (Makefile.am): Likewise.
31602 * modules/carray-list-tests (Makefile.am): Likewise.
31603 * modules/dirname-tests (Makefile.am): Likewise.
31604 * modules/frexp-tests (Makefile.am): Likewise.
31605 * modules/isnanl-tests (Makefile.am): Likewise.
31606 * modules/linked-list-tests (Makefile.am): Likewise.
31607 * modules/linkedhash-list-tests (Makefile.am): Likewise.
31608 * modules/lock-tests (Makefile.am): Likewise.
31609 * modules/rbtree-list-tests (Makefile.am): Likewise.
31610 * modules/rbtree-oset-tests (Makefile.am): Likewise.
31611 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
31612 * modules/tls-tests (Makefile.am): Likewise.
31613 * modules/tsearch-tests (Makefile.am): Likewise.
31614 * modules/xvasprintf-tests (Makefile.am): Likewise.
31616 Fix fpurge for cygwin.
31617 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
31619 * modules/fpurge-tests (Depends-on): Clean up trash.
31621 2007-04-16 Simon Josefsson <simon@josefsson.org>
31623 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
31625 * m4/autobuild.m4: Re-indent.
31627 2007-04-13 Bruno Haible <bruno@clisp.org>
31629 * modules/fpurge-tests: New file.
31630 * tests/test-fpurge.c: New file.
31632 * modules/fpurge: New file.
31633 * lib/fpurge.h: New file.
31634 * lib/fpurge.c: New file.
31635 * m4/fpurge.m4: New file.
31637 2007-04-13 Bruno Haible <bruno@clisp.org>
31639 * modules/fbufmode-tests: New file.
31640 * tests/test-fbufmode.c: New file.
31642 * modules/fbufmode: New file.
31643 * lib/fbufmode.h: New file.
31644 * lib/fbufmode.c: New file.
31645 * m4/fbufmode.m4: New file.
31647 2007-04-13 Bruno Haible <bruno@clisp.org>
31649 * modules/fwritable-tests: New file.
31650 * tests/test-fwritable.c: New file.
31652 * modules/fwritable: New file.
31653 * lib/fwritable.h: New file.
31654 * lib/fwritable.c: New file.
31655 * m4/fwritable.m4: New file.
31657 2007-04-13 Bruno Haible <bruno@clisp.org>
31659 * modules/freadable-tests: New file.
31660 * tests/test-freadable.c: New file.
31662 * modules/freadable: New file.
31663 * lib/freadable.h: New file.
31664 * lib/freadable.c: New file.
31665 * m4/freadable.m4: New file.
31667 2007-04-13 Bruno Haible <bruno@clisp.org>
31669 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
31672 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
31674 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
31675 gzip bootstrap.conf to avoid dragging in i18n machinery.
31676 (gnulib_tool_option): Use it.
31678 2007-04-13 Bruno Haible <bruno@clisp.org>
31680 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
31682 * tests/test-vasprintf-posix.c (test_function): Likewise.
31683 * tests/test-snprintf-posix.h (test_function): Likewise.
31684 * tests/test-sprintf-posix.h (test_function): Likewise.
31685 * tests/test-fprintf-posix.h (test_function): Likewise.
31686 * tests/test-printf-posix.h (test_function): Likewise.
31687 * tests/test-fprintf-posix.out: Likewise.
31689 2007-04-13 Bruno Haible <bruno@clisp.org>
31691 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
31692 * modules/tls-tests (configure.ac): Likewise.
31693 Reported by Arto C. Nirkko <anirkko@insel.ch>.
31695 2007-04-13 Bruno Haible <bruno@clisp.org>
31697 * lib/tls.c (glthread_tls_get): Fix return type.
31698 Patch by Arto C. Nirkko <anirkko@insel.ch>.
31700 2007-04-12 Eric Blake <ebb9@byu.net>
31702 * modules/gettime (Depends-on): Remove gettime.
31703 Reported by Dmitry V. Levin.
31705 2007-04-12 Bruno Haible <bruno@clisp.org>
31707 * modules/fflush (Include): Mention <stdio.h>.
31708 * modules/strtoimax (Include): Mention <inttypes.h>.
31709 * modules/strtoumax (Include): Likewise.
31711 2007-04-12 Eric Blake <ebb9@byu.net>
31713 * .cvsignore: New file.
31714 * .gitignore: Likewise.
31716 2007-04-12 Bruno Haible <bruno@clisp.org>
31718 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
31719 not before, since $(LDADD) often contains libgnu.a.
31720 * modules/striconv-tests (test_striconv_LDADD): Likewise.
31721 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
31722 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
31725 2007-04-12 Eric Blake <ebb9@byu.net>
31727 Work around glibc's failure to flush stdin on fclose.
31728 * lib/closein.c (close_stdin): Flush stdin before closing.
31730 Work around glibc's failure to reset seekable stdin on exit.
31731 * modules/closein: New module.
31732 * lib/closein.c: New file.
31733 * lib/closein.h: Likewise.
31734 * m4/closein.m4: Likewise.
31735 * MODULES.html.sh (File stream based Input/Output): Document it.
31737 2007-04-12 Simon Josefsson <simon@josefsson.org>
31739 * gnulib-tool: Rename generated 'autobuild' script to
31740 'do-autobuild' in --create-megatestdir output.
31742 * doc/gnulib.texi (Build robot for gnulib): Fix.
31744 2007-04-12 Simon Josefsson <simon@josefsson.org>
31746 * modules/sysexits (Depends-on): Add absolute-header.
31748 2007-04-12 Eric Blake <ebb9@byu.net>
31750 No need to preserve errno on success.
31751 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
31752 Reported by Bruno Haible.
31754 2007-04-12 Simon Josefsson <simon@josefsson.org>
31756 * MODULES.html.sh (Support for maintaining and releasing
31757 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
31759 2007-04-12 Simon Josefsson <simon@josefsson.org>
31761 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
31763 2007-04-12 Simon Josefsson <simon@josefsson.org>
31765 * modules/autobuild: New module.
31767 * m4/autobuild.m4: New file.
31769 2007-04-11 Bruno Haible <bruno@clisp.org>
31771 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
31772 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
31773 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
31774 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
31775 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31776 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31777 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31778 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31779 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31780 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31781 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
31782 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31783 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31784 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
31785 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31786 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31787 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
31788 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31789 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31790 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
31791 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31792 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31793 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
31794 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31795 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31796 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
31797 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
31798 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
31799 Reported by Eric Blake.
31801 2007-04-11 Bruno Haible <bruno@clisp.org>
31803 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
31805 2007-04-10 Bruno Haible <bruno@clisp.org>
31807 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
31808 for NaN and Infinity. Needed on FreeBSD 6.1.
31809 * tests/test-vasnprintf-posix.c (test_function): Undo last change
31810 regarding results for "%010a" of Infinity and NaN.
31811 * tests/test-vasprintf-posix.c (test_function): Likewise.
31812 * tests/test-snprintf-posix.h (test_function): Likewise.
31813 * tests/test-sprintf-posix.h (test_function): Likewise.
31814 * tests/test-fprintf-posix.h (test_function): Likewise.
31815 * tests/test-printf-posix.h (test_function): Likewise.
31816 * tests/test-fprintf-posix.out: Likewise.
31818 2007-04-10 Bruno Haible <bruno@clisp.org>
31820 * modules/locale-tests: New file.
31821 * tests/test-locale.c: New file.
31823 * modules/locale: New file.
31824 * lib/locale_.h: New file.
31825 * m4/locale_h.m4: New file.
31827 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
31828 Bruno Haible <bruno@clisp.org>
31830 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
31831 be determined, test for availability of the copysignf, copysign,
31832 copysignl functions.
31833 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
31834 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
31835 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
31837 2007-04-09 Eric Blake <ebb9@byu.net>
31839 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
31840 * modules/stdio (Makefile.am): Support fflush.
31841 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31842 * modules/fflush: New file.
31843 * lib/fflush.c: Likewise.
31844 * m4/fflush.m4: Likewise.
31845 * modules/fflush-tests: New test.
31846 * tests/test-fflush.c: Likewise.
31847 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
31849 2007-04-06 Bruno Haible <bruno@clisp.org>
31851 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
31852 (VASNPRINTF): Use signbit for faster determination whether to print a
31854 * modules/vasnprintf (Files): Remove lib/float+.h.
31855 * modules/fprintf-posix (Depends-on): Add signbit.
31856 * modules/snprintf-posix (Depends-on): Likewise.
31857 * modules/sprintf-posix (Depends-on): Likewise.
31858 * modules/vasnprintf-posix (Depends-on): Likewise.
31859 * modules/vasprintf-posix (Depends-on): Likewise.
31860 * modules/vfprintf-posix (Depends-on): Likewise.
31861 * modules/vsnprintf-posix (Depends-on): Likewise.
31862 * modules/vsprintf-posix (Depends-on): Likewise.
31864 2007-04-06 Bruno Haible <bruno@clisp.org>
31866 * tests/test-frexp.c (main): Test also the sign bit of zero results.
31867 * tests/test-frexpl.c (main): Likewise.
31868 * tests/test-ldexpl.c (main): Likewise.
31869 * modules/frexp-tests (Depends-on): Add signbit.
31870 * modules/frexpl-tests (Depdends-on): Likewise.
31871 * modules/ldexpl-tests (Depdends-on): Likewise.
31873 2007-04-06 Bruno Haible <bruno@clisp.org>
31875 * modules/signbit-tests: New file.
31876 * tests/test-signbit.c: New file.
31878 * modules/signbit: New file.
31879 * lib/signbitf.c: New file.
31880 * lib/signbitd.c: New file.
31881 * lib/signbitl.c: New file.
31882 * m4/signbit.m4: New file.
31883 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
31884 (signbit): New macro.
31885 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
31887 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
31888 REPLACE_FREXPL into math.h.
31890 2007-04-06 Bruno Haible <bruno@clisp.org>
31892 * modules/isnanf-nolibm-tests: New file.
31893 * tests/test-isnanf.c: New file.
31895 * modules/isnanf-nolibm: New file.
31896 * lib/isnanf.h: New file.
31897 * lib/isnanf.c: New file.
31898 * lib/isnan.c: Consider the USE_FLOAT macro.
31899 * m4/isnanf.m4: New file.
31901 2007-04-06 Bruno Haible <bruno@clisp.org>
31903 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
31904 (Link): New section.
31906 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
31908 2007-04-06 Bruno Haible <bruno@clisp.org>
31910 Assume the 'long double' type.
31911 * m4/longdouble.m4: Remove file.
31912 * config/srclist.txt: Don't mention longdouble.m4.
31913 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
31914 * lib/float+.h: Likewise.
31915 * lib/frexp.c: Likewise.
31916 * lib/printf-args.h: Likewise.
31917 * lib/printf-args.c: Likewise.
31918 * lib/printf-frexp.c: Likewise.
31919 * lib/printf-parse.c: Likewise.
31920 * lib/vasnprintf.c: Likewise.
31921 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
31922 * m4/intl.m4: Likewise.
31923 * m4/isnanl.m4: Likewise.
31924 * m4/printf.m4: Likewise.
31925 * m4/printf-frexpl.m4: Likewise.
31926 * m4/vasnprintf.m4: Likewise.
31927 * modules/allocsa (Files): Remove m4/longdouble.m4.
31928 * modules/gettext (Files): Likewise.
31929 * modules/relocatable-prog-wrapper (Files): Likewise.
31930 * modules/vasnprintf (Files): Likewise.
31931 * modules/isnanl (Files): Likewise.
31932 (Include): Simplify.
31933 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
31934 (Include): Simplify.
31935 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
31936 (Include): Simplify.
31937 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
31938 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31939 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
31940 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31941 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
31942 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31943 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
31944 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31945 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
31946 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31947 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
31948 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
31949 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
31950 * tests/test-isnanl.c: Likewise.
31951 * tests/test-snprintf-posix.h: Likewise.
31952 * tests/test-sprintf-posix.h: Likewise.
31953 * tests/test-vasnprintf-posix.c: Likewise.
31954 * tests/test-vasnprintf-posix2.c: Likewise.
31955 * tests/test-vasprintf-posix.c: Likewise.
31957 2007-04-06 Bruno Haible <bruno@clisp.org>
31959 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
31960 * lib/math_.h [__DECC]: Include the overridden include file through
31961 #include_next, outside the double-inclusion guard.
31962 * lib/stdio_.h [__DECC]: Likewise.
31963 * lib/stdlib_.h [__DECC]: Likewise.
31964 * lib/string_.h [__DECC]: Likewise.
31965 * lib/time_.h [__DECC]: Likewise.
31966 * lib/wchar_.h [__DECC]: Likewise.
31967 * lib/wctype_.h [__DECC]: Likewise.
31968 * lib/inttypes_.h [__DECC]: Likewise.
31969 Reported by Albert Chin <china@thewrittenword.com> in
31970 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
31972 2007-04-04 Eric Blake <ebb9@byu.net>
31974 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
31977 2007-04-04 Bruno Haible <bruno@clisp.org>
31979 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
31980 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
31982 2007-04-04 Bruno Haible <bruno@clisp.org>
31984 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
31985 results for "%010a" of Infinity and NaN.
31986 * tests/test-vasprintf-posix.c (test_function): Likewise.
31987 * tests/test-snprintf-posix.h (test_function): Likewise.
31988 * tests/test-sprintf-posix.h (test_function): Likewise.
31989 * tests/test-fprintf-posix.h (test_function): Remove these tests.
31990 * tests/test-printf-posix.h (test_function): Likewise.
31991 * tests/test-fprintf-posix.out: Update.
31992 Needed for FreeBSD 6.1.
31994 2007-04-04 Bruno Haible <bruno@clisp.org>
31996 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
31997 directly used by the gnulib modules nor by gnulib-tool.
31999 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
32001 * DEPENDENCIES: Give overall description of version dependency
32002 desirability. Use more-typical names for apps.
32003 Add shell, coreutils, diffutils, grep, tar, gzip.
32005 2007-04-04 Simon Josefsson <simon@josefsson.org>
32007 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
32009 2007-04-04 Karl Berry <karl@gnu.org>
32011 * MODULES.html.sh (func_module): missing '.
32013 2007-04-03 Bruno Haible <bruno@clisp.org>
32015 * modules/argmatch-tests (Makefile.am): New variable
32016 test_argmatch_LDADD.
32017 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
32018 * modules/array-list-tests (Makefile.am): New variable
32019 test_array_list_LDADD.
32020 * modules/array-oset-tests (Makefile.am): New variable
32021 test_array_oset_LDADD.
32022 * modules/avltree-list-tests (Makefile.am): New variable
32023 test_avltree_list_LDADD.
32024 * modules/avltree-oset-tests (Makefile.am): New variable
32025 test_avltree_oset_LDADD.
32026 * modules/avltreehash-list-tests (Makefile.am): New variable
32027 test_avltreehash_list_LDADD.
32028 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
32029 test_canonicalize_lgpl_LDADD.
32030 * modules/carray-list-tests (Makefile.am): New variable
32031 test_carray_list_LDADD.
32032 * modules/dirname-tests (Makefile.am): New variable
32033 test_dirname_LDADD.
32034 * modules/linked-list-tests (Makefile.am): New variable
32035 test_linked_list_LDADD.
32036 * modules/linkedhash-list-tests (Makefile.am): New variable
32037 test_linkedhash_list_LDADD.
32038 * modules/rbtree-list-tests (Makefile.am): New variable
32039 test_rbtree_list_LDADD.
32040 * modules/rbtree-oset-tests (Makefile.am): New variable
32041 test_rbtree_oset_LDADD.
32042 * modules/rbtreehash-list-tests (Makefile.am): New variable
32043 test_rbtreehash_list_LDADD.
32044 * modules/xvasprintf-tests (Makefile.am): New variable
32045 test_xvasprintf_LDADD.
32046 Reported by Eric Blake.
32048 2007-04-03 Eric Blake <ebb9@byu.net>
32050 * DEPENDENCIES: Weaken m4 requirements.
32052 2007-04-03 Bruno Haible <bruno@clisp.org>
32054 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
32055 * modules/isnanl-tests (configure.ac): Likewise.
32057 2007-04-03 Ben Pfaff <blp@gnu.org>
32059 * modules/iconv_open: Add $(srcdir)/ to source directory
32060 references in Makefile fragments that call gperf, to fix VPATH
32063 2007-04-03 Bruno Haible <bruno@clisp.org>
32065 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
32066 * lib/ldexpl.c: Undo last change.
32068 2007-04-03 Bruno Haible <bruno@clisp.org>
32070 * modules/printf-frexpl (Depends-on): Undo last change.
32071 (Files): Add m4/ldexpl.m4.
32073 2007-04-03 Bruno Haible <bruno@clisp.org>
32075 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
32076 * modules/isnanl (Link): New section.
32078 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
32079 * modules/frexp (Link): New section.
32081 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
32082 * modules/frexpl (Link): New section.
32084 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
32085 * modules/ldexpl (Link): New section.
32087 2007-04-03 Bruno Haible <bruno@clisp.org>
32089 * modules/TEMPLATE-EXTENDED: New file.
32090 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
32092 2007-04-03 Bruno Haible <bruno@clisp.org>
32094 * DEPENDENCIES: New file.
32095 Suggested by Simon Josefsson.
32097 2007-04-03 Bruno Haible <bruno@clisp.org>
32099 * doc/gnulib.texi: Escape @.
32101 2007-04-03 James Youngman <jay@gnu.org>
32102 and Paul Eggert <eggert@cs.ucla.edu>
32104 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
32105 birthtime on all systems that have birthtime, not just those which
32106 use st_birthtimensec rather than st_birthtim. Putting zero in
32107 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
32108 that the birth time is not available for files on an NFS mount.
32110 2007-04-03 Simon Josefsson <simon@josefsson.org>
32112 * modules/memxor: Move back from crypto/, suggested by Bruno.
32113 * modules/crypto/hmac-sha1: Fix memxor dependency.
32115 * modules/crypto/gc: Moved from ../.
32117 2007-04-02 Eric Blake <ebb9@byu.net>
32119 * lib/ldexpl.c (includes): Avoid libm.
32121 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
32123 2007-04-02 Bruno Haible <bruno@clisp.org>
32125 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
32128 2007-04-02 Bruno Haible <bruno@clisp.org>
32130 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
32131 x86 or x86_64 platforms running MacOS X.
32132 Reported by Ryan Schmidt <@ryandesign.com>.
32134 2007-04-02 Bruno Haible <bruno@clisp.org>
32136 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
32139 2007-04-01 Simon Josefsson <simon@josefsson.org>
32141 * modules/crypto/arcfour: Moved from ../.
32142 * modules/crypto/arcfour-tests: Moved from ../.
32143 * modules/crypto/arctwo: Moved from ../.
32144 * modules/crypto/arctwo-tests: Moved from ../.
32145 * modules/crypto/des: Moved from ../.
32146 * modules/crypto/des-tests: Moved from ../.
32147 * modules/crypto/gc-arcfour: Moved from ../.
32148 * modules/crypto/gc-arcfour-tests: Moved from ../.
32149 * modules/crypto/gc-arctwo: Moved from ../.
32150 * modules/crypto/gc-arctwo-tests: Moved from ../.
32151 * modules/crypto/gc-des: Moved from ../.
32152 * modules/crypto/gc-des-tests: Moved from ../.
32153 * modules/crypto/gc-hmac-md5: Moved from ../.
32154 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
32155 * modules/crypto/gc-hmac-sha1: Moved from ../.
32156 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
32157 * modules/crypto/gc-md2: Moved from ../.
32158 * modules/crypto/gc-md2-tests: Moved from ../.
32159 * modules/crypto/gc-md4: Moved from ../.
32160 * modules/crypto/gc-md4-tests: Moved from ../.
32161 * modules/crypto/gc-md5: Moved from ../.
32162 * modules/crypto/gc-md5-tests: Moved from ../.
32163 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
32164 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
32165 * modules/crypto/gc-random: Moved from ../.
32166 * modules/crypto/gc-rijndael: Moved from ../.
32167 * modules/crypto/gc-rijndael-tests: Moved from ../.
32168 * modules/crypto/gc-sha1: Moved from ../.
32169 * modules/crypto/gc-sha1-tests: Moved from ../.
32170 * modules/crypto/gc-tests: Moved from ../.
32171 * modules/crypto/hmac-md5: Moved from ../.
32172 * modules/crypto/hmac-md5-tests: Moved from ../.
32173 * modules/crypto/hmac-sha1: Moved from ../.
32174 * modules/crypto/hmac-sha1-tests: Moved from ../.
32175 * modules/crypto/md2: Moved from ../.
32176 * modules/crypto/md2-tests: Moved from ../.
32177 * modules/crypto/md4: Moved from ../.
32178 * modules/crypto/md4-tests: Moved from ../.
32179 * modules/crypto/md5: Moved from ../.
32180 * modules/crypto/md5-tests: Moved from ../.
32181 * modules/crypto/memxor: Moved from ../.
32182 * modules/crypto/rijndael: Moved from ../.
32183 * modules/crypto/rijndael-tests: Moved from ../.
32184 * modules/crypto/sha1: Moved from ../.
32186 2007-03-30 James Youngman <jay@gnu.org>
32188 * tests/test-stat-time.c (prepare_test): use chmod() rather than
32189 rename() to change the ctime of a file (because ctime is unaffected
32190 by rename on jfs2 on AIX 5.1).
32191 (main): Start by doing cleanup, in case a previous run failed leaving
32194 2007-03-31 Bruno Haible <bruno@clisp.org>
32196 Support old proprietary implementations of iconv.
32197 * modules/iconv_open: New file.
32198 * lib/iconv_.h: New file.
32199 * m4/iconv_h.m4: New file.
32200 * lib/iconv_open.c: New file.
32201 * lib/iconv_open-aix.gperf: New file.
32202 * lib/iconv_open-hpux.gperf: New file.
32203 * lib/iconv_open-irix.gperf: New file.
32204 * lib/iconv_open-osf.gperf: New file.
32205 * m4/iconv_open.m4: New file.
32206 * modules/linebreak (Depends-on): Add iconv_open.
32207 * modules/striconv (Depends-on): Likewise.
32208 * modules/striconveh (Depends-on): Likewise.
32209 * modules/unicodeio (Depends-on): Likewise.
32210 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
32212 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
32213 conversion if cd is (iconv_t)(-1).
32214 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
32217 2007-03-31 Bruno Haible <bruno@clisp.org>
32219 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32220 work on Solaris either. Protect also second use of "autodetect_jp".
32222 2007-03-31 Bruno Haible <bruno@clisp.org>
32224 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
32225 the function is not present.
32227 2007-03-31 Bruno Haible <bruno@clisp.org>
32229 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
32230 the function is not present.
32232 2007-03-31 Bruno Haible <bruno@clisp.org>
32234 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
32235 a bug in HP-UX iconv_open().
32237 2007-03-31 Bruno Haible <bruno@clisp.org>
32239 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
32240 (Mathematics <math.h>): New section, add fpieee.
32241 (Input/output <stdio.h>): Add fseterr.
32242 (Mathematics <math.h>): New section, add printf-frexp.
32243 (Container data structures): Add sublist.
32244 (Core language properties): Add fpucw, inline.
32245 (Functions for greatest-width integer types <inttypes.h>): Add
32246 imaxabs, imaxdiv, inttypes.
32247 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
32248 isnanl-nolibm, ldexp.
32249 (Mathematics <math.h>): New section, add printf-frexpl.
32250 (Support for systems lacking POSIX:2001): Add fprintf-posix,
32251 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
32252 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
32253 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
32254 (Unicode string functions): Add unistr/u*-mbtoucr.
32255 (Java): Add javacomp-script, javaexec-script.
32256 (C#): Add csharpcomp-script, csharpexec-script.
32257 (Support for building libraries and executables): Add havelib,
32259 (Support for maintaining and releasing projects): Renamed from
32260 'Support for maintaining and release projects'. Add announce-gen.
32262 2007-03-31 Bruno Haible <bruno@clisp.org>
32264 * README: Talk primarily about git.
32265 (git and CVS): Renamed from CVS.
32266 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
32267 gnulib is available through git.
32268 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
32270 2007-03-30 Bruno Haible <bruno@clisp.org>
32272 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
32273 * lib/poll_.h: Likewise.
32274 * lib/stat_.h: Likewise.
32275 * lib/sys_time_.h: Likewise.
32276 * lib/sysexit_.h: Likewise.
32277 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
32278 * lib/stdbool_.h: Likewise.
32279 * lib/byteswap_.h: Add double-inclusion guard.
32281 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
32283 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
32285 2007-03-30 Karl Berry <karl@gnu.org>
32287 * config/srclist-update: double space after USA in the license
32288 substitution, since that's how it's usually (?) written.
32290 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
32292 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
32293 reported by Bruno Haible.
32295 2007-03-29 Bruno Haible <bruno@clisp.org>
32297 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
32298 a bug in AIX iconv().
32300 2007-03-29 Bruno Haible <bruno@clisp.org>
32302 * modules/ldexpl-tests: New file.
32303 * tests/test-ldexpl.c: New file.
32305 2007-03-29 Bruno Haible <bruno@clisp.org>
32307 * lib/ldexpl.c: Include fpucw.h.
32308 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
32310 * modules/ldexpl (Depends-on): Add fpucw.
32312 2007-03-29 Bruno Haible <bruno@clisp.org>
32314 * modules/ldexpl: New file.
32315 * m4/ldexpl.m4: New file.
32316 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
32318 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
32320 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
32322 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
32323 gl_FUNC_LDEXPL_WORKS.
32324 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
32325 * modules/mathl (Files): Remove lib/ldexpl.c.
32326 (Depends-on): Add ldexpl.
32328 2007-03-29 Bruno Haible <bruno@clisp.org>
32330 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
32332 2007-03-29 Bruno Haible <bruno@clisp.org>
32334 * tests/test-striconveh.c (main): Don't assume that a direct conversion
32335 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
32336 and possibly also HP-UX.
32337 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
32338 work on AIX, IRIX, HP-UX, OSF/1.
32339 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32340 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32341 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32342 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32343 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
32344 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32346 2007-03-29 Bruno Haible <bruno@clisp.org>
32348 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
32350 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
32352 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
32353 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
32355 2007-03-29 Eric Blake <ebb9@byu.net>
32357 * lib/acl-internal.h: Remove redundant include.
32358 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
32359 Cygwin when a file is locked.
32361 2007-03-29 Bruno Haible <bruno@clisp.org>
32363 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
32365 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
32367 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
32369 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
32370 try to remove a parent directory if the child couldn't be removed
32371 (except for the first rmdir, which could fail because the child
32372 doesn't exist). Problem reported by Jeff Blaine in
32373 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
32375 2007-03-28 Bruno Haible <bruno@clisp.org>
32377 * lib/striconveh.c (utf8conv_carefully): New function.
32378 (mem_cd_iconveh_internal): Invoke it.
32380 2007-03-28 Bruno Haible <bruno@clisp.org>
32382 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
32383 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
32385 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
32386 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
32389 2007-03-28 Bruno Haible <bruno@clisp.org>
32391 * modules/unistr/u8-mbtoucr: New file.
32392 * lib/unistr/u8-mbtoucr.c: New file.
32393 * modules/unistr/u16-mbtoucr: New file.
32394 * lib/unistr/u16-mbtoucr.c: New file.
32395 * modules/unistr/u16-mbtoucr: New file.
32396 * lib/unistr/u16-mbtoucr.c: New file.
32397 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
32399 2007-03-27 Simon Josefsson <simon@josefsson.org>
32400 Bruno Haible <bruno@clisp.org>
32402 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
32403 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
32404 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
32406 * m4/stdio_h.m4: Add stubs for vasprintf too.
32408 * modules/stdio: Support vasprintf in sed command.
32410 * modules/vasprintf: Depend on stdio for prototypes. Remove
32411 vasprintf.h. Add stdio module indicator.
32413 * lib/stdio_.h: Declare asprintf and vasprintf, based on
32416 * lib/vasprintf.h: File removed.
32418 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
32419 * lib/vasprintf.c: Ditto.
32420 * lib/xvasprintf.c: Ditto.
32421 * tests/test-vasprintf-posix.c: Ditto.
32422 * tests/test-vasprintf.c: Ditto.
32424 2007-03-27 Bruno Haible <bruno@clisp.org>
32426 Make vasnprintf multithread-safe.
32427 * lib/vasnprintf.c (decimal_point_char): New function.
32428 (VASNPRINTF): Use it.
32429 Suggested by Simon Josefsson.
32431 2007-03-27 Eric Blake <ebb9@byu.net>
32433 Support sub-second birthtime on cygwin.
32434 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
32435 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
32436 (get_stat_birthtime): Also work with st_birthtim.
32438 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
32440 * lib/stat-time.h (USE_BIRTHTIME): Remove.
32441 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
32442 (get_stat_birthtime_ns): Do not try to use "spare" fields.
32443 (get_stat_birthtime_ns): Simplify compile-time tests.
32444 (get_stat_birthtime): Change the API to look like
32445 get_stat_mtime etc., except return a negative tv_nsec on error.
32446 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
32447 Don't check for "spare" fields.
32448 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
32449 or for struct stat.st_birthtime, as these tests aren't used.
32450 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
32452 2007-03-27 Bruno Haible <bruno@clisp.org>
32454 * lib/stat-time.h: Include <sys/stat.h>.
32456 2007-03-27 James Youngman <jay@gnu.org>
32458 * lib/stat-time.h (get_stat_birthtime): New function for
32459 retrieving st_birthtime as provided by UFS2 (hence *BSD).
32460 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
32462 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
32463 * modules/stat-time-test: New file.
32464 * tests/test-stat-time.c: New test, devised by Bruno Haible.
32466 2007-03-26 Bruno Haible <bruno@clisp.org>
32468 Better support of signalling NaNs.
32469 * lib/atanl.c: Include isnanl.h.
32470 (atanl): Perform test for NaN at the beginning of the function and
32471 through a call to isnanl.
32472 * lib/cosl.c: Include isnanl.h.
32473 (cosl): Perform test for NaN at the beginning of the function and
32474 through a call to isnanl.
32475 * lib/ldexpl.c: Include isnanl.h.
32476 (ldexpl): Perform test for NaN through a call to isnanl.
32477 * lib/logl.c: Include isnanl.h.
32478 (logl): Perform test for NaN at the beginning of the function and
32479 through a call to isnanl.
32480 * lib/sinl.c: Include isnanl.h.
32481 (sinl): Perform test for NaN at the beginning of the function and
32482 through a call to isnanl.
32483 * lib/sqrtl.c: Include isnanl.h.
32484 (sqrtl): Perform test for NaN at the beginning of the function and
32485 through a call to isnanl.
32486 * lib/tanl.c: Include isnanl.h.
32487 (tanl): Perform test for NaN at the beginning of the function and
32488 through a call to isnanl.
32489 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
32490 * modules/mathl (Depends-on): Add isnanl.
32492 2007-03-26 Eric Blake <ebb9@byu.net>
32494 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
32495 regression in logic sense of previous patch.
32497 2007-03-26 Bruno Haible <bruno@clisp.org>
32499 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
32500 unportable shell command "if ! ...".
32501 Reported by Ralf Wildenhues.
32503 2007-03-25 Bruno Haible <bruno@clisp.org>
32505 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
32506 <sysexits.h> file, and only add EX_CONFIG.
32507 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
32508 absolute file name and whether it is sufficient. Substitute also
32509 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
32510 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
32511 ABSOLUTE_SYSEXITS_H into sysexits.h.
32513 2007-03-25 Bruno Haible <bruno@clisp.org>
32515 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
32518 2007-03-25 Bruno Haible <bruno@clisp.org>
32520 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
32521 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
32523 2007-03-25 Bruno Haible <bruno@clisp.org>
32525 * lib/vasnprintf.c: Include langinfo.h.
32526 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
32528 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
32529 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
32530 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32531 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32532 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32533 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32534 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32535 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
32536 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32537 Reported by Simon Josefsson.
32539 2007-03-25 Bruno Haible <bruno@clisp.org>
32541 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
32542 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
32543 * modules/vasnprintf (Depends-on): Add stdint.
32545 2007-03-25 Bruno Haible <bruno@clisp.org>
32547 * modules/fpieee: New file.
32548 * m4/fpieee.m4: New file.
32549 * modules/isnan-nolibm (Depends-on): Add fpieee.
32550 * modules/isnanl-nolibm (Depends-on): Add fpieee.
32551 * modules/isnanl (Depends-on): Add fpieee.
32553 2007-03-25 Bruno Haible <bruno@clisp.org>
32555 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
32557 2007-03-25 Bruno Haible <bruno@clisp.org>
32559 Avoid test failures on IRIX 6.5.
32560 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
32562 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
32566 2007-03-25 Bruno Haible <bruno@clisp.org>
32568 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
32569 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
32570 exists but doesn't work.
32571 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
32572 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
32573 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
32574 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
32576 2007-03-25 Bruno Haible <bruno@clisp.org>
32578 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
32579 returns inf. Needed on IRIX 6.5.
32581 2007-03-25 Bruno Haible <bruno@clisp.org>
32583 * tests/test-frexpl.c: Include isnanl-nolibm.h.
32584 (main): Use isnanl instead of x != x idiom.
32585 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
32587 * tests/test-frexp.c: Include isnan.h.
32588 (main): Use isnan instead of x != x idiom.
32589 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
32591 2007-03-25 Bruno Haible <bruno@clisp.org>
32593 * tests/test-frexp.c (NaN): New function/macro.
32594 (main): Use it instead of 0.0 / 0.0.
32595 * tests/test-isnan.c (NaN): New function/macro.
32596 (main): Use it instead of 0.0 / 0.0.
32597 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
32598 (test_function): Use it instead of 0.0 / 0.0.
32599 * tests/test-vasprintf-posix.c (NaN): New function/macro.
32600 (test_function): Use it instead of 0.0 / 0.0.
32601 * tests/test-snprintf-posix.h (NaN): New function/macro.
32602 (test_function): Use it instead of 0.0 / 0.0.
32603 * tests/test-sprintf-posix.h (NaN): New function/macro.
32604 (test_function): Use it instead of 0.0 / 0.0.
32605 * tests/test-fprintf-posix.h (NaN): New function/macro.
32606 (test_function): Use it instead of 0.0 / 0.0.
32607 * tests/test-printf-posix.h (NaN): New function/macro.
32608 (test_function): Use it instead of 0.0 / 0.0.
32610 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
32612 2007-03-25 Bruno Haible <bruno@clisp.org>
32614 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
32616 2007-03-25 Bruno Haible <bruno@clisp.org>
32618 * lib/regexec.c (merge_state_with_log): Make static.
32620 2007-03-25 Bruno Haible <bruno@clisp.org>
32622 * lib/trigl.c (kernel_rem_pio2): Make static.
32624 2007-03-25 Bruno Haible <bruno@clisp.org>
32626 * lib/sincosl.c (sincosl_table): Make static.
32628 2007-03-25 Bruno Haible <bruno@clisp.org>
32630 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
32631 if the compiler does not support C99.
32633 2007-03-25 Bruno Haible <bruno@clisp.org>
32635 * modules/time (Makefile.am): Ensure all rule action lines start with a
32638 2007-03-24 Bruno Haible <bruno@clisp.org>
32640 * modules/tsearch-tests: New file.
32641 * tests/test-tsearch.sh: New file.
32642 * tests/test-tsearch.c: New file, mostly copied from glibc.
32644 * modules/search-tests: New file.
32645 * tests/test-search.c: New file.
32647 * modules/search: New file.
32648 * lib/search_.h: New file, incorporating lib/tsearch.h.
32649 * m4/search_h.m4: New file.
32650 * lib/tsearch.h: Remove file.
32651 * lib/tsearch.c: Include search.h instead of tsearch.h.
32652 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
32654 * modules/tsearch (Files): Remove lib/tsearch.h.
32655 (Depends-on): Add search.
32656 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
32657 (Include): Change tsearch.h into search.h.
32659 2007-03-24 Bruno Haible <bruno@clisp.org>
32661 * modules/fpucw: New file.
32662 * lib/fpucw.h: New file.
32663 * lib/frexp.c: Include fpucw.h.
32664 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
32666 * lib/printf-frexp.c: Include fpucw.h.
32667 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
32669 * lib/vasnprintf.c: Include fpucw.h.
32670 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
32671 'long double' calculations.
32672 * tests/test-frexpl.c: Include fpucw.h.
32673 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
32674 * tests/test-printf-frexpl.c: Include fpucw.h.
32675 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
32676 * modules/frexpl (Depends-on): Add fpucw.
32677 * modules/printf-frexpl (Depends-on): Likewise.
32678 * modules/fprintf-posix (Depends-on): Likewise.
32679 * modules/snprintf-posix (Depends-on): Likewise.
32680 * modules/sprintf-posix (Depends-on): Likewise.
32681 * modules/vasnprintf-posix (Depends-on): Likewise.
32682 * modules/vasprintf-posix (Depends-on): Likewise.
32683 * modules/vfprintf-posix (Depends-on): Likewise.
32684 * modules/vsnprintf-posix (Depends-on): Likewise.
32685 * modules/vsprintf-posix (Depends-on): Likewise.
32686 * modules/frexpl-tests (Depends-on): Likewise.
32687 * modules/printf-frexpl-tests (Depends-on): Likewise.
32689 2007-03-24 Bruno Haible <bruno@clisp.org>
32691 * lib/float+.h: New file.
32692 * lib/isnan.c: Include float+.h.
32694 (FUNC): Compare only SIZE bytes of the value.
32695 * lib/vasnprintf.c: Include float+.h.
32696 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
32697 SIZEOF_LDBL or SIZEOF_DBL bytes.
32698 * modules/isnan-nolibm (Files): Add lib/float+.h.
32699 * modules/isnanl-nolibm (Files): Add lib/float+.h.
32700 * modules/isnanl (Files): Add lib/float+.h.
32701 * modules/vasnprintf (Files): Add lib/float+.h.
32703 2007-03-24 Bruno Haible <bruno@clisp.org>
32705 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
32706 include isnanl-nolibm.h.
32708 2007-03-24 Bruno Haible <bruno@clisp.org>
32710 * tests/test-read-file.c (main): Don't produce spurious output for
32711 expected situations. Make the test fail if it encountered unexpected
32714 2007-03-24 Bruno Haible <bruno@clisp.org>
32716 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
32717 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
32719 2007-03-24 Bruno Haible <bruno@clisp.org>
32721 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
32723 2007-03-24 Bruno Haible <bruno@clisp.org>
32725 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
32726 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
32728 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
32729 * modules/utf8-ucs4: Turn into a symbolic link to module
32732 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
32734 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
32735 unistr/u8-mbtouc-unsafe.
32737 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
32738 * modules/utf16-ucs4: Turn into a symbolic link to module
32741 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
32743 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
32744 unistr/u16-mbtouc-unsafe.
32746 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
32747 * modules/ucs4-utf8: Turn into a symbolic link to module
32750 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
32751 * modules/ucs4-utf16: Turn into a symbolic link to module
32754 2007-03-24 Bruno Haible <bruno@clisp.org>
32756 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
32757 Enable the function only if HAVE_INLINE.
32758 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
32759 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
32760 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
32761 Enable the function only if HAVE_INLINE.
32762 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
32763 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
32764 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
32765 Enable the function only if HAVE_INLINE.
32766 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
32767 Enable the function only if HAVE_INLINE.
32768 * modules/utf8-ucs4: Update.
32769 * modules/utf8-ucs4-unsafe: Update.
32770 * modules/utf16-ucs4: Update.
32771 * modules/utf16-ucs4-unsafe: Update.
32772 * modules/ucs4-utf8: Update.
32773 * modules/ucs4-utf16: Update.
32775 2007-03-24 Bruno Haible <bruno@clisp.org>
32777 * lib/utf8-ucs4.h: Remove file.
32778 * lib/utf8-ucs4-unsafe.h: Remove file.
32779 * lib/utf16-ucs4.h: Remove file.
32780 * lib/utf16-ucs4-unsafe.h: Remove file.
32781 * lib/ucs4-utf8.h: Remove file.
32782 * lib/ucs4-utf16.h: Remove file.
32783 * lib/unistr.h: Include their previous contents.
32784 * m4/utf-ucs4.m4: Remove file.
32785 * m4/ucs4-utf.m4: Remove file.
32786 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
32787 (Depends-on): Add unistr/base.
32788 (configure.ac): Remove gl_UTF_UCS4.
32789 (Makefile.am): Update.
32790 (Include): Change to unistr.h.
32791 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
32792 (Depends-on): Add unistr/base.
32793 (configure.ac): Remove gl_UTF_UCS4.
32794 (Makefile.am): Update.
32795 (Include): Change to unistr.h.
32796 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
32797 (Depends-on): Add unistr/base.
32798 (configure.ac): Remove gl_UTF_UCS4.
32799 (Makefile.am): Update.
32800 (Include): Change to unistr.h.
32801 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
32802 (Depends-on): Add unistr/base.
32803 (configure.ac): Remove gl_UTF_UCS4.
32804 (Makefile.am): Update.
32805 (Include): Change to unistr.h.
32806 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
32807 (Depends-on): Add unistr/base.
32808 (configure.ac): Remove gl_UCS4_UTF.
32809 (Makefile.am): Update.
32810 (Include): Change to unistr.h.
32811 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
32812 (Depends-on): Add unistr/base.
32813 (configure.ac): Remove gl_UCS4_UTF.
32814 (Makefile.am): Update.
32815 (Include): Change to unistr.h.
32816 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
32817 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
32818 utf8-ucs4-unsafe.h.
32819 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
32820 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
32821 utf16-ucs4-unsafe.h.
32822 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
32823 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
32824 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
32825 * lib/unistr/u8-strchr.c: Likewise.
32826 * lib/unistr/u8-strrchr.c: Likewise.
32827 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
32828 * lib/unistr/u16-strchr.c: Likewise.
32829 * lib/unistr/u16-strrchr.c: Likewise.
32830 * lib/striconveh.c: Update.
32831 * lib/linebreak.c: Update.
32833 2007-03-24 Bruno Haible <bruno@clisp.org>
32835 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
32836 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
32838 2007-03-22 Bruno Haible <bruno@clisp.org>
32840 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
32842 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
32844 * MODULES.html.sh (File system functions): New module write-any-file.
32845 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
32846 * m4/write-any-file.m4: New files.
32848 2007-03-23 Eric Blake <ebb9@byu.net>
32850 * gnulib-tool: Rearrange space-tab sequences, since some editors
32853 2007-03-23 Eric Blake <ebb9@byu.net>
32855 * lib/version-etc.c (version_etc_va): Update license wording to
32856 be more concise. Recommended by Richard Stallman.
32858 2007-03-22 Bruno Haible <bruno@clisp.org>
32860 * lib/poll.c (MSG_PEEK): New fallback definition.
32862 2007-03-22 Bruno Haible <bruno@clisp.org>
32864 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
32865 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
32867 Fixes a compilation error on BeOS.
32869 2007-03-22 Bruno Haible <bruno@clisp.org>
32871 * modules/frexpl-tests: New file.
32872 * tests/test-frexpl.c: New file.
32874 * modules/frexpl: New file.
32875 * m4/frexpl.m4: New file.
32876 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
32877 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
32878 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
32879 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
32880 (Depends-on): Add frexpl. Remove isnanl-nolibm.
32881 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
32883 2007-03-22 Bruno Haible <bruno@clisp.org>
32885 * lib/frexpl.c: Share code with lib/frexp.c.
32886 * modules/mathl (Files): Add lib/frexp.c.
32887 (Depends-on): Add isnanl-nolibm.
32889 2007-03-22 Bruno Haible <bruno@clisp.org>
32891 * modules/printf-frexp (Files): Add m4/frexp.m4.
32892 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
32893 only if the found frexp function actually works.
32895 2007-03-22 Bruno Haible <bruno@clisp.org>
32897 * lib/frexp.c: Remove older implementation that uses divisions.
32899 2007-03-21 Bruno Haible <bruno@clisp.org>
32901 * modules/frexp-tests: New file.
32902 * tests/test-frexp.c: New file.
32904 * modules/frexp: New file.
32905 * lib/frexp.c: New file.
32906 * m4/frexp.m4: New file.
32907 * lib/math_.h (frexp): New declaration.
32908 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
32910 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
32912 2007-03-21 Bruno Haible <bruno@clisp.org>
32914 * modules/isnanl-tests: New file.
32915 * tests/test-isnanl.c: New file.
32917 * modules/isnanl: New file.
32918 * lib/isnanl.h: New file.
32919 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
32920 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
32921 gl_FUNC_ISNANL_WORKS.
32922 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
32925 2007-03-21 Bruno Haible <bruno@clisp.org>
32927 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
32930 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
32931 * lib/vasnprintf.c: Update.
32932 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
32933 tests/test-isnanl.h, remove tests/test-isnanl.c.
32934 (Makefile.am): Update.
32935 * tests/test-isnanl-nolibm.c: New file.
32936 * tests/test-isnanl.h: New file.
32937 * tests/test-isnanl.c: Remove file.
32939 2007-03-21 Jim Meyering <jim@meyering.net>
32941 When trying to open ".", treat ESTALE like EACCES.
32942 * lib/savewd.c (savewd_save): Resort to forking not just upon
32943 failure with EACCES, but also when errno is ESTALE.
32945 2007-03-20 Bruno Haible <bruno@clisp.org>
32947 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
32948 Needed on AIX 5.1. Reported by Matthew Woehlke.
32950 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
32952 Suggestions by Bruno Haible:
32953 * lib/acl-internal.h: Include "gettext.h" rather than rolling
32955 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
32956 * modules/acl (Depends-on): Add gettext.
32958 2007-03-19 Bruno Haible <bruno@clisp.org>
32960 * modules/iconvme: Remove file.
32961 * lib/iconvme.h: Remove file.
32962 * lib/iconvme.c: Remove file.
32963 * m4/iconvme.m4: Remove file.
32965 2007-03-19 Bruno Haible <bruno@clisp.org>
32967 * doc/relocatable-maint.texi: Break long shell script line.
32968 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
32970 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
32972 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
32973 handle file_has_acl.
32974 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
32975 * lib/acl.c: Move header inclusions and related macro defns into
32976 lib/acl-internal.h.
32977 (S_ISLNK): Remove defn, since that's now done for us.
32978 (file_has_acl): Move to lib/file-has-acl.c.
32979 Call acl_trivial if available. This is the crucial part of the fix.
32980 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
32981 shared within the library. Rewrite a bit, partly to make it compatible
32982 with the GNU coding style.
32983 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
32984 Remove unnecessary double-quotes.
32985 Don't test for acl_to_text; the build will catch that.
32986 Replace acl_entries if it doesn't exist and it is needed.
32987 Check for -lsec and acl_trivial (as used on Solaris 10).
32988 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
32989 lib/file-has-acl.c.
32990 (Depends-on): Add sys_stat, for S_ISLNK.
32992 2007-03-19 Ben Pfaff <blp@gnu.org>
32994 * doc/gnulib.texi: Fix typos.
32995 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
32997 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
32999 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
33000 If size is zero here, buf must be zero.
33002 2007-03-19 Simon Josefsson <simon@josefsson.org>
33004 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
33007 2007-03-18 Bruno Haible <bruno@clisp.org>
33009 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
33010 Suggested by Eric Blake.
33012 2007-03-18 Ben Pfaff <blp@gnu.org>
33014 * doc/relocatable.texi: Recommend using as prefix a directory
33015 that does not exist and will never be created. Based on
33016 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
33019 2007-03-17 Bruno Haible <bruno@clisp.org>
33021 * lib/fchownat.c: Include lchown.h.
33023 2007-03-17 Bruno Haible <bruno@clisp.org>
33025 Fix endless loop when the given allocated size was > INT_MAX.
33026 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
33027 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
33028 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
33029 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
33030 * lib/sprintf.c (sprintf): Likewise.
33032 2007-03-17 Bruno Haible <bruno@clisp.org>
33034 * tests/test-argp-2.sh (func_compare): Output a context diff.
33036 2007-03-17 Bruno Haible <bruno@clisp.org>
33038 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
33039 locale's decimal-point character.
33041 2007-03-17 Bruno Haible <bruno@clisp.org>
33043 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
33044 before comparing it. Needed because on some platforms (e.g. x86) a
33045 'long double' occupies less bytes than sizeof (long double).
33047 2007-03-17 Bruno Haible <bruno@clisp.org>
33049 * tests/test-crc.c (main): Make printf statements 64-bit clean.
33050 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
33051 * tests/test-getaddrinfo.c (simple): Likewise.
33052 * tests/test-read-file.c (main): Likewise.
33054 2007-03-17 Bruno Haible <bruno@clisp.org>
33056 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
33058 2007-03-17 Bruno Haible <bruno@clisp.org>
33060 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
33063 2007-03-17 Bruno Haible <bruno@clisp.org>
33065 * tests/test-c-strcasecmp.c: Include c-strcase.h.
33066 * tests/test-c-strncasecmp.c: Likewise.
33068 2007-03-17 Bruno Haible <bruno@clisp.org>
33070 * modules/stdlib (Depends-on): Add unistd.
33071 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
33072 Needed for MacOS X 10.3.
33074 2007-03-17 Bruno Haible <bruno@clisp.org>
33076 * lib/unistr/u-strdup.h: Include <stdlib.h>.
33078 2007-03-17 Bruno Haible <bruno@clisp.org>
33080 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
33082 2007-03-17 Bruno Haible <bruno@clisp.org>
33084 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
33085 to reflect files copied from gnulib (with or without modifications).
33086 Suggested by Jim Meyering.
33088 2007-03-17 Eric Blake <ebb9@byu.net>
33090 * NEWS: Document stdlib change from 2007-02-18.
33092 2007-03-17 Jim Meyering <jim@meyering.net>
33094 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
33095 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
33096 someone uses a name containing shell meta-characters.
33097 Reported by Alfred M. Szmidt.
33099 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
33101 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
33103 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
33104 and copy gettext configuration files only if configure.ac contains
33105 a use of AM_GNU_GETTEXT_VERSION.
33107 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
33109 * build-aux/bootstrap (gnulib_name): New variable.
33110 (gnulib_tool_options): Use it.
33112 2007-03-13 Simon Josefsson <simon@josefsson.org>
33114 * tests/test-des.c: Use new namespace.
33116 2007-03-15 Bruno Haible <bruno@clisp.org>
33118 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
33119 Reported by James Youngman <jay@gnu.org>.
33121 2007-03-15 Bruno Haible <bruno@clisp.org>
33123 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
33124 declared prototype. Needed with cc on OSF/1 5.1.
33126 2007-03-15 Bruno Haible <bruno@clisp.org>
33128 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
33129 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
33130 (struct gl_list_implementation): Add dispose_fn argument to the
33131 'create_empty', 'create' methods.
33132 (struct gl_list_impl_base): Add field 'dispose_fn'.
33133 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
33135 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
33136 dispose_fn argument.
33137 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
33138 dispose_fn on the dropped values.
33139 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
33140 dispose_fn argument.
33141 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
33143 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
33144 (gl_tree_remove_node): Call dispose_fn on the dropped value.
33145 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
33146 (gl_tree_remove_node): Call dispose_fn on the dropped value.
33147 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
33149 (gl_tree_list_free): Call dispose_fn on the dropped values.
33150 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
33151 the dropped values.
33152 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
33153 Add dispose_fn argument.
33154 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
33155 Call dispose_fn on the dropped values.
33156 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
33157 Add dispose_fn argument.
33158 (gl_sublist_create): Initialize the 'dispose_fn' field.
33159 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
33160 * tests/test-array_list.c (main): Update.
33161 * tests/test-carray_list.c (main): Update.
33162 * tests/test-avltree_list.c (main): Update.
33163 * tests/test-rbtree_list.c (main): Update.
33164 * tests/test-avltreehash_list.c (main): Update.
33165 * tests/test-rbtreehash_list.c (main): Update.
33166 * tests/test-linked_list.c (main): Update.
33167 * tests/test-linkedhash_list.c (main): Update.
33168 * tests/test-array_oset.c (main): Update.
33170 2007-03-15 Bruno Haible <bruno@clisp.org>
33172 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
33173 (gl_oset_create_empty): Add dispose_fn argument.
33174 (struct gl_oset_implementation): Add dispose_fn argument to
33175 'create_empty' method.
33176 (struct gl_oset_impl_base): Add dispose_fn field.
33177 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
33178 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
33179 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
33181 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
33182 (gl_tree_oset_free): Call dispose_fn on the dropped values.
33183 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
33185 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
33187 * tests/test-array_oset.c (main): Update.
33188 * tests/test-avltree_oset.c (main): Update.
33189 * tests/test-rbtree_oset.c (main): Update.
33190 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
33192 2007-03-13 Bruno Haible <bruno@clisp.org>
33194 * tests/test-stdbool.c (i): Update after last patch.
33196 2007-03-12 Bruno Haible <bruno@clisp.org>
33198 * lib/quotearg.c: Include <wctype.h> early, before the definition of
33199 the iswprint macro. Needed on Solaris 2.5.1.
33201 2007-03-12 Bruno Haible <bruno@clisp.org>
33203 * tests/test-printf-frexp.c (main): Declare x as volatile.
33205 2007-03-12 Simon Josefsson <simon@josefsson.org>
33207 * doc/gnulib.texi (Build robot for gnulib): New section.
33209 2007-03-12 Jim Meyering <jim@meyering.net>
33211 * build-aux/bootstrap: New file.
33212 * build-aux/bootstrap.conf: New file, from coreutils.
33214 2007-03-11 Bruno Haible <bruno@clisp.org>
33216 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
33218 2007-03-12 Simon Josefsson <simon@josefsson.org>
33220 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
33221 avoid collisions with 'des_setkey'. Reported by Bruno Haible
33222 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
33224 2007-03-11 Bruno Haible <bruno@clisp.org>
33226 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
33227 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
33229 2007-03-11 Bruno Haible <bruno@clisp.org>
33231 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
33232 formula. Needed for SunPRO C 5.0.
33234 2007-03-11 Bruno Haible <bruno@clisp.org>
33236 * modules/long-options (Depends-on): Add getopt.
33238 2007-03-11 Bruno Haible <bruno@clisp.org>
33240 * modules/modechange (Depends-on): Add stdbool.
33242 2007-03-11 Bruno Haible <bruno@clisp.org>
33244 * modules/i-ring (Depends-on): Add stdbool.
33246 2007-03-11 Bruno Haible <bruno@clisp.org>
33248 * modules/gc-des (Depends-on): Add stdbool.
33250 2007-03-11 Bruno Haible <bruno@clisp.org>
33252 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
33254 2007-03-11 Bruno Haible <bruno@clisp.org>
33256 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
33258 2007-03-11 Bruno Haible <bruno@clisp.org>
33260 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
33262 2007-03-11 Bruno Haible <bruno@clisp.org>
33264 * lib/vasnprintf.c (sprintf): Undefine.
33266 2007-03-11 Bruno Haible <bruno@clisp.org>
33268 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
33269 initializers in SunPRO C and Compaq C compilers.
33271 2007-03-11 Bruno Haible <bruno@clisp.org>
33273 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
33274 decrementing code ANSI C compliant.
33276 2007-03-11 Bruno Haible <bruno@clisp.org>
33278 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
33279 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
33281 2007-03-11 Bruno Haible <bruno@clisp.org>
33283 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
33284 <stdbool.h> substitute doesn't pass.
33286 2007-03-11 Bruno Haible <bruno@clisp.org>
33288 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
33290 2007-03-11 Bruno Haible <bruno@clisp.org>
33292 * gnulib-tool (func_create_megatestdir): Create also an autobuild
33293 script, for submission to autobuild.josefsson.org.
33295 2007-03-10 Bruno Haible <bruno@clisp.org>
33297 * modules/canonicalize-lgpl-tests: New file.
33298 * tests/test-canonicalize-lgpl.sh: New file.
33299 * tests/test-canonicalize-lgpl.c: New file.
33301 * modules/c-strcase-tests: New file.
33302 * tests/test-c-strcase.sh: New file.
33303 * tests/test-c-strcasecmp.c: New file.
33304 * tests/test-c-strncasecmp.c: New file.
33306 * modules/atexit-tests: New file.
33307 * tests/test-atexit.sh: New file.
33308 * tests/test-atexit.c: New file.
33310 2007-03-10 Bruno Haible <bruno@clisp.org>
33312 * tests/test-binary-io.sh: Use temporary filenames that are not so
33313 likely to clash with those of other tests (in a parallel make).
33314 * tests/test-binary-io.c: Likewise.
33316 2007-03-10 Bruno Haible <bruno@clisp.org>
33318 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
33319 fallback; use #error instead.
33320 Suggested by Simon Josefsson.
33322 2007-03-10 Bruno Haible <bruno@clisp.org>
33324 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
33325 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
33326 first and the last.
33328 2007-03-10 Bruno Haible <bruno@clisp.org>
33330 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
33332 2007-03-10 Bruno Haible <bruno@clisp.org>
33334 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
33336 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
33337 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
33338 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
33340 2007-03-10 Bruno Haible <bruno@clisp.org>
33342 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
33344 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
33347 2007-03-09 Eric Blake <ebb9@byu.net>
33348 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
33350 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
33351 types are not being provided by gnulib.
33352 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
33353 types are supported.
33355 2007-03-10 Bruno Haible <bruno@clisp.org>
33357 * lib/stdio_.h (__attribute__): New macro.
33358 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
33359 vsprintf): Specify __attribute__ __format__ for GCC.
33360 Suggested by Eric Blake.
33362 2007-03-09 Bruno Haible <bruno@clisp.org>
33364 * modules/printf-posix-tests: New file.
33365 * tests/test-printf-posix.sh: New file.
33366 * tests/test-printf-posix.c: New file.
33368 * modules/printf-posix: New file.
33369 * lib/printf.c: New file.
33370 * m4/printf-posix-rpl.m4: New file.
33371 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
33373 * lib/stdio_.h (printf): New declaration.
33374 (format, __format__, ____printf____, ____scanf____, ____strftime____,
33375 ____strfmon____): New macros.
33376 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
33379 2007-03-09 Bruno Haible <bruno@clisp.org>
33381 * tests/test-vasnprintf-posix2.sh: New file.
33382 * tests/test-vasnprintf-posix2.c: New file.
33383 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
33384 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
33385 (Makefile.am): Activate test-vasnprintf-posix2.sh.
33387 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
33388 a locale dependent decimal point, rather than always '.'.
33390 2007-03-09 Eric Blake <ebb9@byu.net>
33392 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
33393 spite of platforms like Tandem/NSK that define it to -1.
33395 2007-03-08 Bruno Haible <bruno@clisp.org>
33397 * modules/vprintf-posix-tests: New file.
33398 * tests/test-vprintf-posix.sh: New file.
33399 * tests/test-vprintf-posix.c: New file.
33400 * tests/test-printf-posix.h: New file.
33402 * modules/vprintf-posix: New file.
33403 * lib/vprintf.c: New file.
33404 * m4/vprintf-posix.m4: New file.
33405 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
33407 * lib/stdio_.h (vprintf): New declaration.
33408 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
33411 2007-03-08 Bruno Haible <bruno@clisp.org>
33413 * modules/fprintf-posix-tests: New file.
33414 * tests/test-fprintf-posix.sh: New file.
33415 * tests/test-fprintf-posix.c: New file.
33417 * modules/fprintf-posix: New file.
33418 * lib/fprintf.c: New file.
33419 * m4/fprintf-posix.m4: New file.
33420 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
33422 * lib/stdio_.h (fprintf): New declaration.
33423 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
33426 2007-03-08 Bruno Haible <bruno@clisp.org>
33428 * modules/vfprintf-posix-tests: New file.
33429 * tests/test-vfprintf-posix.sh: New file.
33430 * tests/test-vfprintf-posix.c: New file.
33431 * tests/test-fprintf-posix.h: New file.
33432 * tests/test-fprintf-posix.out: New file.
33434 * modules/vfprintf-posix: New file.
33435 * lib/vfprintf.c: New file.
33436 * m4/vfprintf-posix.m4: New file.
33437 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
33439 * lib/stdio_.h (vfprintf): New declaration.
33440 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
33443 2007-03-08 Bruno Haible <bruno@clisp.org>
33445 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
33447 2007-03-08 Bruno Haible <bruno@clisp.org>
33449 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
33450 instead of 'expr' invocations.
33451 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33452 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33453 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33454 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33455 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33456 Suggested by Paul Eggert.
33458 2007-03-08 Bruno Haible <bruno@clisp.org>
33460 * modules/fseterr-tests: New file.
33461 * tests/test-fseterr.c: New file.
33463 * modules/fseterr: New file.
33464 * lib/fseterr.h: New file.
33465 * lib/fseterr.c: New file.
33467 2007-03-08 Bruno Haible <bruno@clisp.org>
33469 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
33470 * lib/getopt_.h: Likewise.
33471 * lib/mbswidth.h: Likewise.
33472 * lib/setenv.h: Likewise.
33473 * lib/vasnprintf.h: Likewise.
33474 * lib/vasprintf.h: Likewise.
33475 * lib/verror.h: Likewise.
33476 * lib/xsetenv.h: Likewise.
33477 * lib/xvasprintf.h: Likewise.
33479 2007-03-08 Jim Meyering <jim@meyering.net>
33481 * users.txt: Add parted.
33483 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
33485 2007-03-07 Bruno Haible <bruno@clisp.org>
33487 * m4/printf.m4: Make the shell script snippets copy&pastable.
33489 2007-03-02 Bruno Haible <bruno@clisp.org>
33491 * lib/netinet_in_.h: New file.
33492 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
33493 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
33494 * modules/netinet_in (Files): Add lib/netinet_in_.h.
33495 (Depends-on): Add absolute-header.
33496 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
33499 2007-03-03 Bruno Haible <bruno@clisp.org>
33501 * lib/sys_select_.h: New file.
33502 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
33503 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
33504 * modules/sys_select (Files): Add lib/sys_select_.h.
33505 (Depends-on): Add absolute-header.
33506 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
33509 2007-03-02 Bruno Haible <bruno@clisp.org>
33511 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
33512 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
33514 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
33515 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
33516 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
33517 * modules/sys_socket (Depends-on): Add absolute-header.
33518 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
33519 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
33520 (Include): Remove requirement of inclusion of <sys/types.h>.
33522 2007-03-02 Bruno Haible <bruno@clisp.org>
33524 * lib/byteswap_.h (bswap_32): Fix formula.
33526 2007-03-06 Bruno Haible <bruno@clisp.org>
33528 * modules/sprintf-posix-tests: New file.
33529 * tests/test-sprintf-posix.c: New file.
33531 * modules/sprintf-posix: New file.
33532 * lib/sprintf.c: New file.
33533 * m4/sprintf-posix.m4: New file.
33534 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
33536 * lib/stdio_.h (sprintf): New declaration.
33537 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
33540 2007-03-06 Bruno Haible <bruno@clisp.org>
33542 * modules/vsprintf-posix-tests: New file.
33543 * tests/test-vsprintf-posix.c: New file.
33544 * tests/test-sprintf-posix.h: New file.
33546 * modules/vsprintf-posix: New file.
33547 * lib/vsprintf.c: New file.
33548 * m4/vsprintf-posix.m4: New file.
33549 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
33551 * lib/stdio_.h (vsprintf): New declaration.
33552 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
33555 2007-03-06 Bruno Haible <bruno@clisp.org>
33557 * modules/vsnprintf (Depend-on): Remove minmax.
33559 2007-03-06 Bruno Haible <bruno@clisp.org>
33561 * modules/snprintf-posix-tests: New file.
33562 * tests/test-snprintf-posix.c: New file.
33564 * modules/snprintf-posix: New file.
33565 * m4/snprintf-posix.m4: New file.
33566 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
33568 (gl_FUNC_SNPRINTF): Invoke it.
33569 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
33570 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
33572 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
33574 2007-03-06 Bruno Haible <bruno@clisp.org>
33576 * modules/vsnprintf-posix-tests: New file.
33577 * tests/test-vsnprintf-posix.c: New file.
33578 * tests/test-snprintf-posix.h: New file.
33580 * modules/vsnprintf-posix: New file.
33581 * m4/vsnprintf-posix.m4: New file.
33582 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
33584 (gl_FUNC_VSNPRINTF): Invoke it.
33585 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
33586 * lib/stdio_.h (vsnprintf): Define as a replacement if
33587 REPLACE_VSNPRINTF is set.
33588 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
33590 2007-03-06 Bruno Haible <bruno@clisp.org>
33592 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
33593 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
33595 2007-03-06 Bruno Haible <bruno@clisp.org>
33597 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
33598 (asinl): Declare also if HAVE_DECL_ASINL is set.
33599 (atanl): Declare also if HAVE_DECL_ATANL is set.
33600 (ceill): Declare also if HAVE_DECL_CEILL is set.
33601 (cosl): Declare also if HAVE_DECL_COSL is set.
33602 (expl): Declare also if HAVE_DECL_EXPL is set.
33603 (floorl): Declare also if HAVE_DECL_FLOORL is set.
33604 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
33605 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
33606 (logl): Declare also if HAVE_DECL_LOGL is set.
33607 (sinl): Declare also if HAVE_DECL_SINL is set.
33608 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
33609 (tanl): Declare also if HAVE_DECL_TANL is set.
33610 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
33611 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
33612 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
33613 declaration of frexpl, ldexpl.
33614 * modules/printf-frexpl (Depends-on): Add math.
33615 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
33617 2007-03-05 Bruno Haible <bruno@clisp.org>
33619 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
33620 frexpl and ldexpl are declared.
33621 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
33623 2007-03-05 Bruno Haible <bruno@clisp.org>
33625 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
33626 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
33628 2007-03-05 Bruno Haible <bruno@clisp.org>
33630 * lib/stdio_.h: Include <stddef.h>.
33632 2007-03-05 Bruno Haible <bruno@clisp.org>
33634 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
33636 2007-03-05 Bruno Haible <bruno@clisp.org>
33638 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
33639 NetBSD 4, from Ralf Wildenhues.
33641 2007-03-04 Bruno Haible <bruno@clisp.org>
33643 * lib/vasprintf.h: Update #if logic for the case when the functions
33644 exist but are overridden.
33646 2007-03-04 Bruno Haible <bruno@clisp.org>
33648 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
33649 implementations: glibc-2.4 and MacOS X 10.3.
33650 * tests/test-vasnprintf-posix.c (test_function): Test also the case
33651 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
33652 * tests/test-vasprintf-posix.c (test_function): Likewise.
33654 2007-03-04 Bruno Haible <bruno@clisp.org>
33656 * modules/vasprintf-posix-tests: New file.
33657 * tests/test-vasprintf-posix.c: New file.
33659 * modules/vasprintf-posix: New file.
33660 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
33662 * m4/vasprintf-posix.m4: New file.
33663 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
33665 (gl_FUNC_VASPRINTF): Invoke it.
33666 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
33668 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
33670 2007-03-04 Bruno Haible <bruno@clisp.org>
33672 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
33673 REPLACE_GETTIMEOFDAY.
33674 * modules/sys_time (Makefile.am): Likewise.
33675 * m4/sys_time_h.m4: Likewise.
33676 * m4/gettimeofday.m4: Likewise.
33678 2007-03-04 Bruno Haible <bruno@clisp.org>
33680 * modules/vasnprintf-posix-tests: New file.
33681 * tests/test-vasnprintf-posix.c: New file.
33683 * modules/vasnprintf-posix: New file.
33684 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
33686 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
33687 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
33688 REPLACE_VASNPRINTF is defined.
33689 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
33690 gl_FUNC_VASNPRINTF.
33691 (gl_FUNC_VASNPRINTF): Invoke it.
33692 * m4/vasnprintf-posix.m4: New file.
33693 * m4/printf.m4: New file.
33695 2007-03-04 Bruno Haible <bruno@clisp.org>
33697 Compile progreloc.c only if --enable-relocatable is specified.
33698 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
33699 if --enable-relocatable was specified.
33700 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
33703 2007-03-04 Jim Meyering <jim@meyering.net>
33705 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
33706 Use it consistently, rather than enumerating errno constants.
33708 2007-03-04 Bruno Haible <bruno@clisp.org>
33710 * modules/xvasprintf-tests: New file.
33711 * tests/test-xvasprintf.c: New file.
33713 * modules/vasprintf-tests: New file.
33714 * tests/test-vasprintf.c: New file.
33716 * modules/vasnprintf-tests: New file.
33717 * tests/test-vasnprintf.c: New file.
33719 * modules/vsnprintf-tests: New file.
33720 * tests/test-vsnprintf.c: New file.
33722 * modules/snprintf-tests: New file.
33723 * tests/test-snprintf.c: New file.
33725 2007-03-04 Bruno Haible <bruno@clisp.org>
33727 Compile relocatable.c only if --enable-relocatable is specified.
33728 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
33729 gl_RELOCATABLE_LIBRARY.
33730 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
33731 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
33732 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
33733 gl_RELOCATABLE_LIBRARY.
33734 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
33735 (Makefile.am): Remove lib_SOURCES.
33736 * modules/relocatable-lib-lgpl (configure.ac): Invoke
33737 gl_RELOCATABLE_LIBRARY.
33738 (Makefile.am): Remove lib_SOURCES.
33739 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
33741 * modules/relocatable-prog-wrapper (configure.ac): Invoke
33742 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
33744 2007-03-04 Bruno Haible <bruno@clisp.org>
33746 * modules/argmatch-tests: New file.
33747 * tests/test-argmatch.c: New file.
33749 * tests/test-allocsa.c (main): Halve the number of loop runs.
33751 * modules/alloca-opt-tests: New file.
33752 * tests/test-alloca-opt.c: New file.
33754 2007-03-04 Jim Meyering <jim@meyering.net>
33756 Work around difference between Linux ACLs and Solaris 10 ZFS.
33757 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
33760 2007-03-03 Bruno Haible <bruno@clisp.org>
33762 * modules/relocatable-prog (Depends-on): Add back progreloc's
33763 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
33765 2007-03-03 Bruno Haible <bruno@clisp.org>
33767 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
33768 * modules/relocatable-lib: New file.
33770 2007-03-03 Bruno Haible <bruno@clisp.org>
33772 * modules/relocatable-prog: Renamed from modules/relocatable.
33773 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
33775 2007-03-03 Bruno Haible <bruno@clisp.org>
33777 * modules/relocatable-script (Files): Add doc/relocatable.texi,
33778 m4/relocatable-lib.m4.
33779 (Depends-on): Remove 'relocatable'.
33780 (configure.ac): Add gl_RELOCATABLE_NOP.
33782 2007-03-03 Bruno Haible <bruno@clisp.org>
33784 * modules/relocatable-prog-wrapper: New file.
33785 * modules/relocatable (Depends-on): Add it. Remove all other
33786 dependencies except progname.
33787 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
33789 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
33790 (gl_FUNC_STRERROR): Nop.
33791 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
33793 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
33794 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
33796 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
33797 (gl_FUNC_READLINK): Update.
33799 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
33801 2007-03-03 Bruno Haible <bruno@clisp.org>
33803 * lib/xreadlink.c: Include <unistd.h> unconditionally.
33804 * modules/xreadlink (Depends-on): Add unistd.
33805 * modules/xreadlink-with-size (Depends-on): Likewise.
33807 2007-03-03 Bruno Haible <bruno@clisp.org>
33809 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
33810 extracted from gt_FUNC_SETENV.
33811 (gt_FUNC_SETENV): Remove macro.
33812 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
33813 remove gt_FUNC_SETENV.
33815 2007-03-03 Bruno Haible <bruno@clisp.org>
33817 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
33818 ENABLE_RELOCATABLE here.
33819 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
33821 2007-03-03 Bruno Haible <bruno@clisp.org>
33823 * modules/rbtreehash-list-tests (Depends-on): Add progname.
33824 * tests/test-rbtreehash_list.c: Include progname.h.
33825 (main): Call set_program_name.
33827 * modules/rbtree-oset-tests (Depends-on): Add progname.
33828 * tests/test-rbtree_oset.c: Include progname.h.
33829 (main): Call set_program_name.
33831 * modules/rbtree-list-tests (Depends-on): Add progname.
33832 * tests/test-rbtree_list.c: Include progname.h.
33833 (main): Call set_program_name.
33835 * modules/linked-list-tests (Depends-on): Add progname.
33836 * tests/test-linked_list.c: Include progname.h.
33837 (main): Call set_program_name.
33839 2007-03-03 Bruno Haible <bruno@clisp.org>
33841 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
33842 All uses of __restrict changed to _Restrict_.
33843 * lib/glob_.h (__restrict): Remove macro.
33845 2007-03-02 Bruno Haible <bruno@clisp.org>
33847 * modules/gettext (configure.ac): Require gettext infrastructure
33848 from version 0.16.1.
33850 2007-03-02 Bruno Haible <bruno@clisp.org>
33852 * modules/linkedhash-list-tests (Depends-on): Add progname.
33853 * tests/test-linkedhash_list.c: Include progname.h.
33854 (main): Call set_program_name.
33856 * modules/carray-list-tests (Depends-on): Add progname.
33857 * tests/test-carray_list.c: Include progname.h.
33858 (main): Call set_program_name.
33860 * modules/avltreehash-list-tests (Depends-on): Add progname.
33861 * tests/test-avltreehash_list.c: Include progname.h.
33862 (main): Call set_program_name.
33864 * modules/avltree-oset-tests (Depends-on): Add progname.
33865 * tests/test-avltree_oset.c: Include progname.h.
33866 (main): Call set_program_name.
33868 * modules/avltree-list-tests (Depends-on): Add progname.
33869 * tests/test-avltree_list.c: Include progname.h.
33870 (main): Call set_program_name.
33872 * modules/array-oset-tests (Depends-on): Add progname.
33873 * tests/test-array_oset.c: Include progname.h.
33874 (main): Call set_program_name.
33876 * modules/array-list-tests (Depends-on): Add progname.
33877 * tests/test-array_list.c: Include progname.h.
33878 (main): Call set_program_name.
33880 * modules/argp-tests (Depends-on): Add progname.
33881 * tests/test-argp.c: Include argp.h first. Include progname.h.
33882 (main): Call set_program_name.
33884 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
33886 * doc/gnulib-tool.texi (Initial import): Reword description of
33887 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
33888 limited effect even if defined after the first system include.
33890 2007-03-01 Bruno Haible <bruno@clisp.org>
33892 * build-aux/config.libpath: Update to libtool-1.5.22.
33893 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33895 2007-03-01 Bruno Haible <bruno@clisp.org>
33897 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
33899 Reported by Ralf Wildenhues.
33901 2007-03-01 Bruno Haible <bruno@clisp.org>
33903 * build-aux/install-reloc: Remove object files left over by some
33905 Reported by Ralf Wildenhues.
33907 2007-03-01 Bruno Haible <bruno@clisp.org>
33909 * build-aux/install-reloc: Break long lines.
33911 2007-03-01 Bruno Haible <bruno@clisp.org>
33913 * doc/relocatable.texi: Document that it may not work on OpenBSD.
33914 Reported by Ralf Wildenhues.
33916 2007-03-01 Bruno Haible <bruno@clisp.org>
33918 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
33919 include ordering constraints.
33921 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
33923 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
33924 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
33925 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
33926 as another example.
33927 * lib/time_.h: Fix misspelling.
33928 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
33929 Require gl_HEADER_TIME_H_DEFAULTS.
33930 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
33931 * m4/time_r.m4 (gl_TIME_R): Likewise.
33932 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
33934 2007-03-01 Bruno Haible <bruno@clisp.org>
33936 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
33937 * m4/utimens.m4 (gl_UTIMENS): Likewise.
33939 2007-03-01 Jim Meyering <jim@meyering.net>
33941 * modules/xreadlink (Maintainer): Add my name.
33942 * modules/xreadlink-with-size (Depends-on): Alphabetize.
33944 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
33945 Bruno Haible <bruno@clisp.org>
33947 * build-aux/install-reloc: Compile also c-ctype.c.
33948 * build-aux/relocatable.sh.in: New file.
33949 * doc/relocatable.texi: New file.
33950 * doc/relocatable-maint.texi: New file.
33951 * doc/gnulib.texi: Include relocatable-maint.texi.
33952 * lib/progreloc.c: Include unistd.h unconditionally.
33953 * lib/relocwrapper.c: Include unistd.h unconditionally.
33955 (add_dotbin): Use c_tolower.
33956 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
33957 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
33958 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
33959 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
33960 to m4/relocatable-lib.m4.
33961 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
33962 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
33963 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
33964 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
33965 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
33966 * modules/relocatable: New file.
33967 * modules/relocatable-lib: New file.
33968 * modules/relocatable-script: New file.
33970 2007-02-28 Bruno Haible <bruno@clisp.org>
33972 Import --enable-relocatable infrastructure.
33973 * build-aux/config.libpath: New file, from GNU gettext.
33974 * build-aux/install-reloc: New file, from GNU gettext.
33975 * build-aux/reloc-ldflags: New file, from GNU gettext.
33976 * lib/relocatable.h: New file, from GNU gettext.
33977 * lib/relocatable.c: New file, from GNU gettext.
33978 * lib/relocwrapper.c: New file, from GNU gettext.
33979 * m4/relocatable.m4: New file, from GNU gettext.
33981 2007-02-28 Bruno Haible <bruno@clisp.org>
33983 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
33985 * modules/xreadlink: New file, from GNU gettext with modifications.
33986 * lib/xreadlink.c: New file, from GNU gettext.
33987 * lib/xreadlink.h: Add comments.
33988 (xreadlink): New declaration.
33990 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
33991 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
33992 lib/xreadlink-with-size.c.
33993 (configure.ac): Remove gl_XREADLINK invocation.
33994 (Makefile.am): Augment lib_SOURCES.
33995 * m4/xreadlink.m4: Remove file.
33996 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
33997 (xreadlink_with_size): Renamed from xreadink.
33998 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
33999 * modules/canonicalize (Depends-on): Replace xreadlink with
34000 xreadlink-with-size.
34001 * lib/canonicalize.c (canonicalize_filename_mode): Update.
34003 2007-02-25 Jim Meyering <jim@meyering.net>
34005 * build-aux/announce-gen: When complaining about excess arguments,
34008 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
34010 * README: Document signed integer overflow situation more
34013 2007-02-25 Bruno Haible <bruno@clisp.org>
34015 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
34016 'a' or 'A' conversion.
34018 2007-02-25 Bruno Haible <bruno@clisp.org>
34020 * modules/filename: Renamed from modules/pathname.
34021 (Files): Replace lib/pathname.h with lib/filename.h. Replace
34022 lib/concatpath.c with lib/concat-filename.c.
34023 (Makefile.am): Update.
34024 (Include): Replace pathname.h with filename.h.
34025 * lib/filename.h: Renamed from lib/pathname.h.
34026 (concatenated_filename): Renamed from concatenated_pathname.
34027 * lib/concat-filename.c: Renamed from lib/concatpath.c.
34028 (concatenated_filename): Renamed from concatenated_pathname.
34029 * lib/findprog.c: Include filename.h instead of pathname.h.
34030 (find_in_path): Update.
34031 * lib/javacomp.c: Include filename.h instead of pathname.h.
34032 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
34033 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
34034 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
34035 is_oldgcj_14_13_usable, is_javac_usable): Update.
34036 * lib/javaexec.c: Include filename.h instead of pathname.h.
34037 (execute_java_class): Update.
34038 * modules/findprog: Update.
34039 * modules/javacomp: Update.
34040 * modules/javaexec: Update.
34041 * MODULES.html.sh (File system functions): Add 'filename', remove
34044 2007-02-25 Bruno Haible <bruno@clisp.org>
34046 * modules/printf-frexpl-tests: New file.
34047 * tests/test-printf-frexpl.c: New file.
34049 * modules/printf-frexpl: New file.
34050 * lib/printf-frexpl.h: New file.
34051 * lib/printf-frexpl.c: New file.
34052 * m4/printf-frexpl.m4: New file.
34054 2007-02-25 Bruno Haible <bruno@clisp.org>
34056 * modules/printf-frexp-tests: New file.
34057 * tests/test-printf-frexp.c: New file.
34059 * modules/printf-frexp: New file.
34060 * lib/printf-frexp.h: New file.
34061 * lib/printf-frexp.c: New file.
34062 * m4/printf-frexp.m4: New file.
34064 2007-02-25 Bruno Haible <bruno@clisp.org>
34066 Assume automake >= 1.10 for the tests.
34067 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
34068 * modules/arctwo-tests: Likewise.
34069 * modules/argp-tests: Likewise.
34070 * modules/avltree-list-tests: Likewise.
34071 * modules/avltree-oset-tests: Likewise.
34072 * modules/avltreehash-list-tests: Likewise.
34073 * modules/carray-list-tests: Likewise.
34074 * modules/crc-tests: Likewise.
34075 * modules/des-tests: Likewise.
34076 * modules/gc-arcfour-tests: Likewise.
34077 * modules/gc-arctwo-tests: Likewise.
34078 * modules/gc-des-tests: Likewise.
34079 * modules/gc-hmac-md5-tests: Likewise.
34080 * modules/gc-hmac-sha1-tests: Likewise.
34081 * modules/gc-md2-tests: Likewise.
34082 * modules/gc-md4-tests: Likewise.
34083 * modules/gc-md5-tests: Likewise.
34084 * modules/gc-pbkdf2-sha1-tests: Likewise.
34085 * modules/gc-rijndael-tests: Likewise.
34086 * modules/gc-sha1-tests: Likewise.
34087 * modules/gc-tests: Likewise.
34088 * modules/getaddrinfo-tests: Likewise.
34089 * modules/hmac-md5-tests: Likewise.
34090 * modules/hmac-sha1-tests: Likewise.
34091 * modules/linked-list-tests: Likewise.
34092 * modules/linkedhash-list-tests: Likewise.
34093 * modules/lock-tests: Likewise.
34094 * modules/md2-tests: Likewise.
34095 * modules/md4-tests: Likewise.
34096 * modules/md5-tests: Likewise.
34097 * modules/rbtree-list-tests: Likewise.
34098 * modules/rbtree-oset-tests: Likewise.
34099 * modules/rbtreehash-list-tests: Likewise.
34100 * modules/read-file-tests: Likewise.
34101 * modules/rijndael-tests: Likewise.
34102 * modules/stdint-tests: Likewise.
34103 * modules/tls-tests: Likewise.
34105 2007-02-24 Bruno Haible <bruno@clisp.org>
34107 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
34108 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
34109 function; instead check whether isnan with a double argument links.
34110 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
34111 function; instead check whether isnan with a 'long double' argument
34113 Reported by Eric Blake <ebb9@byu.net>.
34115 2007-02-24 Bruno Haible <bruno@clisp.org>
34117 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
34119 * lib/isnanl.c: Remove all code. Just include isnan.c.
34120 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
34122 2007-02-25 Jim Meyering <jim@meyering.net>
34124 Avoid conflicting types for 'unsetenv' on FreeBSD.
34125 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
34126 conflicting with FreeBSD's (5.0 and 6.1) function declaration
34129 2007-02-24 Bruno Haible <bruno@clisp.org>
34131 * modules/isnanl-nolibm-tests: New file.
34132 * tests/test-isnanl.c: New file.
34134 * modules/isnanl-nolibm: New file.
34135 * lib/isnanl.h: New file.
34136 * lib/isnanl.c: New file.
34137 * m4/isnanl.m4: New file.
34139 2007-02-24 Bruno Haible <bruno@clisp.org>
34141 * modules/isnan-nolibm-tests: New file.
34142 * tests/test-isnan.c: New file.
34144 * modules/isnan-nolibm: New file.
34145 * lib/isnan.h: New file.
34146 * lib/isnan.c: New file.
34147 * m4/isnan.m4: New file.
34149 2007-02-24 Bruno Haible <bruno@clisp.org>
34151 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
34152 assume that an exponent fits in 20 bits.
34154 2007-02-24 Jim Meyering <jim@meyering.net>
34156 * m4/regex.m4: Update the description of the configure-time option,
34157 --without-included-regex, to state accurately what the defaults are,
34158 and perhaps to give people an idea why using this option is risky.
34160 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
34162 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
34163 loops on small arguments. This attempts to avoid the problem
34164 Bruno Haible reported for AIX 4.3.2 in
34165 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
34167 2007-02-23 Bruno Haible <bruno@clisp.org>
34169 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
34170 Needed for help2man.
34172 2007-02-23 Karl Berry <karl@gnu.org>
34174 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
34175 exists, foo.h should be cvs-ignored, not committed.
34177 2007-02-23 Eric Blake <ebb9@byu.net>
34179 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
34180 * lib/stat-time.h (includes): Likewise.
34181 * lib/utimecmp.c (includes): Likewise.
34182 * lib/utimens.h (includes): Likewise.
34183 * lib/getdate.y (includes): Also include "timespec.h" for use
34184 internal to the module.
34185 * modules/utimens (Depends-on): Revert yesterday's patch.
34186 * modules/nanosleep (Depends-on): Add missing dependency.
34188 2007-02-22 Bruno Haible <bruno@clisp.org>
34190 * lib/glob.c: Don't include getlogin_r.h.
34192 2007-02-22 Jim Meyering <jim@meyering.net>
34194 * modules/utimens (Depends-on): Add timespec, required for
34195 utimens.h's inclusion of timespec.h.
34197 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
34199 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
34200 long unreadable paths in GNU/Linux. Problem reported by Andreas
34202 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
34203 I'll try to think of a better way to fix the Solaris problem.
34205 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
34206 like glibc; on Solaris 10, it fails with errno == EINVAL.
34207 POSIX says the behavior is unspecified if the first argument is NULL,
34208 so play it safe and never pass NULL to the system getcwd.
34210 2007-02-21 Jim Meyering <jim@meyering.net>
34212 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
34213 of gettimeofday. It would conflict with the one now always
34214 provided via sys_time_.h. Reported by Matthew Woehlke, as
34215 an IRIX 6.5 build failure.
34217 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
34219 Minor fixups to port to Solaris 10 with Sun C 5.8.
34220 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
34221 * modules/getcwd (Depends-on): Add dirfd.
34222 * lib/putenv.c (putenv): #undef it.
34223 (rpl_putenv): New decl.
34224 (malloc, free): Include <stdlib.h> rather than prototyping separately.
34226 2007-02-20 Bruno Haible <bruno@clisp.org>
34228 * modules/stdio-tests: New file.
34229 * tests/test-stdio.c: New file.
34231 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
34232 (Depends-on): Add stdio.
34233 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34234 (Include): Use <stdio.h> instead of vsnprintf.h.
34235 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34236 HAVE_DECL_VSNPRINTF.
34237 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
34239 * modules/snprintf (Files): Remove lib/snprintf.h.
34240 (Depends-on): Add stdio.
34241 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34242 (Include): Use <stdio.h> instead of snprintf.h.
34243 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
34244 HAVE_DECL_SNPRINTF.
34245 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
34246 * lib/getaddrinfo.c: Likewise.
34248 * modules/stdio: New file.
34249 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
34250 * lib/snprintf.h: Remove file.
34251 * lib/vsnprintf.h: Remove file.
34252 * lib/.cppi-disable: Remove snprintf.h.
34253 * m4/stdio_h.m4: New file.
34254 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
34256 2007-02-20 Jim Meyering <jim@meyering.net>
34258 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
34259 used by e.g., mingw. From Bruno Haible.
34261 2007-02-19 Bruno Haible <bruno@clisp.org>
34263 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
34265 Reported by Ben Pfaff <blp@cs.stanford.edu>.
34267 2007-02-19 Bruno Haible <bruno@clisp.org>
34269 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
34272 2007-02-19 Bruno Haible <bruno@clisp.org>
34274 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
34276 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
34278 2007-02-19 Jim Meyering <jim@meyering.net>
34280 Don't use FD after a successful "fdopendir (fd)".
34281 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
34282 Reset it by calling dirfd on the just-obtained DIR*.
34284 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
34285 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
34287 2007-02-18 Bruno Haible <bruno@clisp.org>
34289 * lib/readlink.c: Include <unistd.h>.
34290 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
34292 * modules/readlink (Depends-on): Add unistd.
34293 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34294 (Include): Add <unistd.h>.
34296 * lib/getlogin_r.h: Remove file.
34297 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
34298 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
34299 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
34300 HAVE_DECL_GETLOGIN_R.
34301 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
34302 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34303 (Include): Use <unistd.h> instead of getlogin_r.h.
34305 * lib/getcwd.h: Remove file.
34306 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
34307 * lib/xgetcwd.c: Likewise.
34308 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
34309 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
34310 * modules/getcwd (Files): Remove lib/getcwd.h.
34311 (Depends-on): Add unistd.
34312 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34313 (Include): Use <unistd.h> instad of getcwd.h.
34315 * lib/ftruncate.c: Include <unistd.h> first.
34316 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
34317 Set HAVE_FTRUNCATE.
34318 * modules/ftruncate (Depends-on): Add unistd.
34319 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34321 * lib/fchdir.c: Include <unistd.h> first.
34322 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
34323 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
34324 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
34325 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34326 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
34328 * lib/dup2.c: Include <unistd.h> first.
34329 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
34331 * modules/dup2 (Depends-on): Add unistd.
34332 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34334 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
34335 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
34336 REPLACE_CHOWN. Don't define chown as a macro here.
34337 * modules/chown (Depends-on): Add unistd.
34338 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34340 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
34341 Add definition for GL_LINK_WARNING.
34342 (chown, dup2): New declarations.
34343 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
34345 (ftruncate): New declaration.
34346 (getcwd): New declaration, taken from old getcwd.h.
34347 (getlogin_r): New declaration, taken from old getlogin_r.h.
34348 (readlink): New declaration.
34349 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
34350 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
34351 (gl_PREREQ_UNISTD): Remove macro.
34352 (gl_UNISTD_MODULE_INDICATOR): New macro.
34353 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
34354 many new variables. Don't set UNISTD_H.
34355 * modules/unistd (Description): Change.
34356 (Depends-on): Add link-warning.
34357 (configure.ac): Update.
34358 (Makefile.am): Create unistd.h always. Substitute many new variables
34361 2007-02-18 Bruno Haible <bruno@clisp.org>
34363 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
34364 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
34366 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
34367 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
34368 * lib/getsubopt.h: Remove file.
34369 * modules/getsubopt (Files): Remove lib/getsubopt.h.
34370 (Depends-on): Add stdlib.
34371 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34372 (Includes): Use <stdlib.h> instead of getsubopt.h.
34373 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
34374 Set HAVE_GETSUBOPT.
34375 * lib/getsubopt.c: Don't include getsubopt.h.
34377 2007-02-18 Bruno Haible <bruno@clisp.org>
34379 * modules/fchdir (Depends-on): Add dup2.
34381 2007-02-18 Bruno Haible <bruno@clisp.org>
34383 * lib/stdlib_.h: Handle glibc's special invocation convention
34386 2007-02-18 Bruno Haible <bruno@clisp.org>
34388 * modules/stdlib-tests: New file.
34389 * tests/test-stdlib.c: New file.
34391 * modules/mkstemp (Files): Remove lib/mkstemp.h.
34392 (Depends-on): Add stdlib.
34393 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34394 (Includes): Use <stdlib.h> instead of mkstemp.h.
34395 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34396 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
34397 * lib/mkstemp.c: Don't include mkstemp.h.
34398 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
34399 * lib/stdlib--.h: Don't include mkstemp.h.
34401 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
34402 (Depends-on): Add stdlib.
34403 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34404 (Includes): Use <stdlib.h> instead of mkdtemp.h.
34405 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
34407 * lib/mkdtemp.c: Don't include mkdtemp.h.
34408 * lib/clean-temp.c: Don't include mkdtemp.h.
34410 * modules/exit (Files): Remove lib/exit.h.
34411 (Depends-on): Add stdlib.
34412 (Makefile.am): Remove lib_SOURCES.
34413 (Include): Use <stdlib.h> instead of exit.h.
34414 * lib/argmatch.c: Don't include exit.h.
34415 * lib/execute.c: Likewise.
34416 * lib/pagealign_alloc.c: Likewise.
34417 * lib/pipe.c: Likewise.
34418 * lib/wait-process.c: Likewise.
34419 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
34420 * lib/exitfail.c: Likewise.
34421 * lib/savewd.c: Likewise.
34422 * lib/xsetenv.c: Likewise.
34424 * modules/stdlib: New file.
34425 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
34426 and extra comments about mkstemp().
34427 * lib/exit.h: Remove file.
34428 * lib/mkdtemp.h: Remove file.
34429 * lib/mkstemp.h: Remove file.
34430 * m4/stdlib_h.m4: New file.
34431 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
34433 2007-02-18 Bruno Haible <bruno@clisp.org>
34435 * modules/math-tests: New file.
34436 * tests/test-math.c: New file.
34438 * modules/math: New file.
34439 * modules/mathl (Files): Remove lib/mathl.h.
34440 (Depends-on): Add math.
34441 (Makefile.am): Don't mention mathl.h.
34442 (Include): Use <math.h> instead of mathl.h.
34443 * lib/math_.h: New file.
34444 * lib/mathl.h: Remove file.
34445 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
34447 * lib/asinl.c: Likewise.
34448 * lib/atanl.c: Likewise.
34449 * lib/ceill.c: Likewise.
34450 * lib/cosl.c: Likewise.
34451 * lib/expl.c: Likewise.
34452 * lib/floorl.c: Likewise.
34453 * lib/frexpl.c: Likewise.
34454 * lib/ldexpl.c: Likewise.
34455 * lib/logl.c: Likewise.
34456 * lib/sincosl.c: Likewise.
34457 * lib/sinl.c: Likewise.
34458 * lib/sqrtl.c: Likewise.
34459 * lib/tanl.c: Likewise.
34460 * lib/trigl.c: Likewise.
34461 * m4/math_h.m4: New file.
34462 * MODULES.html.sh (Mathematics): Add math.
34464 2007-02-17 Bruno Haible <bruno@clisp.org>
34466 * modules/wctype-tests: New file.
34467 * tests/test-wctype.c: New file.
34469 * modules/wchar-tests: New file.
34470 * tests/test-wchar.c: New file.
34472 * modules/unistd-tests: New file.
34473 * tests/test-unistd.c: New file.
34475 * modules/time-tests: New file.
34476 * tests/test-time.c: New file.
34478 * modules/sysexits-tests: New file.
34479 * tests/test-sysexits.c: New file.
34481 * modules/sys_time-tests: New file.
34482 * tests/test-sys_time.c: New file.
34484 * modules/sys_stat-tests: New file.
34485 * tests/test-sys_stat.c: New file.
34487 * modules/sys_socket-tests: New file.
34488 * tests/test-sys_socket.c: New file.
34490 * modules/sys_select-tests: New file.
34491 * tests/test-sys_select.c: New file.
34493 * modules/string-tests: New file.
34494 * tests/test-string.c: New file.
34496 * modules/stdbool-tests: New file.
34497 * tests/test-stdbool.c: New file.
34499 * modules/netinet_in-tests: New file.
34500 * tests/test-netinet_in.c: New file.
34502 * modules/inttypes-tests: New file.
34503 * tests/test-inttypes.c: New file.
34505 * modules/fcntl-tests: New file.
34506 * tests/test-fcntl.c: New file.
34508 * modules/byteswap-tests: New file.
34509 * tests/test-byteswap.c: New file.
34511 * modules/arpa_inet-tests: New file.
34512 * tests/test-arpa_inet.c: New file.
34514 2007-02-17 Bruno Haible <bruno@clisp.org>
34516 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
34517 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
34518 if the corresponding module is not enabled. Emit link warnings if
34519 the function is used nevertheless.
34520 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
34521 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
34522 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
34523 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
34524 * modules/inttypes (Depends-on): Add link-warning.
34525 (Makefile.am): Copy the contents of build-aux/link-warning.h into
34526 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
34527 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
34528 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
34529 * modules/imaxdiv (configure.ac): Likewise.
34530 * modules/strtoimax (configure.ac): Likewise.
34531 * modules/strtoumax (configure.ac): Likewise.
34533 2007-02-17 Bruno Haible <bruno@clisp.org>
34535 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
34536 gl_STRING_MODULE_INDICATOR_DEFAULTS.
34537 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
34538 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
34540 2007-02-17 Bruno Haible <bruno@clisp.org>
34542 * modules/link-warning: New file.
34543 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
34544 * lib/string_.h (GL_LINK_WARNING): Remove definition.
34545 * modules/string (Depends-on): Add link-warning.
34546 (Makefile.am): Copy the contents of build-aux/link-warning.h into
34548 * MODULES.html.sh (Support for building libraries and executables): Add
34551 2007-02-17 Bruno Haible <bruno@clisp.org>
34553 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
34554 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
34555 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
34558 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
34559 Bruno Haible <bruno@clisp.org>
34561 * modules/tmpfile: New file.
34562 * lib/tmpfile.c: New file.
34563 * m4/tmpfile.m4: New file.
34564 * MODULES.html.sh (func_all_modules): New section "Input/output".
34566 2007-02-15 Bruno Haible <bruno@clisp.org>
34568 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
34569 (supports_delete_on_close): New function.
34570 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
34572 2007-02-14 Bruno Haible <bruno@clisp.org>
34574 * modules/mbspcasecmp-tests: New file.
34575 * tests/test-mbspcasecmp.sh: New file.
34576 * tests/test-mbspcasecmp.c: New file.
34578 New module mbspcasecmp.
34579 * modules/mbspcasecmp: New file.
34580 * lib/mbspcasecmp.c: New file.
34581 * lib/string_.h (strncasecmp): Change warning message.
34582 (mbspcasecmp): New declaration.
34583 * m4/mbspcasecmp.m4: New file.
34584 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34585 GNULIB_MBSPCASECMP.
34586 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
34587 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
34589 2007-02-14 Bruno Haible <bruno@clisp.org>
34591 * modules/mbsncasecmp-tests: New file.
34592 * tests/test-mbsncasecmp.sh: New file.
34593 * tests/test-mbsncasecmp.c: New file.
34595 New module mbsncasecmp.
34596 * modules/mbsncasecmp: New file.
34597 * lib/mbsncasecmp.c: New file.
34598 * lib/string_.h (mbsncasecmp): New declaration.
34599 * m4/mbsncasecmp.m4: New file.
34600 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34601 GNULIB_MBSNCASECMP.
34602 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
34603 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
34605 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
34607 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
34608 Verify that it doesn't overlap with our flags.
34609 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
34610 do not have the desired effect in multibyte locales; instead, use
34612 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
34613 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
34614 we don't require GNU fnmatch ourselves (if our users require it, they
34615 should do so explicitly).
34617 Fix regex code so it doesn't rely on strcasecmp.
34618 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
34619 Otherwise, include gnulib's langinfo.h.
34620 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
34621 undesirable behavior in non-C locales. Instead, rely on localecharset.
34622 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
34623 * modules/regex (FILES): Remove m4/codeset.m4.
34624 (Depends-on): Add localcharset. Remove strcase.
34626 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34628 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
34629 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
34631 2007-02-13 Bruno Haible <bruno@clisp.org>
34633 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
34634 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34636 2007-02-12 Bruno Haible <bruno@clisp.org>
34638 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
34639 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
34640 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
34641 time warning rather than a link error.
34643 2007-02-12 Bruno Haible <bruno@clisp.org>
34645 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
34646 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
34647 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34649 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
34651 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
34654 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
34656 New module 'time', so that apps can include <time.h> as per
34657 POSIX and GNU instead of separate include files like time_r.h
34658 and timegm.h. This implementation tries out a simpler approach
34659 for replacing decls in standard include files (as compared to
34660 the string module), somewhat as an experiment.
34662 * config/srclist.txt: Comment out mktime.c for now.
34663 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
34664 since it doesn't apply any more. Use generic wording instead.
34665 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
34667 * lib/time_.h, m4/time_h.m4, modules/time: New files.
34668 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
34669 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
34670 Don't include <sys/types.h>; no longer needed since we assume C89.
34671 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
34672 * lib/strftime.c: Likewise.
34673 * lib/time_r.c: Likewise.
34674 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
34675 * lib/nanosleep.c: Include <time.h> first, to check interface.
34676 * lib/strptime.c: Likewise.
34677 * lib/time_r.c: Likewise.
34678 * lib/timegm.c: Likewise.
34679 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
34681 * lib/timegm.c: Don't include timegm.h; no longer needed.
34682 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
34683 time.h now handles any problems in that area.
34684 (struct timespec, nanosleep): Remove; time.h now arranges for these.
34685 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
34686 that time.h defines struct timespec.
34687 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
34688 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
34690 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
34691 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
34692 needed. Set REPLACE_LOCALTIME.
34693 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
34694 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
34695 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
34696 nanosleep; time_h.m4 now does that. Don't require
34697 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
34698 module handles this now.
34699 * modules/getdate (Depends-on): Remove timespec. Add time.
34700 * modules/nanosleep (Depends-on): Likewise.
34701 * modules/stat-time (Depends-on): Likewise.
34702 * modules/nanosleep (Include): Include time.h, not timespec.h.
34703 * modules/strptime (Files): Remove lib/strptime.h.
34704 (Depends-on): Add extensions, time.
34705 (Include): Include time.h, not strptime.h.
34706 * modules/time_r (Files): Remove lib/time_r.h.
34707 (Depends-on): Add time.
34708 (Include): Include time.h, not time_r.h.
34709 * modules/timegm: Likewise.
34710 * modules/timespec (Description): Now does timespec-related decls
34711 of our own, instead of struct timespec itself.
34712 (Depends-on): Add time; remove extensions.
34713 (Maintainer): Add self.
34714 * modules/utimecmp (Depends-on): Add time; remove timespec.
34715 * modules/utimens (Depends-on): Likewise.
34716 * modules/xnanosleep (Depends-on): Likewise.
34718 2007-02-11 Bruno Haible <bruno@clisp.org>
34720 * lib/c-strstr.c: Include allocsa.h.
34721 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34722 * lib/c-strcasestr.c: Include allocsa.h.
34723 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34724 * lib/strcasestr.c: Include allocsa.h.
34725 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
34726 * lib/mbsstr.c: Include allocsa.h.
34727 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
34728 allocsa/freesa instead of malloc/free.
34729 * lib/mbscasestr.c: Include allocsa.h.
34730 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
34731 allocsa/freesa instead of malloc/free.
34732 * modules/c-strstr (Depends-on): Add allocsa.
34733 * modules/c-strcasestr (Depends-on): Likewise.
34734 * modules/strcasestr (Depends-on): Likewise.
34735 * modules/mbsstr (Depends-on): Likewise.
34736 * modules/mbscasestr (Depends-on): Likewise.
34738 2007-02-11 Bruno Haible <bruno@clisp.org>
34740 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
34742 * modules/mbsspn-tests: New file.
34743 * tests/test-mbsspn.sh: New file.
34744 * tests/test-mbsspn.c: New file.
34746 2007-02-11 Bruno Haible <bruno@clisp.org>
34748 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
34750 * modules/mbspbrk-tests: New file.
34751 * tests/test-mbspbrk.sh: New file.
34752 * tests/test-mbspbrk.c: New file.
34754 2007-02-11 Bruno Haible <bruno@clisp.org>
34756 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
34759 * modules/mbscspn-tests: New file.
34760 * tests/test-mbscspn.sh: New file.
34761 * tests/test-mbscspn.c: New file.
34763 2007-02-11 Bruno Haible <bruno@clisp.org>
34765 * modules/mbscasecmp-tests: New file.
34766 * tests/test-mbscasecmp.sh: New file.
34767 * tests/test-mbscasecmp.c: New file.
34769 2007-02-11 Bruno Haible <bruno@clisp.org>
34771 Ensure O(n) worst-case complexity of mbscasestr.
34772 * lib/mbscasestr.c: Include stdbool.h.
34773 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
34775 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
34776 the bookkeeping indicates that it's worth it.
34777 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
34779 * modules/mbscasestr-tests: New file.
34780 * tests/test-mbscasestr1.c: New file.
34781 * tests/test-mbscasestr2.sh: New file.
34782 * tests/test-mbscasestr2.c: New file.
34783 * tests/test-mbscasestr3.sh: New file.
34784 * tests/test-mbscasestr3.c: New file.
34785 * tests/test-mbscasestr4.sh: New file.
34786 * tests/test-mbscasestr4.c: New file.
34787 * m4/locale-tr.m4: New file.
34789 2007-02-11 Bruno Haible <bruno@clisp.org>
34791 Ensure O(n) worst-case complexity of mbsstr.
34792 * lib/mbsstr.c: Include stdbool.h.
34793 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
34795 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
34796 bookkeeping indicates that it's worth it.
34797 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
34799 * modules/mbsstr-tests: New file.
34800 * tests/test-mbsstr1.c: New file.
34801 * tests/test-mbsstr2.sh: New file.
34802 * tests/test-mbsstr2.c: New file.
34803 * tests/test-mbsstr3.sh: New file.
34804 * tests/test-mbsstr3.c: New file.
34805 * m4/locale-fr.m4: New file.
34807 2007-02-11 Bruno Haible <bruno@clisp.org>
34809 * lib/mbsrchr.c (mbsrchr): Fix bug.
34811 * modules/mbsrchr-tests: New file.
34812 * tests/test-mbsrchr.sh: New file.
34813 * tests/test-mbsrchr.c: New file.
34815 2007-02-11 Bruno Haible <bruno@clisp.org>
34817 * lib/mbschr.c (mbschr): Fix bug.
34819 * modules/mbschr-tests: New file.
34820 * tests/test-mbschr.sh: New file.
34821 * tests/test-mbschr.c: New file.
34822 * m4/locale-zh.m4: New file.
34824 2007-02-11 Bruno Haible <bruno@clisp.org>
34826 Support for copying multibyte string iterators.
34827 * lib/mbiter.h: Include <string.h>.
34828 (mbiter_multi_copy): New function.
34829 (mbi_copy): New macro.
34830 * lib/mbuiter.h: Include <string.h>.
34831 (mbuiter_multi_copy): New function.
34832 (mbui_copy): New macro.
34834 2007-02-11 Bruno Haible <bruno@clisp.org>
34837 * modules/mbslen: New file.
34838 * lib/mbslen.c: New file.
34839 * lib/string_.h (mbslen): New declaration.
34840 * m4/mbslen.m4: New file.
34841 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34843 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
34844 * MODULES.html.sh (Internationalization functions): Add mbslen.
34846 2007-02-11 Bruno Haible <bruno@clisp.org>
34848 Ensure O(n) worst-case complexity of strcasestr substitute.
34849 * lib/strcasestr.c: Include stdbool.h.
34850 (knuth_morris_pratt): New function.
34851 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
34852 bookkeeping indicates that it's worth it.
34853 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
34855 * modules/strcasestr-tests: New file.
34856 * tests/test-strcasestr.c: New file.
34858 2007-02-11 Bruno Haible <bruno@clisp.org>
34860 Ensure O(n) worst-case complexity of c_strcasestr.
34861 * lib/c-strcasestr.c: Include stdbool.h, string.h.
34862 (knuth_morris_pratt): New function.
34863 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
34864 the bookkeeping indicates that it's worth it.
34865 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
34867 * modules/c-strcasestr-tests: New file.
34868 * tests/test-c-strcasestr.c: New file.
34870 2007-02-11 Bruno Haible <bruno@clisp.org>
34872 Ensure O(n) worst-case complexity of c_strstr.
34873 * lib/c-strstr.c: Include stdbool.h, string.h.
34874 (knuth_morris_pratt): New function.
34875 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
34876 bookkeeping indicates that it's worth it.
34877 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
34879 * lib/c-strstr.c: Complete rewrite for maintainability.
34881 * modules/c-strstr-tests: New file.
34882 * tests/test-c-strstr.c: New file.
34884 2007-02-11 Bruno Haible <bruno@clisp.org>
34886 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
34887 5.2.1 and earlier, whereby \055 was treated just like the range
34889 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
34891 2007-02-08 Bruno Haible <bruno@clisp.org>
34893 * modules/regex (Depends-on): Add stdbool.
34894 Reported by Dalibor Topic <robilad@kaffe.org>.
34896 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
34898 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
34899 Prefer returning from main to exiting from it.
34900 Remove unnecessary parens after sizeof.
34902 2007-02-05 Bruno Haible <bruno@clisp.org>
34905 * modules/mbssep: New file.
34906 * lib/mbssep.c: New file.
34907 * lib/string_.h (strsep): Add a conditional link warning.
34908 (mbssep): New declaration.
34909 * m4/mbssep.m4: New file.
34910 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34912 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
34913 * MODULES.html.sh (Internationalization functions): Add mbssep.
34915 2007-02-05 Bruno Haible <bruno@clisp.org>
34917 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
34918 Optimize search in case of 1 delimiter.
34920 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
34922 * lib/acl.h: Include sys/types.h before sys/acl.h.
34924 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
34926 Merge upstream fix for glibc bugzilla #3957:
34928 2007-02-05 Jakub Jelinek <jakub@redhat.com>
34930 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
34931 bit for RE_HAT_LISTS_NOT_NEWLINE.
34932 (build_charclass_op): Remove bogus comment.
34934 2007-02-05 Simon Josefsson <simon@josefsson.org>
34936 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
34938 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
34940 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
34941 * lib/memmem.c [!defined _LIBC]: Include config.h.
34943 2007-02-04 Bruno Haible <bruno@clisp.org>
34945 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
34948 2007-02-04 Bruno Haible <bruno@clisp.org>
34950 New module mbstok_r.
34951 * modules/mbstok_r: New file.
34952 * lib/mbstok_r.c: New file.
34953 * lib/string_.h (strtok_r): Change argument names to match the
34954 comments. Add a conditional link warning.
34955 (mbstok_r): New declaration.
34956 * m4/mbstok_r.m4: New file.
34957 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34959 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
34960 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
34962 2007-02-04 Bruno Haible <bruno@clisp.org>
34965 * modules/mbsspn: New file.
34966 * lib/mbsspn.c: New file.
34967 * lib/string_.h (strspn): Add a conditional link warning.
34968 (mbsspn): New declaration.
34969 * m4/mbsspn.m4: New file.
34970 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34972 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
34973 * MODULES.html.sh (Internationalization functions): Add mbsspn.
34975 2007-02-04 Bruno Haible <bruno@clisp.org>
34977 New module mbspbrk.
34978 * modules/mbspbrk: New file.
34979 * lib/mbspbrk.c: New file.
34980 * lib/string_.h (strpbrk): Add a conditional link warning.
34981 (mbspbrk): New declaration.
34982 * m4/mbspbrk.m4: New file.
34983 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34985 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
34986 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
34988 2007-02-04 Bruno Haible <bruno@clisp.org>
34990 New module mbscspn.
34991 * modules/mbscspn: New file.
34992 * lib/mbscspn.c: New file.
34993 * lib/string_.h (strcspn): Add a conditional link warning.
34994 (mbscspn): New declaration.
34995 * m4/mbscspn.m4: New file.
34996 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
34998 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
34999 * MODULES.html.sh (Internationalization functions): Add mbscspn.
35001 2007-02-04 Bruno Haible <bruno@clisp.org>
35003 New module mbscasestr, reduced goal of strcasestr.
35004 * modules/mbscasestr: New file.
35005 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
35006 (mbscasestr): Renamed from strcasestr.
35007 * lib/strcasestr.c: Don't include mbuiter.h.
35008 (strcasestr): Remove support for multibyte locales.
35009 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
35010 Change the conditional link warning.
35011 (mbscasestr): New declaration.
35012 * m4/mbscasestr.m4: New file.
35013 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
35014 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
35015 REPLACE_STRCASESTR.
35016 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
35017 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35018 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
35019 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
35020 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
35021 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
35022 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
35023 (Depends-on): Remove mbuiter.
35024 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
35026 2007-02-04 Bruno Haible <bruno@clisp.org>
35028 Simplify handling of strncasecmp.
35029 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
35030 the conditional link warning.
35031 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35032 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
35033 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
35034 * modules/strcase (configure.ac): Don't invoke
35035 gl_STRING_MODULE_INDICATOR.
35036 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
35038 2007-02-04 Bruno Haible <bruno@clisp.org>
35040 New module mbscasecmp, reduced goal of strcasecmp.
35041 * modules/mbscasecmp: New file.
35042 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
35043 (mbscasecmp): Renamed from strcasecmp.
35044 * lib/strcasecmp.c: Don't include mbuiter.h.
35045 (strcasecmp): Remove support for multibyte locales.
35046 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
35047 Change the conditional link warning.
35048 (mbscasecmp): New declaration.
35049 * m4/mbscasecmp.m4: New file.
35050 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
35051 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
35052 REPLACE_STRCASECMP.
35053 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
35054 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35056 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
35057 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
35058 * modules/strcase (Files): Remove m4/mbrtowc.m4.
35059 (Depends-on): Remove mbuiter.
35060 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
35062 2007-02-04 Bruno Haible <bruno@clisp.org>
35064 New module mbsstr. Remove module strstr.
35065 * modules/mbsstr: New file.
35066 * modules/strstr: Remove file.
35067 * lib/mbsstr.c: Renamed from lib/strstr.c.
35068 (mbsstr): Renamed from strstr.
35069 * lib/string_.h (strstr): Remove declaration. Change the conditional
35071 (mbsstr): New declaration.
35072 * m4/mbsstr.m4: New file.
35073 * m4/strstr.m4: Remove file.
35074 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35076 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
35077 Don't initialize GNULIB_STRSTR.
35078 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
35079 substitute GNULIB_STRSTR and REPLACE_STRSTR.
35080 * MODULES.html.sh (Internationalization functions): Add mbsstr.
35081 (Support for systems lacking ANSI C 89): Remove strstr.
35083 2007-02-04 Bruno Haible <bruno@clisp.org>
35085 New module mbsrchr.
35086 * modules/mbsrchr: New file.
35087 * lib/mbsrchr.c: New file.
35088 * lib/string_.h (strrchr): Add a conditional link warning.
35089 (mbsrchr): New declaration.
35090 * m4/mbsrchr.m4: New file.
35091 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35093 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
35094 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
35096 2007-02-04 Bruno Haible <bruno@clisp.org>
35099 * modules/mbschr: New file.
35100 * lib/mbschr.c: New file.
35101 * lib/string_.h (strchr): Add a conditional link warning.
35102 (mbschr): New declaration.
35103 * m4/mbschr.m4: New file.
35104 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
35106 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
35107 * MODULES.html.sh (Internationalization functions): Add mbschr.
35109 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
35111 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
35113 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
35115 2007-02-04 Bruno Haible <bruno@clisp.org>
35117 New module description section 'configure.ac-early'.
35118 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
35119 (func_get_autoconf_early_snippet): New function.
35120 (func_import, func_create_testdir): Use it. Remove special cases for
35121 modules 'extensions' and 'lock'.
35122 * modules/extensions (configure.ac-early): Require
35123 gl_USE_SYSTEM_EXTENSIONS.
35124 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
35126 2007-02-04 Bruno Haible <bruno@clisp.org>
35128 Make use of gcj-4.3's -fsource and -ftarget option.
35129 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
35130 and if so try the options -fsource and -ftarget.
35131 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
35132 source_version, ftarget_option, target_version arguments.
35133 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
35134 (is_envjavac_oldgcj_14_14_usable): Renamed from
35135 is_envjavac_gcj_14_14_usable.
35136 (is_envjavac_oldgcj_14_13_usable): Renamed from
35137 is_envjavac_gcj_14_13_usable.
35138 (is_gcj_present): Update.
35139 (is_gcj_43, is_gcj43_usable): New functions.
35140 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
35141 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
35142 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
35143 try the options -fsource and -ftarget.
35145 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
35147 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
35148 checking code. Set N = ceil (1.5 * N) rather than to a slightly
35151 2007-02-03 Jim Meyering <jim@meyering.net>
35153 Give tools a better chance to allocate space for very large buffers.
35154 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
35156 Make pwd and readlink work also when run with an unreadable parent dir
35157 on systems with openat support.
35158 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
35159 provided getcwd function, even when we have openat support.
35160 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
35162 2007-02-02 Bruno Haible <bruno@clisp.org>
35164 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
35165 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
35166 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
35167 portability problems if one of these functions is only used on specific
35169 Reported by Paul Eggert.
35171 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
35173 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
35174 is causing more trouble than it's curing.
35175 * lib/regex_internal.h (__mempcpy): Remove.
35176 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
35177 (and make the code a tad smaller to boot).
35178 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
35180 2007-02-02 Jim Meyering <jim@meyering.net>
35182 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
35183 section, not in the Makefile.am: one.
35185 2007-02-02 Eric Blake <ebb9@byu.net>
35187 * lib/strchrnul.c: Always include config.h first.
35189 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
35190 gnulib strstr is not necessary here.
35192 2007-02-02 Simon Josefsson <simon@josefsson.org>
35194 * m4/socklen.m4: Fix typo.
35196 2007-02-02 Eric Blake <ebb9@byu.net>
35198 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
35199 * modules/netinet_in (Makefile.am): Likewise.
35201 2007-02-01 Bruno Haible <bruno@clisp.org>
35203 * lib/string_.h (GL_LINK_WARNING): New macro.
35204 (strcasecmp, strstr, strcasestr): If provided by the system,
35205 conditionally define as a macro that leads to a warning instead of to
35207 (strncasecmp): Conditionally define as a macro that leads to a warning.
35209 2007-02-01 Karl Berry <karl@gnu.org>
35211 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
35213 2007-02-01 Bruno Haible <bruno@clisp.org>
35215 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
35218 2007-02-01 Eric Blake <ebb9@byu.net>
35220 * modules/regex (Depends-on): Revert dependence on mempcpy.
35221 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
35222 module's definition of mempcpy.
35223 Reported by Paul Eggert.
35225 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
35227 * lib/string_.h: If the gnulib module XYZ is not present, undefine
35228 the symbol XYZ before redefining it. This fixes a problem with
35229 programs that don't use XYZ, when compiled on systems that define
35230 XYZ to something else.
35232 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
35234 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
35235 occurs when "mkdir -m foo" creates a setgid directory that is (1)
35236 writeable to group or other and (2) is intended to have a special
35237 mode bit that is set or cleared. In such a case, the directory
35238 should be neither group- nor other-writeable until the special
35239 mode bits are right.
35241 2007-01-31 Eric Blake <ebb9@byu.net>
35243 * modules/mountlist (Depends-on): Add strstr.
35245 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
35247 * modules/string (Makefile.am): Remove redundant replacement.
35248 * modules/regex (Depends-on): Add mempcpy.
35250 2007-01-31 Bruno Haible <bruno@clisp.org>
35252 New module description field 'Link'.
35253 * gnulib-tool (func_usage): Document --extract-link-directive.
35254 (sed_extract_prog): Recognize 'Link' directive.
35255 (func_get_link_directive): New function.
35256 (func_import): Show summary of link directives.
35257 Handle --extract-link-directive option.
35258 * modules/acl (Link): New section.
35259 * modules/clock-time (Link): New section.
35260 * modules/euidaccess (Link): New section.
35261 * modules/gettext (Link): New section.
35262 * modules/iconv (Link): New section.
35263 * modules/lock (Link): New section.
35264 * modules/nanosleep (Link): New section.
35265 * modules/readline (Link): New section.
35267 2007-01-27 Bruno Haible <bruno@clisp.org>
35269 Enforce the use of gnulib modules for unportable <string.h> functions.
35270 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
35271 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
35272 (gl_HEADER_STRING_H_BODY): Require it.
35273 * lib/string_.h: If the gnulib module XYZ is not present, redefine
35274 the symbol XYZ to one that gives a link error.
35275 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
35276 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
35277 * modules/mempcpy (configure.ac): Likewise.
35278 * modules/memrchr (configure.ac): Likewise.
35279 * modules/stpcpy (configure.ac): Likewise.
35280 * modules/stpncpy (configure.ac): Likewise.
35281 * modules/strcase (configure.ac): Likewise.
35282 * modules/strcasestr (configure.ac): Likewise.
35283 * modules/strchrnul (configure.ac): Likewise.
35284 * modules/strdup (configure.ac): Likewise.
35285 * modules/strndup (configure.ac): Likewise.
35286 * modules/strnlen (configure.ac): Likewise.
35287 * modules/strpbrk (configure.ac): Likewise.
35288 * modules/strsep (configure.ac): Likewise.
35289 * modules/strstr (configure.ac): Likewise.
35290 * modules/strtok_r (configure.ac): Likewise.
35292 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
35294 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
35296 2007-01-30 Jim Meyering <jim@meyering.net>
35298 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
35300 2007-01-29 Bruno Haible <bruno@clisp.org>
35302 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
35303 * lib/execute.c: Likewise.
35304 * lib/pipe.c: Likewise.
35305 * lib/printf-args.h: Likewise.
35306 * lib/printf-args.c: Likewise.
35307 * lib/printf-parse.c: Likewise.
35308 * lib/vasnprintf.c: Likewise.
35310 2007-01-29 Eric Blake <ebb9@byu.net>
35312 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
35315 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
35317 * lib/strptime.h (strptime): Use 'restrict' for args where
35318 POSIX requires this.
35319 * lib/strptime.c (strptime): Likewise.
35320 Change license notice from LGPL to GPL, since gnulib-tool will
35321 change this as needed.
35322 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
35324 Include "strptime.h" first, to check interface.
35325 Do not #undef _LIBC and _NL_CURRENT.
35326 Do not include <stdlib.h>; no longer needed.
35327 Include "time_r.h" and declare ptime_locale_status
35328 only if _LIBC is not defined.
35329 (__P): Remove unused macro.
35330 (match_string): Bring back glibc version, but use it only if _LIBC
35332 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
35333 Remove unnecessary assertion and abort() call.
35334 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
35335 * m4/strptime.m4: Fix serial number comment.
35336 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
35337 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
35338 (Depends-on): Add time_r.
35340 2007-01-29 Bruno Haible <bruno@clisp.org>
35342 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35344 * modules/strptime (Depends-on): Add stdbool.
35345 * lib/strptime.h: Include <time.h> always. Add comments.
35347 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
35349 * modules/strptime: New file.
35350 * lib/strptime.h: New file.
35351 * lib/strptime.c: New file.
35352 * m4/strptime.m4: New file.
35354 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
35356 * MODULES.html.sh: New module mpsort.
35357 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
35359 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
35360 a circularity problem with HP-UX ia64 reported by Bob Proulx in
35361 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
35363 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
35365 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
35367 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
35368 the parameter matches the prototype.
35370 2007-01-28 Jim Meyering <jim@meyering.net>
35372 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
35373 sys/time.h here, reverting that part of the previous patch:
35374 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
35376 2007-01-28 Bruno Haible <bruno@clisp.org>
35378 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
35379 value of $(SYS_TIME_H).
35380 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
35381 remove it conditionally, too. [added by Jim Meyering]
35382 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
35383 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
35384 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
35385 GETTIMEOFDAY_REPLACEMENT to 1.
35387 2007-01-28 Bruno Haible <bruno@clisp.org>
35389 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
35390 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
35391 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
35392 Set UNISTD_H instead of UNISTD_H2.
35393 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
35395 2007-01-28 Bruno Haible <bruno@clisp.org>
35397 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
35398 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
35400 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35402 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
35403 (func_create_testdir): Ensure C locale for `grep' and `tr'
35405 (func_create_megatestdir): Avoid one `grep'. Fix bug in
35406 ACLOCAL_AMFLAGS parsing state machine.
35408 2007-01-27 Bruno Haible <bruno@clisp.org>
35410 * modules/unistr/base: Update.
35412 2007-01-27 Bruno Haible <bruno@clisp.org>
35414 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
35415 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
35416 * modules/unistr/u32-mbtouc-unsafe: Renamed from
35417 modules/unistr/u32-mbtouc.
35418 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
35419 * lib/unistr.h: Update.
35420 * lib/linebreak.c: Update.
35421 * modules/unistr/u32-mbtouc: Renamed from
35422 modules/unistr/u32-mbtouc-safe.
35423 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
35424 * lib/unistr.h: Update.
35425 * lib/unistr/u32-to-u8.c: Update.
35426 * lib/unistr/u32-to-u16.c: Update.
35428 2007-01-27 Bruno Haible <bruno@clisp.org>
35430 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
35431 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
35432 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
35433 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
35434 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
35435 * modules/unistr/u16-mbtouc-unsafe: Renamed from
35436 modules/unistr/u16-mbtouc.
35437 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
35438 * lib/unistr.h: Update.
35439 * lib/linebreak.c: Update.
35440 * modules/linebreak: Update.
35441 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
35442 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
35443 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
35444 * modules/unistr/u16-mbtouc: Renamed from
35445 modules/unistr/u16-mbtouc-safe.
35446 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
35447 * lib/unistr.h: Update.
35448 * lib/unistr/u16-to-u8.c: Update.
35449 * modules/unistr/u16-to-u8: Update.
35450 * lib/unistr/u16-to-u32.c: Update.
35451 * modules/unistr/u16-to-u32: Update.
35453 2007-01-27 Bruno Haible <bruno@clisp.org>
35455 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
35456 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
35457 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
35458 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
35459 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
35460 * modules/unistr/u8-mbtouc-unsafe: Renamed from
35461 modules/unistr/u8-mbtouc.
35462 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
35463 * lib/unistr.h: Update.
35464 * lib/striconveh.c: Update.
35465 * modules/striconveh: Update.
35466 * lib/linebreak.c: Update.
35467 * modules/linebreak: Update.
35468 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
35469 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
35470 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
35471 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
35472 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
35473 * lib/unistr.h: Update.
35474 * lib/striconveh.c: Update.
35475 * modules/striconveh: Update.
35476 * lib/unistr/u8-to-u16.c: Update.
35477 * modules/unistr/u8-to-u16: Update.
35478 * lib/unistr/u8-to-u32.c: Update.
35479 * modules/unistr/u8-to-u32: Update.
35481 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35484 * lib/argz.c: Do not include strings.h nor memory.h, include
35485 string.h unconditionally. Patch by Simon Josefsson.
35487 2007-01-27 Bruno Haible <bruno@clisp.org>
35489 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
35490 from gl_HEADER_STRING_H_BODY.
35491 (gl_HEADER_STRING_H_BODY): Require it.
35492 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
35493 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
35494 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
35495 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
35496 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
35497 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
35498 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
35499 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
35500 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
35501 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
35502 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
35503 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
35504 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
35505 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
35506 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35508 2007-01-27 Bruno Haible <bruno@clisp.org>
35510 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
35511 check_PROGRAMS into noinst_PROGRAMS.
35512 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
35513 check_PROGRAMS in this case.
35514 (func_import): Set for_test to false.
35515 (func_create_testdir): Set for_test to true.
35517 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35518 Bruno Haible <bruno@clisp.org>
35520 * modules/strcasestr (Files): Remove lib/strcasestr.h.
35521 (Depends-on): Add string.
35522 (Includes): Use <string.h> instead of strcasestr.h.
35523 * modules/string (Makefile.am): Also substitute the value of
35524 REPLACE_STRCASESTR.
35525 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
35526 assume strcasestr is declared in <string.h> not <strings.h>. Also
35527 set REPLACE_STRCASESTR.
35528 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
35529 REPLACE_STRCASESTR.
35530 * lib/strcasestr.h: Remove file.
35531 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
35532 * lib/string_.h (strcasestr): New declaration.
35534 2007-01-27 Bruno Haible <bruno@clisp.org>
35536 * lib/string_.h: Use 'extern'.
35538 2007-01-27 Jim Meyering <jim@meyering.net>
35540 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
35541 of set-but-not-used local, "q".
35543 * lib/mempcpy.c: Include <config.h> before <string.h>.
35544 This fixes a compilation error on HP-UX, due to the system's
35545 "restrict"-using mempcpy prototype.
35547 2007-01-26 Bruno Haible <bruno@clisp.org>
35549 Small optimization.
35550 * lib/javacomp.c: Include c-strstr.h.
35551 (is_envjavac_gcj): Use c_strstr instead of strstr.
35552 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
35554 2007-01-26 Bruno Haible <bruno@clisp.org>
35556 * MODULES.html.sh (Unicode string functions): Add the new modules.
35558 * modules/uniconv/u32-strconv-to-locale: New file.
35559 * lib/uniconv/u32-strconv-to-locale.c: New file.
35561 * modules/uniconv/u16-strconv-to-locale: New file.
35562 * lib/uniconv/u16-strconv-to-locale.c: New file.
35564 * modules/uniconv/u8-strconv-to-locale: New file.
35565 * lib/uniconv/u8-strconv-to-locale.c: New file.
35567 * modules/uniconv/u32-strconv-from-locale: New file.
35568 * lib/uniconv/u32-strconv-from-locale.c: New file.
35570 * modules/uniconv/u16-strconv-from-locale: New file.
35571 * lib/uniconv/u16-strconv-from-locale.c: New file.
35573 * modules/uniconv/u8-strconv-from-locale: New file.
35574 * lib/uniconv/u8-strconv-from-locale.c: New file.
35576 * modules/uniconv/u32-strconv-to-enc: New file.
35577 * lib/uniconv/u32-strconv-to-enc.c: New file.
35578 * modules/uniconv/u32-strconv-to-enc-tests: New file.
35579 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
35581 * modules/uniconv/u16-strconv-to-enc: New file.
35582 * lib/uniconv/u16-strconv-to-enc.c: New file.
35583 * lib/uniconv/u-strconv-to-enc.h: New file.
35584 * modules/uniconv/u16-strconv-to-enc-tests: New file.
35585 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
35587 * modules/uniconv/u8-strconv-to-enc: New file.
35588 * lib/uniconv/u8-strconv-to-enc.c: New file.
35589 * modules/uniconv/u8-strconv-to-enc-tests: New file.
35590 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
35592 * modules/uniconv/u32-strconv-from-enc: New file.
35593 * lib/uniconv/u32-strconv-from-enc.c: New file.
35594 * modules/uniconv/u32-strconv-from-enc-tests: New file.
35595 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
35597 * modules/uniconv/u16-strconv-from-enc: New file.
35598 * lib/uniconv/u16-strconv-from-enc.c: New file.
35599 * modules/uniconv/u16-strconv-from-enc-tests: New file.
35600 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
35602 * modules/uniconv/u8-strconv-from-enc: New file.
35603 * lib/uniconv/u8-strconv-from-enc.c: New file.
35604 * lib/uniconv/u-strconv-from-enc.h: New file.
35605 * modules/uniconv/u8-strconv-from-enc-tests: New file.
35606 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
35608 * modules/uniconv/u32-conv-from-enc: New file.
35609 * lib/uniconv/u32-conv-from-enc.c: New file.
35610 * modules/uniconv/u32-conv-from-enc-tests: New file.
35611 * tests/uniconv/test-u32-conv-from-enc.c: New file.
35613 * modules/uniconv/u16-conv-from-enc: New file.
35614 * lib/uniconv/u16-conv-from-enc.c: New file.
35615 * lib/uniconv/u-conv-from-enc.h: New file.
35616 * modules/uniconv/u16-conv-from-enc-tests: New file.
35617 * tests/uniconv/test-u16-conv-from-enc.c: New file.
35619 * modules/uniconv/u8-conv-from-enc: New file.
35620 * lib/uniconv/u8-conv-from-enc.c: New file.
35621 * modules/uniconv/u8-conv-from-enc-tests: New file.
35622 * tests/uniconv/test-u8-conv-from-enc.c: New file.
35624 * modules/uniconv/base: New file.
35625 * lib/uniconv.h: New file.
35627 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
35629 * doc/gnulib-tool.texi (Initial import): Update to match current
35630 behavior with strdup module.
35631 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
35632 * lib/memmem.h: Remove; all uses removed. This is now done
35634 * lib/mempcpy.h: Likewise.
35635 * lib/memrchr.h: Likewise.
35636 * lib/stpcpy.h: Likewise.
35637 * lib/stpncpy.h: Likewise.
35638 * lib/strcase.h: Likewise.
35639 * lib/strchrnul.h: Likewise.
35640 * lib/strdup.h: Likewise.
35641 * lib/strndup.h: Likewise.
35642 * lib/strnlen.h: Likewise.
35643 * lib/strpbrk.h: Likewise.
35644 * lib/strsep.h: Likewise.
35645 * lib/strstr.h: Likewise.
35646 * lib/strtok_r.h: Likewise.
35647 * lib/string_.h: New file.
35648 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
35649 Rely on <string.h> instead.
35650 * lib/canon-host.c: Likewise.
35651 * lib/chdir-long.c: Likewise.
35652 * lib/concatpath.c: Likewise.
35653 * lib/exclude.c: Likewise.
35654 * lib/fchdir.c: Likewise.
35655 * lib/getaddrinfo.c: Likewise.
35656 * lib/getcwd.c: Likewise.
35657 * lib/getsubopt.c: Likewise.
35658 * lib/glob.c: Likewise.
35659 * lib/hard-locale.c: Likewise.
35660 * lib/iconvme.c: Likewise.
35661 * lib/javacomp.c: Likewise.
35662 * lib/mempcpy.c: Likewise.
35663 * lib/memrchr.c: Likewise.
35664 * lib/regex_internal.h: Likewise.
35665 * lib/stpncpy.c: Likewise.
35666 * lib/strcasecmp.c: Likewise.
35667 * lib/strchrnul.c: Likewise.
35668 * lib/strdup.c: Likewise.
35669 * lib/striconv.c: Likewise.
35670 * lib/striconveh.c: Likewise.
35671 * lib/striconveha.c: Likewise.
35672 * lib/strncasecmp.c: Likewise.
35673 * lib/strndup.c: Likewise.
35674 * lib/strnlen.c: Likewise.
35675 * lib/strsep.c: Likewise.
35676 * lib/strstr.c: Likewise.
35677 * lib/strtok_r.c: Likewise.
35678 * lib/userspec.c: Likewise.
35679 * lib/w32spawn.h: Likewise.
35680 * lib/xstrndup.c: Likewise.
35681 * lib/mountlist.c (strstr): Remove decl.
35682 * m4/string_h.m4: New file.
35683 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
35684 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
35685 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
35686 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
35687 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
35688 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
35689 Set REPLACE_STRCASECMP if necessary.
35690 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
35691 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
35692 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
35693 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
35694 HAVE_DECL_STRDUP if necessary.
35695 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
35696 since gl_FUNC_STRNDUP does that now.
35697 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
35698 Check for decl here...
35699 (gl_PREREQ_STRNLEN): ... not here.
35700 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
35701 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
35702 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
35703 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
35705 * modules/string: New file.
35706 * modules/memmem (Files): Remove special-purpose include file.
35707 (Depends-on): Add string.
35708 (Include): Include <string.h>, not the removed file.
35709 * modules/mempcpy: Likewise.
35710 * modules/memrchr: Likewise.
35711 * modules/stpcpy: Likewise.
35712 * modules/stpncpy: Likewise.
35713 * modules/strcase: Likewise.
35714 * modules/strchrnul: Likewise.
35715 * modules/strdup: Likewise.
35716 * modules/strndup: Likewise.
35717 * modules/strnlen: Likewise.
35718 * modules/strpbrk: Likewise.
35719 * modules/strsep: Likewise.
35720 * modules/strstr: Likewise.
35721 * modules/strtok_r: Likewise.
35722 * tests/test-dirname.c: Don't include "strdup.h", since
35723 <string.h> now suffices.
35724 * tests/test-memmem.c: Don't include "memmem.h", since
35725 <string.h> now suffices.
35727 2007-01-25 Bruno Haible <bruno@clisp.org>
35729 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
35732 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
35733 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
35734 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
35735 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
35737 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
35738 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
35739 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
35740 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
35741 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
35742 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
35744 2007-01-24 Bruno Haible <bruno@clisp.org>
35746 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
35747 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
35748 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
35749 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
35751 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
35752 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
35753 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
35754 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
35755 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
35756 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
35758 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
35760 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
35761 Reported by Ralf Wildenhues.
35763 2007-01-24 Bruno Haible <bruno@clisp.org>
35765 Drop AC_REQUIRE calls that are redundant with the module dependencies.
35766 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
35768 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
35769 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
35770 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
35772 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
35774 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
35775 Don't use 'exit'; just return from 'main'.
35776 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
35778 * lib/fnmatch_.h: Readjust white space and comments to match
35779 glibc, to avoid spurious diffs.
35781 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
35783 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
35784 2004-12-01 change by Jakub Jelinek, since this code won't compile
35785 if !LIBC. Problem reported by Bob Proulx.
35787 2007-01-23 Bruno Haible <bruno@clisp.org>
35789 * lib/striconveh.c: Include c-strcaseeq.h.
35790 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
35791 * modules/striconveh (Depends-on): Add c-strcaseeq.
35793 2007-01-23 Bruno Haible <bruno@clisp.org>
35795 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
35797 * modules/c-strcaseeq: New file.
35798 * lib/c-strcaseeq.h: New file.
35800 * modules/streq: New file.
35801 * lib/streq.h: New file.
35803 2007-01-23 Bruno Haible <bruno@clisp.org>
35805 * modules/striconveha-tests: New file.
35806 * tests/test-striconveha.c: New file.
35808 * lib/striconveha.h: Include <stdbool.h>.
35809 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
35810 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
35811 (mem_iconveha_notranslit): Renamed from mem_iconveha.
35812 (mem_iconveha): New function.
35813 (str_iconveha_notranslit): Renamed from str_iconveha.
35814 (str_iconveha): New function.
35815 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
35818 2007-01-23 Bruno Haible <bruno@clisp.org>
35820 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
35821 encodings without forgiving before trying any encoding with handler.
35822 (str_iconveha): Try all encodings without forgiving before trying any
35823 encoding with handler.
35825 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
35827 Import the following changes from libc.
35829 2005-10-14 Ulrich Drepper <drepper@redhat.com>
35831 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
35833 2004-12-01 Jakub Jelinek <jakub@redhat.com>
35835 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
35836 normal_bracket label.
35838 2004-09-01 Jakub Jelinek <jakub@redhat.com>
35841 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
35842 to normal_bracket after fetching the next character.
35844 2007-01-22 Bruno Haible <bruno@clisp.org>
35846 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
35848 * lib/striconveh.c (iconv_carefully_1): New function.
35849 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
35851 (str_cd_iconveh): Update.
35852 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
35853 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
35854 * tests/test-striconveh.c (MAGIC): New macro.
35855 (new_offsets): New function.
35856 (main): Test call with and without offsets.
35858 2007-01-22 Bruno Haible <bruno@clisp.org>
35860 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
35861 * modules/sys_select (Makefile.am): Likewise.
35862 * modules/sys_socket (Makefile.am): Likewise.
35863 * modules/sys_time (Makefile.am): Likewise.
35865 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
35867 * modules/gettimeofday (License): Change from GPL to LGPL, since
35868 gettimeofday is a library function.
35870 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35872 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
35874 2007-01-21 Bruno Haible <bruno@clisp.org>
35876 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
35878 2007-01-21 Bruno Haible <bruno@clisp.org>
35880 * modules/striconveha: New file.
35881 * lib/striconveha.h: New file.
35882 * lib/striconveha.c: New file.
35883 * MODULES.html.sh (Internationalization functions): Add striconveha.
35884 * lib/striconv.c (str_iconv): Optimize the case of an empty input
35886 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
35888 2007-01-21 Bruno Haible <bruno@clisp.org>
35890 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
35891 * lib/striconveh.c (str_iconveh): Likewise.
35893 2007-01-21 Bruno Haible <bruno@clisp.org>
35895 * lib/striconveh.h (mem_iconveh): New declaration.
35896 * lib/striconveh.c (mem_iconveh): New function.
35897 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
35899 2007-01-21 Bruno Haible <bruno@clisp.org>
35901 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
35903 * lib/striconveh.h (mem_cd_iconveh): Change specification.
35904 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
35905 original result buffer.
35906 (str_cd_iconveh): Update.
35907 * tests/test-striconveh.c (main): Update.
35909 * lib/striconv.h (mem_cd_iconv): Change specification.
35910 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
35912 (str_cd_iconv): Update.
35913 * tests/test-striconv.c (main): Update.
35915 2007-01-21 Bruno Haible <bruno@clisp.org>
35917 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
35919 2007-01-20 Jim Meyering <jim@meyering.net>
35921 * lib/userspec.c (parse_with_separator): If a user or group string
35922 starts with "+", skip the corresponding name-to-ID look-up, since
35923 such a look-up must fail: user and group names may not include "+".
35925 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
35927 * lib/poll.c: Include sys/time.h and time.h unconditionally,
35928 since we now assume the sys_time module.
35929 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
35930 check for sys/time.h; no longer needed.
35931 * modules/poll (Depends-on): Depend on sys_time.
35933 2007-01-18 Bruno Haible <bruno@clisp.org>
35935 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
35936 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
35938 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
35941 * tests/test-gettimeofday.c: Include <time.h>.
35942 (dummy): Remove variable.
35944 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
35945 gl_HEADER_SYS_TIME_H.
35946 (gl_HEADER_SYS_TIME_H): New macro.
35948 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
35949 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35950 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
35951 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
35952 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35953 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
35954 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
35955 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35956 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
35957 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
35958 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
35960 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
35961 last change; it caused a compilation error when cross-compiling to
35964 2007-01-18 Jim Meyering <jim@meyering.net>
35966 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
35967 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
35968 than the race-prone "test -d sys || mkdir sys".
35969 (configure.ac): Use AC_PROG_MKDIR_P.
35970 * modules/sys_select: Likewise.
35971 * modules/sys_socket: Likewise.
35972 * modules/sys_time: Likewise.
35974 2007-01-18 Eric Blake <ebb9@byu.net>
35976 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
35977 replace gettimeofday.
35978 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
35979 name, to avoid infinite recursion.
35981 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
35983 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
35985 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
35986 assume timespec.h defines struct timeval.
35987 * lib/settime.c: Likewise.
35988 * lib/utimens.c: Likewise.
35989 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
35990 since we now assume the gettimeofday module.
35991 * lib/tempname.c (__gen_tempname): Likewise.
35992 * lib/gettimeofday.h: Remove.
35993 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
35994 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
35995 Include <time.h>, for 'time()'.
35996 (localtime_buffer_addr): Also use this workaround if
35997 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
35998 to simplify the uses. All uses changed.
35999 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
36000 that #undef is inside {}, and 'const' follows type name consistently.
36001 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
36002 (gettimeofday): Do not use the maximum possible value for
36003 tv->tv_usec, since that might break usages other than ls.c.
36004 Instead, we'll leave ls.c alone. This undoes today's patch
36005 by Bruno. Add a compile-time warning for 1s-clock resolution;
36006 we've never observed the problem but might as well keep the
36008 * lib/nanosleep.c: Include timespec.h first, for interface check.
36009 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
36010 now assume the sys_time module.
36011 * lib/tempname.c: Likewise.
36012 * lib/timespec.h: Likewise.
36013 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
36015 * lib/strftime.c: Likewise.
36016 * lib/timespec.h: Likewise.
36017 * lib/posixtm.c: Include posixtm.h first, for interface check.
36018 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
36019 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
36020 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
36021 * lib/sys_time_.h: New file.
36022 * lib/timespec.h (struct timespec): Use long int, not long.
36023 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
36024 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
36025 Remove obsolescent call to AC_HEADER_TIME.
36026 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
36027 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36028 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
36029 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
36031 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
36032 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
36033 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
36034 into the sys_time module. Check for gettimeofday just once.
36035 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
36036 for gettimeofday signature to just check the signature. Merely
36037 compile it, since linking doesn't test signature. Improve test for
36038 whether gettimeofday.o is actually needed.
36039 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
36040 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
36041 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
36042 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36043 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
36044 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
36045 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
36046 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
36047 than worrying about sys/time.h.
36048 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
36049 Don't bother worrying about TIME_WITH_SYS_TIME.
36050 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36051 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
36052 * m4/sys_time_h.m4: New file.
36053 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
36054 Don't include sys/time.h. Return from main rather than exiting.
36055 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
36057 * modules/gethrxtime (Depends-on): Add sys_time.
36058 * modules/gettime (Depends-on): Likewise.
36059 * modules/gettimeofday (Depends-on): Likewise.
36060 * modules/nanosleep (Depends-on): Likewise.
36061 * modules/settime (Depends-on): Likewise.
36062 * modules/tempname (Depends-on): Likewise.
36063 * modules/utimens (Depends-on): Likewise.
36064 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
36065 (Include:) Change back to <sys/time.h>.
36066 (Maintainer:) Add self.
36067 * modules/sys_time: New file.
36068 * modules/tempname (Depends-on): Add gettimeofday.
36069 * tests/test-gettimeofday.c: Include <sys/time.h>
36070 rather than gettimeofday.h.
36072 2007-01-17 Bruno Haible <bruno@clisp.org>
36074 * gnulib-tool (func_get_license): Revert last patch. Instead, let
36075 the license default to GPL.
36076 (func_create_testdir): Don't complain if a module is LGPL and its
36077 tests module depends on GPLed modules.
36079 2007-01-17 Bruno Haible <bruno@clisp.org>
36081 * lib/gettimeofday.c (gettimeofday): Add code for the case
36082 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
36083 maximum possible value for tv->tv_usec, rather than the minimum one.
36085 2005-10-08 Martin Lambers <marlam@marlam.de>
36086 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
36087 2007-01-16 Bruno Haible <bruno@clisp.org>
36089 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
36090 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
36091 gl_FUNC_GETTIMEOFDAY.
36092 (Include): Add gettimeofday.h.
36093 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
36094 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
36095 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
36096 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
36097 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
36098 * lib/gettimeofday.h: New file.
36099 * lib/gettimeofday.c: Include <sys/timeb.h>.
36100 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
36101 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
36102 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
36103 fall back on time().
36105 * tests/test-gettimeofday.c: New file.
36106 * modules/gettimeofday-tests: New file.
36108 2007-01-16 Eric Blake <ebb9@byu.net>
36110 * modules/fnmatch (Depends-on): Depend on wchar.
36111 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
36112 * m4/fnmatch.m4: Likewise.
36113 * modules/mbchar (Makefile.am): Assume <wchar.h>.
36114 * m4/mbchar.m4: Likewise.
36115 * modules/mbswidth (Depends-on): Depend on wchar.
36116 * lib/mbswidth.c: Assume <wchar.h>.
36117 * m4/mbswidth.m4: Likewise.
36118 * modules/quotearg (Depends-on): Depend on wchar.
36119 * lib/quotearg.c: Assume <wchar.h>.
36120 * m4/quotearg.m4: Likewise.
36121 * modules/regex (Depends-on): Depend on wchar.
36122 * lib/regex_internal.h: Assume <wchar.h>.
36123 * m4/regex.m4: Likewise.
36124 * modules/stdint (Depends-on): Depend on wchar.
36125 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
36126 * m4/stdint.m4: Likewise.
36127 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
36128 * modules/strftime (Depends-on): Depend on wchar.
36129 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
36130 * modules/strtol (Depends-on): Depend on wchar.
36131 * lib/strtol.c: Assume <wchar.h>.
36132 * modules/wcwidth (Depends-on): Depend on wchar.
36133 * lib/wcwidth.h: Assume <wchar.h>.
36134 * m4/wcwidth.m4: Likewise.
36136 2007-01-16 Bruno Haible <bruno@clisp.org>
36138 * modules/csharpexec-script: New, created from...
36139 * modules/csharpexec: ... this.
36141 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
36143 * modules/javaexec-script: New, created from...
36144 * modules/javaexec: ... this.
36146 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36148 * modules/poll (Dependencies): Add sys_select.
36150 2007-01-15 Jim Meyering <jim@meyering.net>
36152 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
36153 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
36154 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
36155 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
36157 2007-01-15 Bruno Haible <bruno@clisp.org>
36159 * modules/striconveh: New file.
36160 * lib/striconveh.h: New file.
36161 * lib/striconveh.c: New file.
36162 * MODULES.html.sh (Internationalization functions): Add striconveh.
36164 * modules/striconveh-tests: New file.
36165 * tests/test-striconveh.c: New file.
36167 2007-01-15 Bruno Haible <bruno@clisp.org>
36169 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
36170 not from GNU libiconv or GNU libc.
36172 2007-01-15 Bruno Haible <bruno@clisp.org>
36174 * doc/gnulib-intro.texi (Copyright): Explain the different license
36175 terms for module descriptions, autoconf macros, tests, documentation.
36177 2007-01-14 Bruno Haible <bruno@clisp.org>
36179 * modules/striconv-tests: New file.
36180 * tests/test-striconv.c: New file.
36182 2007-01-14 Bruno Haible <bruno@clisp.org>
36184 * modules/iconv-tests: New file.
36185 * tests/test-iconv.c: New file.
36187 2007-01-14 Bruno Haible <bruno@clisp.org>
36189 * gnulib-tool (func_get_license): For test modules, use the license of
36192 2007-01-14 Bruno Haible <bruno@clisp.org>
36194 * modules/iconv (Include): Clarify that <iconv.h> can only be included
36195 if iconv is found to exist.
36197 2007-01-14 Bruno Haible <bruno@clisp.org>
36199 * modules/c-ctype-tests: New file.
36200 * tests/test-c-ctype.c: New file.
36202 2007-01-14 Bruno Haible <bruno@clisp.org>
36204 * modules/binary-io-tests: New file.
36205 * tests/test-binary-io.sh: New file.
36206 * tests/test-binary-io.c: New file.
36208 2007-01-14 Bruno Haible <bruno@clisp.org>
36210 * modules/array-oset-tests: New file.
36211 * tests/test-array_oset.c: New file.
36213 2007-01-14 Bruno Haible <bruno@clisp.org>
36215 * modules/array-list-tests: New file.
36216 * tests/test-array_list.c: New file.
36218 2007-01-14 Bruno Haible <bruno@clisp.org>
36220 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
36222 Reported by Simon Josefsson in
36223 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
36225 2007-01-14 Bruno Haible <bruno@clisp.org>
36227 * modules/allocsa-tests: New file.
36228 * tests/test-allocsa.c: New file.
36230 2007-01-14 Bruno Haible <bruno@clisp.org>
36232 * modules/fchdir (Depends-on): Add absolute-header.
36233 * modules/unistd (Depends-on): Likewise.
36235 2006-12-30 Bruno Haible <bruno@clisp.org>
36237 * modules/fchdir: New file.
36238 * modules/unistd (Files): Add lib/unistd_.h.
36239 (Makefile.am): Generate unistd.h from unistd_.h.
36240 * lib/fchdir.c: New file.
36241 * lib/dirent_.h: New file.
36242 * lib/unistd_.h: New file.
36243 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
36244 * m4/fchdir.m4: New file.
36245 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
36246 (gl_HEADER_UNISTD): Invoke it.
36247 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
36249 * lib/backupfile.c (opendir, closedir): Undefine.
36250 * lib/chown.c (open, close): Undefine.
36251 * lib/clean-temp.c (open, close): Undefine.
36252 * lib/copy-file.c (open, close): Undefine.
36253 * lib/execute.c (open, close): Undefine.
36254 * lib/fsusage.c (open, close): Undefine.
36255 * lib/gc-gnulib.c (open, close): Undefine.
36256 * lib/getcwd.c (opendir, closedir): Undefine.
36257 * lib/glob.c (opendir, closedir): Undefine.
36258 * lib/javacomp.c (open, close): Undefine.
36259 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
36260 * lib/openat-proc.c (open, close): Undefine.
36261 * lib/pagealign_alloc.c (open, close): Undefine.
36262 * lib/pipe.c (open, close): Undefine.
36263 * lib/progreloc.c (open, close): Undefine.
36264 * lib/savedir.c (opendir, closedir): Undefine.
36265 * lib/utime.c (open, close): Undefine.
36266 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
36268 2007-01-10 Bruno Haible <bruno@clisp.org>
36270 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
36272 2007-01-12 Eric Blake <ebb9@byu.net>
36274 Provide a robust <wchar.h>. Further simplifications are now
36275 possible in other modules, but not included here.
36276 * modules/wchar: New module.
36277 * m4/wchar.m4: New file.
36278 * lib/wchar_.h: Likewise.
36279 * modules/mbchar (Depends-on): Depend on wchar, as the first use
36281 * MODULES.html.sh (Extended multibyte and wide character utilities):
36284 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
36286 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
36287 to a reasonable default for memory allocation.
36288 (xreadlink): Don't allocate a huge buffer, to work around a buggy
36289 file system that reports garbage st_size values for symlinks.
36290 Problem reported by Liyang Hu.
36292 2007-01-11 Simon Josefsson <simon@josefsson.org>
36294 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
36295 Emacs .#* auto-save files).
36297 2007-01-11 Bruno Haible <bruno@clisp.org>
36299 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
36302 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
36304 Use @...@ consistently in lib/wctype_.h.
36305 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
36306 on it being set to 1 or 0.
36307 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
36308 go back to AC_SUBSTing it.
36309 * modules/wctype (Makefile.am): Undo previous change.
36311 2007-01-10 Eric Blake <ebb9@byu.net>
36313 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
36314 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
36315 * modules/wctype (Makefile.am): Likewise.
36316 Reported by Chris McGuire.
36318 2007-01-10 Jim Meyering <jim@meyering.net>
36320 fts.c: a small readability/maintainability improvement
36321 * lib/fts.c (fts_read): Make this code slightly more readable and
36322 maintainable by hoisting the "sp->fts_cur = p" assignments to
36323 immediately follow the statements that set P. Derived from
36324 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
36326 2007-01-10 Eric Blake <ebb9@byu.net>
36328 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
36329 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
36330 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
36331 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
36332 Reported by Chris McGuire.
36334 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36336 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
36339 2007-01-09 Bruno Haible <bruno@clisp.org>
36341 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
36342 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
36344 (func_module): Use them.
36346 2007-01-09 Bruno Haible <bruno@clisp.org>
36348 * modules/unistr/base: New file.
36349 * lib/unistr.h: New file.
36351 * modules/unistr/u8-to-u16: New file.
36352 * lib/unistr/u8-to-u16.c: New file.
36354 * modules/unistr/u8-to-u32: New file.
36355 * lib/unistr/u8-to-u32.c: New file.
36357 * modules/unistr/u16-to-u8: New file.
36358 * lib/unistr/u16-to-u8.c: New file.
36360 * modules/unistr/u16-to-u32: New file.
36361 * lib/unistr/u16-to-u32.c: New file.
36363 * modules/unistr/u32-to-u8: New file.
36364 * lib/unistr/u32-to-u8.c: New file.
36366 * modules/unistr/u32-to-u16: New file.
36367 * lib/unistr/u32-to-u16.c: New file.
36369 * modules/unistr/u8-check: New file.
36370 * modules/unistr/u16-check: New file.
36371 * modules/unistr/u32-check: New file.
36372 * lib/unistr/u8-check.c: New file.
36373 * lib/unistr/u16-check.c: New file.
36374 * lib/unistr/u32-check.c: New file.
36376 * modules/unistr/u8-chr: New file.
36377 * modules/unistr/u16-chr: New file.
36378 * modules/unistr/u32-chr: New file.
36379 * lib/unistr/u8-chr.c: New file.
36380 * lib/unistr/u16-chr.c: New file.
36381 * lib/unistr/u32-chr.c: New file.
36383 * modules/unistr/u8-cmp: New file.
36384 * modules/unistr/u16-cmp: New file.
36385 * modules/unistr/u32-cmp: New file.
36386 * lib/unistr/u8-cmp.c: New file.
36387 * lib/unistr/u16-cmp.c: New file.
36388 * lib/unistr/u32-cmp.c: New file.
36390 * modules/unistr/u8-cpy: New file.
36391 * modules/unistr/u16-cpy: New file.
36392 * modules/unistr/u32-cpy: New file.
36393 * lib/unistr/u8-cpy.c: New file.
36394 * lib/unistr/u16-cpy.c: New file.
36395 * lib/unistr/u32-cpy.c: New file.
36396 * lib/unistr/u-cpy.h: New file.
36398 * modules/unistr/u8-cpy-alloc: New file.
36399 * modules/unistr/u16-cpy-alloc: New file.
36400 * modules/unistr/u32-cpy-alloc: New file.
36401 * lib/unistr/u8-cpy-alloc.c: New file.
36402 * lib/unistr/u16-cpy-alloc.c: New file.
36403 * lib/unistr/u32-cpy-alloc.c: New file.
36404 * lib/unistr/u-cpy-alloc.h: New file.
36406 * modules/unistr/u8-endswith: New file.
36407 * modules/unistr/u16-endswith: New file.
36408 * modules/unistr/u32-endswith: New file.
36409 * lib/unistr/u8-endswith.c: New file.
36410 * lib/unistr/u16-endswith.c: New file.
36411 * lib/unistr/u32-endswith.c: New file.
36412 * lib/unistr/u-endswith.h: New file.
36414 * modules/unistr/u8-mblen: New file.
36415 * modules/unistr/u16-mblen: New file.
36416 * modules/unistr/u32-mblen: New file.
36417 * lib/unistr/u8-mblen.c: New file.
36418 * lib/unistr/u16-mblen.c: New file.
36419 * lib/unistr/u32-mblen.c: New file.
36421 * modules/unistr/u8-mbtouc: New file.
36422 * modules/unistr/u16-mbtouc: New file.
36423 * modules/unistr/u32-mbtouc: New file.
36424 * lib/unistr/u8-mbtouc.c: New file.
36425 * lib/unistr/u16-mbtouc.c: New file.
36426 * lib/unistr/u32-mbtouc.c: New file.
36428 * modules/unistr/u8-mbtouc-safe: New file.
36429 * modules/unistr/u16-mbtouc-safe: New file.
36430 * modules/unistr/u32-mbtouc-safe: New file.
36431 * lib/unistr/u8-mbtouc-safe.c: New file.
36432 * lib/unistr/u16-mbtouc-safe.c: New file.
36433 * lib/unistr/u32-mbtouc-safe.c: New file.
36435 * modules/unistr/u8-move: New file.
36436 * modules/unistr/u16-move: New file.
36437 * modules/unistr/u32-move: New file.
36438 * lib/unistr/u8-move.c: New file.
36439 * lib/unistr/u16-move.c: New file.
36440 * lib/unistr/u32-move.c: New file.
36441 * lib/unistr/u-move.h: New file.
36443 * modules/unistr/u8-next: New file.
36444 * modules/unistr/u16-next: New file.
36445 * modules/unistr/u32-next: New file.
36446 * lib/unistr/u8-next.c: New file.
36447 * lib/unistr/u16-next.c: New file.
36448 * lib/unistr/u32-next.c: New file.
36450 * modules/unistr/u8-prev: New file.
36451 * modules/unistr/u16-prev: New file.
36452 * modules/unistr/u32-prev: New file.
36453 * lib/unistr/u8-prev.c: New file.
36454 * lib/unistr/u16-prev.c: New file.
36455 * lib/unistr/u32-prev.c: New file.
36457 * modules/unistr/u8-set: New file.
36458 * modules/unistr/u16-set: New file.
36459 * modules/unistr/u32-set: New file.
36460 * lib/unistr/u8-set.c: New file.
36461 * lib/unistr/u16-set.c: New file.
36462 * lib/unistr/u32-set.c: New file.
36463 * lib/unistr/u-set.h: New file.
36465 * modules/unistr/u8-startswith: New file.
36466 * modules/unistr/u16-startswith: New file.
36467 * modules/unistr/u32-startswith: New file.
36468 * lib/unistr/u8-startswith.c: New file.
36469 * lib/unistr/u16-startswith.c: New file.
36470 * lib/unistr/u32-startswith.c: New file.
36471 * lib/unistr/u-startswith.h: New file.
36473 * modules/unistr/u8-stpcpy: New file.
36474 * modules/unistr/u16-stpcpy: New file.
36475 * modules/unistr/u32-stpcpy: New file.
36476 * lib/unistr/u8-stpcpy.c: New file.
36477 * lib/unistr/u16-stpcpy.c: New file.
36478 * lib/unistr/u32-stpcpy.c: New file.
36479 * lib/unistr/u-stpcpy.h: New file.
36481 * modules/unistr/u8-stpncpy: New file.
36482 * modules/unistr/u16-stpncpy: New file.
36483 * modules/unistr/u32-stpncpy: New file.
36484 * lib/unistr/u8-stpncpy.c: New file.
36485 * lib/unistr/u16-stpncpy.c: New file.
36486 * lib/unistr/u32-stpncpy.c: New file.
36487 * lib/unistr/u-stpncpy.h: New file.
36489 * modules/unistr/u8-strcat: New file.
36490 * modules/unistr/u16-strcat: New file.
36491 * modules/unistr/u32-strcat: New file.
36492 * lib/unistr/u8-strcat.c: New file.
36493 * lib/unistr/u16-strcat.c: New file.
36494 * lib/unistr/u32-strcat.c: New file.
36495 * lib/unistr/u-strcat.h: New file.
36497 * modules/unistr/u8-strchr: New file.
36498 * modules/unistr/u16-strchr: New file.
36499 * modules/unistr/u32-strchr: New file.
36500 * lib/unistr/u8-strchr.c: New file.
36501 * lib/unistr/u16-strchr.c: New file.
36502 * lib/unistr/u32-strchr.c: New file.
36504 * modules/unistr/u8-strcmp: New file.
36505 * modules/unistr/u16-strcmp: New file.
36506 * modules/unistr/u32-strcmp: New file.
36507 * lib/unistr/u8-strcmp.c: New file.
36508 * lib/unistr/u16-strcmp.c: New file.
36509 * lib/unistr/u32-strcmp.c: New file.
36511 * modules/unistr/u8-strcpy: New file.
36512 * modules/unistr/u16-strcpy: New file.
36513 * modules/unistr/u32-strcpy: New file.
36514 * lib/unistr/u8-strcpy.c: New file.
36515 * lib/unistr/u16-strcpy.c: New file.
36516 * lib/unistr/u32-strcpy.c: New file.
36517 * lib/unistr/u-strcpy.h: New file.
36519 * modules/unistr/u8-strcspn: New file.
36520 * modules/unistr/u16-strcspn: New file.
36521 * modules/unistr/u32-strcspn: New file.
36522 * lib/unistr/u8-strcspn.c: New file.
36523 * lib/unistr/u16-strcspn.c: New file.
36524 * lib/unistr/u32-strcspn.c: New file.
36525 * lib/unistr/u-strcspn.h: New file.
36527 * modules/unistr/u8-strdup: New file.
36528 * modules/unistr/u16-strdup: New file.
36529 * modules/unistr/u32-strdup: New file.
36530 * lib/unistr/u8-strdup.c: New file.
36531 * lib/unistr/u16-strdup.c: New file.
36532 * lib/unistr/u32-strdup.c: New file.
36533 * lib/unistr/u-strdup.h: New file.
36535 * modules/unistr/u8-strlen: New file.
36536 * modules/unistr/u16-strlen: New file.
36537 * modules/unistr/u32-strlen: New file.
36538 * lib/unistr/u8-strlen.c: New file.
36539 * lib/unistr/u16-strlen.c: New file.
36540 * lib/unistr/u32-strlen.c: New file.
36541 * lib/unistr/u-strlen.h: New file.
36543 * modules/unistr/u8-strmblen: New file.
36544 * modules/unistr/u16-strmblen: New file.
36545 * modules/unistr/u32-strmblen: New file.
36546 * lib/unistr/u8-strmblen.c: New file.
36547 * lib/unistr/u16-strmblen.c: New file.
36548 * lib/unistr/u32-strmblen.c: New file.
36550 * modules/unistr/u8-strmbtouc: New file.
36551 * modules/unistr/u16-strmbtouc: New file.
36552 * modules/unistr/u32-strmbtouc: New file.
36553 * lib/unistr/u8-strmbtouc.c: New file.
36554 * lib/unistr/u16-strmbtouc.c: New file.
36555 * lib/unistr/u32-strmbtouc.c: New file.
36557 * modules/unistr/u8-strncat: New file.
36558 * modules/unistr/u16-strncat: New file.
36559 * modules/unistr/u32-strncat: New file.
36560 * lib/unistr/u8-strncat.c: New file.
36561 * lib/unistr/u16-strncat.c: New file.
36562 * lib/unistr/u32-strncat.c: New file.
36563 * lib/unistr/u-strncat.h: New file.
36565 * modules/unistr/u8-strncmp: New file.
36566 * modules/unistr/u16-strncmp: New file.
36567 * modules/unistr/u32-strncmp: New file.
36568 * lib/unistr/u8-strncmp.c: New file.
36569 * lib/unistr/u16-strncmp.c: New file.
36570 * lib/unistr/u32-strncmp.c: New file.
36572 * modules/unistr/u8-strncpy: New file.
36573 * modules/unistr/u16-strncpy: New file.
36574 * modules/unistr/u32-strncpy: New file.
36575 * lib/unistr/u8-strncpy.c: New file.
36576 * lib/unistr/u16-strncpy.c: New file.
36577 * lib/unistr/u32-strncpy.c: New file.
36578 * lib/unistr/u-strncpy.h: New file.
36580 * modules/unistr/u8-strnlen: New file.
36581 * modules/unistr/u16-strnlen: New file.
36582 * modules/unistr/u32-strnlen: New file.
36583 * lib/unistr/u8-strnlen.c: New file.
36584 * lib/unistr/u16-strnlen.c: New file.
36585 * lib/unistr/u32-strnlen.c: New file.
36586 * lib/unistr/u-strnlen.h: New file.
36588 * modules/unistr/u8-strpbrk: New file.
36589 * modules/unistr/u16-strpbrk: New file.
36590 * modules/unistr/u32-strpbrk: New file.
36591 * lib/unistr/u8-strpbrk.c: New file.
36592 * lib/unistr/u16-strpbrk.c: New file.
36593 * lib/unistr/u32-strpbrk.c: New file.
36594 * lib/unistr/u-strpbrk.h: New file.
36596 * modules/unistr/u8-strrchr: New file.
36597 * modules/unistr/u16-strrchr: New file.
36598 * modules/unistr/u32-strrchr: New file.
36599 * lib/unistr/u8-strrchr.c: New file.
36600 * lib/unistr/u16-strrchr.c: New file.
36601 * lib/unistr/u32-strrchr.c: New file.
36603 * modules/unistr/u8-strspn: New file.
36604 * modules/unistr/u16-strspn: New file.
36605 * modules/unistr/u32-strspn: New file.
36606 * lib/unistr/u8-strspn.c: New file.
36607 * lib/unistr/u16-strspn.c: New file.
36608 * lib/unistr/u32-strspn.c: New file.
36609 * lib/unistr/u-strspn.h: New file.
36611 * modules/unistr/u8-strstr: New file.
36612 * modules/unistr/u16-strstr: New file.
36613 * modules/unistr/u32-strstr: New file.
36614 * lib/unistr/u8-strstr.c: New file.
36615 * lib/unistr/u16-strstr.c: New file.
36616 * lib/unistr/u32-strstr.c: New file.
36617 * lib/unistr/u-strstr.h: New file.
36619 * modules/unistr/u8-strtok: New file.
36620 * modules/unistr/u16-strtok: New file.
36621 * modules/unistr/u32-strtok: New file.
36622 * lib/unistr/u8-strtok.c: New file.
36623 * lib/unistr/u16-strtok.c: New file.
36624 * lib/unistr/u32-strtok.c: New file.
36625 * lib/unistr/u-strtok.h: New file.
36627 * modules/unistr/u8-uctomb: New file.
36628 * modules/unistr/u16-uctomb: New file.
36629 * modules/unistr/u32-uctomb: New file.
36630 * lib/unistr/u8-uctomb.c: New file.
36631 * lib/unistr/u16-uctomb.c: New file.
36632 * lib/unistr/u32-uctomb.c: New file.
36634 * MODULES.html.sh (Unicode string functions): Add the new modules.
36636 2007-01-08 Bruno Haible <bruno@clisp.org>
36638 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
36639 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
36642 2007-01-08 Karl Berry <karl@gnu.org>
36644 * doc/error.texi: mention that main() fns must set program_name
36645 when progname is used.
36647 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
36649 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
36650 WCTYPE_H is empty, for the benefit of builds from non-distclean
36651 directories. Problem reported by Eric Blake in
36652 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
36654 2007-01-08 Bruno Haible <bruno@clisp.org>
36656 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
36657 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
36658 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
36659 PROVIDE_CANONICALIZE_FILENAME_MODE.
36660 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
36662 2007-01-08 Bruno Haible <bruno@clisp.org>
36664 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
36665 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
36666 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
36667 * lib/fts.c: Likewise.
36668 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
36670 2006-12-25 Bruno Haible <bruno@clisp.org>
36672 * modules/utf8-ucs4-safe: New file.
36673 * lib/utf8-ucs4-safe.h: New file.
36674 * lib/unistr/utf8-ucs4-safe.c: New file.
36676 * modules/utf16-ucs4-safe: New file.
36677 * lib/utf16-ucs4-safe.h: New file.
36678 * lib/unistr/utf16-ucs4-safe.c: New file.
36680 * MODULES.html.sh (Unicode string functions): Add the new modules.
36682 2007-01-08 Bruno Haible <bruno@clisp.org>
36684 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
36685 (Depends-on): Add unitypes.
36686 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
36687 (u8_mbtouc_aux): Move out to separate file.
36688 (u8_mbtouc): Use ucs4_t, uint8_t types.
36689 * lib/unistr/utf8-ucs4.c: New file.
36691 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
36692 (Depends-on): Add unitypes.
36693 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
36694 (u16_mbtouc_aux): Move out to separate file.
36695 (u16_mbtouc): Use ucs4_t, uint16_t types.
36696 * lib/unistr/utf16-ucs4.c: New file.
36698 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
36699 (Depends-on): Add unitypes.
36700 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
36701 (u8_uctomb_aux): Move out to separate file.
36702 (u8_uctomb): Use ucs4_t, uint8_t types.
36703 * lib/unistr/ucs4-utf8.c: New file.
36705 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
36706 (Depends-on): Add unitypes.
36707 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
36708 (u16_uctomb_aux): Move out to separate file.
36709 (u16_uctomb): Use ucs4_t, uint16_t types.
36710 * lib/unistr/ucs4-utf16.c: New file.
36712 2006-12-25 Bruno Haible <bruno@clisp.org>
36714 * modules/unitypes: New file.
36715 * lib/unitypes.h: New file.
36716 * MODULES.html.sh (func_all_modules): New section "Unicode string
36717 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
36718 this section. Add unitypes.
36720 2007-01-08 Bruno Haible <bruno@clisp.org>
36722 Avoid variable names that conflict with those from libtool.
36723 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
36724 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
36725 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
36726 library_names_spec to acl_library_names_spec, hardcode_* to
36728 Reported by Ralf Wildenhues.
36730 2007-01-08 Bruno Haible <bruno@clisp.org>
36732 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
36734 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
36736 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
36737 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
36739 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
36741 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
36742 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
36743 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
36744 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
36746 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
36748 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
36749 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
36750 GC_USE_<algorithm>.
36751 * lib/gc-libgcrypt.c: Likewise.
36752 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
36753 * modules/gc-arctwo (configure.ac): Likewise.
36754 * modules/gc-des (configure.ac): Likewise.
36755 * modules/gc-hmac-md5 (configure.ac): Likewise.
36756 * modules/gc-hmac-sha1 (configure.ac): Likewise.
36757 * modules/gc-md2 (configure.ac): Likewise.
36758 * modules/gc-md4 (configure.ac): Likewise.
36759 * modules/gc-md5 (configure.ac): Likewise.
36760 * modules/gc-random (configure.ac): Likewise.
36761 * modules/gc-rijndael (configure.ac): Likewise.
36762 * modules/gc-sha1 (configure.ac): Likewise.
36764 2007-01-08 Bruno Haible <bruno@clisp.org>
36766 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
36768 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
36770 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
36772 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
36773 * modules/fcntl-safer (configure.ac): Likewise.
36774 * modules/fopen-safer (configure.ac): Likewise.
36775 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
36776 GNULIB_FWRITEERROR macro definition.
36778 2007-01-08 Bruno Haible <bruno@clisp.org>
36780 * m4/gnulib-common.m4: New file.
36781 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
36782 (func_get_filelist): Add m4/gnulib-common.m4.
36784 2007-01-08 Bruno Haible <bruno@clisp.org>
36786 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
36789 2007-01-08 Jim Meyering <jim@meyering.net>
36791 Use a more robust test for a "can't happen" condition.
36792 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
36793 narrowed the st_size value. Presuming the "can't happen" condition
36794 is true, that narrowing could conceivably convert an invalid st_size
36795 value into a valid one. Instead, use a change based on Matthew
36796 Woehlke's original patch.
36798 Slight readability improvement: use an assert-like macro
36799 in place of literal "abort ()" uses.
36800 * lib/fts.c (fts_assert): Define.
36801 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
36802 Use this macro instead of a bare 'abort'.
36804 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
36806 Don't worry about using IRIX 5.3's wctype.h broken definitions;
36807 simply work around them.
36808 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
36809 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
36810 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
36812 Don't bother to define as macros, since the standard doesn't require it.
36813 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
36814 longer worry about IRIX 5.3.
36815 (HAVE_WCTYPE_CTMP_BUG): Remove.
36817 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
36819 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
36820 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
36821 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36822 Problems reported by Georg Schwarz for IRIX 5.3.
36824 * gnulib-tool (autoconf_minversion): Take the maximum version number
36825 found, not the minimum. Problem reported by James Youngman.
36827 2007-01-03 Karl Berry <karl@gnu.org>
36829 * doc/error.texi: new file, explaining interaction with progname.
36830 * doc/gnulib.texi: include it. Update copyright.
36832 2007-01-03 Simon Josefsson <simon@josefsson.org>
36834 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
36835 AC_CANONICAL_HOST, to improve autobuild outputs.
36837 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
36838 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36840 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
36841 sockets, server sockets, and other file descriptors. Count errors
36842 to compute the return value. Reorder the code a bit to be easier
36843 to follow. Don't set event bits that were not requested (except
36844 POLLERR and POLLHUP).
36846 2007-01-01 Bruno Haible <bruno@clisp.org>
36848 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
36850 2007-01-03 Jim Meyering <jim@meyering.net>
36852 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
36854 2007-01-02 Bruno Haible <bruno@clisp.org>
36856 * modules/settime (Include): Require timespec.h.
36857 * modules/nanosleep (Include): Likewise.
36859 2007-01-01 Bruno Haible <bruno@clisp.org>
36861 * gnulib-tool (func_emit_copyright_notice): Bump year.
36862 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
36864 2007-01-01 Bruno Haible <bruno@clisp.org>
36866 Improve support for OpenBSD.
36867 * build-aux/config.rpath (libname_spec): Export.
36868 (library_names_spec): New variable. Export.
36869 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
36870 library_names_spec from the config.rpath output. Locate shared library
36871 through the name pattern in library_names_spec.
36873 2007-01-01 Eric Blake <ebb9@byu.net>
36875 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
36877 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
36879 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
36880 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
36881 assume the C locale, and avoid an "eval" that could cause trouble.
36882 Problem with SORT reported by Bob Proulx.
36884 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
36885 Define. Trivial patch from Henning Nielsen Lund, originally
36886 sent to bug-grep@gnu.org today.
36888 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
36890 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
36891 struct stat. Problem reported by Henning Nielsen Lund.
36892 * lib/acl.c: Include acl.h first, to check interface. Don't
36893 bother to include sys/types.h and sys/stat.h again.
36895 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
36897 Import the following change from libc; problem reported by
36900 2005-10-13 Ulrich Drepper <drepper@redhat.com>
36903 * lib/argp.h: Remove __NTH for __argp_usage inline function.
36905 2006-12-28 Jim Meyering <jim@meyering.net>
36907 * build-aux/announce-gen: Do not assume that the package
36908 builds any of tar.gz, tar.bz2, and .xdelta files.
36909 Suggestion from Simon Josefsson.
36911 2006-12-28 Simon Josefsson <simon@josefsson.org>
36913 * modules/announce-gen: New file.
36915 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
36917 * lib/mbchar.h: Just include <wctype.h>; the wctype module
36918 handles its gotchas now.
36919 * lib/mbswidth.c: Likewise.
36920 * lib/wcwidth.h: Likewise.
36921 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
36922 and iswcntrl; the wctype module does this stuff now.
36923 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36924 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
36925 * modules/mbchar (Depends-on): Add wctype.
36926 * modules/mbswidth (Depends-on): Likewise.
36927 * modules/wcwidth (Depends-on): Likewise.
36929 2006-12-27 Eric Blake <ebb9@byu.net>
36931 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
36932 module uses more than what <wctype.h> is required to provide.
36934 2006-12-26 Eric Blake <ebb9@byu.net>
36936 * gnulib-tool (sed_extract_prog): Avoid space-tab.
36938 2006-12-26 Eric Blake <ebb9@byu.net>
36940 * modules/absolute-header: New module.
36941 * modules/fcntl (Depends-on): Depend on it.
36942 * modules/inttypes (Depends-on): Likewise.
36943 * modules/stdint (Depends-on): Likewise.
36944 * modules/sys_stat (Depends-on): Likewise.
36945 * modules/wctype (Depends-on): Likewise.
36946 * MODULES.html.sh (Support for building libraries and
36947 executables): Document it.
36949 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
36951 * gnulib-tool (SED): Remove, undoing previous change.
36952 The problem was that it broke coreutils on Solaris, because
36953 "sed --posix" leaked into a makefile.
36954 (sed): New alias, if 'alias' and GNU sed.
36956 2006-12-24 Jim Meyering <jim@meyering.net>
36958 Work around an fchownat bug in glibc-2.4:
36959 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
36960 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
36961 in spite of the -P option.
36962 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
36964 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
36965 * modules/openat (Files): Add lib/fchownat.c.
36966 * lib/openat.c (fchownat): Don't define here. Move to...
36967 * lib/fchownat.c: ...this new file.
36969 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
36971 Fix bug reported by Bruno Haible in
36972 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
36973 where quotearg.c didn't compile on Mac OS X 10.2 because it
36974 lacks <wchar.h> and wint_t.
36975 * lib/wctype_.h (__wctype_wint_t): New type.
36976 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
36977 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
36978 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
36979 Arg is now of type __wctype_wint_t, not wint_t.
36980 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
36981 substitute HAVE_WINT_T.
36982 * modules/wctype (Files): Add m4/wint_t.m4.
36983 (wctype.h): Substitute HAVE_WINT_T.
36985 2006-12-23 Bruno Haible <bruno@clisp.org>
36987 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
36989 2006-12-23 Bruno Haible <bruno@clisp.org>
36991 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
36993 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
36996 2006-12-22 Bruno Haible <bruno@clisp.org>
36998 * lib/copy-file.c: Include acl.h.
36999 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
37000 Close the file descriptors only after being done with copy_acl.
37001 * modules/copy-file (Depends-on): Add acl.
37003 2006-12-22 Bruno Haible <bruno@clisp.org>
37005 * gnulib-tool (SED): New variable.
37006 Use $SED instead of sed everywhere.
37008 2006-12-22 Bruno Haible <bruno@clisp.org>
37010 * modules/no-c++: New file.
37011 * m4/no-c++.m4: New file.
37012 * MODULES.html.sh (Support for building libraries and executables):
37015 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
37017 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
37018 Include <limits.h>, and use its INT_MAX to rewrite the
37019 j loop so that it does not overflow 'int'. Problem reported by
37021 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
37022 Play it safe by shifting left by 1 rather than multiplying by 2,
37023 as GCC is less likely to optimize this away when the value
37024 is signed (when it assumes overflow leads to undefined behavior).
37025 Also, don't assume time_t uses two's complement.
37027 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
37029 * MODULES.html.sh: New module wctype.
37030 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
37031 * lib/fnmatch.c: Don't bother to include <wchar.h> before
37032 <wctype.h>, since the new wctype module should fix this.
37033 * lib/quotearg.c: Include <wctype.h> unconditionally, since
37034 the wctype module should arrange for it.
37035 * lib/regex_internal.h: Likewise.
37036 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
37037 since the wctype module should handle this now.
37038 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
37039 * modules/fnmatch (Depends-on): Add wctype.
37040 * modules/quotearg (Depends-on): Likewise.
37041 * modules/regex (Depends-on): Likewise.
37043 2006-12-19 Bruno Haible <bruno@clisp.org>
37045 * lib/strdup.h [C++]: Wrap definitions in extern "C".
37046 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
37048 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37050 * modules/savewd (Depends-on): Fix dependency on fcntl.
37052 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
37054 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
37055 conforms to C99, rather than relying on the user's environment
37056 setting of STDINT_H.
37058 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
37059 and Eric Blake <ebb9@byu.net>
37061 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
37062 This is more consistent with the other defines here.
37063 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
37064 Port to z/OS. Problem reported by Paul Gilmartin.
37065 Change local vars to use gl_ prefix rather than ac_.
37066 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
37067 with other defines.
37068 * modules/double-slash-root: New module.
37069 * modules/dirname (Files): Remove m4/double-slash-root.m4.
37070 (Depends-on): Add double-slash-root.
37071 * MODULES.html.sh (File system functions): Mention new module.
37073 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
37075 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
37076 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
37077 This is for the benefit of gzip, which doesn't do i18n.
37079 2006-12-12 Jim Meyering <jim@meyering.net>
37081 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
37082 Reported by Andreas Schwab <schwab@suse.de>.
37084 2006-12-12 Bruno Haible <bruno@clisp.org>
37086 Merge these changes.
37087 2006-09-05 Bruno Haible <bruno@clisp.org>
37088 * lib/iconvme.c (iconv_string): No need to save and restore errno when
37089 iconv_alloc succeeded.
37090 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
37091 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
37092 test for " && dest " at the end - dest is always != NULL there. Call
37093 iconv with 4xNULL arguments initially, to reset the state. Call iconv
37094 with 2xNULL arguments, also to flush the state storage. Handle the
37095 IRIX iconv behaviour. Realloc the final result, to throw away unused
37098 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
37100 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
37101 and fchmodat unconditionally, since glibc 2.4 has them.
37102 Problem reported by Arkadiusz Miskiewicz.
37104 2006-12-10 Bruno Haible <bruno@clisp.org>
37106 * gnulib-tool (func_import): Show the include files only for those
37107 modules that are copied and specified.
37108 Reported by Karl Berry.
37110 2006-12-08 Jim Meyering <jim@meyering.net>
37112 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
37113 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
37115 * build-aux/announce-gen: Add two new options, both optional:
37116 --bootstrap-tools=TOOL_LIST
37117 a comma-separated list of tools, e.g.,
37118 autoconf,automake,bison,gnulib
37119 --gnulib-snapshot-date=DATE
37120 if gnulib is in the bootstrap tool list,
37121 then report this as the snapshot date.
37122 If not specified, use the current date/time.
37123 If you specify a date here, be sure it's UTC.
37125 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37127 * tests/test-argp-2.sh: Fix test to match actual output.
37128 (func_compare): Fix sed script to be portable.
37130 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
37132 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
37133 workaround for this case. It is not autoconfigured now; offhand
37134 it's hard to see how to autoconfigure it.
37136 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
37138 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
37139 a directory that is about to be chowned. Such a directory's
37140 initial file permissions should permit the owner only and this
37141 should not be changed until after the chown, since the group and
37142 other bits would be incorrect if they granted permission before
37145 Fix porting problem for iswctype reported by Georg Schwarz in:
37146 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
37147 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
37148 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
37149 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
37150 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37152 2006-12-03 Jim Meyering <jim@meyering.net>
37154 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
37155 p->fts_statp may not yet be defined.
37156 (fts_read): Instead, set it in the caller, once p->fts_statp is
37157 sure to be defined, and corresponds to a top-level directory.
37158 This bug made du -x fail. Here's the coreutils test case:
37159 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
37160 Reported by Mike Frysinger.
37162 2006-12-01 Jim Meyering <jim@meyering.net>
37164 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
37165 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
37166 Reported by Simon Josefsson.
37168 2006-11-30 Jim Meyering <jim@meyering.net>
37170 * m4/warning.m4: Use the all-permissive copyright notice
37171 recommended by RMS (rather than LGPL).
37172 * m4/vararrays.m4: Likewise.
37173 * m4/flexmember.m4: Likewise.
37175 2006-11-29 Bruno Haible <bruno@clisp.org>
37177 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37178 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
37180 Reported by Simon Josefsson <simon@josefsson.org>.
37182 2006-11-28 James Youngman <jay@gnu.org>
37184 * README: Advise users that they might find the bug-gnulib@gnu.org
37185 and autotools-announce@gnu.org mailing lists useful.
37187 2006-11-28 Bruno Haible <bruno@clisp.org>
37189 * m4/ptrdiff_max.m4: Remove file.
37191 2006-11-21 Bruno Haible <bruno@clisp.org>
37193 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
37195 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37196 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
37198 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37199 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
37201 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37203 2006-11-28 Jim Meyering <jim@meyering.net>
37205 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
37206 warning from "gcc -Wshadow" about shadowing the builtin.
37208 2006-11-27 Bruno Haible <bruno@clisp.org>
37210 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
37212 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
37214 2006-11-27 Bruno Haible <bruno@clisp.org>
37215 Paul Eggert <eggert@cs.ucla.edu>
37217 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
37219 2006-11-26 Bruno Haible <bruno@clisp.org>
37221 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37222 noinst_LTLIBRARIES.
37224 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
37225 Bruno Haible <bruno@clisp.org>
37227 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
37228 if compiling with "gcc -ansi".
37230 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
37232 Fix some incompatibilities with gcc -ansi -pedantic.
37233 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
37234 if compiling pedantically with GCC, unless it's C99 or later.
37235 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
37236 it mishandles gcc -ansi -pedantic as well.
37237 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
37239 * lib/regexec.c (check_node_accept_bytes): Don't use auto
37240 initializers for struct if -pedantic, unless it's C99 or later.
37242 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
37244 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
37245 Don't close an fd more than once. Identical atimes indicate
37246 success, not failure.
37248 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
37250 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
37252 2006-11-23 Jim Meyering <jim@meyering.net>
37254 * build-aux/announce-gen: New file. From coreutils.
37256 2006-11-22 Jim Meyering <jim@meyering.net>
37258 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
37259 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
37260 (fts_read): Use a temporary to narrow the overused st_size member
37261 before using it in a switch statement. Reported by Matthew Woehlke.
37263 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
37264 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
37266 2006-11-20 Bruno Haible <bruno@clisp.org>
37268 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
37269 changequote instead of pairs of brackets.
37270 Reported by Andreas Schwab <schwab@suse.de>.
37272 2006-11-21 Jim Meyering <jim@meyering.net>
37274 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
37275 so as to remain compatible with older compilers.
37276 Patch from Michael Deutschmann.
37278 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
37280 * MODULES.html.sh (File system functions): Add openat.
37282 * lib/openat.h (rpl_fstatat): New macro, if
37283 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
37284 (fstatat): Define to rpl_fstatat under the same conditions,
37285 unless COMPILING_FSTATAT.
37286 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
37287 seems to have the bug.
37288 * lib/fstatat.c: New file.
37289 * modules/openat (Files): Add it.
37291 2006-11-20 Bruno Haible <bruno@clisp.org>
37293 * Makefile: New file.
37295 2006-11-20 Jim Meyering <jim@meyering.net>
37297 The beginnings of syntax-related checks for gnulib.
37298 * lib/Makefile: New file.
37299 * lib/t-idcache: New script. Ensure that the two halves of
37300 idcache.c stay in sync.
37302 * lib/idcache.c: Adjust comments in user- and group- portions to
37303 be more accurate, and to be consistent with one another.
37305 2006-11-20 Jim Meyering <jim@meyering.net>
37307 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
37308 continue using the flexible array member (thus, this module performs
37309 half as many malloc calls), with the addition that...
37310 (getgroup, getuser): Consistently record a non-match via an empty
37311 "name" string, and map an empty string match to a NULL return value.
37312 * modules/idcache (Depends-on): Re-add flexmember.
37314 * lib/idcache.c (getuser): Remove all uses of the register keyword.
37315 (getuidbyname, getgroup, getgidbyname): Likewise.
37317 Use cleaner syntax: NULL rather than 0.
37318 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
37320 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
37322 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
37323 It mishandled the case where the group was missing.
37324 Problem reported by Greg Schafer.
37325 * modules/idcache: Likewise.
37327 2006-11-18 Jim Meyering <jim@meyering.net>
37329 * check-module (%exempt_header): Add exception for some
37330 conditionally-included headers.
37332 * modules/i-ring (Depends-on): Add verify.
37333 (License): Change to LGPL.
37335 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
37337 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
37338 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
37339 and inttostr.h. Use snprintf rather than uinttostr, so that
37340 LGPLed code doesn't depend on GPLed.
37342 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
37344 * modules/inline (License): Change from GPL to LGPL.
37346 2006-11-17 Jim Meyering <jim@meyering.net>
37348 * modules/d-type (License): Switch to LGPL.
37350 2006-11-15 Bruno Haible <bruno@clisp.org>
37352 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
37354 2006-11-15 Eric Blake <ebb9@byu.net>
37356 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
37357 the module dependency.
37359 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37360 Bruno Haible <bruno@clisp.org>
37362 * gnulib-tool (func_create_testdir): Add license consistency check.
37364 2006-11-15 Eric Blake <ebb9@byu.net>
37366 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
37367 random "(cached)" in configure output.
37369 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37371 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
37372 test for conforming inttypes.h is both announced and cached.
37374 * MODULES.html.sh (seen_modules, seen_files): New variables.
37375 (func_module): Rewrite to use a few less gnulib-tool and sed
37376 invocations. Avoid a couple of quadratic algorithms for ...
37377 (missed_modules, missed_files): ... these, with ...
37378 (func_append, func_tmpdir): ... these new functions, from
37379 gnulib-tool. Analogously, install traps for cleanup.
37381 * tests/test-gc.c (main): Remove unused variables.
37382 * tests/test-read-file.c: Include stdlib.h, for 'free'.
37384 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
37386 * modules/inttostr (License): Change to LGPL.
37388 2006-11-14 Eric Blake <ebb9@byu.net>
37390 * modules/tempname (License): Change to LGPL.
37392 2006-11-14 Eric Blake <ebb9@byu.net>
37394 * doc/functions.texi (Function Portability): *printf functions on
37395 Cygwin now understand all POSIX size specifiers.
37397 2006-11-14 Bruno Haible <bruno@clisp.org>
37399 * modules/c-ctype (License): Change to LGPL.
37401 2006-11-12 Bruno Haible <bruno@clisp.org>
37403 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
37404 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
37405 for GNOME libraries, for which the include files are installed in
37406 subdirectories of $prefix/include.
37408 2006-11-12 Bruno Haible <bruno@clisp.org>
37410 * m4/lib-link.m4: Require at least autoconf-2.54.
37411 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
37412 name to underscores for the --with option.
37414 2006-11-13 Bruno Haible <bruno@clisp.org>
37416 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
37417 the tests directory.
37418 Reported by Ralf Wildenhues.
37420 2006-11-13 Bruno Haible <bruno@clisp.org>
37422 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
37423 (func_emit_initmacro_end): Undo the override here.
37424 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
37425 Works around the famous automake error in coreutils.
37427 2006-11-13 Eric Blake <ebb9@byu.net>
37429 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
37430 element, not its node.
37432 2006-11-12 Bruno Haible <bruno@clisp.org>
37434 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
37435 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
37437 2006-11-12 Bruno Haible <bruno@clisp.org>
37439 * gnulib-tool: New option --local-symlink.
37440 (func_usage): Document it.
37441 (lsymbolic): New variable.
37442 (func_import, func_create_testdir): If --symlink was not specified,
37443 test whether --local-symlink was specified and the file comes from
37444 the local_gnulib_dir.
37446 2006-11-12 Bruno Haible <bruno@clisp.org>
37448 * gnulib-tool (func_ln): New function.
37449 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
37451 2006-11-12 Bruno Haible <bruno@clisp.org>
37453 Finish support for source files in subdirectories.
37454 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
37455 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
37457 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
37459 2006-11-12 Bruno Haible <bruno@clisp.org>
37461 * gnulib-tool (func_get_automake_snippet): Synthesize also an
37462 EXTRA_lib_SOURCES augmentation.
37463 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
37465 2006-11-12 Jim Meyering <jim@meyering.net>
37467 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
37468 file descriptors. This also averts a failure on systems with
37469 native openat support when a traversed directory lacks "x" access.
37470 * lib/fts_.h: Include "i-ring.h"
37471 (struct FTS) [fts_fd_ring]: New member.
37472 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
37473 (FCHDIR): Add parentheses.
37474 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
37475 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
37476 When descending, rather than simply closing the previous
37477 fts_cwd_fd value, push that file descriptor onto the ring.
37478 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
37479 (fts_open): Initialize the new fd_ring member.
37480 (fts_close): Clear the ring.
37481 (fts_safe_changedir): When possible, use our new fd_ring to skip
37482 the diropen and fstat and dev/ino comparison that would normally
37483 accompany a virtual `chdir ("..")'.
37485 * modules/fts (Depends-on): Add i-ring.
37486 * modules/i-ring: New module.
37487 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
37488 * m4/i-ring.m4: New file.
37490 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37492 * gnulib-tool (func_create_testdir): Fix replacement of
37493 `build-aux' in configure.ac. Run autotools in gltests
37495 (func_create_testdir, func_create_megatestdir, test): There is
37496 no need for '--force' in most autotool invocations in a new
37497 tree. Actually fail the whole test if any of the tools, or the
37498 configure or make stages fail.
37500 Sync from Automake.
37501 * build-aux/gnupload: Revert last change. Add pointer to upload
37502 instructions of the GNU Maintenance Instructions.
37503 Suggestion by Karl Berry.
37505 2006-11-10 Jim Meyering <jim@meyering.net>
37507 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
37509 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
37511 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
37512 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
37513 (bind_textdomain_codeset) [! ENABLE_NLS]:
37514 Evaluate all the arguments. That way, callers get compatible behavior
37515 if the arguments have side effects. Also, it avoids some GCC
37516 diagnostics in some cases; Joel E. Denny reported problems when Bison
37517 was configured with --enable-gcc-warnigs.
37519 2006-11-10 Jim Meyering <jim@meyering.net>
37521 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
37522 relevant options in CFLAGS (like -O, -fno-inline) are taken into
37525 2006-11-10 Jim Meyering <jim@meyering.net>
37527 * modules/inline: New file/module.
37528 * modules/xalloc (Files): Remove m4/inline.m4.
37529 (Depends-on): Add inline, instead.
37530 * modules/oset: Likewise.
37531 * modules/list: Likewise.
37533 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
37535 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
37536 Problem reported by Matthew Woehlke.
37538 2006-11-09 Bruno Haible <bruno@clisp.org>
37540 * lib/tempname.c (gen_tempname): Remove variant that invokes
37542 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
37545 2006-11-08 Bruno Haible <bruno@clisp.org>
37547 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
37548 to 'yes' instead of 'cross-compiling'.
37550 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
37552 * lib/quotearg.h (quotearg_free): New decl.
37553 * lib/quotearg.c (quotearg_free): New function.
37554 (slot0, nslots, slotvec0, slotvec):
37555 Now file-scope so that quotearg_free can get at them.
37557 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37559 Sync from Automake.
37560 * build-aux/gnupload: Add missing 'gnu' to example URL.
37561 Report by Karl Berry.
37563 2006-11-08 Bruno Haible <bruno@clisp.org>
37565 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
37566 Suggested by Paul Eggert.
37568 2006-11-08 Jim Meyering <jim@meyering.net>
37570 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
37571 It's already included if !_LIBC.
37572 (fts_safe_changedir): Add a comment.
37574 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
37576 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
37577 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
37580 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
37581 definitions up, to avoid colliding with change below.
37582 (static_inline) [HAVE_INLINE]: New macro.
37583 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
37584 Provide extern decls when !HAVE_INLINE. Do not define unless
37585 static_inline is defined, either by us or by xmalloc.c. Use
37586 static_inline rather than static inline.
37587 (XCALLOC): Optimize sizeof(T) = 1 case.
37588 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
37590 2006-11-07 Bruno Haible <bruno@clisp.org>
37592 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
37593 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
37595 * modules/xalloc (Files): Add m4/inline.m4.
37597 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37599 * README: Fix typo.
37600 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
37601 (Miscellanous Notes): ...from this.
37603 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
37605 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
37606 Mention that offsetof should be used instead of sizeof.
37609 2006-11-07 Bruno Haible <bruno@clisp.org>
37611 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
37613 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
37615 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
37616 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
37617 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
37618 (gl_tree_add_before, gl_tree_add_after):
37619 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
37620 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
37621 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
37622 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
37623 (gl_linked_add_after, gl_linked_add_at): Likewise.
37624 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
37625 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
37626 (gl_tree_add_before, gl_tree_add_after): Likewise.
37627 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
37628 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
37629 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37631 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37633 * lib/gl_oset.h: Use C comment style, not C++ comment style.
37635 2006-11-06 Bruno Haible <bruno@clisp.org>
37637 * m4/inline.m4: New file.
37638 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
37639 * modules/list (Files): Add m4/inline.m4.
37640 * modules/oset (Files): Likewise.
37642 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
37644 * lib/idcache.c: Include <stddef.h>, for offsetof.
37645 (struct userid.name): Change from char * to a flexible array member.
37647 * modules/idcache (Depends-on): Add flexmember.
37649 * MODULES.html.sh (Core language properties): New module flexmember.
37650 * modules/flexmember, m4/flexmember.m4: New files.
37652 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
37653 inline functions that are identical with the old xnmalloc_inline,
37654 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
37655 that we can avoid some unnecessary integer multiplications and
37656 divisions in the common case where the element size is known at
37658 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
37660 (xnboundedmalloc): Remove.
37661 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
37662 arguments, for consistency with rest of this header.
37663 (xcharalloc): Rewrite using XNMALLOC.
37664 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
37665 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
37666 versions have been moved to lib/xalloc.h and renamed to be the
37667 non-*_inline versions.
37668 (xmalloc, xrealloc): Implement without reference to the xnmalloc
37669 and xnrealloc functions, since those functions are now inline and
37671 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
37672 renaming described above.
37673 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
37674 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
37675 captures the dependency in AC_C_INLINE.
37677 New module canonicalize-lgpl, proposed by Charles Wilson in
37678 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
37679 with a few small changes afterwards.
37680 * MODULES.html.sh (File system functions): New module
37682 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
37683 and canonicalize_file_name.
37684 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
37685 * modules/canonicalize-lgpl: New files.
37687 2006-11-05 Bruno Haible <bruno@clisp.org>
37689 * gnulib-tool (func_import, func_create_testdir): Create directories
37690 also for files in subdirectories of lib/.
37692 2006-11-05 Bruno Haible <bruno@clisp.org>
37694 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
37697 2006-11-03 Bruno Haible <bruno@clisp.org>
37699 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
37700 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
37701 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
37702 (xnboundedmalloc): New inline function.
37703 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
37704 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
37706 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
37708 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
37709 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
37710 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
37712 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
37713 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
37715 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
37716 gl_tree_add_after): Use XMALLOC instead of xmalloc.
37717 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
37719 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
37720 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
37721 gl_tree_add_after): Use XMALLOC instead of xmalloc.
37722 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
37723 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
37724 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
37725 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
37727 2006-11-03 Bruno Haible <bruno@clisp.org>
37729 * lib/c-ctype.h [C++]: Define functions without name mangling.
37730 * lib/fwriteerror.h [C++]: Likewise.
37731 * lib/gcd.h [C++]: Likewise.
37732 * lib/linebreak.h [C++]: Likewise.
37734 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
37736 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
37737 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
37738 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
37739 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
37740 Check for functions and headers just once.
37741 Check for declaration of canonicalize_file_name.
37742 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
37744 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
37746 * gnulib-tool (func_import): Fix typo in actioncmd.
37748 2006-11-02 Bruno Haible <bruno@clisp.org>
37750 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
37751 newline sequence in the Makefile.am snippet as a space, like "make"
37753 Reported by Roger Persson <perrog@gmail.com>.
37755 2006-11-01 Bruno Haible <bruno@clisp.org>
37757 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
37758 already declared in <string.h>.
37759 * lib/strcase.h (strncasecmp): Don't declare it if yes.
37761 2006-11-01 Bruno Haible <bruno@clisp.org>
37763 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
37764 * lib/strcase.h: Include <string.h>.
37765 (strcasecmp): Define to rpl_strcasecmp here.
37767 2006-11-01 Bruno Haible <bruno@clisp.org>
37769 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
37771 2006-11-01 Eric Blake <ebb9@byu.net>
37773 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
37775 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
37777 2006-10-29 Bruno Haible <bruno@clisp.org>
37779 Make it compile in C++ mode.
37780 * lib/full-write.c (full_rw): Add a cast.
37782 2006-11-01 Bruno Haible <bruno@clisp.org>
37784 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
37785 be POSIX compliant.
37786 Reported by Roger Persson <perrog@gmail.com>.
37788 2006-11-01 Eric Blake <ebb9@byu.net>
37790 * lib/getopt_.h: Fix comments.
37792 2006-10-31 Eric Blake <ebb9@byu.net>
37794 * modules/tmpdir (Depends-on): Add sys_stat.
37795 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
37796 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
37797 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
37798 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
37801 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
37803 Avoid some C++ diagnostics reported by Bruno Haible.
37804 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
37806 (quotearg_alloc): Use xcharalloc rather than xmalloc.
37807 (struct slotvec): Move to top level.
37808 (quotearg_n_options): Rewrite to avoid xmalloc.
37809 * lib/xalloc.h (xcharalloc): New function.
37810 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
37811 [defined __cplusplus]: Add function template that provides result
37812 type propagation. This part of the change is from Bruno Haible.
37814 2006-10-29 Bruno Haible <bruno@clisp.org>
37816 Make it compile in C++ mode.
37817 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
37818 * lib/strnlen1.c (strnlen1): Cast memchr result.
37819 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
37820 * lib/clean-temp.c (string_equals, string_hash): Add casts.
37821 (create_temp_dir): Rename local variable 'template'.
37822 (compile_csharp_using_sscli): Add cast.
37823 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
37824 * lib/findprog.c (find_in_path): Likewise.
37825 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
37826 * lib/wait-process.c (register_slave_subprocess): Likewise.
37828 2006-10-22 Bruno Haible <bruno@clisp.org>
37830 * modules/tsearch: New file.
37831 * lib/tsearch.h: New file.
37832 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
37833 * m4/tsearch.m4: New file.
37834 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
37836 2006-10-29 Eric Blake <ebb9@byu.net>
37838 * lib/arcfour.c: Assume config.h.
37839 * lib/arctwo.c: Likewise.
37840 * lib/base64.c: Likewise.
37841 * lib/check-version.c: Likewise.
37842 * lib/crc.c: Likewise.
37843 * lib/des.c: Likewise.
37844 * lib/gc-gnulib.c: Likewise.
37845 * lib/gc-libgcrypt.c: Likewise.
37846 * lib/gc-pbkdf2-sha1.c: Likewise.
37847 * lib/getaddrinfo.c: Likewise.
37848 * lib/getdelim.c: Likewise.
37849 * lib/getline.c: Likewise.
37850 * lib/hmac-md5.c: Likewise.
37851 * lib/hmac-sha1.c: Likewise.
37852 * lib/iconvme.c: Likewise.
37853 * lib/md2.c: Likewise.
37854 * lib/md4.c: Likewise.
37855 * lib/memxor.c: Likewise.
37856 * lib/read-file.c: Likewise.
37857 * lib/readline.c: Likewise.
37858 * lib/rijndael-alg-fst.c: Likewise.
37859 * lib/rijndael-api-fst.c: Likewise.
37860 * lib/xgetdomainname.c: Likewise.
37862 2006-10-28 Eric Blake <ebb9@byu.net>
37864 * lib/xstrndup.c: Assume config.h.
37866 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
37868 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
37869 stat-macros.h is now for our own macros, whereas stat_h is for
37870 macros in the <sys/stat.h> name space.
37871 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
37872 (STAT_MACROS_H): Remove.
37873 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
37874 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
37875 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
37876 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
37877 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
37878 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
37879 Move these macros to ...
37880 * lib/stat_.h: here. Don't include stat-macros.h.
37881 * lib/canonicalize.c: Don't include stat-macros.h.
37882 * lib/chown.c: Likewise.
37883 * lib/euidaccess.c: Likewise.
37884 * lib/file-type.c: Likewise.
37885 * lib/filemode.c: Likewise.
37886 * lib/glob.c: Likewise.
37887 * lib/isapipe.c: Likewise.
37888 * lib/lchown.c: Likewise.
37889 * lib/lstat.c: Likewise.
37890 * lib/mkdir-p.c: Likewise.
37891 * lib/rmdir.c: Likewise.
37892 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
37893 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
37894 unless mkdir isn't declared, to speed up 'configure'.
37895 Always create sys/stat.h, since it's unlikely any real sys/stat.h
37896 would define all the S_* symbols.
37897 * modules/canonicalize (Depends-on):
37898 Depend on sys_stat, not stat-macros.
37899 * modules/chown: Likewise.
37900 * modules/euidaccess: Likewise.
37901 * modules/filemode: Likewise.
37902 * modules/file-type: Likewise.
37903 * modules/glob: Likewise.
37904 * modules/isapipe: Likewise.
37905 * modules/lchown: Likewise.
37906 * modules/lstat: Likewise.
37907 * modules/mkancesdirs: Likewise.
37908 * modules/rmdir: Likewise.
37909 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
37910 * modules/modechange: Likewise.
37911 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
37912 (configure.ac): Remove gl_STAT_MACROS.
37913 * modules/sys_stat (Depends-on): Remove stat-macros.
37915 2006-10-27 Bruno Haible <bruno@clisp.org>
37917 * m4/signed.m4: Remove file.
37918 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
37920 * modules/vasnprintf (Files): Remove m4/signed.m4.
37922 2006-10-27 Bruno Haible <bruno@clisp.org>
37924 Update to GNU gettext 0.16.
37925 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
37926 m4/inttypes-h.m4, m4/signed.m4.
37927 * m4/gettext.m4: Update to GNU gettext 0.16.
37928 * m4/intl.m4: New file, from GNU gettext.
37929 * m4/intldir.m4: New file, from GNU gettext.
37930 * config/srclist.txt: Update
37932 2006-10-27 Eric Blake <ebb9@byu.net>
37934 * MODULES.html.sh: Document tempname.
37935 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
37937 (Files): Move lib/tempname.c...
37938 * modules/tempname: ...to this new module.
37939 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
37940 (gl_PREREQ_TEMPNAME): Move...
37941 * m4/tempname.m4: ...to this new file.
37942 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
37943 * modules/sys_stat (Depends-on): Add stat-macros.
37944 * lib/stat_.h (includes): Pick up stat macros.
37945 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
37946 if stat macros are broken.
37947 * lib/tempname.c (includes): No need to include "stat-macros.h".
37948 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
37949 (direxists, __path_search) [!_LIBC]: Don't compile these in
37950 gnulib; the tmpdir module covers that.
37951 * lib/tempname.h: New file.
37953 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
37955 * COPYING: Explain how gnulib-tool converts licence headers.
37956 Almost all wording by Eric Blake.
37958 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
37960 * lib/mbchar.h (is_basic_table): Make read-only.
37961 * lib/mbchar.c (is_basic_table): Likewise.
37962 Reported by John Darrington.
37964 2006-10-25 Bruno Haible <bruno@clisp.org>
37966 * lib/progname.h (set_program_name): Undefine before defining.
37968 2006-10-25 Bruno Haible <bruno@clisp.org>
37970 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
37971 false for non-gcc C++ compilers.
37972 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37974 2006-10-24 Bruno Haible <bruno@clisp.org>
37976 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
37977 iconv implementations like Irix iconv.
37979 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
37981 * modules/vararrays: New file.
37982 * m4/vararrays.m4: New file, taken from diffutils.
37983 * MODULES.html.sh: New module vararrays.
37985 2006-10-24 Karl Berry <karl@gnu.org>
37987 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
37988 Don't call GNU Unix.
37990 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37992 * users.txt: Add Libtool.
37996 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
37998 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
37999 to gnulib's policy of including config.h unconditionally.
38001 2006-10-24 Bruno Haible <bruno@clisp.org>
38003 * modules/wcwidth (Files): Add m4/wint_t.m4.
38004 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
38005 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
38007 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
38009 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
38010 to pacify GCC with some -W flags enabled. Problem reported by
38013 2006-10-24 Jim Meyering <jim@meyering.net>
38015 * MODULES.html.sh: Remove uinttostr. It's not a module.
38016 Reported by Karl Berry.
38018 2006-10-23 Bruno Haible <bruno@clisp.org>
38020 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
38022 2006-10-24 Bruno Haible <bruno@clisp.org>
38024 * lib/gl_list.h: Use C comment style, not C++ comment style.
38026 2006-10-23 Eric Blake <ebb9@byu.net>
38028 * lib/getaddrinfo.c (includes): Add missing include.
38030 2006-10-23 Bruno Haible <bruno@clisp.org>
38031 Paul Eggert <eggert@cs.ucla.edu>
38033 Ability to rename obstack_free.
38034 * lib/obstack.h (__obstack_free): New macro. Declare instead of
38036 (obstack_free): Invoke the __obstack_free macro.
38037 * lib/obstack.c (obstack_free): Use __obstack_free macro.
38039 2006-10-23 Bruno Haible <bruno@clisp.org>
38040 Paul Eggert <eggert@cs.ucla.edu>
38042 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
38043 __argc, __argv from the declaration. (They are defined as macros on
38046 2006-10-22 Bruno Haible <bruno@clisp.org>
38048 * doc/gnulib-intro.texi: New file.
38049 * doc/gnulib.texi: Include it.
38051 2006-10-21 Bruno Haible <bruno@clisp.org>
38053 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
38054 "Introduction", "Miscellanous Notes", "Particular Modules".
38056 2006-10-21 Bruno Haible <bruno@clisp.org>
38058 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38059 Change mostlyclean-local rule to avoid sh syntax error from bash
38060 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
38062 2006-10-23 Jim Meyering <jim@meyering.net>
38064 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
38065 in place of snprintf.
38067 * modules/inttostr (Files): Add lib/uinttostr.c.
38068 * lib/uinttostr.c (inttostr): New file/function.
38069 * lib/inttostr.h (uinttostr): Declare.
38070 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
38071 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
38073 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
38075 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
38077 * lib/canonicalize.c (ELOOP): Define if not already defined.
38078 Problem reported by Bruno Haible in
38079 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
38081 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
38083 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
38084 Problem reported by Perry Smith and Ville Laurikari.
38086 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
38089 2006-10-19 Bruno Haible <bruno@clisp.org>
38091 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
38094 2006-10-19 Bruno Haible <bruno@clisp.org>
38096 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
38099 2006-10-19 Bruno Haible <bruno@clisp.org>
38101 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
38103 2006-10-19 Bruno Haible <bruno@clisp.org>
38105 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
38108 2006-10-19 Bruno Haible <bruno@clisp.org>
38110 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
38113 2006-10-19 Bruno Haible <bruno@clisp.org>
38115 * gnulib-tool (func_create_testdir): Don't include ftruncate and
38116 mountlist by default.
38118 2006-10-16 Bruno Haible <bruno@clisp.org>
38120 * lib/c-strstr.c: Include c-strstr.h.
38122 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
38124 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
38127 2006-10-18 Bruno Haible <bruno@clisp.org>
38129 * lib/lock.h [C++]: Wrap definitions in extern "C".
38131 2006-10-18 Bruno Haible <bruno@clisp.org>
38133 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
38136 2006-10-18 Bruno Haible <bruno@clisp.org>
38138 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
38140 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
38142 * lib/xstrtol.h: Include gettext.h.
38143 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
38144 Problem reported by Eric Blake.
38145 * modules/xstrtol (Depends-on): Add gettext-h.
38147 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
38149 * lib/strftime.c (advance): New macro.
38150 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
38151 incomplete type, so you can't add 0 to it. Problem and patch
38152 reported by Eelco Dolstra for dietlibc.
38154 2006-10-18 Jim Meyering <jim@meyering.net>
38156 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
38157 type for a local, and rename it: s/up/user_proc/.
38159 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
38161 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
38162 READ_UTMP_USER_PROCESS.
38163 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
38165 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
38167 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
38168 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
38170 2006-10-17 Eric Blake <ebb9@byu.net>
38172 * lib/sigprocmask.c (sigprocmask): Fix typo.
38174 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
38176 * modules/clean-temp (Makefile.am): Don't add to make output...
38177 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
38180 2006-10-17 Bruno Haible <bruno@clisp.org>
38182 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
38183 differently if DEFAULT_TEXT_DOMAIN is set.
38185 2006-10-16 Bruno Haible <bruno@clisp.org>
38187 * lib/clean-temp.c: Include fwriteerror.h.
38189 2006-10-16 Bruno Haible <bruno@clisp.org>
38191 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
38193 2006-10-16 Bruno Haible <bruno@clisp.org>
38195 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
38196 * lib/sigprocmask.h: Include <sys/types.h>.
38197 (sigset_t): Use the system's definition if present.
38199 2006-10-17 Eric Blake <ebb9@byu.net>
38201 * lib/xvasprintf.c (includes): Assume config.h.
38202 * lib/xasprintf.c (includes): Likewise.
38204 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
38206 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
38207 at least as wide as intmax_t.
38209 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
38211 (Imported from Automake.)
38212 * build-aux/gnupload: Update to version 1.1 of directive file.
38214 2006-10-16 Eric Blake <ebb9@byu.net>
38216 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
38217 match Automake 1.10a.
38219 2006-10-14 Bruno Haible <bruno@clisp.org>
38221 * modules/sigprocmask: New file.
38222 * lib/sigprocmask.h: New file.
38223 * lib/sigprocmask.c: New file.
38224 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
38225 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
38226 request sigprocmask.o.
38227 (gl_PREREQ_SIGPROCMASK): New macro.
38228 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
38229 (Depends-on): Add sigprocmask.
38230 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
38231 gt_SIGNALBLOCKING. Test for 'raise' only once.
38232 * lib/fatal-signal.c: Include sigprocmask.h.
38233 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
38234 unblock_fatal_signals): Define always.
38235 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
38238 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
38240 Sync from Automake.
38241 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
38242 which incorrectly sets the mode of an existing destination
38243 directory. In some cases the unpatched install-sh could do the
38244 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
38245 system. We hope this is rare in practice, but it's clearly worth
38246 fixing. Problem reported by Alex Unleashed in
38247 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
38248 Also, don't bother to check for -m bugs unless we're using -m;
38249 suggested by Stepan Kasal.
38251 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38253 Sync from Automake.
38254 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
38255 `-c' flag, so they appear at the same position as in %FASTDEP%
38256 mode in depend2.am. Fixes build failure for FreeBSD's c89,
38257 which ignores unknown options only after the first non-option.
38258 Bug report against M4 by Nelson H. F. Beebe.
38260 2006-10-13 Jim Meyering <jim@meyering.net>
38262 Fix a bug in yesterday's change.
38263 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
38264 p->fts_statp->st_dev would be used uninitialized.
38265 Ensures that we always call fts_stat on the very first entry.
38266 Miklos Szeredi reported that find -xdev stopped working.
38268 2006-10-12 Bruno Haible <bruno@clisp.org>
38270 * gnulib-tool (func_get_automake_snippet): Append an automatically
38271 computed EXTRA_DIST augmentation.
38272 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
38273 * modules/alloca-opt (Makefile.am): Likewise.
38274 * modules/allocsa (Makefile.am): Likewise.
38275 * modules/arcfour (Makefile.am): Likewise.
38276 * modules/arctwo (Makefile.am): Likewise.
38277 * modules/argmatch (Makefile.am): Likewise.
38278 * modules/argz (Makefile.am): Likewise.
38279 * modules/atexit (Makefile.am): Likewise.
38280 * modules/backupfile (Makefile.am): Likewise.
38281 * modules/byteswap (Makefile.am): Likewise.
38282 * modules/c-strtod (Makefile.am): Likewise.
38283 * modules/c-strtold (Makefile.am): Likewise.
38284 * modules/calloc (Makefile.am): Likewise.
38285 * modules/canon-host (Makefile.am): Likewise.
38286 * modules/canonicalize (Makefile.am): Likewise.
38287 * modules/chdir-long (Makefile.am): Likewise.
38288 * modules/chdir-safer (Makefile.am): Likewise.
38289 * modules/check-version (Makefile.am): Likewise.
38290 * modules/chown (Makefile.am): Likewise.
38291 * modules/cloexec (Makefile.am): Likewise.
38292 * modules/close-stream (Makefile.am): Likewise.
38293 * modules/closeout (Makefile.am): Likewise.
38294 * modules/crc (Makefile.am): Likewise.
38295 * modules/csharpexec (Makefile.am): Likewise.
38296 * modules/cycle-check (Makefile.am): Likewise.
38297 * modules/des (Makefile.am): Likewise.
38298 * modules/dev-ino (Makefile.am): Likewise.
38299 * modules/dirfd (Makefile.am): Likewise.
38300 * modules/dirname (Makefile.am): Likewise.
38301 * modules/dup2 (Makefile.am): Likewise.
38302 * modules/eealloc (Makefile.am): Likewise.
38303 * modules/error (Makefile.am): Likewise.
38304 * modules/euidaccess (Makefile.am): Likewise.
38305 * modules/exclude (Makefile.am): Likewise.
38306 * modules/exitfail (Makefile.am): Likewise.
38307 * modules/fcntl-safer (Makefile.am): Likewise.
38308 * modules/fcntl (Makefile.am): Likewise.
38309 * modules/file-type (Makefile.am): Likewise.
38310 * modules/fileblocks (Makefile.am): Likewise.
38311 * modules/filemode (Makefile.am): Likewise.
38312 * modules/filenamecat (Makefile.am): Likewise.
38313 * modules/fnmatch (Makefile.am): Likewise.
38314 * modules/fopen-safer (Makefile.am): Likewise.
38315 * modules/fpending (Makefile.am): Likewise.
38316 * modules/fprintftime (Makefile.am): Likewise.
38317 * modules/free (Makefile.am): Likewise.
38318 * modules/fsusage (Makefile.am): Likewise.
38319 * modules/ftruncate (Makefile.am): Likewise.
38320 * modules/fts (Makefile.am): Likewise.
38321 * modules/gc-arcfour (Makefile.am): Likewise.
38322 * modules/gc-des (Makefile.am): Likewise.
38323 * modules/gc-hmac-md5 (Makefile.am): Likewise.
38324 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
38325 * modules/gc-md4 (Makefile.am): Likewise.
38326 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
38327 * modules/gc-sha1 (Makefile.am): Likewise.
38328 * modules/gc (Makefile.am): Likewise.
38329 * modules/getaddrinfo (Makefile.am): Likewise.
38330 * modules/getcwd (Makefile.am): Likewise.
38331 * modules/getdelim (Makefile.am): Likewise.
38332 * modules/getdomainname (Makefile.am): Likewise.
38333 * modules/getgroups (Makefile.am): Likewise.
38334 * modules/gethostname (Makefile.am): Likewise.
38335 * modules/gethrxtime (Makefile.am): Likewise.
38336 * modules/getline (Makefile.am): Likewise.
38337 * modules/getloadavg (Makefile.am): Likewise.
38338 * modules/getlogin_r (Makefile.am): Likewise.
38339 * modules/getndelim2 (Makefile.am): Likewise.
38340 * modules/getopt (Makefile.am): Likewise.
38341 * modules/getpagesize (Makefile.am): Likewise.
38342 * modules/getpass-gnu (Makefile.am): Likewise.
38343 * modules/getpass (Makefile.am): Likewise.
38344 * modules/getsubopt (Makefile.am): Likewise.
38345 * modules/gettime (Makefile.am): Likewise.
38346 * modules/gettimeofday (Makefile.am): Likewise.
38347 * modules/getugroups (Makefile.am): Likewise.
38348 * modules/getusershell (Makefile.am): Likewise.
38349 * modules/glob (Makefile.am): Likewise.
38350 * modules/group-member (Makefile.am): Likewise.
38351 * modules/hard-locale (Makefile.am): Likewise.
38352 * modules/hash (Makefile.am): Likewise.
38353 * modules/hmac-md5 (Makefile.am): Likewise.
38354 * modules/hmac-sha1 (Makefile.am): Likewise.
38355 * modules/human (Makefile.am): Likewise.
38356 * modules/idcache (Makefile.am): Likewise.
38357 * modules/imaxabs (Makefile.am): Likewise.
38358 * modules/imaxdiv (Makefile.am): Likewise.
38359 * modules/inet_ntop (Makefile.am): Likewise.
38360 * modules/inet_pton (Makefile.am): Likewise.
38361 * modules/intprops (Makefile.am): Likewise.
38362 * modules/inttostr (Makefile.am): Likewise.
38363 * modules/inttypes (Makefile.am): Likewise.
38364 * modules/isapipe (Makefile.am): Likewise.
38365 * modules/javaversion (Makefile.am): Likewise.
38366 * modules/lchmod (Makefile.am): Likewise.
38367 * modules/lchown (Makefile.am): Likewise.
38368 * modules/localcharset (Makefile.am): Likewise.
38369 * modules/long-options (Makefile.am): Likewise.
38370 * modules/lstat (Makefile.am): Likewise.
38371 * modules/malloc (Makefile.am): Likewise.
38372 * modules/mathl (Makefile.am): Likewise.
38373 * modules/mbchar (Makefile.am): Likewise.
38374 * modules/md2 (Makefile.am): Likewise.
38375 * modules/md4 (Makefile.am): Likewise.
38376 * modules/md5 (Makefile.am): Likewise.
38377 * modules/memcasecmp (Makefile.am): Likewise.
38378 * modules/memchr (Makefile.am): Likewise.
38379 * modules/memcmp (Makefile.am): Likewise.
38380 * modules/memcoll (Makefile.am): Likewise.
38381 * modules/memcpy (Makefile.am): Likewise.
38382 * modules/memmem (Makefile.am): Likewise.
38383 * modules/memmove (Makefile.am): Likewise.
38384 * modules/mempcpy (Makefile.am): Likewise.
38385 * modules/memrchr (Makefile.am): Likewise.
38386 * modules/memset (Makefile.am): Likewise.
38387 * modules/memxor (Makefile.am): Likewise.
38388 * modules/mkancesdirs (Makefile.am): Likewise.
38389 * modules/mkdir-p (Makefile.am): Likewise.
38390 * modules/mkdir (Makefile.am): Likewise.
38391 * modules/mkdtemp (Makefile.am): Likewise.
38392 * modules/mkstemp (Makefile.am): Likewise.
38393 * modules/mktime (Makefile.am): Likewise.
38394 * modules/modechange (Makefile.am): Likewise.
38395 * modules/mountlist (Makefile.am): Likewise.
38396 * modules/nanosleep (Makefile.am): Likewise.
38397 * modules/obstack (Makefile.am): Likewise.
38398 * modules/openat (Makefile.am): Likewise.
38399 * modules/pagealign_alloc (Makefile.am): Likewise.
38400 * modules/pathmax (Makefile.am): Likewise.
38401 * modules/physmem (Makefile.am): Likewise.
38402 * modules/poll (Makefile.am): Likewise.
38403 * modules/posixtm (Makefile.am): Likewise.
38404 * modules/posixver (Makefile.am): Likewise.
38405 * modules/putenv (Makefile.am): Likewise.
38406 * modules/quote (Makefile.am): Likewise.
38407 * modules/quotearg (Makefile.am): Likewise.
38408 * modules/raise (Makefile.am): Likewise.
38409 * modules/read-file (Makefile.am): Likewise.
38410 * modules/readline (Makefile.am): Likewise.
38411 * modules/readlink (Makefile.am): Likewise.
38412 * modules/readtokens (Makefile.am): Likewise.
38413 * modules/readutmp (Makefile.am): Likewise.
38414 * modules/realloc (Makefile.am): Likewise.
38415 * modules/regex (Makefile.am): Likewise.
38416 * modules/rename-dest-slash (Makefile.am): Likewise.
38417 * modules/rename (Makefile.am): Likewise.
38418 * modules/rijndael (Makefile.am): Likewise.
38419 * modules/rmdir (Makefile.am): Likewise.
38420 * modules/rpmatch (Makefile.am): Likewise.
38421 * modules/safe-read (Makefile.am): Likewise.
38422 * modules/safe-write (Makefile.am): Likewise.
38423 * modules/same-inode (Makefile.am): Likewise.
38424 * modules/same (Makefile.am): Likewise.
38425 * modules/save-cwd (Makefile.am): Likewise.
38426 * modules/savedir (Makefile.am): Likewise.
38427 * modules/setenv (Makefile.am): Likewise.
38428 * modules/settime (Makefile.am): Likewise.
38429 * modules/sha1 (Makefile.am): Likewise.
38430 * modules/sig2str (Makefile.am): Likewise.
38431 * modules/snprintf (Makefile.am): Likewise.
38432 * modules/stat-macros (Makefile.am): Likewise.
38433 * modules/stat-time (Makefile.am): Likewise.
38434 * modules/stdbool (Makefile.am): Likewise.
38435 * modules/stdint (Makefile.am): Likewise.
38436 * modules/stdlib-safer (Makefile.am): Likewise.
38437 * modules/stpcpy (Makefile.am): Likewise.
38438 * modules/stpncpy (Makefile.am): Likewise.
38439 * modules/strcase (Makefile.am): Likewise.
38440 * modules/strcasestr (Makefile.am): Likewise.
38441 * modules/strchrnul (Makefile.am): Likewise.
38442 * modules/strcspn (Makefile.am): Likewise.
38443 * modules/strdup (Makefile.am): Likewise.
38444 * modules/strerror (Makefile.am): Likewise.
38445 * modules/strftime (Makefile.am): Likewise.
38446 * modules/strndup (Makefile.am): Likewise.
38447 * modules/strnlen (Makefile.am): Likewise.
38448 * modules/strpbrk (Makefile.am): Likewise.
38449 * modules/strsep (Makefile.am): Likewise.
38450 * modules/strstr (Makefile.am): Likewise.
38451 * modules/strtod (Makefile.am): Likewise.
38452 * modules/strtoimax (Makefile.am): Likewise.
38453 * modules/strtok_r (Makefile.am): Likewise.
38454 * modules/strtol (Makefile.am): Likewise.
38455 * modules/strtoll (Makefile.am): Likewise.
38456 * modules/strtoul (Makefile.am): Likewise.
38457 * modules/strtoull (Makefile.am): Likewise.
38458 * modules/strtoumax (Makefile.am): Likewise.
38459 * modules/strverscmp (Makefile.am): Likewise.
38460 * modules/sys_socket (Makefile.am): Likewise.
38461 * modules/sys_stat (Makefile.am): Likewise.
38462 * modules/sysexits (Makefile.am): Likewise.
38463 * modules/time_r (Makefile.am): Likewise.
38464 * modules/timegm (Makefile.am): Likewise.
38465 * modules/timespec (Makefile.am): Likewise.
38466 * modules/tmpfile-safer (Makefile.am): Likewise.
38467 * modules/trim (Makefile.am): Likewise.
38468 * modules/unistd-safer (Makefile.am): Likewise.
38469 * modules/unlinkdir (Makefile.am): Likewise.
38470 * modules/unlocked-io (Makefile.am): Likewise.
38471 * modules/userspec (Makefile.am): Likewise.
38472 * modules/utime (Makefile.am): Likewise.
38473 * modules/utimecmp (Makefile.am): Likewise.
38474 * modules/utimens (Makefile.am): Likewise.
38475 * modules/vasnprintf (Makefile.am): Likewise.
38476 * modules/vasprintf (Makefile.am): Likewise.
38477 * modules/vsnprintf (Makefile.am): Likewise.
38478 * modules/xalloc (Makefile.am): Likewise.
38479 * modules/xgetcwd (Makefile.am): Likewise.
38480 * modules/xnanosleep (Makefile.am): Likewise.
38481 * modules/xreadlink (Makefile.am): Likewise.
38482 * modules/xstrtod (Makefile.am): Likewise.
38483 * modules/xstrtol (Makefile.am): Likewise.
38484 * modules/xstrtold (Makefile.am): Likewise.
38485 * modules/yesno (Makefile.am): Likewise.
38486 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
38488 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
38490 * modules/error (Makefile.am): Distribute files through
38491 EXTRA_DIST, not lib_SOURCES.
38493 2006-10-12 Eric Blake <ebb9@byu.net>
38495 * modules/error (Makefile.am): Distribute files in /lib.
38496 * modules/obstack (Makefile.am): Likewise.
38498 2006-10-12 Bruno Haible <bruno@clisp.org>
38500 * modules/acl (Makefile.am): Distribute all files in lib/ through
38502 * modules/arcfour (Makefile.am): Likewise.
38503 * modules/arctwo (Makefile.am): Likewise.
38504 * modules/argmatch (Makefile.am): Likewise.
38505 * modules/argz (Makefile.am): Likewise.
38506 * modules/atexit (Makefile.am): Likewise.
38507 * modules/backupfile (Makefile.am): Likewise.
38508 * modules/c-strtod (Makefile.am): Likewise.
38509 * modules/c-strtold (Makefile.am): Likewise.
38510 * modules/calloc (Makefile.am): Likewise.
38511 * modules/canon-host (Makefile.am): Likewise.
38512 * modules/canonicalize (Makefile.am): Likewise.
38513 * modules/chdir-long (Makefile.am): Likewise.
38514 * modules/chdir-safer (Makefile.am): Likewise.
38515 * modules/check-version (Makefile.am): Likewise.
38516 * modules/chown (Makefile.am): Likewise.
38517 * modules/cloexec (Makefile.am): Likewise.
38518 * modules/close-stream (Makefile.am): Likewise.
38519 * modules/closeout (Makefile.am): Likewise.
38520 * modules/crc (Makefile.am): Likewise.
38521 * modules/cycle-check (Makefile.am): Likewise.
38522 * modules/des (Makefile.am): Likewise.
38523 * modules/dirfd (Makefile.am): Likewise.
38524 * modules/dirname (Makefile.am): Likewise.
38525 * modules/dup2 (Makefile.am): Likewise.
38526 * modules/euidaccess (Makefile.am): Likewise.
38527 * modules/exclude (Makefile.am): Likewise.
38528 * modules/exitfail (Makefile.am): Likewise.
38529 * modules/fcntl-safer (Makefile.am): Likewise.
38530 * modules/file-type (Makefile.am): Likewise.
38531 * modules/fileblocks (Makefile.am): Likewise.
38532 * modules/filemode (Makefile.am): Likewise.
38533 * modules/filenamecat (Makefile.am): Likewise.
38534 * modules/fnmatch (Makefile.am): Likewise.
38535 * modules/fopen-safer (Makefile.am): Likewise.
38536 * modules/fpending (Makefile.am): Likewise.
38537 * modules/fprintftime (Makefile.am): Likewise.
38538 * modules/free (Makefile.am): Likewise.
38539 * modules/fsusage (Makefile.am): Likewise.
38540 * modules/ftruncate (Makefile.am): Likewise.
38541 * modules/fts (Makefile.am): Likewise.
38542 * modules/gc (Makefile.am): Likewise.
38543 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
38544 * modules/getaddrinfo (Makefile.am): Likewise.
38545 * modules/getcwd (Makefile.am): Likewise.
38546 * modules/getdelim (Makefile.am): Likewise.
38547 * modules/getdomainname (Makefile.am): Likewise.
38548 * modules/getgroups (Makefile.am): Likewise.
38549 * modules/gethostname (Makefile.am): Likewise.
38550 * modules/gethrxtime (Makefile.am): Likewise.
38551 * modules/getline (Makefile.am): Likewise.
38552 * modules/getloadavg (Makefile.am): Likewise.
38553 * modules/getlogin_r (Makefile.am): Likewise.
38554 * modules/getopt (Makefile.am): Likewise.
38555 * modules/getpass (Makefile.am): Likewise.
38556 * modules/getpass-gnu (Makefile.am): Likewise.
38557 * modules/getsubopt (Makefile.am): Likewise.
38558 * modules/gettime (Makefile.am): Likewise.
38559 * modules/gettimeofday (Makefile.am): Likewise.
38560 * modules/getugroups (Makefile.am): Likewise.
38561 * modules/getusershell (Makefile.am): Likewise.
38562 * modules/glob (Makefile.am): Likewise.
38563 * modules/group-member (Makefile.am): Likewise.
38564 * modules/hard-locale (Makefile.am): Likewise.
38565 * modules/hash (Makefile.am): Likewise.
38566 * modules/hmac-md5 (Makefile.am): Likewise.
38567 * modules/hmac-sha1 (Makefile.am): Likewise.
38568 * modules/human (Makefile.am): Likewise.
38569 * modules/idcache (Makefile.am): Likewise.
38570 * modules/imaxabs (Makefile.am): Likewise.
38571 * modules/imaxdiv (Makefile.am): Likewise.
38572 * modules/inet_ntop (Makefile.am): Likewise.
38573 * modules/inet_pton (Makefile.am): Likewise.
38574 * modules/inttostr (Makefile.am): Likewise.
38575 * modules/isapipe (Makefile.am): Likewise.
38576 * modules/lchown (Makefile.am): Likewise.
38577 * modules/long-options (Makefile.am): Likewise.
38578 * modules/lstat (Makefile.am): Likewise.
38579 * modules/malloc (Makefile.am): Likewise.
38580 * modules/mathl (Makefile.am): Likewise.
38581 * modules/mbchar (Makefile.am): Likewise.
38582 * modules/md2 (Makefile.am): Likewise.
38583 * modules/md4 (Makefile.am): Likewise.
38584 * modules/md5 (Makefile.am): Likewise.
38585 * modules/memcasecmp (Makefile.am): Likewise.
38586 * modules/memchr (Makefile.am): Likewise.
38587 * modules/memcmp (Makefile.am): Likewise.
38588 * modules/memcoll (Makefile.am): Likewise.
38589 * modules/memcpy (Makefile.am): Likewise.
38590 * modules/memmem (Makefile.am): Likewise.
38591 * modules/memmove (Makefile.am): Likewise.
38592 * modules/mempcpy (Makefile.am): Likewise.
38593 * modules/memrchr (Makefile.am): Likewise.
38594 * modules/memset (Makefile.am): Likewise.
38595 * modules/memxor (Makefile.am): Likewise.
38596 * modules/mkancesdirs (Makefile.am): Likewise.
38597 * modules/mkdir (Makefile.am): Likewise.
38598 * modules/mkdir-p (Makefile.am): Likewise.
38599 * modules/mkdtemp (Makefile.am): Likewise.
38600 * modules/mkstemp (Makefile.am): Likewise.
38601 * modules/mktime (Makefile.am): Likewise.
38602 * modules/modechange (Makefile.am): Likewise.
38603 * modules/mountlist (Makefile.am): Likewise.
38604 * modules/nanosleep (Makefile.am): Likewise.
38605 * modules/openat (Makefile.am): Likewise.
38606 * modules/pagealign_alloc (Makefile.am): Likewise.
38607 * modules/physmem (Makefile.am): Likewise.
38608 * modules/poll (Makefile.am): Likewise.
38609 * modules/posixtm (Makefile.am): Likewise.
38610 * modules/posixver (Makefile.am): Likewise.
38611 * modules/putenv (Makefile.am): Likewise.
38612 * modules/quote (Makefile.am): Likewise.
38613 * modules/quotearg (Makefile.am): Likewise.
38614 * modules/raise (Makefile.am): Likewise.
38615 * modules/read-file (Makefile.am): Likewise.
38616 * modules/readline (Makefile.am): Likewise.
38617 * modules/readlink (Makefile.am): Likewise.
38618 * modules/readtokens (Makefile.am): Likewise.
38619 * modules/readutmp (Makefile.am): Likewise.
38620 * modules/realloc (Makefile.am): Likewise.
38621 * modules/regex (Makefile.am): Likewise.
38622 * modules/rename (Makefile.am): Likewise.
38623 * modules/rename-dest-slash (Makefile.am): Likewise.
38624 * modules/rijndael (Makefile.am): Likewise.
38625 * modules/rmdir (Makefile.am): Likewise.
38626 * modules/rpmatch (Makefile.am): Likewise.
38627 * modules/safe-read (Makefile.am): Likewise.
38628 * modules/safe-write (Makefile.am): Likewise.
38629 * modules/same (Makefile.am): Likewise.
38630 * modules/save-cwd (Makefile.am): Likewise.
38631 * modules/savedir (Makefile.am): Likewise.
38632 * modules/setenv (Makefile.am): Likewise.
38633 * modules/settime (Makefile.am): Likewise.
38634 * modules/sha1 (Makefile.am): Likewise.
38635 * modules/sig2str (Makefile.am): Likewise.
38636 * modules/snprintf (Makefile.am): Likewise.
38637 * modules/stdlib-safer (Makefile.am): Likewise.
38638 * modules/stpcpy (Makefile.am): Likewise.
38639 * modules/stpncpy (Makefile.am): Likewise.
38640 * modules/strcase (Makefile.am): Likewise.
38641 * modules/strcasestr (Makefile.am): Likewise.
38642 * modules/strchrnul (Makefile.am): Likewise.
38643 * modules/strcspn (Makefile.am): Likewise.
38644 * modules/strdup (Makefile.am): Likewise.
38645 * modules/strerror (Makefile.am): Likewise.
38646 * modules/strftime (Makefile.am): Likewise.
38647 * modules/strndup (Makefile.am): Likewise.
38648 * modules/strnlen (Makefile.am): Likewise.
38649 * modules/strpbrk (Makefile.am): Likewise.
38650 * modules/strsep (Makefile.am): Likewise.
38651 * modules/strstr (Makefile.am): Likewise.
38652 * modules/strtod (Makefile.am): Likewise.
38653 * modules/strtoimax (Makefile.am): Likewise.
38654 * modules/strtok_r (Makefile.am): Likewise.
38655 * modules/strtol (Makefile.am): Likewise.
38656 * modules/strtoll (Makefile.am): Likewise.
38657 * modules/strtoul (Makefile.am): Likewise.
38658 * modules/strtoull (Makefile.am): Likewise.
38659 * modules/strtoumax (Makefile.am): Likewise.
38660 * modules/strverscmp (Makefile.am): Likewise.
38661 * modules/time_r (Makefile.am): Likewise.
38662 * modules/timegm (Makefile.am): Likewise.
38663 * modules/tmpfile-safer (Makefile.am): Likewise.
38664 * modules/unistd-safer (Makefile.am): Likewise.
38665 * modules/unlinkdir (Makefile.am): Likewise.
38666 * modules/userspec (Makefile.am): Likewise.
38667 * modules/utime (Makefile.am): Likewise.
38668 * modules/utimecmp (Makefile.am): Likewise.
38669 * modules/utimens (Makefile.am): Likewise.
38670 * modules/vasnprintf (Makefile.am): Likewise.
38671 * modules/vasprintf (Makefile.am): Likewise.
38672 * modules/vsnprintf (Makefile.am): Likewise.
38673 * modules/xalloc (Makefile.am): Likewise.
38674 * modules/xgetcwd (Makefile.am): Likewise.
38675 * modules/xnanosleep (Makefile.am): Likewise.
38676 * modules/xreadlink (Makefile.am): Likewise.
38677 * modules/xstrtod (Makefile.am): Likewise.
38678 * modules/xstrtol (Makefile.am): Likewise.
38679 * modules/xstrtold (Makefile.am): Likewise.
38680 * modules/yesno (Makefile.am): Likewise.
38682 2006-10-12 Jim Meyering <jim@meyering.net>
38684 * m4/getloadavg.m4: Revert the change below.
38686 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
38687 lib/getloadavg.c using "ls -L", not "test -f". The latter would
38688 fail with a symlink, which is what coreutils' ./bootstrap now
38689 creates by default.
38691 2006-10-12 Bruno Haible <bruno@clisp.org>
38693 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
38695 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
38696 MSVC and mingw explicitly.
38698 2006-10-11 Simon Josefsson <jas@extundo.com>
38699 Bruno Haible <bruno@clisp.org>
38701 Add support for multiple gnulib-tool invocations in the scope of a
38702 single configure.ac file.
38703 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
38704 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
38705 with the same contents as the _LIBADD variable.
38706 (func_emit_initmacro_start, func_emit_initmacro_end,
38707 func_emit_initmacro_done): New functions.
38708 (func_import, func_create_testdir): Invoke them. Allow the identifiers
38709 gl_LIBOBJS and gl_LTLIBOBJS.
38711 2006-10-11 Bruno Haible <bruno@clisp.org>
38713 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
38714 (func_create_testdir): Don't create po/Makefile.am, don't invoke
38715 autoreconf. Instead, invoke autopoint explicitly but move back the
38716 *.m4 files from gnulib.
38718 2006-10-11 Bruno Haible <bruno@clisp.org>
38720 * gnulib-tool (func_usage): Make module names after --create-testdir
38722 (func_create_testdir): If no module was specified, use nearly all
38725 2006-10-12 Jim Meyering <jim@meyering.net>
38727 Big performance improvement for fts-based tools that use FTS_NOSTAT.
38728 Avoid spurious inode-mismatch problems on non-POSIX file systems.
38729 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
38730 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
38731 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
38732 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
38733 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
38734 (fts_set_stat_required): New function.
38735 (fts_open): Defer the calls to fts_stat, if possible or requested.
38736 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
38737 into fts_stat itself.
38738 (fts_read): Perform any required (deferred) fts_stat call.
38739 (fts_build): Likewise, for the directory we're about to open and read.
38740 In the readdir loop, carefully decide whether each entry will require
38741 an eventual call to fts_stat, using dirent.d_type info if available.
38742 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
38743 a command line argument into this function. Update all callers.
38744 Map a return value of FTS_DOT to FTS_D for a command line argument.
38745 * modules/fts (Depends-on): Add d-type. Alphabetize.
38746 Thanks to Miklos Szeredi for his tenacity and for the initial
38747 bug report about "find" failing on a FUSE-based file system.
38749 * lib/fts.c (fts_open): Use consistent indentation.
38751 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
38753 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
38754 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
38755 reported by Jim Meyering. All uses of cache variables renamed
38756 to match Autoconf's.
38757 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
38760 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38761 Fix misspelling in diagnostic.
38763 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
38765 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
38766 defined. Problem reported by Matthew Woehlke.
38768 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
38769 Add support for Tandem NonStop R series.
38770 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
38773 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
38774 (has_trailing_slash): Omit size arg; all callers changed.
38775 Omit 'inline', since it doesn't help performance and we'd
38776 need to configure it.
38777 Don't count //, ///, etc. as having a trailing slash.
38778 As a side effect, this removes a C99ism reported by Matthew Woehlke.
38779 (rpl_rename_dest_slash): On failure, use rename's errno rather
38780 than (in some cases) an incorrect or junk errno.
38781 Simplify code by removing need to compute length; this does
38782 cause it to make two passes instead of one over the file name,
38785 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
38786 change, since Autoconf's version may no longer be appropriate now
38787 that we are using CVS Autoconf's version. Add support for Tandem.
38789 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
38790 Bruno Haible <bruno@clisp.org>
38792 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
38793 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
38794 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
38795 gl_AC_TYPE_LONG_LONG.
38797 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
38798 instead of HAVE_LONG_LONG.
38799 * lib/printf-args.c (printf_fetchargs): Likewise.
38800 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
38801 * lib/vasnprintf.c (VASNPRINTF): Likewise.
38802 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
38803 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
38804 gl_AC_TYPE_LONG_LONG.
38806 2006-10-11 Bruno Haible <bruno@clisp.org>
38808 * m4/longlong.m4: Add comments.
38809 * m4/ulonglong.m4: Likewise.
38811 2006-10-10 Bruno Haible <bruno@clisp.org>
38813 Make it possible to #define stpcpy, strdup to aliases.
38814 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
38815 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
38817 2006-10-10 Bruno Haible <bruno@clisp.org>
38819 Make it possible to #define gcd to an alias.
38820 * lib/gcd.c: Include config.h.
38822 2006-10-10 Bruno Haible <bruno@clisp.org>
38824 Make it possible to #define c_isascii to an alias.
38825 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
38826 defined. Undefine the macros before defining them, to avoid gcc
38828 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
38829 define NO_C_CTYPE_MACROS early.
38831 2006-10-10 Bruno Haible <bruno@clisp.org>
38833 Make it possible to #define set_program_name to an alias.
38834 * lib/progname.c: Don't undefine set_program_name; instead, undefine
38835 ENABLE_RELOCATABLE early.
38837 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
38839 Port to Tandem NSK OSS, which has 64-bit signed int but at most
38840 32-bit unsigned int. Problem reported by Matthew Woehlke in:
38841 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
38842 More generally, don't assume that 64-bit signed int is available
38843 if unsigned int is, and vice versa.
38844 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
38845 unsigned symbols, not on their signed counterparts.
38846 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
38847 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
38848 (UINT64_C, UINTMAX_C):
38850 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
38851 unsigned counterparts.
38852 (Have_long_long, Unsigned): New macros.
38853 (Int): Renamed from INT.
38854 (strtoimax): Use the new macros.
38855 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
38856 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
38857 * modules/inttypes (inttypes.h): Substitute
38858 HAVE_UNSIGNED_LONG_LONG_INT.
38859 * modules/stdint (stdint.h): Likewise.
38860 (Files): Add m4/ulonglong.m4.
38862 2006-10-10 Bruno Haible <bruno@clisp.org>
38864 Fix a gcc -Wshadow warning.
38865 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
38867 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
38868 gl_linked_indexof_from_to): Likewise.
38869 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
38871 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
38873 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
38874 Reported by Eric Blake.
38876 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
38878 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
38879 for NetBSD. Problem reported by Bruno Haible.
38881 2006-10-09 Jim Meyering <jim@meyering.net>
38883 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
38884 Patch from Bruno Haible.
38886 2006-10-09 Jim Meyering <jim@meyering.net>
38888 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
38889 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
38890 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
38892 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
38894 Don't include <config.h> twice; this doesn't work in some cases,
38895 e.g., when config.h has "#define intmax_t long long int" and
38896 we include <config.h>, <inttypes.h>, <config.h> in that order.
38897 Problem reported by Matthew Woehlke in:
38898 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
38899 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
38900 * lib/fts-cycle.c: Don't include config.h.
38901 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
38902 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
38903 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
38904 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
38906 * lib/xstrtoumax.c: Likewise.
38907 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
38908 __strtol and the like, so that this module is more like its siblings.
38909 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
38910 Remove; no longer needed now that we assume gnulib inttypes.h.
38912 2006-10-08 Bruno Haible <bruno@clisp.org>
38914 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
38917 2006-10-07 Jim Meyering <jim@meyering.net>
38919 * modules/inttypes (inttypes.h): Revert what seems to have been
38920 an inadvertent part of today's change: use "|", not "/" in the
38921 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
38923 2006-10-07 Bruno Haible <bruno@clisp.org>
38925 * modules/sublist: New file.
38927 2006-10-07 Bruno Haible <bruno@clisp.org>
38929 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
38930 * modules/argz (argz.h): Likewise.
38931 * modules/arpa_inet (arpa/inet.h): Likewise.
38932 * modules/byteswap (byteswap.h): Likewise.
38933 * modules/configmake (configmake.h): Likewise.
38934 * modules/fcntl (fcntl.h): Likewise.
38935 * modules/fnmatch (fnmatch.h): Likewise.
38936 * modules/getopt (getopt.h): Likewise.
38937 * modules/glob (glob.h): Likewise.
38938 * modules/inttypes (inttypes.h): Likewise.
38939 * modules/netinet_in (netinet/in.h): Likewise.
38940 * modules/poll (poll.h): Likewise.
38941 * modules/stdbool (stdbool.h): Likewise.
38942 * modules/stdint (stdint.h): Likewise.
38943 * modules/sys_select (sys/select.h): Likewise.
38944 * modules/sys_socket (sys/socket.h): Likewise.
38945 * modules/sys_stat (sys/stat.h): Likewise.
38946 * modules/sysexits (sysexits.h): Likewise.
38947 * modules/unistd (unistd.h): Likewise.
38948 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38949 Add a "DO NOT EDIT" comment to the generated file.
38950 (func_import): Likewise for gnulib-comp.m4.
38952 2006-10-07 Bruno Haible <bruno@clisp.org>
38954 * lib/gl_sublist.h: New file.
38955 * lib/gl_sublist.c: New file.
38957 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
38959 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
38960 name (relative to the original working directory) and the file
38961 name component (relative to the temporary working directory). All
38963 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
38964 * lib/mkdir-p.c (make_dir_parents): Likewise.
38965 * lib/mkdir-p.h (make_dir_parents): Likewise.
38967 2006-10-06 Eric Blake <ebb9@byu.net>
38969 Define several macros for use by the clean-temp module.
38970 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
38971 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
38972 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
38974 * lib/clean-temp.h (close_stream_temp): New declaration.
38975 * lib/clean-temp.c (includes): Pull in headers according to what
38976 other modules are in use.
38977 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
38979 2006-10-06 Bruno Haible <bruno@clisp.org>
38981 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
38982 instead of fopen, fwriteerror.
38984 2006-10-06 Bruno Haible <bruno@clisp.org>
38986 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
38987 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
38989 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
38990 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
38991 Return an error indicator.
38992 Suggested by Eric Blake.
38994 2006-10-06 Bruno Haible <bruno@clisp.org>
38996 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
38997 Reported by Eric Blake.
38999 2006-10-06 Bruno Haible <bruno@clisp.org>
39001 * modules/closeout (Description): Mention stderr too.
39003 2006-10-06 Bruno Haible <bruno@clisp.org>
39004 and Paul Eggert <eggert@cs.ucla.edu>
39006 * lib/closeout.c (close_stdout): Also close stderr.
39007 * lib/closeout.h: Update comment.
39009 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
39011 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
39012 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
39013 * lib/dirchownmod.c: Include lchown.h.
39014 * lib/lchown.c: Don't include files that lchown.h now includes.
39015 Don't declare chown, since lchown.h now does that.
39016 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
39017 (lchown): Define to rpl_chown if lchown is declared but
39018 does not exist. Declare using a prototype if lchown is not
39019 declared. Add a copyright notice.
39020 * lib/mkstemp.h: Include <unistd.h>.
39021 * lib/openat.c: Include lchown.h.
39023 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
39024 we now test for that separately.
39025 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
39026 rather than O_NOFOLLOW, when testing whether it's possible to
39027 avoid a race condition reliably.
39028 * lib/savewd.c (savewd_chdir): Likewise.
39030 Remove macros that are no longer needed now that stdint.h is
39032 * lib/fsusage.c (UINTMAX_MAX): Remove.
39033 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
39034 * lib/utimecmp.c (SIZE_MAX): Remove.
39036 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
39038 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
39039 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
39042 2006-10-05 Bruno Haible <bruno@clisp.org>
39044 * lib/gl_list.h (gl_sortedlist_search_from_to,
39045 gl_sortedlist_indexof_from_to): New declarations.
39046 (gl_list_implementation): New fields sortedlist_search_from_to,
39047 sortedlist_indexof_from_to.
39048 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
39050 * lib/gl_list.c (gl_sortedlist_search_from_to,
39051 gl_sortedlist_indexof_from_to): New functions.
39052 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
39054 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
39055 (gl_array_sortedlist_search_from_to): New function.
39056 (gl_array_list_implementation): Update.
39057 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
39059 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
39060 (gl_carray_sortedlist_search_from_to): New function.
39061 (gl_carray_list_implementation): Update.
39062 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
39063 gl_linked_sortedlist_indexof_from_to): New functions.
39064 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39065 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39066 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
39067 gl_tree_sortedlist_indexof_from_to): New functions.
39068 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39069 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39071 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39072 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
39075 2006-10-05 Bruno Haible <bruno@clisp.org>
39077 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
39078 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
39079 (struct gl_list_implementation): Add fields search_from_to,
39080 indexof_from_to. Remove fields search, indexof.
39081 (gl_list_search): Use the search_from_to method.
39082 (gl_list_search_from, gl_list_search_from_to): New functions.
39083 (gl_list_indexof): Use the indexof_from_to method.
39084 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
39085 * lib/gl_list.c (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_array_list.c (gl_array_indexof_from_to): Renamed from
39090 gl_array_indexof. Add start_index, end_index arguments.
39091 (gl_array_search_from_to): Renamed from gl_array_search. Add
39092 start_index, end_index arguments.
39093 (gl_array_remove, gl_array_list_implementation): Update.
39094 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
39095 gl_carray_indexof. Add start_index, end_index arguments.
39096 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
39097 start_index, end_index arguments.
39098 (gl_carray_remove, gl_carray_list_implementation): Update.
39099 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
39100 gl_linked_search. Add start_index, end_index arguments.
39101 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
39102 start_index, end_index arguments.
39103 (gl_linked_remove): Update.
39104 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
39105 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
39106 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
39108 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
39109 gl_tree_search. Add start_index, end_index arguments.
39110 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
39111 start_index, end_index arguments.
39112 (gl_tree_remove): Update.
39113 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
39114 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
39115 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
39117 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
39118 gl_tree_search. Add start_index, end_index arguments.
39119 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
39120 start_index, end_index arguments.
39121 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
39123 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
39125 2006-10-05 Bruno Haible <bruno@clisp.org>
39127 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
39129 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
39130 fwriteerror_temp): New declarations.
39131 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
39132 (descriptors): New variable.
39133 (cleanup): First, close the descriptors.
39134 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
39135 fclose_temp, fwriteerror_temp): New functions.
39137 2006-10-04 Jim Meyering <jim@meyering.net>
39139 * lib/fts.c (fts_open): Tiny comment change.
39141 2006-10-04 Bruno Haible <bruno@clisp.org>
39143 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
39144 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
39146 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
39147 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
39148 gl_LOCK_EARLY_BODY.
39149 (gl_LOCK): Require gl_LOCK_BODY.
39151 2006-10-04 Bruno Haible <bruno@clisp.org>
39153 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
39154 (gl_oset_search_atleast): New declaration.
39155 (struct gl_oset_implementation): Add field 'search_atleast'.
39156 (gl_oset_search_atleast): New inline function.
39157 * lib/gl_oset.c (gl_oset_search_atleast): New function.
39158 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
39159 (gl_array_oset_implementation): Update.
39160 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
39161 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
39162 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
39164 2006-10-04 Bruno Haible <bruno@clisp.org>
39166 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
39168 2006-10-03 Bruno Haible <bruno@clisp.org>
39170 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
39171 from gl_avltreehash_list_implementation.
39173 2006-10-03 Bruno Haible <bruno@clisp.org>
39175 * lib/gl_oset.c (gl_oset_add): Fix return type.
39177 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
39179 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
39181 2006-10-02 Eric Blake <ebb9@byu.net>
39183 * modules/strnlen (Depends-on): Add extensions.
39185 2006-10-02 Eric Blake <ebb9@byu.net>
39187 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
39188 definition in 2.60+.
39190 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
39192 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
39195 2006-10-02 Bruno Haible <bruno@clisp.org>
39197 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
39198 to the AUTOMAKE_OPTIONS.
39199 Reported by Jim Meyering.
39201 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
39203 Work around bug in Solaris 10 /proc file system:
39204 /proc/self/fd/NNN/.. isn't the parent directory of
39205 the directory whose file descriptor is NNN. This needs to
39206 be worked around at run time, not compile time, since a
39207 program might be built on Solaris 8, where things work, and
39209 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
39210 to use the following interface instead:
39211 (OPENAT_BUFFER_SIZE): New macro.
39212 (openat_proc_name): New function.
39213 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
39214 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
39216 * lib/openat-proc.c: New file.
39217 * modules/openat (Files): Add lib/openat-proc.c.
39218 (Depends-on): Add same-inode, stdbool.
39219 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
39221 2006-09-29 Bruno Haible <bruno@clisp.org>
39223 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
39224 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
39225 argument. Set stdout_closed before testing for ferror, not after.
39226 (fwriteerror, fwriteerror_no_ebadf): New functions.
39228 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39230 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
39232 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
39234 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
39235 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
39237 2006-09-28 Jim Meyering <jim@meyering.net>
39239 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
39240 Include <unistd.h>.
39242 2006-09-28 Bruno Haible <bruno@clisp.org>
39244 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
39245 * modules/linkedhash-list (Depends-on): Likewise.
39246 * modules/rbtreehash-list (Depends-on): Likewise.
39248 2006-09-28 Bruno Haible <bruno@clisp.org>
39250 * lib/strndup.h: Simplify the redefinition of strndup.
39251 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
39252 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
39254 2006-09-28 Bruno Haible <bruno@clisp.org>
39256 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
39257 * lib/gl_linkedhash_list.c: Likewise.
39258 * lib/gl_rbtreehash_list.c: Likewise.
39260 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
39262 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
39265 * lib/__fpending.h: Don't include <stdio_ext.h> unless
39266 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
39267 it causes <stdio_ext.h> to cause a compile-time error.
39268 Problem reported by Nelson H. F. Beebe.
39269 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
39270 of HAVE_DECL___PENDING.
39272 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
39273 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
39276 2006-09-27 Jim Meyering <jim@meyering.net>
39278 This file could end up with a definition for a function
39279 named __strndup, rather than rpl_strndup on a system with
39280 incomplete weak_alias support.
39281 * lib/strndup.c (strndup): Rename from __strndup.
39282 Remove #defines that used to map __strndup to strndup.
39283 Don't use K&R prototypes.
39284 Remove LIBC-related code, since this file is not sync'd with glibc.
39285 * lib/strndup.h: Revamp, accordingly.
39286 * m4/strndup.m4: Modernize.
39288 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
39290 * modules/savewd (Depends-on): Add 'raise'.
39291 * lib/savewd.c: Include <signal.h>, for 'raise'.
39293 2006-09-26 Jim Meyering <jim@meyering.net>
39295 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
39296 when we detect Darwin 8.7.0's acl_get_file bug.
39297 Rearrange to perform the new (below) run-test while $LIBS
39298 contains any acl-related library. Set USE_ACL at the end.
39299 (gl_ACL_GET_FILE): New function.
39301 2006-09-26 Eric Blake <ebb9@byu.net>
39303 * lib/verror.c: Include <config.h> unconditionally.
39305 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
39307 * modules/clock-time (Maintainer): Add self.
39308 * modules/getlogin_r (Depends-on): Add extensions.
39310 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39312 * modules/clock-time: New module.
39313 * modules/nanosleep (Depends-on): Add clock-time.
39314 * modules/gethrxtime (Depends-on): Likewise.
39315 * modules/gettime (Depends-on): Likewise.
39316 * modules/settime (Depends-on): Likewise.
39318 * modules/fts-lgpl: Depend on openat.
39319 * modules/mkancesdirs: Depend on savewd.
39320 * modules/mkdir-p: Likewise.
39322 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39324 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
39326 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
39327 `gl_have_arbitrary_file_name_length_limit' to
39328 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
39329 actually works between configure runs.
39331 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39332 Bruno Haible <bruno@clisp.org>
39334 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
39336 2006-09-25 Jim Meyering <jim@meyering.net>
39338 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
39339 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
39341 2006-09-25 Eric Blake <ebb9@byu.net>
39343 * gnulib-tool (func_import, func_create_testdir): Fix typos in
39344 exec's in 2006-09-18 patch when shuffling fds.
39346 2006-09-25 Bruno Haible <bruno@clisp.org>
39348 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
39349 Reported by Jim Meyering.
39351 2006-09-24 Jim Meyering <jim@meyering.net>
39353 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
39354 compare a pointer against a literal "0". That caused failures with
39355 at least HP-UX's hpcc.
39357 2006-09-22 Simon Josefsson <jas@extundo.com>
39361 * modules/gc-hmac-sha1:
39362 * modules/gc-hmac-md5:
39364 * modules/gc-arcfour: Distribute more files.
39366 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39368 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
39369 (gl_linked_iterator_from_to): Initialize struct completely.
39370 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
39371 (gl_tree_iterator_from_to): Likewise
39372 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
39373 * lib/gl_array_list.c [lint] (gl_array_iterator)
39374 (gl_array_iterator_from_to): Likewise.
39375 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
39376 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
39377 (gl_carray_iterator_from_to): Likewise.
39379 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
39380 * lib/md4.c (md4_process_block): Remove unused variable.
39381 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
39382 parentheses for clarity.
39384 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39386 * modules/bison-i18n (Depends-on): Add gettext.
39388 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39390 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
39391 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
39392 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
39393 also add missing comma that caused broken test.
39394 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
39395 stdlib.h, for `abort'.
39396 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
39398 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
39399 include unistd.h if present, for `rmdir'.
39400 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
39402 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
39403 in the process include standard headers for prototypes.
39404 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
39405 gets declared on GNU/Linux.
39406 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
39407 unistd.h, for `rmdir'.
39408 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
39410 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
39412 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
39414 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
39416 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39418 * gnulib-tool (func_version): Create output all at once. This
39419 may help avoid triggering unnecessary SIGPIPEs, and at any
39420 rate it doesn't hurt.
39422 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39423 Bruno Haible <bruno@clisp.org>
39425 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
39426 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39427 * m4/signed.m4 (bh_C_SIGNED): Likewise.
39429 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
39430 (gl_FUNC_VASPRINTF): Invoke it.
39432 2006-09-22 Bruno Haible <bruno@clisp.org>
39434 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
39435 getloadavg.c as first argument.
39437 2006-09-22 Bruno Haible <bruno@clisp.org>
39439 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
39440 at the beginning of the gl_INIT macro.
39441 * modules/getloadavg (configure.ac): Pass $gl_source_base to
39444 2006-09-22 Bruno Haible <bruno@clisp.org>
39446 * gnulib-tool (func_create_megatestdir): Don't include the config-h
39448 Suggested by Ralf Wildenhues.
39450 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
39452 Import this patch from libc:
39454 2006-09-06 Jakub Jelinek <jakub@redhat.com>
39456 * lib/regex_internal.c (re_string_reconstruct): Handle
39457 offset < pstr->valid_raw_len && pstr->offsets_needed case.
39458 Ensure no bytes read before raw_mbs array. Pass a saved copy of
39459 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
39460 re_string_context_at.
39462 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
39464 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
39465 gl_REGEX now does it for us.
39466 (gl_REGEX): Add test taken from
39467 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
39469 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
39470 Check that large offsets work. Modernize Autoconf usages.
39471 Prefer "yes" to mean a good thing rather than a bad.
39472 Don't put "#define mkstemp" in config.h, as this might interfere
39473 with standard system headers that "#define mkstemp mkstemp64".
39475 * modules/mkstemp (Depends-on): Add extensions, so that
39476 mkstemp is visible on some platforms.
39477 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
39478 (Include): Change to "mkstemp.h" from <stdlib.h>.
39479 (Files): Add mkstemp.h.
39481 * lib/mkstemp.h: New file, since some standard headers
39483 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
39484 Include "mkstemp.h".
39485 Make the _LIBC code resemble glibc original more,
39486 e.g., use K&R style.
39487 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
39488 (mkstemp): Remove, since mkstemp.h does this for us.
39489 * lib/stdlib--.h: Include mkstemp.h.
39491 Import this patch from libc:
39493 2006-04-07 Ulrich Drepper <drepper@redhat.com>
39495 * lib/tempname.c (__gen_tempname): Change attempts_min
39496 into a macro. Use preprocessor to decide how to initialize
39497 attempts [Coverity CID 67].
39499 2006-09-20 Bruno Haible <bruno@clisp.org>
39501 * lib/mkdtemp.c: Import from libc.
39502 2006-04-07 Ulrich Drepper <drepper@redhat.com>
39503 * sysdeps/posix/tempname.c (__gen_tempname): Change
39504 attempts_min into a macro. Use preprocessor to decide how to
39505 initialize attempts [Coverity CID 67].
39506 2001-11-27 Paul Eggert <eggert@twinsun.com>
39507 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
39508 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
39510 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39512 * gnulib-tool (func_exit): New function, to allow to pass the
39513 exit status portably through the trap. Use everywhere.
39514 (--help, --version): Signal a write error.
39515 (trap): catch SIGPIPE, for write errors.
39516 Exit at the end of the trap, with the correct exit status.
39518 2006-09-19 Karl Berry <karl@gnu.org>
39520 * doc/gnulib.texi: note about the license texinfo files.
39522 2006-09-19 Eric Blake <ebb9@byu.net>
39524 * gnulib-tool: Avoid space-tab.
39526 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
39528 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
39529 that prevented coreutils 6.1 from building. Problem reported
39530 by Petter Reinholdtsen.
39532 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
39534 * gnulib-tool (avoidlist): Fix typo that broke options like
39535 --avoid=lock that are used by coreutils bootstrap.
39537 2006-09-18 Mark D. Baushke <mdb@gnu.org>
39539 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
39540 more systematically.
39542 2006-09-18 Jim Meyering <jim@meyering.net>
39544 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
39546 2006-09-18 Bruno Haible <bruno@clisp.org>
39548 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
39550 2006-09-18 Bruno Haible <bruno@clisp.org>
39552 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
39553 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
39554 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
39555 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
39556 * m4/gettext.m4: Require autoconf >= 2.52.
39557 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
39558 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
39559 of gl_cv_header_inttypes_h.
39561 2006-09-18 Bruno Haible <bruno@clisp.org>
39563 * lib/javaversion.c: Include configmake.h.
39565 2006-09-18 Bruno Haible <bruno@clisp.org>
39567 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
39568 avoid that the while loops be executed in a subshell.
39570 2006-09-18 Bruno Haible <bruno@clisp.org>
39572 * MODULES.html.sh (func_module): Break long lines.
39573 Suggested by Bruce Korb <bkorb@gnu.org>.
39575 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39577 Speed up by a factor of 1.12.
39578 * gnulib-tool (nl): New variable.
39579 (func_import): Rewrite include directive extraction to only read each
39582 2006-09-17 Bruno Haible <bruno@clisp.org>
39584 * modules/javaversion (Makefile.am): Remove DEFS setting.
39585 (Depends-on): Add configmake, for PKGDATADIR definition.
39587 2006-09-17 Bruno Haible <bruno@clisp.org>
39589 * gnulib-tool (func_create_testdir): Rewrite all files at once.
39591 2006-09-17 Bruno Haible <bruno@clisp.org>
39593 * gnulib-tool (func_append): New function, stolen from libtool.m4.
39594 (func_modules_transitive_closure, func_modules_add_dummy,
39595 func_modules_to_filelist, func_import, func_create_testdir,
39596 func_create_megatestdir, ...): Use it wherever possible.
39597 Suggested by Ralf Wildenhues.
39599 2006-09-16 Karl Berry <karl@gnu.org>
39601 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
39602 to avoid sectioning errors.
39603 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
39604 [ifinfo]: blank line after @center-ed titles.
39605 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
39606 Spell FSF address consistently with others.
39607 (These changes approved by rms.)
39609 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39611 Speed up by a factor of 1.61.
39612 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
39613 already checked module names again.
39615 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39617 Speed up by a factor of 1.13.
39618 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
39619 for new_files, and the input to func_add_or_update.
39621 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39623 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
39624 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
39626 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
39628 * modules/mkancesdirs (Depends-on): Add fcntl.
39629 * modules/savewd: New file.
39630 * MODULES.html.sh (File system functions): Add savewd.
39632 * modules/configmake (Makefile.am): Add support for the
39633 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
39635 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
39637 * m4/savewd.m4: New file.
39639 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
39641 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
39642 (dirchownmod): New arg FD. All callers changed.
39643 Use FD rather than opening the directory ourself, as opening is
39644 now the caller's responsibility.
39645 * lib/dirchownmod.h: Likewise.
39646 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
39647 hosts that require <sys/types.h> before <sys/stat.h>. Include
39648 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
39649 (test_dir): Remove.
39650 (mkancesdirs): Return length of prefix of FILE that has already
39651 been made, or -2 if there is a child doing the work. Redo
39652 algorithm so that it is O(N) rather than O(N**2). Optimize away
39653 ".", and treat ".." specially since it might stray back into
39654 already-created areas. Use a subprocess if necessary. New arg
39655 WD; all users changed. MAKE_DIR function should now return 1
39656 if it creates a directory that is not readable. Return -2 if
39657 a child process is spun off.
39658 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
39659 Adjust signature to match code.
39660 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
39661 (make_dir_parents): Use a subprocess if necessary. New arg WD;
39663 * lib/savewd.c, lib/savewd.h: New files.
39665 2006-09-15 Jim Meyering <jim@meyering.net>
39667 * modules/rename-dest-slash: New module.
39668 * MODULES.html.sh (posix_compat): Add it here.
39670 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
39672 2006-09-15 Jim Meyering <jim@meyering.net>
39674 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
39677 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
39679 2006-09-15 Jim Meyering <jim@meyering.net>
39681 * lib/rename-dest-slash.c (has_trailing_slash): Use
39682 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
39683 (rpl_rename_dest_slash): Perform the cheaper trailing slash
39684 test before testing whether SRC is a directory.
39685 Suggestions from Bruno Haible.
39687 Avoid a warning about an unused variable.
39688 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
39689 into the #ifdef block where it's used.
39691 * lib/rename-dest-slash.c: New file.
39693 2006-09-14 Bruno Haible <bruno@clisp.org>
39695 * lib/allocsa.c: Include <config.h> unconditionally.
39696 * lib/asnprintf.c: Likewise.
39697 * lib/asprintf.c: Likewise.
39698 * lib/c-strcasecmp.c: Likewise.
39699 * lib/c-strcasestr.c: Likewise.
39700 * lib/c-strncasecmp.c: Likewise.
39701 * lib/c-strstr.c: Likewise.
39702 * lib/classpath.c: Likewise.
39703 * lib/clean-temp.c: Likewise.
39704 * lib/concatpath.c: Likewise.
39705 * lib/copy-file.c: Likewise.
39706 * lib/csharpcomp.c: Likewise.
39707 * lib/csharpexec.c: Likewise.
39708 * lib/execute.c: Likewise.
39709 * lib/fatal-signal.c: Likewise.
39710 * lib/findprog.c: Likewise.
39711 * lib/fwriteerror.c: Likewise.
39712 * lib/gl_array_list.c: Likewise.
39713 * lib/gl_array_oset.c: Likewise.
39714 * lib/gl_avltree_list.c: Likewise.
39715 * lib/gl_avltree_oset.c: Likewise.
39716 * lib/gl_avltreehash_list.c: Likewise.
39717 * lib/gl_carray_list.c: Likewise.
39718 * lib/gl_linked_list.c: Likewise.
39719 * lib/gl_linkedhash_list.c: Likewise.
39720 * lib/gl_list.c: Likewise.
39721 * lib/gl_oset.c: Likewise.
39722 * lib/gl_rbtree_list.c: Likewise.
39723 * lib/gl_rbtree_oset.c: Likewise.
39724 * lib/gl_rbtreehash_list.c: Likewise.
39725 * lib/imaxabs.c: Likewise.
39726 * lib/imaxdiv.c: Likewise.
39727 * lib/javacomp.c: Likewise.
39728 * lib/javaexec.c: Likewise.
39729 * lib/javaversion.c: Likewise.
39730 * lib/linebreak.c: Likewise.
39731 * lib/localcharset.c: Likewise.
39732 * lib/lock.c: Likewise.
39733 * lib/mbchar.c: Likewise.
39734 * lib/mbswidth.c: Likewise.
39735 * lib/mkdtemp.c: Likewise.
39736 * lib/pipe.c: Likewise.
39737 * lib/printf-args.c: Likewise.
39738 * lib/printf-parse.c: Likewise.
39739 * lib/progname.c: Likewise.
39740 * lib/progreloc.c: Likewise.
39741 * lib/readlink.c: Likewise.
39742 * lib/sh-quote.c: Likewise.
39743 * lib/stpcpy.c: Likewise.
39744 * lib/stpncpy.c: Likewise.
39745 * lib/strcasecmp.c: Likewise.
39746 * lib/strcasestr.c: Likewise.
39747 * lib/strcspn.c: Likewise.
39748 * lib/striconv.c: Likewise.
39749 * lib/strncasecmp.c: Likewise.
39750 * lib/strnlen1.c: Likewise.
39751 * lib/strstr.c: Likewise.
39752 * lib/strtok_r.c: Likewise.
39753 * lib/tls.c: Likewise.
39754 * lib/tmpdir.c: Likewise.
39755 * lib/unicodeio.c: Likewise.
39756 * lib/unsetenv.c: Likewise.
39757 * lib/vasnprintf.c: Likewise.
39758 * lib/vasprintf.c: Likewise.
39759 * lib/wait-process.c: Likewise.
39760 * lib/xallocsa.c: Likewise.
39761 * lib/xsetenv.c: Likewise.
39762 * lib/xstriconv.c: Likewise.
39764 2006-09-13 Simon Josefsson <jas@extundo.com>
39766 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
39767 that internally, suggested by Ralf Wildenhues
39768 <Ralf.Wildenhues@gmx.de>.
39770 2006-09-13 Simon Josefsson <jas@extundo.com>
39772 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
39774 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39776 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
39778 * lib/_fpending.c: Include <config.h> unconditionally, since we no
39779 longer worry about uses that don't define HAVE_CONFIG_H.
39780 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
39781 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
39782 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
39783 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
39784 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
39785 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
39786 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
39787 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
39788 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
39789 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
39790 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
39791 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
39792 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
39793 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
39794 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
39795 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
39796 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
39797 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
39798 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
39799 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
39800 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
39801 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
39802 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
39803 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
39804 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
39805 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
39806 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
39807 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
39808 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
39809 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
39810 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
39811 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
39812 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
39813 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
39814 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
39815 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
39816 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
39817 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
39818 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
39819 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
39820 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
39823 2006-09-13 Eric Blake <ebb9@byu.net>
39825 * lib/getopt.c: Fix typo in last commit.
39827 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
39829 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
39832 2006-09-12 Jim Meyering <jim@meyering.net>
39834 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
39835 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
39836 Reported by Nelson H. F. Beebe.
39838 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
39840 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
39841 program_invocation_name and program_invocation_short_name are
39843 * lib/argp-namefrob.h: Move declarations of program_invocation_name
39844 and program_invocation_short_name to argp.h, so they are visible
39846 * lib/argp.h: Likewise
39848 2006-09-10 Bruno Haible <bruno@clisp.org>
39850 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
39851 m4/inttypes_h.m4, m4/uintmax_t.m4.
39853 2006-09-10 Bruno Haible <bruno@clisp.org>
39855 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
39856 gl_AC_TYPE_UINTMAX_T.
39858 2006-09-10 Bruno Haible <bruno@clisp.org>
39860 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
39862 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
39864 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
39865 convention. Text proposed by Bruno Haible.
39866 (struct argp_option): Document the use of N_() wrappers.
39868 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
39869 '\v', and translate the two parts separately, instead of feeding
39870 the whole string to gettext. This allows to exclude
39871 '\v' from the strings visible to the translator by writing doc
39872 strings as N_("..") "\v" N_("..").
39874 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
39876 * config/srclist.txt: Undo latest change; the bug was fixed.
39878 2006-09-09 Bruno Haible <bruno@clisp.org>
39880 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
39881 assignments if building a library without libtool.
39882 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
39883 in func_emit_lib_Makefile_am.
39884 (func_import): When building a static library libfoo.a, arrange to
39885 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
39886 (func_create_testdir): Likewise.
39887 * modules/gc (configure.ac, Makefile.am): If building statically,
39888 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
39889 * modules/iconvme (configure.ac, Makefile.am): Likewise.
39890 * modules/striconv (configure.ac, Makefile.am): Likewise.
39891 Based on a suggestion by Ralf Wildenhues.
39893 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
39895 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
39896 Check for unistd.h too, since Autoconf doesn't assume POSIX.
39899 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
39900 Add year_2050_test to catch glibc bug 2821
39901 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
39903 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
39904 Prefer #ifdef to #if.
39906 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
39907 Return from 'main' instead of calling 'exit'.
39909 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
39911 * lib/mktime.c (guess_time_tm): Fix bug where mktime
39912 returned the maximum time_t value rather than (time_t) -1.
39913 Problem originally reported by William Bardwell
39914 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
39916 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
39918 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
39921 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
39923 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
39926 2006-09-08 Jim Meyering <jim@meyering.net>
39928 Don't make generated files read-only. That would bother too many
39929 people. However, do retain the ability to work when targets are
39930 read-only: remove the destination and temporary files before writing
39931 them (when generated via sed or echo), or by using the -f option for
39932 both cp and mv commands. Suggestion to use -f from Paul Eggert.
39933 * modules/alloca-opt, modules/argz, modules/arpa_inet:
39934 * modules/byteswap, modules/configmake, modules/fcntl:
39935 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
39936 * modules/localcharset, modules/netinet_in, modules/poll:
39937 * modules/stdbool, modules/stdint, modules/sys_select:
39938 * modules/sys_socket, modules/sys_stat, modules/sysexits:
39940 2006-09-08 Jim Meyering <jim@meyering.net>
39942 Avoid new build failure on FreeBSD 6.0.
39943 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
39944 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
39945 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
39947 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39949 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
39951 2006-09-07 Jim Meyering <jim@meyering.net>
39953 Fix global typo in last change: use chmod u-w, not chmod u-x.
39954 Spotted by Paul Eggert and Bruce Korb.
39955 * modules/alloca-opt, modules/argz, modules/arpa_inet:
39956 * modules/byteswap, modules/configmake, modules/fcntl:
39957 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
39958 * modules/localcharset, modules/netinet_in, modules/poll:
39959 * modules/stdbool, modules/stdint, modules/sys_select:
39960 * modules/sys_socket, modules/sys_stat, modules/sysexits:
39962 2006-09-06 Jim Meyering <jim@meyering.net>
39964 Make generated files be read-only.
39965 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
39966 Ensure that each generated file is now read-only.
39967 * modules/argz: Likewise.
39968 * modules/arpa_inet: Likewise.
39969 * modules/byteswap: Likewise.
39970 * modules/configmake: Likewise.
39971 * modules/fcntl: Likewise.
39972 * modules/fnmatch: Likewise.
39973 * modules/getopt: Likewise.
39974 * modules/glob: Likewise.
39975 * modules/inttypes: Likewise.
39976 * modules/netinet_in: Likewise.
39977 * modules/poll: Likewise.
39978 * modules/stdbool: Likewise.
39979 * modules/stdint: Likewise.
39980 * modules/sys_select: Likewise.
39981 * modules/sys_socket: Likewise.
39982 * modules/sys_stat: Likewise.
39983 * modules/sysexits: Likewise.
39984 * modules/localcharset: Same as above, but continue using temporary
39985 file named "t-$@" (why different?) rather than the "$@-t" used
39988 * modules/sysexits (Makefile.am): Replace literal occurrences
39989 of "sysexit.h" more readable, and more consistent, "$@".
39991 2006-09-06 Bruno Haible <bruno@clisp.org>
39993 * modules/striconv: New file.
39994 * modules/xstriconv: New file.
39995 * MODULES.html.sh (Internationalization functions): Add striconv,
39998 2006-09-06 Bruno Haible <bruno@clisp.org>
40000 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
40001 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
40002 not using libtool correctly.
40004 2006-09-06 Bruno Haible <bruno@clisp.org>
40006 * lib/striconv.h: New file.
40007 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
40009 * lib/xstriconv.h: New file.
40010 * lib/xstriconv.c: New file.
40012 2006-09-06 Bruno Haible <bruno@clisp.org>
40014 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
40017 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40019 * lib/argz_.h: Sync from Libtool.
40021 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
40022 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40024 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
40026 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
40028 * modules/trim: New file.
40030 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
40032 * lib/trim.h: New file.
40033 * lib/trim.c: New file.
40035 2006-09-05 Bruno Haible <bruno@clisp.org>
40037 * MODULES.html.sh (String handling): Add trim.
40039 2006-09-04 Karl Berry <karl@gnu.org>
40041 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
40042 until next release.
40044 2006-09-03 Bruno Haible <bruno@clisp.org>
40046 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
40049 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
40051 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
40052 not gl_GETLOADAVG. Omit unneeded semicolons.
40053 Problems reported by Ralf Wildenhues in
40054 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
40055 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
40056 at the end, which is the usual gnulib style.
40058 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
40059 of doing all the work ourselves.
40060 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
40061 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
40063 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
40065 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
40066 Problem reported by Ralf Wildenhues in
40067 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
40069 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
40070 HAVE_STRUCT_STATFS_F_FSTYPENAME.
40072 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
40074 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
40075 yesterday's patch by changing test -n to test -z.
40077 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
40079 * modules/getloadavg (Files): Add m4/getloadavg.m4.
40080 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
40081 the former is now obsolescent.
40083 * modules/chdir-long (Depends-on): Add fcntl.
40085 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
40087 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
40088 obsolescent, and programs should use gnulib instead.
40089 * m4/getloadavg.m4: New file, with contents taken from Autoconf
40090 but with prefixes changed.
40092 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
40094 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
40095 or stdbool.h, because they might not exist while configuring.
40097 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
40098 Don't include unistd.h or limits.h; not needed, since chdir-long.h
40100 (O_DIRECTORY): Remove.
40102 2006-08-31 Eric Blake <ebb9@byu.net>
40104 * gnulib-tool: Don't let emacs change spaces to TAB.
40106 2006-08-31 Bruno Haible <bruno@clisp.org>
40108 * gnulib-tool: When calling func_import more than once, do it in a
40110 Reported by Eric Blake <ebb9@byu.net>.
40112 2006-08-31 Bruno Haible <bruno@clisp.org>
40114 * gnulib-tool (nl): Remove variable.
40115 (sed_transform_lib_file): Use more robust test for config-h module.
40116 (func_import): Fix typo in 2006-08-25 patch.
40118 2006-08-31 Bruno Haible <bruno@clisp.org>
40120 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
40121 specified, augment Makefile.am variables instead of assigning them.
40123 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
40125 Work around a bug in both the Linux and SunOS 64-bit kernels:
40126 nanosleep mishandles sleeps for longer than 2**31 seconds.
40127 Problem reported by Frank v Waveren in
40128 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
40129 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
40130 Check for nanosleep bug.
40131 (LIB_NANOSLEEP): Append clock_gettime library if needed.
40133 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
40135 Work around a bug in both the Linux and SunOS 64-bit kernels:
40136 nanosleep mishandles sleeps for longer than 2**31 seconds.
40137 Problem reported by Frank v Waveren in
40138 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
40139 * lib/nanosleep.c (BILLION): New constant.
40140 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
40141 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
40144 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
40146 * modules/nanosleep (Depends-on): Add gettime.
40148 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
40149 and Simon Josefsson <jas@extundo.com>
40150 and Oskar Liljeblad <oskar@osk.mine.nu>
40152 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
40153 * gnulib-tool (func_import): New license type 'unmodifiable license
40155 * modules/fdl: Use it. Longer description.
40156 * module/gpl, module/lgpl: New files.
40158 2006-08-30 Jim Meyering <jim@meyering.net>
40160 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
40161 shadowing the parameter.
40163 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40167 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40169 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
40170 sharing with gnulib. Report by Eric Blake.
40172 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
40174 * modules/isapipe: New file.
40175 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
40177 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
40179 * modules/configmake (Makefile.am): Add a comment, and omit
40180 the CONFIGMAKE_ prefix from generated macro names. Suggested
40183 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
40185 * m4/isapipe.m4: New file.
40187 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
40189 * lib/isapipe.c, lib/isapipe.h: New files.
40191 2006-08-29 Jim Meyering <jim@meyering.net>
40193 * modules/configmake (Makefile.am): Make configmake.h depend on
40194 Makefile. Otherwise, a stale configmake.h could hang around.
40196 2006-08-29 Eric Blake <ebb9@byu.net>
40198 * lib/error.c (error_at_line, print_errno_message): Match libc, after
40199 resolution of upstream bug 3044.
40201 2006-08-29 Bruno Haible <bruno@clisp.org>
40203 * modules/localcharset (Depends-on): Add configmake.
40204 (Makefile.am): Remove setting of LIBDIR through DEFS.
40206 2006-08-29 Bruno Haible <bruno@clisp.org>
40208 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
40211 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
40213 * modules/fcntl: New file.
40214 * modules/chdir-safer (Depends-on): Add fcntl.
40215 * modules/fts: Likewise.
40216 * modules/mkdir-p: Likewise.
40218 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
40219 This undoes the most recent change, since we're now addressing the
40220 problem in a different way.
40222 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
40223 into output, since the output might be called Makefile.am even
40224 if $makefile_name is something different.
40225 (func_import): Use $makefile_am rather than
40226 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
40229 * modules/inttypes (Files): Add m4/inttypes-h.m4.
40231 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
40233 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
40234 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
40235 recent change to stdint.m4, since we're now addressing the problem in a
40238 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
40240 * m4/fcntl_h.m4: New file.
40242 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
40244 * lib/fcntl_.h: New file.
40245 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
40247 * lib/dirchownmod.c: Likewise.
40248 * lib/fts.c: Likewise.
40250 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
40251 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
40252 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
40253 just before including <inttypes.h>, to avoid circular inclusion.
40255 2006-08-28 Jim Meyering <jim@meyering.net>
40257 * doc/visibility.texi: Actually read and correct the grammar of the
40258 sentence affected by yesterday's change.
40260 2006-08-28 Eric Blake <ebb9@byu.net>
40262 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
40265 2006-08-28 Eric Blake <ebb9@byu.net>
40267 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
40269 2006-08-28 Eric Blake <ebb9@byu.net>
40271 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
40273 2006-08-28 Bruno Haible <bruno@clisp.org>
40275 * modules/c-strstr: New file, from GNU gettext.
40276 * MODULES.html.sh (String handling): Add c-strstr.
40278 2006-08-28 Bruno Haible <bruno@clisp.org>
40280 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
40282 Reported by Eric Blake.
40284 2006-08-28 Bruno Haible <bruno@clisp.org>
40286 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
40287 (VASNPRINTF): Return a string of length > INT_MAX without failing.
40288 * lib/vasprintf.c: Include errno.h, limits.h.
40289 (EOVERFLOW): New fallback definition.
40290 (vasprintf): Test here whether the string length is > INT_MAX.
40291 * lib/vsnprintf.c: Include errno.h, limits.h.
40292 (EOVERFLOW): New fallback definition.
40293 (vsnprintf): Fix bug when generated string was too long for the buffer.
40294 Test here whether the string length is > INT_MAX.
40296 2006-08-28 Bruno Haible <bruno@clisp.org>
40298 * lib/inttypes_.h (SCNX*): Remove definitions.
40299 Reported by Eric Blake.
40301 2006-08-28 Bruno Haible <bruno@clisp.org>
40303 * lib/c-strstr.h: New file, from GNU gettext.
40304 * lib/c-strstr.c: New file, from GNU gettext.
40306 2006-08-28 Bruno Haible <bruno@clisp.org>
40308 * gnulib-tool: Reorder some statements.
40310 2006-08-28 Bruno Haible <bruno@clisp.org>
40312 * gnulib-tool: New option --makefile-name.
40313 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
40315 (func_import): Write $makefile_name to the cache file, and read it from
40316 there unless explicitly specified. Use $makefile_name as file name
40317 instead of Makefile.am. Adjust the recommendations accordingly.
40319 2006-08-28 Bruno Haible <bruno@clisp.org>
40321 * gnulib-tool (func_verify_module): Check against misapplying patch.
40323 2006-08-28 Bruno Haible <bruno@clisp.org>
40325 * gnulib-tool (func_relativize, func_relconcat): New functions.
40326 Give an error if --local-dir is given with --update.
40327 Remove trailing slashes from $local_gnulib_dir.
40328 (func_import): Store the relativized $local_gnulib_dir in
40329 gnulib-cache.m4, and read it from there if not specified explicitly.
40331 2006-08-28 Bruno Haible <bruno@clisp.org>
40333 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
40334 is the current directory. Respect also $local_gnulib_dir.
40336 2006-08-28 Bruno Haible <bruno@clisp.org>
40337 Simon Josefsson <jas@extundo.com>
40340 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
40342 2006-08-27 Jim Meyering <jim@meyering.net>
40344 * doc/visibility.texi: Remove duplicate word: "pointer".
40346 2006-08-26 Bruno Haible <bruno@clisp.org>
40348 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
40349 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
40350 (Makefile.am): Create inttypes.h from inttypes_.h.
40351 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
40353 * modules/imaxabs: New file.
40355 * modules/imaxdiv: New file.
40357 2006-08-26 Bruno Haible <bruno@clisp.org>
40359 * m4/inttypes.m4: New file.
40360 * m4/_inttypes_h.m4: Remove file.
40361 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
40363 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
40365 * m4/imaxabs.m4: New file.
40367 * m4/imaxdiv.m4: New file.
40369 2006-08-26 Bruno Haible <bruno@clisp.org>
40371 * lib/inttypes_.h: New file.
40372 * lib/inttypes.h: Remove file.
40373 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
40375 * lib/imaxabs.c: New file.
40377 * lib/imaxdiv.c: New file.
40379 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
40381 New config-h module, so that "make" output needn't be cluttered
40382 by -DHAVE_CONFIG_H.
40383 * MODULES.html.sh (Support for building libraries and executables):
40385 * modules/config-h: New file.
40386 * gnulib-tool (nl, sed_transform_lib_file): New vars.
40387 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
40388 the config-h module is used.
40390 New configmake module, so that "make" output needn't be cluttered
40391 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
40392 * MODULES.html.sh (Support for building libraries and executables):
40394 * modules/configmake: New file.
40396 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
40398 * m4/config-h.m4: New file.
40400 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
40402 * config/srclist.txt: Add elisp-comp.
40404 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
40406 * MODULES.html.sh (Support for building libraries and executables):
40408 * build-aux/elisp-comp: New file.
40409 * modules/elisp-comp: New file.
40411 2006-08-24 Bruno Haible <bruno@clisp.org>
40413 * gnulib-tool (func_create_testdir): Use non-default values of
40414 sourcebase and m4base.
40416 2006-08-24 Bruno Haible <bruno@clisp.org>
40418 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
40421 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
40423 * modules/openat (Depends-on): Add lchown.
40425 2006-08-23 Bruno Haible <bruno@clisp.org>
40427 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
40428 of gl_LOCK_EARLY instead of gl_LOCK.
40430 2006-08-23 Bruno Haible <bruno@clisp.org>
40432 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
40434 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
40436 2006-08-23 Bruno Haible <bruno@clisp.org>
40438 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
40441 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
40442 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
40443 (gl_LOCK): New macro.
40445 2006-08-22 Simon Josefsson <jas@extundo.com>
40447 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
40450 2006-08-22 Simon Josefsson <jas@extundo.com>
40452 * MODULES.html.sh: Add "Support for maintaining and release
40455 * build-aux/gnupload: New file, from coreutils.
40457 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
40459 Avoid the need for AC_LIBSOURCES in m4 macros.
40460 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
40461 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
40462 * modules/check-version (EXTRA_DIST): Add check-version.h.
40463 * modules/crc (EXTRA_DIST): Add crc.h.
40464 * modules/des (EXTRA_DIST): Add des.h.
40465 * modules/gc (EXTRA_DIST): Add gc.h.
40466 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
40467 * modules/getline (EXTRA_DIST): Add getline.h.
40468 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
40469 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
40470 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
40471 * modules/md2 (EXTRA_DIST): Add md2.h.
40472 * modules/md4 (EXTRA_DIST): Add md4.h.
40473 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
40474 * modules/read-file (EXTRA_DIST): Add read-file.h.
40475 * modules/readline (EXTRA_DIST): Add readline.h.
40476 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
40477 rijndael-api-fst.h.
40479 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
40481 * m4/rijndael.m4 (gl_ARCFOUR):
40482 * m4/arctwo.m4 (gl_ARCTWO):
40483 * m4/check-version.m4 (gl_CHECK_VERSION):
40484 * m4/crc.m4 (gl_CRC):
40485 * m4/des.m4 (gl_DES):
40486 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
40487 * m4/gc.m4 (gl_GC):
40488 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
40489 * m4/getline.m4 (gl_FUNC_GETLINE):
40490 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
40491 * m4/hmac-md5.m4 (gl_HMAC_MD5):
40492 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
40493 * m4/md2.m4 (gl_MD2):
40494 * m4/md4.m4 (gl_MD4):
40495 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
40496 * m4/read-file.m4 (gl_FUNC_READ_FILE):
40497 * m4/readline.m4 (gl_FUNC_READLINE):
40498 * m4/rijndael.m4 (gl_RIJNDAEL):
40499 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
40500 to get the necessary .h files and whatnot.
40502 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
40504 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
40505 gnulib rather than the other way around.
40506 * config/srclistvars.sh (COREUTILS): Remove.
40508 2006-08-22 Jim Meyering <jim@meyering.net>
40510 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
40512 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
40514 2006-08-22 Eric Blake <ebb9@byu.net>
40516 * modules/regexprops-generic: New file.
40517 * MODULES.html.sh (Support for building documentation): List it.
40519 2006-08-22 Eric Blake <ebb9@byu.net>
40521 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
40522 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
40523 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
40524 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
40526 2006-08-22 Bruno Haible <bruno@clisp.org>
40528 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
40529 and lib_LTLIBRARIES like the other lib_* variables.
40531 2006-08-22 Bruno Haible <bruno@clisp.org>
40533 * build-aux/x-to-1.in: New file, from GNU gettext.
40535 2006-08-22 Bruno Haible <bruno@clisp.org>
40537 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
40540 2006-08-22 Bruno Haible <bruno@clisp.org>
40542 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
40545 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
40548 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
40550 Problem reported by Bruno Haible.
40552 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
40554 Avoid the need for AC_LIBSOURCES in m4 macros.
40555 * modules/acl (EXTRA_DIST): Add acl.h.
40556 * modules/argmatch (Files): Add m4/argmatch.m4.
40557 (configure.ac): Add gl_ARGMATCH.
40558 (EXTRA_DIST): Renamed from lib_SOURCES, for
40559 consistency with the other modules. Remove argmatch.c.
40560 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
40561 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
40562 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
40563 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
40564 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
40565 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
40566 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
40567 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
40568 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
40569 * modules/closeout (EXTRA_DIST): Add closeout.h.
40570 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
40571 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
40572 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
40573 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
40574 dirname.h; remove basename.c and stripslash.c.
40575 * modules/exclude (EXTRA_DIST): Add exclude.h.
40576 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
40577 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
40578 * modules/file-type (EXTRA_DIST): Add file-type.h.
40579 * modules/filemode (EXTRA_DIST): Add filemode.h.
40580 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
40581 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
40582 * modules/fpending (EXTRA_DIST): Add __fpending.h.
40583 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
40584 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
40585 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
40586 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
40587 * modules/getdate (EXTRA_DIST): Add getdate.c.
40588 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
40589 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
40590 * modules/getpass (EXTRA_DIST): Add getpass.h.
40591 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
40592 * modules/group-member (EXTRA_DIST): Add group-member.h.
40593 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
40594 * modules/hash (EXTRA_DIST): Add hash.h.
40595 * modules/human (EXTRA_DIST): Add human.h.
40596 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
40597 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
40598 * modules/lchown (EXTRA_DIST): Add lchown.h.
40599 * modules/long-options (EXTRA_DIST): Add long-options.h.
40600 * modules/lstat (EXTRA_DIST): Add lstat.h.
40601 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
40602 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
40603 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
40604 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
40605 * modules/memxor (EXTRA_DIST): Add memxor.h.
40606 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
40607 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
40608 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
40609 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
40610 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
40611 * modules/physmem (EXTRA_DIST): Add physmem.h.
40612 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
40613 * modules/posixver (EXTRA_DIST): Add posixver.h.
40614 * modules/quote (EXTRA_DIST): Add quote.h.
40615 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
40616 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
40617 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
40618 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
40619 regex_internal.h regexec.c.
40620 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
40621 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
40622 * modules/same (EXTRA_DIST): Add same.h.
40623 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
40624 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
40625 * modules/savedir (EXTRA_DIST): Add savedir.h.
40626 * modules/sha1 (EXTRA_DIST): Add sha1.h.
40627 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
40628 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
40629 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
40630 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
40631 * modules/strdup (EXTRA_DIST): Add strdup.h.
40632 * modules/strftime (EXTRA_DIST): Add strftime.h.
40633 * modules/strndup (EXTRA_DIST): Add strndup.h.
40634 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
40635 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
40636 * modules/time_r (EXTRA_DIST): Add time_r.h.
40637 * modules/timespec (EXTRA_DIST): Add timespec.h.
40638 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
40639 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
40640 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
40641 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
40642 * modules/userspec (EXTRA_DIST): Add userspec.h.
40643 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
40644 * modules/utimens (EXTRA_DIST): Add utimens.h.
40645 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
40646 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
40647 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
40648 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
40649 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
40650 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
40651 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
40652 * modules/yesno (EXTRA_DIST): Add yesno.h.
40654 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
40656 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
40658 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
40659 * m4/dev-ino.m4, same-inode.m4: Remove.
40661 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
40662 * m4/acl.m4 (AC_FUNC_ACL):
40663 * m4/backupfile.m4 (gl_BACKUPFILE):
40664 * m4/c-strtod.m4 (gl_C99_STRTOLD):
40665 * m4/canon-host.m4 (gl_CANON_HOST):
40666 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
40667 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
40668 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
40669 * m4/cloexec.m4 (gl_CLOEXEC):
40670 * m4/close-stream.m4 (gl_CLOSE_STREAM):
40671 * m4/closeout.m4 (gl_CLOSEOUT):
40672 * m4/dirfd.m4 (gl_FUNC_DIRFD):
40673 * m4/dirname.m4 (gl_DIRNAME):
40674 * m4/exclude.m4 (gl_EXCLUDE):
40675 * m4/exitfail.m4 (gl_EXITFAIL):
40676 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
40677 * m4/file-type.m4 (gl_FILE_TYPE):
40678 * m4/filemode.m4 (gl_FILEMODE):
40679 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
40680 * m4/fpending.m4 (gl_FUNC_FPENDING):
40681 * m4/fprintftime.m4 (gl_FPRINTFTIME):
40682 * m4/fts.m4 (gl_FUNC_FTS):
40683 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
40684 * m4/getdate.m4 (gl_GETDATE):
40685 * m4/gethrxtime.m4 (gl_GETHRXTIME):
40686 * m4/getpagesize.m4 (gl_GETPAGESIZE):
40687 * m4/getpass.m4 (gl_FUNC_GETPASS):
40688 * m4/gettime.m4 (gl_GETTIME):
40689 * m4/getugroups.m4 (gl_GETUGROUPS):
40690 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
40691 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
40692 * m4/hard-locale.m4 (gl_HARD_LOCALE):
40693 * m4/hash.m4 (gl_HASH):
40694 * m4/idcache.m4 (gl_IDCACHE):
40695 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
40696 * m4/lchown.m4 (gl_FUNC_LCHOWN):
40697 * m4/long-options.m4 (gl_LONG_OPTIONS):
40698 * m4/lstat.m4 (gl_FUNC_LSTAT):
40699 * m4/md5.m4 (gl_MD5):
40700 * m4/memcasecmp.m4 (gl_MEMCASECMP):
40701 * m4/memcoll.m4 (gl_MEMCOLL):
40702 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
40703 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
40704 * m4/memxor.m4 (gl_MEMXOR):
40705 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
40706 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
40707 * m4/modechange.m4 (gl_MODECHANGE):
40708 * m4/mountlist.m4 (gl_MOUNTLIST):
40709 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
40710 * m4/openat.m4 (gl_FUNC_OPENAT):
40711 * m4/pathmax.m4 (gl_PATHMAX):
40712 * m4/physmem.m4 (gl_PHYSMEM):
40713 * m4/posixtm.m4 (gl_POSIXTM):
40714 * m4/posixver.m4 (gl_POSIXVER):
40715 * m4/quote.m4 (gl_QUOTE):
40716 * m4/quotearg.m4 (gl_QUOTEARG):
40717 * m4/readtokens.m4 (gl_READTOKENS):
40718 * m4/readutmp.m4 (gl_READUTMP):
40719 * m4/regex.m4 (gl_REGEX):
40720 * m4/safe-read.m4 (gl_SAFE_READ):
40721 * m4/safe-write.m4 (gl_SAFE_WRITE):
40722 * m4/same.m4 (gl_SAME):
40723 * m4/save-cwd.m4 (gl_SAVE_CWD):
40724 * m4/savedir.m4 (gl_SAVEDIR):
40725 * m4/settime.m4 (gl_SETTIME):
40726 * m4/sha1.m4 (gl_SHA1):
40727 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
40728 * m4/stat-macros.m4 (gl_STAT_MACROS):
40729 * m4/stat-time.m4 (gl_STAT_TIME):
40730 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
40731 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
40732 * m4/strdup.m4 (gl_FUNC_STRDUP):
40733 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
40734 * m4/strndup.m4 (gl_FUNC_STRNDUP):
40735 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
40736 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
40737 * m4/time_r.m4 (gl_TIME_R):
40738 * m4/timespec.m4 (gl_TIMESPEC):
40739 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
40740 * m4/unlinkdir.m4 (gl_UNLINKDIR):
40741 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
40742 * m4/userspec.m4 (gl_USERSPEC):
40743 * m4/utimecmp.m4 (gl_UTIMECMP):
40744 * m4/utimens.m4 (gl_UTIMENS):
40745 * m4/xalloc.m4 (gl_XALLOC):
40746 * m4/xgetcwd.m4 (gl_XGETCWD):
40747 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
40748 * m4/xreadlink.m4 (gl_XREADLINK):
40749 * m4/xstrtod.m4 (gl_XSTRTOD):
40750 * m4/yesno.m4 (gl_YESNO):
40751 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
40752 to get the necessary .h files and whatnot.
40754 2006-08-21 Mark D. Baushke <mdb@gnu.org>
40755 Bruno Haible <bruno@clisp.org>
40757 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
40758 /bin/sh understanding of '!' conditional negation.
40760 2006-08-21 Jim Meyering <jim@meyering.net>
40762 * modules/openat (Depends-on): Really alphabetize.
40764 * modules/acl (Depends-on): Add error and quote.
40766 * check-module (find_included_lib_files): Add at-func.c to the
40767 ok-to-include-more-than-once white list.
40769 * modules/openat (Depends-on): Add lstat. Alphabetize.
40771 2006-08-21 Bruno Haible <bruno@clisp.org>
40773 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40774 Emit a pkgdata_DATA variable only if some snippets add contents to it.
40775 Reported by Martin Lambers <marlam@marlam.de>.
40777 2006-08-21 Bruno Haible <bruno@clisp.org>
40779 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
40780 specify an installation location, don't emit a noinst_LIBRARIES or
40781 noinst_LTLIBRARIES assignment.
40783 2006-08-21 Bruno Haible <bruno@clisp.org>
40786 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
40787 BeOS has mbrtowc() but no <wctype.h>.
40789 2006-08-21 Bruno Haible <bruno@clisp.org>
40792 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
40795 2006-08-21 Bruno Haible <bruno@clisp.org>
40798 * lib/mbchar.h: Include <wctype.h> only if it exists.
40800 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
40802 Remove files that are no longer needed by their respective modules.
40803 * m4/obstack.m4: Remove.
40804 * m4/strerror_r.m4: Remove.
40805 * m4/uint32_t.m4: Remove.
40806 * m4/uintptr_t.m4: Remove.
40807 * m4/ullong_max.m4: Remove.
40808 * m4/xstrtoimax.m4: Remove.
40809 * m4/xstrtoumax.m4: Remove.
40811 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
40812 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
40813 dependencies now capture this.
40815 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
40816 Do not use AC_LIBSOURCES, since gnulib modules now do this.
40817 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
40818 * m4/human.m4 (gl_HUMAN): Likewise.
40819 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
40820 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
40822 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
40824 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
40825 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
40827 * m4/human.m4 (gl_HUMAN): Likewise.
40828 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
40829 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
40830 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
40831 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
40832 * m4/xstrtol (gl_XSTRTOL): Likewise.
40834 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
40835 AC_TYPE_LONG_LONG_INT.
40836 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
40837 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
40838 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
40839 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
40841 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
40844 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
40845 (gl_PREREQ_XSTRTOUL): Remove.
40847 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
40849 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
40852 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
40854 Add and change modules to make it easier for coreutils to use
40856 * modules/backupfile (Files): Remove m4/d-ino.m4.
40857 (Depends-on): Add d-ino.
40858 * modules/cycle-check (Depends-on): Add stdint.
40859 (lib_SOURCES): Add cycle-check.h.
40860 * modules/d-ino: New module.
40861 * modules/d-type: New module.
40862 * modules/error (Files): Remove m4/strerror_r.m4.
40863 * modules/filemode (Files): Add m4/st_dm_mode.m4.
40864 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
40865 m4/inttypes_h.m4, m4/uintmax_t.m4.
40866 (Depends-on): Add stdint.
40867 (lib_SOURCES): Add fsusage.h.
40868 * modules/getcwd (Files): Remove d-ino.m4.
40869 (Depends-on): Add d-ino.
40870 * modules/getndelim2 (Depends-on): Add stdint.
40871 * modules/glob (Files): Remove m4/d-type.m4.
40872 (Depends-on): Add d-type.
40873 * modules/host-os: New module.
40874 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
40875 m4/inttypes_h.m4, m4/uintmax_t.m4.
40876 * Depends-on: Add stdint.
40877 (lib_SOURCES): Add human.h.
40878 * modules/inttostr (Files): Remove m4/intmax_t.m4,
40879 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
40880 m4/uintmax_t.m4, m4/ulonglong.m4.
40881 (Depends-on): Add stdint.
40882 (EXTRA_DIST): Add inttostr.h.
40883 * modules/lchmod: New module.
40884 * modules/link-follow: New module.
40885 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
40886 (Depends-on): Add lchmod.
40887 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
40888 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
40889 (Depends-on): Add stdint.
40890 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
40891 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
40892 (Depends-on): Add stdint.
40893 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
40894 * modules/perl: New module.
40895 * modules/regex (Depends-on): Add stdint.
40896 * modules/rmdir-errno: New module.
40897 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
40899 (Depends-on): Add stdint.
40900 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
40902 (Depends-on): Add stdint.
40903 * modules/unlink-busy: New module.
40904 * modules/utimecmp (Depends-on): Add stdint.
40905 * modules/uptime: New module.
40906 * modules/winsz-ioctl: New module.
40907 * modules/winsz-termios: New module.
40908 * modules/xnanosleep (Depends-on): Add nanosleep.
40909 * modules/ullong_max: Remove.
40910 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
40911 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
40912 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
40913 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
40914 (Depends-on): Add inttypes.
40915 (lib_SOURCES): Add xstrtol.h.
40916 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
40917 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
40918 * MODULES.html.sh: Move 'assert' into the assert section.
40919 Move 'dummy' into the linking section.
40921 Add section for compatibility checks for POSIX:2001 functions,
40922 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
40923 winsz-ioctl, and winsz-termios into it.
40925 Add top-level Misc section and put host-os, perl, and uptime
40928 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
40930 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
40931 now assume the stdint module. Do not include inttypes.h.
40932 * lib/fsusage.h: Likewise.
40933 * lib/getndelim2.c: Likewise.
40934 * lib/human.h: Likewise.
40935 * lib/inttostr.h: Likewise.
40936 * lib/obstack.c: Likewise.
40937 * lib/regex_internal.h: Likewise.
40938 * lib/tempname.c: Likewise.
40939 * lib/utimecmp.c: Likewise.
40940 * lib/xstrtol.h: Likewise.
40942 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
40944 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
40945 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
40946 * lib/xtime.h: Likewise.
40948 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
40950 * modules/openat (Files): Add lib/fchmodat.c.
40951 Fixes problem reported by Jay Youngman.
40953 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
40955 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
40956 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
40958 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
40959 Bruno Haible <bruno@clisp.org>
40961 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
40962 and is a script that invokes bison. Tighten the code. Add comments.
40964 2006-08-18 Jim Meyering <jim@meyering.net>
40966 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
40967 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
40968 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
40969 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
40971 2006-08-18 Bruno Haible <bruno@clisp.org>
40973 * modules/bison-i18n: New file.
40974 * MODULES.html.sh (Internationalization functions): Add it.
40976 2006-08-18 Bruno Haible <bruno@clisp.org>
40978 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
40979 sys/statvfs.h. When getmntinfo was found, check its declaration and
40980 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
40982 2006-08-18 Bruno Haible <bruno@clisp.org>
40984 * m4/bison-i18n.m4: New file, from bison.
40986 2006-08-18 Bruno Haible <bruno@clisp.org>
40988 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
40989 (ME_DUMMY): Treat "kernfs" as a dummy.
40990 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
40992 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
40994 Update from coreutils.
40996 2006-08-15 Jim Meyering <jim@meyering.net>
40998 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
41000 2006-01-17 Jim Meyering <jim@meyering.net>
41002 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
41004 2006-01-11 Jim Meyering <jim@meyering.net>
41006 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
41007 Check for the lchmod function.
41009 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
41011 Update from coreutils.
41013 * lib/__fpending.h: Add copyright notice.
41014 * lib/fprintftime.h: Likewise.
41015 * lib/savedir.c: Use (C) in copyright notice.
41016 * lib/savedir.h: Likewise.
41018 2006-08-15 Jim Meyering <jim@meyering.net>
41020 * lib/at-func.c: New file, with the logic of all emulated at-functions.
41021 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
41022 in support of the EXPECTED_ERRNO macro.
41023 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
41024 definitions. Instead, define the appropriate symbols and include
41026 * lib/mkdirat.c (mkdirat): Likewise.
41027 * lib/fchmodat.c (fchmodat): Likewise.
41028 (ENOSYS): Remove definition.
41029 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
41030 it. Don't include "unistd--.h" -- it wasn't ever used.
41032 2006-01-17 Jim Meyering <jim@meyering.net>
41034 Rewrite fts.c not to change the current working directory,
41035 by using openat, fstatat, fdopendir, etc..
41037 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
41038 (HAVE_OPENAT_SUPPORT): Define.
41039 [_LIBC] (fchdir): Don't undef or define; no longer used.
41040 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
41041 Now, this `function' always succeeds, and consumes its file descriptor
41042 parameter -- so callers must not close such FDs. Update callers.
41043 (diropen_fd, opendirat, cwd_advance_fd): New functions.
41044 (diropen): Add parameter, SP. Adjust all callers.
41045 Implement using diropen_fd, rather than open.
41046 (fts_open): Initialize new member, fts_cwd_fd.
41047 Remove fts_rft-setting code.
41048 (fts_close): Close fts_cwd_fd, if necessary.
41049 (__opendir2): Define in terms of opendir or opendirat,
41050 depending on whether the FST_NOCHDIR flag is set.
41051 (fts_build): Since fts_safe_changedir consumes its FD, and since
41052 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
41053 and close the dup'd file descriptor upon failure.
41054 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
41055 (fts_safe_changedir): Tweak semantics to reflect that this function
41056 now calls cwd_advance_fd and hence consumes its FD argument.
41057 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
41058 [struct FTS] (fts_rft): Remove now-unused member.
41059 [struct FTS] (fts_cycle.state): Improve comment.
41061 * lib/openat.c (openat_needs_fchdir): New function.
41062 * lib/openat.h (openat_needs_fchdir): Declare it.
41064 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
41066 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
41067 Problem and fix reported by Pádraig Brady in
41068 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
41070 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
41072 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
41074 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
41076 * lib/memcoll.c (memcoll): Optimize for the common case where the
41077 arguments are bytewise equal.
41079 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
41081 * doc/regexprops-generic.texi: Add a copyright notice.
41083 2006-08-15 Bruno Haible <bruno@clisp.org>
41085 * modules/tmpdir (License): Change to LGPL.
41087 2006-08-15 Bruno Haible <bruno@clisp.org>
41089 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
41092 2006-08-14 Simon Josefsson <jas@extundo.com>
41094 * config/srclist.txt: Add gnupload.
41096 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
41098 Change copyright notice from LGPL 2 to GPL 2, since that's the
41099 standard form used in the gnulib repository.
41100 * tests/test-lock.c: Likewise.
41101 * tests/test-stdint.c: Likewise.
41102 * tests/test-tls.c: Likewise.
41104 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
41105 prelude-manager. User shorter URLs for GNU projects, without '?'.
41106 Add copyright notice.
41108 * check-module: Add copyright notice. Output a copyright
41109 notice if "--version" is specified.
41110 * modules/COPYING: New file.
41111 * tests/test-getaddrinfo.c: Add copyright notice.
41112 * tests/test-verify.c: Likewise.
41114 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
41116 Change copyright notice from LGPL 2 to GPL 2, since that's the
41117 standard form used in the gnulib repository.
41118 * lib/lock.c: LGPL -> GPL.
41119 * lib/lock.h: Likewise.
41120 * lib/strnlen1.c: Likewise.
41121 * lib/strnlen1.h: Likewise.
41122 * lib/tls.c: Likewise.
41123 * lib/tls.h: Likewise.
41124 * lib/tmpdir.c: Likewise.
41126 * lib/TODO: Remove; this belongs only in coreutils.
41128 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
41130 Add copyright notices to long-enough files that lack them, since
41131 otherwise the files aren't clearly free. Use the same notice that
41132 getdate.texi already uses.
41133 * doc/alloca-opt.texi: Add copyright notice.
41134 * doc/alloca.texi: Likewise.
41135 * doc/ctime.texi: Likewise.
41136 * doc/functions.texi: Likewise.
41137 * doc/gcd.texi: Likewise.
41138 * doc/gnulib-tool.texi: Likewise.
41139 * doc/inet_ntoa.texi: Likewise.
41140 * doc/visibility.texi: Likewise.
41142 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
41143 * doc/quote.texi: Add copyright notice.
41145 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
41146 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
41147 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
41148 Mention SunOS 5.11. Mention that everything before SunOS 5.7
41149 is now obsolete, and give a pointer to the Sun list.
41150 Add copyright notice.
41152 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
41154 * config/srclistvars.sh: Add copyright notice.
41156 2006-08-14 Eric Blake <ebb9@byu.net>
41158 Import the following change from libc:
41160 2006-08-12 Ulrich Drepper <drepper@redhat.com>
41163 * lib/misc/error.c: Add space between program name and message if file
41166 2006-08-12 Karl Berry <karl@gnu.org>
41168 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
41169 remove, these originate in gnulib now.
41171 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41173 * doc/Makefile (standards.info standards.html standards.dvi):
41174 Also depend on make-stds.texi.
41176 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
41178 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
41179 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
41181 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
41182 in wchar_t. Problem reported by Eric Blake.
41184 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
41185 LEN is smaller than SIZE. Suggested by Bruno Haible.
41186 Also, help the compiler to keep LEN in a register.
41188 2006-08-11 Eric Blake <ebb9@byu.net>
41190 * users.txt: Sort. Add tar.
41192 2006-08-11 Bruno Haible <bruno@clisp.org>
41194 * users.txt: New file.
41196 2006-08-11 Bruno Haible <bruno@clisp.org>
41198 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
41199 before <wchar.h>. Needed for OSF/1 and BSD/OS.
41201 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
41203 * modules/snprintf (Depends-on): Remove minmax.
41204 (Maintainer): Add self and Bruno.
41206 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
41208 * lib/.cppi-disable: Add snprintf.h, socket_.h.
41209 * lib/snprintf.c: Include <errno.h> and <limits.h>.
41210 (EOVERFLOW): Define if the system does not.
41211 Do not include "minmax.h"; it wasn't used.
41212 (snprintf): Don't assume size_t promotes to an unsigned type.
41213 Fix bug when generated string was too long for the buffer: the
41214 buffer's contents are supposed to be the initial prefix of the
41215 output. Don't assume vasnprintf returns EOVERFLOW if the size
41216 exceeds INT_MAX; do the check ourselves.
41218 Import the following changes from libc:
41220 2006-06-02 Jakub Jelinek <jakub@redhat.com>
41222 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
41223 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
41224 set wc to the byte which couldn't be converted.
41225 (re_string_reconstruct): Don't clear valid_raw_len before calling
41226 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
41227 tip_context using re_string_context_at.
41229 2006-05-02 Ulrich Drepper <drepper@redhat.com>
41231 * lib/posix/regex.h: g++ still cannot handled [restrict].
41233 2006-04-21 Ulrich Drepper <drepper@redhat.com>
41235 * lib/posix/regex.h: Remove special handling for VMS.
41237 2006-08-10 Jim Meyering <jim@meyering.net>
41239 * modules/same-inode: New module.
41240 * modules/dev-ino: New module.
41241 * modules/cycle-check: Depend on these modules, rather than simply
41242 including their .h files.
41243 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
41244 required via m4/cycle-check.m4.
41245 * modules/same: Depend on new same-inode module, rather than
41246 including same-inode.h.
41247 * modules/chdir-safer: New file.
41249 * modules/chown (Depends-on): Add stat-macros.
41251 2006-08-10 Jim Meyering <jim@meyering.net>
41253 * m4/cycle-check.m4: New file.
41254 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
41255 * m4/dev-ino.m4, m4/same-inode.m4: New files.
41257 2006-08-10 Eric Blake <ebb9@byu.net>
41259 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
41260 in from original proposal.
41262 2006-08-10 Eric Blake <ebb9@byu.net>
41263 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41265 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
41268 2006-08-10 Bruno Haible <bruno@clisp.org>
41270 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
41273 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
41275 Sync from coreutils.
41277 2006-07-19 Mike Frysinger <vapier@gentoo.org>
41279 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
41280 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
41282 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
41284 * modules/restrict: Remove; no longer needed now that we assume
41285 Autoconf 2.59 or later.
41286 * MODULES.html.sh: Remove 'restrict'.
41287 * modules/argp (Depends-on): Remove 'restrict'.
41288 * modules/base64 (Depends-on): Likewise.
41289 * modules/gc (Depends-on): Likewise.
41290 * modules/getaddrinfo (Depends-on): Likewise.
41291 * modules/glob (Depends-on): Likewise.
41292 * modules/inet_ntop (Depends-on): Likewise.
41293 * modules/inet_pton (Depends-on): Likewise.
41294 * modules/memxor (Depends-on): Likewise.
41295 * modules/regex (Depends-on): Likewise.
41296 * modules/strtok_r (Depends-on): Likewise.
41297 * modules/time_r (Depends-on): Likewise.
41299 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
41301 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
41302 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
41303 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
41304 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
41305 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
41306 * m4/memxor.m4 (gl_MEMXOR): Likewise.
41307 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
41308 gl_C_RESTRICT replaced by AC_C_RESTRICT.
41310 Merge from coreutils.
41311 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
41312 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
41313 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
41314 * m4/time_r.m4 (gl_TIME_R): Likewise.
41316 2006-08-09 Karl Berry <karl@gnu.org>
41318 * config/srclist.txt: no more gettext-tools, per Bruno.
41320 2006-08-08 Eric Blake <ebb9@byu.net>
41322 * modules/verror: New module.
41323 * MODULES.html.sh: Document it.
41325 2006-08-08 Eric Blake <ebb9@byu.net>
41327 * lib/verror.h, lib/verror.c: New files.
41329 2006-08-08 Eric Blake <ebb9@byu.net>
41331 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
41332 verror_at_line output complies with GNU Coding Standards even when
41335 2006-08-07 Bruno Haible <bruno@clisp.org>
41337 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
41339 Reported by Ralf Wildenhues.
41341 2006-08-07 Bruno Haible <bruno@clisp.org>
41343 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
41344 in an AC_DEFUN. Needed so that the autoconf snippets can use
41347 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41349 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41350 Initialize pkgdata_DATA.
41351 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
41354 2006-08-06 Eric Blake <ebb9@byu.net>
41356 * lib/error.h: Fold in some upstream changes from glibc.
41357 * lib/error.c: Likewise.
41359 2006-08-04 Bruno Haible <bruno@clisp.org>
41361 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41362 Make the mostlyclean-local rule depend on mostlyclean-generic.
41363 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
41365 2006-07-31 Bruno Haible <bruno@clisp.org>
41367 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
41368 <stdlib.h>, <string.h>.
41370 2006-07-30 Bruno Haible <bruno@clisp.org>
41372 * modules/readlink (License): Change to LGPL.
41374 2006-07-30 Bruno Haible <bruno@clisp.org>
41376 * modules/javaversion (Makefile.am): Distribute javaversion.java and
41377 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
41378 set PKGDATADIR to point to it.
41380 2006-07-30 Bruno Haible <bruno@clisp.org>
41382 * modules/csharpexec (configure.ac): Comment out macro invocation.
41383 * modules/javaexec (configure.ac): Likewise.
41384 * modules/javacomp-script (configure.ac): Likewise.
41386 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
41388 2006-07-30 Bruno Haible <bruno@clisp.org>
41390 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
41393 2006-07-30 Bruno Haible <bruno@clisp.org>
41395 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
41397 2006-07-30 Bruno Haible <bruno@clisp.org>
41399 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41400 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
41403 2006-07-29 Bruno Haible <bruno@clisp.org>
41405 Make it possible for gnulib-tool to work with locally modified or
41406 augmented gnulib repositories.
41407 * gnulib-tool (func_usage): Document --local-dir option.
41408 (local_gnulib_dir): New variable.
41409 Handle --local-dir option.
41410 (func_lookup_file): New function.
41411 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
41412 (func_get_description, func_get_filelist, func_get_description,
41413 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
41414 func_get_automake_snippet, func_get_include_directive,
41415 func_get_license, func_get_maintainer): Use func_lookup_file.
41416 (func_import, func_create_testdir): Use func_lookup_file.
41418 2006-07-29 Bruno Haible <bruno@clisp.org>
41420 * modules/setenv (Depends-on): Add unistd.
41422 2006-07-29 Bruno Haible <bruno@clisp.org>
41424 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
41426 2006-07-29 Bruno Haible <bruno@clisp.org>
41428 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
41430 2006-07-29 Bruno Haible <bruno@clisp.org>
41432 * gnulib-tool (import, update): If there is no Makefile.am, look at
41433 aclocal.m4, instead of bailing out.
41435 2006-07-29 Bruno Haible <bruno@clisp.org>
41437 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
41438 Categorize the options by when they are useful.
41440 2006-07-29 Bruno Haible <bruno@clisp.org>
41442 * gnulib-tool (func_usage): Document option --no-libtool.
41443 Handle option --no-libtool.
41444 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
41445 for changed semantics of $libtool variable.
41446 (func_import): Likewise. If libtool is not used, show this through
41447 an option --no-libtool.
41448 (func_create_testdir): Update.
41450 2006-07-29 Bruno Haible <bruno@clisp.org>
41452 * gnulib-tool (func_import): Extend error message about missing
41455 2006-07-29 Bruno Haible <bruno@clisp.org>
41457 * gnulib-tool (func_import): Don't create the $docbase directory if
41458 there is no file to store there.
41460 2006-07-29 Bruno Haible <bruno@clisp.org>
41462 * gnulib-tool (autoconf_minversion): If a --dir option is given and
41463 relevant, look for configure.ac there, not in the current directory.
41464 Also use a simple search for AC_PREREQ, not "autoconf --trace".
41466 2006-07-29 Bruno Haible <bruno@clisp.org>
41468 * gnulib-tool (SORT): New variable.
41469 (func_usage): Undocument --assume-autoconf option.
41470 Remove --assume-autoconf option handling.
41471 (autoconf_minversion): Determine from the contents of configure.ac.
41472 (func_import): Remove autoconf_minversion handling.
41473 Suggested by Eric Blake.
41475 2006-07-29 Bruno Haible <bruno@clisp.org>
41477 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
41479 2006-07-29 Bruno Haible <bruno@clisp.org>
41481 * config/srclist.txt (*setenv.[ch]): Remove rules.
41483 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41485 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
41487 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41489 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
41492 2006-07-28 Simon Josefsson <jas@extundo.com>
41494 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
41495 * modules/inet_pton (Depends-on): Likewise.
41497 2006-07-28 Simon Josefsson <jas@extundo.com>
41499 * m4/netinet_in_h.m4: New file.
41501 2006-07-28 Simon Josefsson <jas@extundo.com>
41503 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
41506 2006-07-28 Simon Josefsson <jas@extundo.com>
41508 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
41511 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
41513 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
41514 setgid on directories only if they set these bits.
41515 * lib/modechange.h: Remove obsolete comment about masks.
41517 2006-07-28 Eric Blake <ebb9@byu.net>
41519 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
41522 2006-07-28 Bruno Haible <bruno@clisp.org>
41524 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
41526 2006-07-28 Bruno Haible <bruno@clisp.org>
41528 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
41530 2006-07-28 Bruno Haible <bruno@clisp.org>
41532 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41533 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41535 Avoids link error on FreeBSD 4.x.
41536 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41538 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
41540 * lib/mbswidth.c (iswcntrl): Likewise.
41542 2006-07-27 Bruno Haible <bruno@clisp.org>
41544 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
41547 2006-07-27 Bruno Haible <bruno@clisp.org>
41549 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
41550 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
41553 2006-07-26 Eric Blake <ebb9@byu.net>
41555 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
41557 2006-07-26 Eric Blake <ebb9@byu.net>
41559 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
41560 like mingw that lack mkstemp.
41561 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
41562 avoid compilation warning on mingw.
41564 2006-07-26 Bruno Haible <bruno@clisp.org>
41566 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
41567 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
41568 INT_FAST*_MIN, INTPTR_MIN.
41570 2006-07-25 Bruno Haible <bruno@clisp.org>
41572 * modules/version-etc (Depends-on): Add stdarg.
41574 2006-07-25 Bruno Haible <bruno@clisp.org>
41576 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
41579 2006-07-25 Bruno Haible <bruno@clisp.org>
41581 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
41582 defined in <stdarg.h> or config.h.
41584 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
41586 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
41587 (gl_STDIO_SAFER): Remove.
41589 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
41591 * MODULES.html.sh (File stream based Input/Output):
41592 Add fopen-safer, tmpfile-safer; remove stdio-safer.
41593 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
41594 * modules/fopen-safer, modules/tmpfile-safer: New files.
41595 * modules/stdio-safer: Remove.
41597 2006-07-24 Bruno Haible <bruno@clisp.org>
41599 * modules/tmpdir: New file.
41600 * MODULES.html.sh (File system functions): Add it.
41602 2006-07-24 Bruno Haible <bruno@clisp.org>
41604 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
41605 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
41607 2006-07-24 Bruno Haible <bruno@clisp.org>
41609 * modules/clean-temp: New file.
41611 2006-07-24 Bruno Haible <bruno@clisp.org>
41613 * m4/tmpdir.m4: New file, from GNU gettext.
41615 2006-07-24 Bruno Haible <bruno@clisp.org>
41617 * lib/tmpdir.h: New file, from GNU gettext.
41618 * lib/tmpdir.c: New file, from GNU gettext.
41620 2006-07-24 Bruno Haible <bruno@clisp.org>
41622 * lib/clean-temp.h: New file, from GNU gettext.
41623 * lib/clean-temp.c: New file, from GNU gettext.
41625 2006-07-23 Eric Blake <ebb9@byu.net>
41627 * modules/stdio-safer (Files): Add tmpfile-safer.c.
41628 (Depends-on): Add binary-io.
41630 2006-07-23 Eric Blake <ebb9@byu.net>
41632 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
41634 2006-07-23 Eric Blake <ebb9@byu.net>
41636 * lib/tmpfile-safer.c: New file.
41637 * lib/stdio-safer.h (fopen_safer): Add prototype.
41638 * lib/stdio--.h (tmpfile): Make safer.
41640 2006-07-23 Bruno Haible <bruno@clisp.org>
41642 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
41643 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
41644 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
41645 gl_linked_remove_at): Use it.
41647 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41648 and Simon Josefsson <jas@extundo.com>
41650 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
41652 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
41654 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
41656 * modules/close-stream: New file.
41657 * modules/closeout (Description): Make it clear that it exits
41658 with a diagnostic on error.
41659 (Depends-on): Add close-stream. Remove fpending, stdbool.
41660 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
41662 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
41664 * m4/close-stream.m4: New file.
41666 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
41668 * lib/close-stream.c, lib/close-stream.h: New files.
41670 2006-07-22 Bruno Haible <bruno@clisp.org>
41672 Merge from GNU gettext 0.15.
41674 2006-05-01 Bruno Haible <bruno@clisp.org>
41676 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
41678 2006-07-22 Bruno Haible <bruno@clisp.org>
41680 * modules/javaversion: New file.
41681 * MODULES.html.sh (Java): Add javaversion.
41683 2006-03-12 Bruno Haible <bruno@clisp.org>
41685 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
41687 2005-12-04 Bruno Haible <bruno@clisp.org>
41689 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
41692 2006-06-21 Bruno Haible <bruno@clisp.org>
41694 Avoid warnings from recent versions of mcs.
41695 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
41696 -o, -L, -r any more. Use options documented since mcs-1.0
41697 instead. Similarly for -g.
41699 2005-12-04 Bruno Haible <bruno@clisp.org>
41701 * build-aux/csharpcomp.sh.in: Suffix for resources is
41702 .resources, not .resource.
41704 2005-07-09 Bruno Haible <bruno@clisp.org>
41706 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
41708 Reported by Mark Junker <mjscod@gmx.de>.
41710 2006-07-22 Bruno Haible <bruno@clisp.org>
41712 * modules/gettext: Upgrade to gettext-0.15.
41713 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
41715 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
41717 2006-07-22 Bruno Haible <bruno@clisp.org>
41719 Merge from GNU gettext 0.15.
41721 2006-03-25 Bruno Haible <bruno@clisp.org>
41723 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
41725 2006-07-21 Bruno Haible <bruno@clisp.org>
41727 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
41730 2006-05-09 Bruno Haible <bruno@clisp.org>
41732 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
41733 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
41734 for the conftestver execution.
41736 2006-05-01 Bruno Haible <bruno@clisp.org>
41738 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
41739 optional target-version argument. Verify that the compiler
41740 groks source of the specified source-version, or add -source
41741 option as necessary. Verify that the compiler produces
41742 bytecode in the specified target-version, or add -target and
41743 -source options as necessary. Make the result of the test
41744 available as variable CONF_JAVAC. Also log error output in
41747 2006-03-11 Bruno Haible <bruno@clisp.org>
41749 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
41751 2006-05-09 Bruno Haible <bruno@clisp.org>
41753 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
41754 CLASSPATH_SEPARATOR to a semicolon.
41756 2006-03-12 Bruno Haible <bruno@clisp.org>
41758 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
41759 available as variable CONF_JAVA, for subsequent autoconf
41760 tests. Also log error output in config.log.
41762 2006-07-19 Bruno Haible <bruno@clisp.org>
41764 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
41765 that getline works on glibc2 systems. Needed to avoid trouble
41767 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
41769 2005-12-04 Bruno Haible <bruno@clisp.org>
41771 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
41772 launcher (untested).
41774 2005-12-04 Bruno Haible <bruno@clisp.org>
41776 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
41778 2006-07-22 Bruno Haible <bruno@clisp.org>
41780 * gettext.m4: Update from GNU gettext-0.15.
41781 * nls.m4: Likewise.
41783 * inttypes-pri.m4: Likewise.
41784 * inttypes-h.m4: Renamed from inttypes.m4.
41785 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
41787 2006-07-22 Bruno Haible <bruno@clisp.org>
41789 Merge from GNU gettext 0.15.
41791 2005-07-05 Bruno Haible <bruno@clisp.org>
41793 * printf-args.c (printf_fetchargs): Work around broken
41794 definition of wint_t on mingw.
41796 2005-02-12 Bruno Haible <bruno@clisp.org>
41798 * xallocsa.h: Add extern "C" for C++.
41800 2006-05-17 Bruno Haible <bruno@clisp.org>
41802 Cygwin portability.
41803 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
41805 2006-04-30 Bruno Haible <bruno@clisp.org>
41807 * progreloc.c: Include <mach-o/dyld.h> if available.
41808 (find_executable): Use _NSGetExecutablePath when possible.
41810 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
41812 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
41815 2005-12-29 Bruno Haible <bruno@clisp.org>
41817 * progreloc.c (set_program_name_and_installdir): Fix
41820 2005-12-04 Bruno Haible <bruno@clisp.org>
41822 Cygwin portability.
41823 * progreloc.c: Include <windows.h> also on Cygwin.
41824 (find_executable): Add support for Cygwin.
41825 (set_program_name_and_installdir): Handle also platforms with
41828 2006-07-11 Bruno Haible <bruno@clisp.org>
41830 * javacomp.c: Fix a comment.
41831 Reported by Jim Meyering.
41833 2006-04-30 Bruno Haible <bruno@clisp.org>
41835 * javacomp.h (compile_java_class): Add source_version,
41836 target_version arguments.
41837 * javacomp.c: Rewritten to choose only a compiler that
41838 respects the specified source_version and target_version.
41840 2006-06-27 Bruno Haible <bruno@clisp.org>
41842 Assume correct S_ISDIR macro.
41843 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
41845 2006-07-22 Bruno Haible <bruno@clisp.org>
41847 * javaversion.h: New file, from GNU gettext.
41848 * javaversion.c: New file, from GNU gettext.
41849 * javaversion.java: New file, from GNU gettext.
41850 * javaversion.class: New file, from GNU gettext.
41852 2006-05-17 Bruno Haible <bruno@clisp.org>
41854 Cygwin portability.
41855 * javaexec.c (execute_java_class): Test for jview program
41858 2006-04-09 Bruno Haible <bruno@clisp.org>
41860 * fatal-signal.c: Don't include string.h.
41861 (at_fatal_signal): Use a copying loop instead of memcpy.
41863 2005-12-04 Bruno Haible <bruno@clisp.org>
41865 * csharpexec.c: Add support for 'clix' launcher (untested).
41866 (execute_csharp_using_sscli): New function.
41867 (execute_csharp_program): Call it.
41869 2006-06-21 Bruno Haible <bruno@clisp.org>
41871 Avoid warnings from recent versions of mcs.
41872 * csharpcomp.c (compile_csharp_using_mono): Don't use options
41873 -o, -L, -r any more. Use options documented since mcs-1.0
41874 instead. Similarly for -g.
41876 2005-07-09 Bruno Haible <bruno@clisp.org>
41878 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
41880 Reported by Mark Junker <mjscod@gmx.de>.
41882 2006-06-17 Bruno Haible <bruno@clisp.org>
41884 * config.charset: Update for NetBSD 3.0.
41886 2006-05-17 Bruno Haible <bruno@clisp.org>
41888 Cygwin portability.
41889 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
41891 2006-05-16 Bruno Haible <bruno@clisp.org>
41893 * localcharset.c [CYGWIN]: Include <windows.h>.
41894 (get_charset_aliases): For Cygwin, return the same CPxxx
41895 aliases list as under WIN32.
41896 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
41897 the environment variables. Fall back to GetACP().
41899 2006-04-05 Bruno Haible <bruno@clisp.org>
41901 * config.charset: Update Juan Manuel Guerrero's address.
41903 2005-02-12 Bruno Haible <bruno@clisp.org>
41905 * allocsa.h: Add extern "C" for C++.
41907 2005-02-10 Bruno Haible <bruno@clisp.org>
41909 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
41910 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
41912 2006-07-22 Bruno Haible <bruno@clisp.org>
41914 * gettext.h: Update to GNU gettext-0.15.
41916 2006-07-22 Bruno Haible <bruno@clisp.org>
41918 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
41919 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
41920 lib-prefix.m4, longdouble.m4, ssize_t.m4.
41922 2006-07-21 Eric Blake <ebb9@byu.net>
41924 * modules/stdlib-safer: New file.
41925 * MODULES.html.sh (File stream based Input/Output): Add
41928 2006-07-21 Eric Blake <ebb9@byu.net>
41930 * lib/stdlib-safer.h: New file from coreutils, required by
41933 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
41935 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
41937 2006-07-20 Bruno Haible <bruno@clisp.org>
41939 * gnulib-tool: Recognize new option --assume-autoconf.
41940 (autoconf_minversion): New variable.
41941 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
41943 2006-07-20 Bruno Haible <bruno@clisp.org>
41945 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
41947 2006-07-19 Derek R. Price <derek@ximbiot.com>
41949 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
41950 Reindent and repaginate.
41952 2006-07-19 Derek Price <derek@ximbiot.com>
41954 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
41957 2006-07-17 Bruno Haible <bruno@clisp.org>
41959 * modules/list: New file.
41960 * modules/array-list: New file.
41961 * modules/carray-list, modules/carray-list-tests: New files.
41962 * modules/linked-list, modules/linked-list-tests: New files.
41963 * modules/avltree-list, modules/avltree-list-tests: New files.
41964 * modules/rbtree-list, modules/rbtree-list-tests: New files.
41965 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
41966 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
41967 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
41968 * modules/oset: New file.
41969 * modules/array-oset: New file.
41970 * modules/avltree-oset, modules/avltree-oset-tests: New files.
41971 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
41972 * tests/test-carray_list.c: New file.
41973 * tests/test-linked_list.c: New file.
41974 * tests/test-avltree_list.c: New file.
41975 * tests/test-rbtree_list.c: New file.
41976 * tests/test-linkedhash_list.c: New file.
41977 * tests/test-avltreehash_list.c: New file.
41978 * tests/test-rbtreehash_list.c: New file.
41979 * tests/test-avltree_oset.c: New file.
41980 * tests/test-rbtree_oset.c: New file.
41981 * MODULES.html.sh (Container data structures): New section.
41983 2006-07-17 Bruno Haible <bruno@clisp.org>
41985 * m4/gl_list.m4: New file.
41987 2006-07-17 Bruno Haible <bruno@clisp.org>
41989 * lib/gl_list.h: New file.
41990 * lib/gl_list.c: New file.
41991 * lib/gl_array_list.h: New file.
41992 * lib/gl_array_list.c: New file.
41993 * lib/gl_carray_list.h: New file.
41994 * lib/gl_carray_list.c: New file.
41995 * lib/gl_linked_list.h: New file.
41996 * lib/gl_linked_list.c: New file.
41997 * lib/gl_anylinked_list1.h: New file.
41998 * lib/gl_anylinked_list2.h: New file.
41999 * lib/gl_avltree_list.h: New file.
42000 * lib/gl_avltree_list.c: New file.
42001 * lib/gl_anyavltree_list1.h: New file.
42002 * lib/gl_anyavltree_list2.h: New file.
42003 * lib/gl_rbtree_list.h: New file.
42004 * lib/gl_rbtree_list.c: New file.
42005 * lib/gl_anyrbtree_list1.h: New file.
42006 * lib/gl_anyrbtree_list2.h: New file.
42007 * lib/gl_anytree_list1.h: New file.
42008 * lib/gl_anytree_list2.h: New file.
42009 * lib/gl_linkedhash_list.h: New file.
42010 * lib/gl_linkedhash_list.c: New file.
42011 * lib/gl_anyhash_list1.h: New file.
42012 * lib/gl_anyhash_list2.h: New file.
42013 * lib/gl_avltreehash_list.h: New file.
42014 * lib/gl_avltreehash_list.c: New file.
42015 * lib/gl_rbtreehash_list.h: New file.
42016 * lib/gl_rbtreehash_list.c: New file.
42017 * lib/gl_anytreehash_list1.h: New file.
42018 * lib/gl_anytreehash_list2.h: New file.
42020 * lib/gl_oset.h: New file.
42021 * lib/gl_oset.c: New file.
42022 * lib/gl_array_oset.h: New file.
42023 * lib/gl_array_oset.c: New file.
42024 * lib/gl_avltree_oset.h: New file.
42025 * lib/gl_avltree_oset.c: New file.
42026 * lib/gl_rbtree_oset.h: New file.
42027 * lib/gl_rbtree_oset.c: New file.
42028 * lib/gl_anytree_oset.h: New file.
42030 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
42032 * m4/mkancesdirs.m4: New file.
42033 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
42034 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
42035 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
42038 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
42040 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
42041 * lib/mkancesdirs.h: New files.
42042 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
42043 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
42044 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
42045 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
42046 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
42047 callers changed. Revamp internals significantly, by not
42048 attempting to create directories that are temporarily more
42049 permissive than the final results. Do not attempt to use
42050 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
42051 This removes some race conditions, fixes some bugs, and simplifies
42052 things. Use new dirchownmod function to do owner and mode changes.
42053 * lib/mkdir-p.h: Likewise.
42054 * lib/modechange.c (octal_to_mode): New function.
42055 (struct mode_change): New member mentioned.
42056 (make_node_op_equals): New arg mentioned. All callers changed.
42057 (mode_compile): Keep track of which mode bits the user has explicitly
42059 (mode_adjust): New arg DIR, so that we implement the X op correctly.
42060 New arg PMODE_BITS, to keep track of which mode bits the user
42061 mentioned; it treats S_ISUID and S_ISGID speciall.
42062 All callers changed.
42063 * lib/modechange.h: Likewise.
42065 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
42067 * MODULES.html.sh: Add mkancestors.
42068 * modules/mkancesdirs: New module.
42069 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
42070 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
42071 The chdir-safer and afs files are now orphans; I'll remove them
42072 unless someone speaks up.
42073 Add lib/dirchownmod.c, lib/dirchownmod.h.
42074 (Depends-on): Remove alloca, chown, save-cwd, dirname.
42075 Add lchown, mkancesdirs.
42076 (Maintainer): Add self.
42078 2006-07-15 Karl Berry <karl@gnu.org>
42080 * gnulib-tool: help message wording/arrangement.
42082 2006-07-14 Simon Josefsson <jas@extundo.com>
42084 * doc/gnulib.texi (Libtool and Windows): New section.
42086 2006-07-12 Simon Josefsson <jas@extundo.com>
42088 * modules/gendocs (License): Fix license, approved by Karl.
42090 2006-07-12 Eric Blake <ebb9@byu.net>
42092 * MODULES.html.sh: Add gendocs.
42094 2006-07-11 Eric Blake <ebb9@byu.net>
42096 * modules/fdl: New module, to install doc/fdl.texi.
42097 * MODULES.html.sh: Add new section for documentation modules.
42098 * gnulib-tool: Avoid space-tab.
42099 (--doc-base): New option, to manage files from doc.
42101 2006-07-11 Eric Blake <ebb9@byu.net>
42103 * m4/absolute-header.m4: Fix comments to match recent change.
42105 2006-07-11 Eric Blake <ebb9@byu.net>
42107 * gnulib-tool: List --doc-base before --tests-base.
42109 2006-07-11 Derek R. Price <derek@ximbiot.com>
42111 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
42113 2006-07-11 Bruno Haible <bruno@clisp.org>
42115 * README: Mention where to put documentation.
42117 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42119 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
42121 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
42123 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
42126 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
42128 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
42129 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
42130 "no/such/file/stdint.h" when there is no such file, so that
42131 the resulting C code can be parsed by dodgy compilers.
42132 Problems reported by Bob Proulx.
42134 2006-07-10 Derek R. Price <derek@ximbiot.com>
42136 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
42137 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
42138 macros into the GNU _D_EXACT_NAMLEN.
42139 * lib/savedir.c: Likewise.
42140 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
42142 2006-07-10 Derek R. Price <derek@ximbiot.com>
42143 and Paul Eggert <eggert@cs.ucla.edu>
42145 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
42147 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
42148 macros into the GNU _D_EXACT_NAMLEN.
42150 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
42152 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
42153 around the absolute name, to work around a problem with the HP-UX
42154 11.23 native C compiler, reported by Bob Proulx.
42156 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
42158 * doc/maintain.texi, make-stds.texi: Sync from
42159 <http://savannah.gnu.org/projects/gnustandards>.
42161 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
42163 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
42165 2006-07-09 Jim Meyering <jim@meyering.net>
42167 * m4/glob.m4: Remove a doubled word in a comment.
42169 2006-07-09 Jim Meyering <jim@meyering.net>
42171 * lib/argp-pv.c: Remove a doubled word in a comment.
42172 * lib/check-version.c (check_version): Likewise.
42173 * lib/javacomp.c (compile_java_class): Likewise.
42175 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
42177 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
42178 for the benefit of people using Autoconf 2.60. If you want to
42179 support older Autoconf versions you can copy m4/onceonly_2_57.m4
42180 (or m4/onceonly.m4, if pre-2.57) manually.
42182 2006-07-08 Jim Meyering <jim@meyering.net>
42184 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
42186 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
42187 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
42190 2006-07-08 Jim Meyering <jim@meyering.net>
42192 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
42194 2006-07-07 Simon Josefsson <jas@extundo.com>
42196 * tests/test-crc.c: Change expected crc value, the test vector
42197 were probably computed using the old broken crc.c?
42199 2006-07-06 Simon Josefsson <jas@extundo.com>
42201 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
42202 now the canonical place for the M4 file).
42204 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
42205 from the sys_socket dependency now.
42207 * modules/inet_pton (Files): Ditto.
42209 * modules/inet_ntop (Files): Ditto.
42211 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
42213 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
42214 not gl_PREREQ_GETUSERSHELL.
42216 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42218 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
42219 with only one argument, for Autoconf 2.60.
42220 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
42221 expand to nothing, so add a shell command to avoid syntax error.
42222 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
42224 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42226 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
42228 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
42230 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
42231 no longer needed. Check for isblank decl.
42232 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
42233 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
42236 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
42238 * lib/getloadavg.c: Use __VMS, not VMS.
42239 * lib/getopt.c: Likewise.
42240 * lib/getpagesize.h: Likewise.
42241 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
42242 and probably does not work.
42244 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
42246 * lib/.cppi-disable: Add wcwidth.
42247 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
42248 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
42249 (ISGRAPH): Remove. All uses changed to isgraph.
42250 (FOLD) [!defined _LIBC]: Remove special case.
42251 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
42252 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
42254 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
42257 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
42259 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
42260 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
42261 brackets. Other minor changes to suppress some compiler
42264 2006-07-06 Derek R. Price <derek@ximbiot.com>
42265 and Paul Eggert <eggert@cs.ucla.edu>
42267 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
42268 of invoking obsolescent AC_HEADER_DIRENT macro.
42269 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
42270 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
42271 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42272 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
42273 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
42274 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
42275 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
42276 * m4/readdir.m4: Remove; no longer needed.
42278 2006-07-06 Derek R. Price <derek@ximbiot.com>
42279 and Paul Eggert <eggert@cs.ucla.edu>
42281 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
42282 Don't worry about this obsolete case any more.
42283 (HAVE_DIR): Remove. All uses removed; we now assume you can read
42285 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
42286 worry about this obsolete case any more.
42287 * lib/fts.c: Likewise.
42288 * lib/getcwd.c: Likewise.
42289 * lib/glob.h: Likewise.
42290 * lib/savedir.c: Likewise.
42292 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
42294 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
42295 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
42296 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
42299 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42300 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42301 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
42303 * m4/getdate.m4 (gl_GETDATE): Likewise.
42304 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42305 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42306 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42307 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42308 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
42309 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42310 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
42313 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
42315 * lib/memcasecmp.c: Include <limits.h>.
42316 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
42317 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
42318 Don't assume isdigit succeeds only on '0' through '9'.
42320 2006-07-05 Eric Blake <ebb9@byu.net>
42322 * modules/getaddrinfo (Depends-on): Add snprintf.
42324 2006-07-05 Eric Blake <ebb9@byu.net>
42326 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
42327 to avoid 'header present but could not be compiled' on cygwin.
42329 2006-07-05 Eric Blake <ebb9@byu.net>
42331 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
42332 missing from netdb.h.
42333 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
42335 2006-07-05 Derek R. Price <derek@ximbiot.com>
42337 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
42339 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
42340 * m4/getdate.m4 (gl_GETDATE): Likewise.
42341 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
42342 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
42343 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
42344 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
42345 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
42347 2006-07-05 Derek R. Price <derek@ximbiot.com>
42349 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
42350 All uses of is_space replaced by isspace.
42351 * lib/exit.h: Don't talk about STDC_HEADERS.
42352 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
42353 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
42354 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
42355 replaced by isprint etc.
42356 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
42357 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42358 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
42359 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
42360 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
42361 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
42363 2006-07-05 Bruno Haible <bruno@clisp.org>
42365 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
42366 the function exists, before testing against AIX.
42367 Reported by Martin Lambers <marlam@marlam.de>.
42369 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
42371 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
42372 From Mark D. Baushke.
42374 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
42376 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
42377 to the absolute name, not just one, to bypass Sun C 5.8's
42378 "warning: #include of /usr/include/... may be non-portable".
42380 2006-07-04 Eric Blake <ebb9@byu.net>
42382 * modules/dirname-tests: New test module.
42383 * tests/test-dirname.c: New file, replacing dirname.c
42384 TEST_DIRNAME section that was recently deleted.
42386 2006-07-04 Bruno Haible <bruno@clisp.org>
42388 Assume ANSI C header files and <ctype.h> functions.
42389 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
42390 (mbsnwidth): Use isprint, iscntrl instead.
42392 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
42394 Merge from coreutils.
42395 * MODULES.html.sh: Add xstrtold.
42396 * modules/xstrtold: New file.
42397 * modules/cycle-check (Files): Add lib/same-inode.h.
42398 * modules/dirname (Files): Add m4/double-slash-root.m4.
42399 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
42400 * modules/mkdir-p (Files): Add lib/same-inode.h.
42401 * modules/same (Files): Add lib/same-inode.h.
42403 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
42405 * m4/absolute-header.m4: Renamed from full-header-path.m4.
42406 This is to keep the terminology clean; POSIX talks about
42407 "absolute pathnames", not "full pathnames", but the GNU
42408 Coding Standards say to use "path" for something else;
42409 so use "absolute" to keep both sides happy.
42410 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
42411 Set gl_absolute_header, not gl_full_header_path.
42412 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
42413 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
42416 Merge from coreutils.
42418 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
42420 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
42421 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
42422 want to require the building of c-strtod.o.
42423 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
42424 needs -lm directly.
42425 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
42427 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
42429 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
42430 --as-needed option if available. Problem reported by Albert Chin in
42431 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
42432 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
42433 cc merely issues a bunch of annoying warnings for --as-needed
42434 (this problem was reported by Bob Proulx). Also, try linking with
42435 -lm to detect a bug in binutils 2.16 (this problem was reported
42436 by Ralf Wildenhues).
42438 2006-06-18 Jim Meyering <jim@meyering.net>
42440 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
42441 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
42443 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
42444 also check for glibc-2.4's abort-inducing bug.
42446 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
42447 Low-probability clean-up should be to use rmdir to get rid of
42448 the just-created directory, not unlink.
42450 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
42451 configure fail, and request a bug report to inform us about it.
42452 Add a comment that, barring reports to the contrary, in 2007 we'll
42453 assume ftruncate is universally available.
42455 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
42457 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
42459 2006-03-12 Jim Meyering <jim@meyering.net>
42461 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
42462 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
42463 * m4/same.m4 (gl_SAME): Likewise.
42464 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
42466 2006-03-11 Eric Blake <ebb9@byu.net>
42468 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
42469 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
42470 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
42471 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
42473 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
42475 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
42476 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
42477 reported by Mark D. Baushke, one in
42478 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
42480 Merge from coreutils.
42482 * lib/.cppi-disable: Add stdint_.h.
42483 * lib/.cvsignore: Add stdint.h.
42485 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
42487 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
42488 both double and long double versions.
42489 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
42490 * lib/xstrtold.c: New file.
42491 * lib/xstrtod.h (xstrtold): New decl.
42493 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
42495 * lib/filemode.c (setst): Remove.
42496 (strmode): Rewrite to avoid setst. This makes the code shorter,
42497 (arguably) clearer, and the generated code is a bit smaller on my
42498 Debian GNU/Linux stable x86 host.
42500 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
42502 * lib/filemode.c: Include "filemode.h" first, to test the interface.
42503 Assume that filemode.h includes sys/types.h and sys/stat.h.
42504 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
42505 (ftypelet): Reorder to put common cases first, for efficiency.
42506 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
42508 (strmode): Renamed from mode_string, and now stores 12 bytes instead
42509 of 10, for compatibility with FreeBSD. All callers changed.
42510 (filemodestring): Now stores 12 bytes instead of 10, and sets file
42511 types that can't be deduced solely from st_mode. First arg is now a
42513 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
42514 (strmode): Renamed from mode_string.
42515 (filemodestring): New decl.
42516 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
42517 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
42519 (S_ISPORT, S_ISWHT): New macros, if not already defined.
42521 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
42523 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
42524 fsusage.h now does that. Include fsusage.h first, to test interface.
42525 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
42526 at most one method (the old code could have generated decls that
42527 didn't conform to C89, not that this was ever exercised).
42528 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
42530 2006-03-19 Jim Meyering <jim@meyering.net>
42532 Work even in a chroot where d_ino values for entries in "/"
42533 don't match the stat.st_ino values for the same names.
42534 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
42535 number, iterate through all entries again, using lstat instead.
42536 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
42537 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
42539 * lib/getcwd.c (__getcwd): Clarify a comment.
42540 Use memcpy in place of a call to strcpy.
42542 2006-03-12 Jim Meyering <jim@meyering.net>
42544 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
42545 matches that of the current directory (which we're about to chdir ".."
42546 out of), then save the dev-ino of the parent, instead.
42548 * lib/same-inode.h (SAME_INODE): New file/macro.
42549 * lib/chdir-safer.c (SAME_INODE): Remove definition.
42550 Include "same-inode.h", instead.
42551 * lib/same.c: Likewise.
42552 * lib/cycle-check.h: Include "same-inode.h".
42553 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
42554 * lib/cycle-check.c (SAME_INODE): Remove definition.
42555 * lib/root-dev-ino.h: Include "same-inode.h".
42557 2006-03-11 Eric Blake <ebb9@byu.net>
42559 * lib/same.c (same_name): s/base_name/last_component/
42560 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
42561 * lib/filenamecat.c (file_name_concat): Likewise.
42563 2006-03-11 Eric Blake <ebb9@byu.net>,
42564 Paul Eggert <eggert@cs.ucla.edu>
42566 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
42567 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
42569 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
42570 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
42571 (last_component): New method.
42572 * lib/dirname.c (dir_len): Determine when drive letters need a
42573 subsequent slash. Preserve // when it is special.
42574 (dir_name): Don't append dot when drive letter is absolute.
42575 [TEST_DIRNAME]: Move into a full-blown gnulib test.
42576 * lib/basename.c (base_name): New semantics - malloc the result.
42577 Preserve // when it is special. Preserve relative files that look
42578 like drive letters.
42579 (base_len): Preserve // when it is special.
42580 (last_component): New method, similar to old base_name semantics.
42581 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
42582 base_name. Strip redundant slashes from ///.
42584 2006-07-03 Jim Meyering <jim@meyering.net>
42586 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
42587 macro is used before the first cycle_check call.
42589 2006-07-03 Eric Blake <ebb9@byu.net>
42591 * modules/dirname (Depends-on): Add xstrndup.
42593 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
42595 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
42596 test cases, so that config.log is a bit easier to follow.
42598 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
42600 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
42601 both are 64 bits, since this seems to be the tradition, and this
42602 prevents gcc -Wformat from warning about usages with PRIuMAX. If
42603 we ever run into a host that prefers long long to long in this
42604 case, we'll need another configure-time test. Problem reported by
42607 2006-07-02 Eric Blake <ebb9@byu.net>
42609 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
42611 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
42613 * modules/inttypes (Depends-on): No longer depends on stdint.
42614 * modules/stdint (Description): Say more about assumptions.
42615 Say that the fast types might differ. Say macros are used.
42616 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
42617 (Makefile.am): Revise list of substituted symbols to match
42619 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
42620 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
42621 * tests/test-stdint.c (verify_same_types)
42622 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
42623 the code conforms to C99/C89.
42624 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
42625 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
42627 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
42629 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
42630 but fix a bug, by requiring at least 64 bits.
42631 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
42632 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
42633 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
42634 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
42636 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
42637 changes. Make 2.59 a prerequisite. Check and substitute for
42638 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
42639 inttypes.h. Do not use special include files; just use the
42640 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
42641 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
42642 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
42643 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
42644 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
42645 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
42646 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
42647 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
42648 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
42649 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
42650 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
42651 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
42652 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
42653 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
42654 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
42655 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
42656 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
42657 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
42658 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
42659 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
42660 WINT_MAX. Check for C99 conformance more strictly, by detecting
42661 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
42662 not check for things that C99 does not require, e.g., int8_t. If
42663 a test isn't needed unless <stdint.h> isn't working, and is
42664 unlikely to be needed for any other reason, then don't do it
42665 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
42666 size_t, since we assume C89 freestanding at least. Do not check
42667 for sig_atomic_t, wchar_t, or wint_t, since the code now does
42668 the right thing even if the types are not defined. Instead use:
42669 (gl_STDINT_TYPE_PROPERTIES): New macro.
42670 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
42671 testing whether <sys/types.h> clashes, as Autoconf does this for
42672 us now. All uses removed.
42673 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
42674 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
42675 (gl_CHECK_TYPE_SAME):
42676 Remove; no longer needed.
42677 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
42678 exists, since we'll return 0 anyway in that case.
42679 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
42681 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
42683 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
42684 possible collision with system files.
42685 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
42686 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
42687 WCHAR_MIN and WCHAR_MAX in this case.
42688 (<stddef.h>): Do not include; no longer needed.
42689 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
42690 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
42691 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
42692 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
42693 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
42694 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
42695 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
42696 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
42697 !defined(__c99))]: Include in this case too, since it's harmless
42699 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
42700 dangerous to do so.
42701 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
42702 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
42703 (_STDINT_MIN, _STDINT_MAX): New macros.
42704 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
42705 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
42706 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
42707 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
42708 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
42709 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
42710 macros, not typedefs; this simplifies things quite a bit.
42711 Use long int for all types narrower than int64_t.
42712 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
42713 Define in terms of long long int or int64_t or long int,
42714 not int64_t or int32_t. This saves some compile-time testing.
42715 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
42716 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
42717 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
42718 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
42719 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
42720 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
42721 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
42722 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
42723 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
42724 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
42725 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
42726 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
42727 undef any previous version and define our own version, for
42728 simplicity and consistency with the new macros for types.
42729 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
42730 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
42731 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
42732 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
42733 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
42734 @WINT_T_SUFFIX@ to keep things simple here.
42735 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
42736 Simplify by assuming typical 8/16/32/64 host, since we're
42737 already doing that elsewhere anyway.
42738 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
42739 and assume long long int is 64 bits if available. This
42740 speeds up 'configure'.
42742 2006-07-01 Eric Blake <ebb9@byu.net>
42744 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
42745 Reported by Andreas Buening.
42747 2006-07-01 Eric Blake <ebb9@byu.net>
42749 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
42751 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
42753 * lib/getaddrinfo.c: fixed typo
42755 2006-06-29 Jim Meyering <jim@meyering.net>
42757 * modules/strftime (Maintainer): Add my name, since with the
42758 FPRINTFTIME changes strftime.c has forked from glibc.
42760 2006-06-29 Eric Blake <ebb9@byu.net>
42762 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
42764 2006-06-29 Eric Blake <ebb9@byu.net>
42766 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
42768 2006-06-29 Eric Blake <ebb9@byu.net>
42770 * lib/stat_.h: New file.
42772 2006-06-29 Eric Blake <ebb9@byu.net>
42774 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
42775 unused static function.
42777 2006-06-29 Eric Blake <ebb9@byu.net>
42779 * doc/functions.texi (Function Portability): Document missing lstat
42782 2006-06-29 Eric Blake <ebb9@byu.net>
42784 * MODULES.html.sh: Add sys_stat.
42785 * modules/sys_stat: New module.
42786 * modules/mkstemp (Depends-on): Add sys_stat.
42788 2006-06-29 Derek R. Price <derek@ximbiot.com>
42790 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
42792 2006-06-29 Derek R. Price <derek@ximbiot.com>
42794 * m4/c-bs-a.m4: Removed.
42796 2006-06-29 Derek R. Price <derek@ximbiot.com>
42798 * lib/strftime.c: Assume strftime() exists.
42800 2006-06-29 Derek Price <derek@ximbiot.com>
42802 * modules/c-bs-a: Removed - \a is C89.
42803 * MODULES.html.sh: Remove c-bs-a.
42805 2006-06-29 Bruno Haible <bruno@clisp.org>
42807 * modules/wcwidth (License): Change to LGPL.
42809 2006-06-28 Simon Josefsson <jas@extundo.com>
42811 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
42814 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
42817 2006-06-28 Simon Josefsson <jas@extundo.com>
42819 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
42821 2006-06-28 Simon Josefsson <jas@extundo.com>
42823 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
42824 functions there. It will succeed on Windows XP, but on Windows
42825 2000 and (presumably) earlier, it will fail, and use the internal
42827 (use_win32_p): New function.
42828 (getaddrinfo): Use strtoul on servname, to support numeric ports.
42829 Support AI_NUMERICSERV to disable getservbyname.
42830 (getnameinfo): New function, only supports
42831 NI_NUMERICHOST|NI_NUMERICSERV for now.
42833 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
42834 only have some of them. Add AI_NUMERICSERV. Add prototype for
42837 2006-06-28 Eric Blake <ebb9@byu.net>
42839 * modules/wcwidth: New file.
42840 * modules/mbchar (Depends-on): Add wcwidth.
42841 * modules/mbswidth (Depends-on): Add wcwidth.
42842 * MODULES.html.sh: Add wcwidth.
42844 2006-06-28 Eric Blake <ebb9@byu.net>
42846 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
42847 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
42849 2006-06-28 Eric Blake <ebb9@byu.net>
42851 * lib/xvasprintf.h: Fix comments.
42853 2006-06-28 Eric Blake <ebb9@byu.net>
42855 * lib/mbchar.h (wcwidth): Include wcwidth.h.
42856 * lib/mbswidth.c (wcwidth): Move from here...
42857 * lib/wcwidth.h: ...to this new file.
42859 2006-06-28 Derek R. Price <derek@ximbiot.com>
42861 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
42863 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
42865 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
42867 2006-06-28 Derek R. Price <derek@ximbiot.com>
42869 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
42870 Autoconf 2.60 says this stuff was obsolete.
42872 2006-06-28 Bruno Haible <bruno@clisp.org>
42874 * modules/wcwidth (Files): Add m4/wchar_t.m4.
42876 2006-06-28 Bruno Haible <bruno@clisp.org>
42878 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
42881 2006-06-28 Bruno Haible <bruno@clisp.org>
42883 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
42884 declaration for wcwidth.
42885 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
42887 2006-06-28 Bruno Haible <bruno@clisp.org>
42889 * lib/mkdtemp.c [MINGW]: Include <io.h>.
42890 (mkdir): Define using _mkdir.
42892 2006-06-28 Bruno Haible <bruno@clisp.org>
42894 * lib/getaddrinfo.h: Fix POSIX URL.
42895 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
42897 (use_win32_p): Make static.
42898 (getaddrinfo): Reject service name if it is empty or does not consist
42899 solely of decimal digits, or if its value is > 65535.
42900 (getnameinfo): Remove useless casts.
42902 2006-06-27 Simon Josefsson <jas@extundo.com>
42904 * modules/sys_select: New file, suggested by Bruno Haible, Paul
42905 Eggert and Martin Lambers.
42907 2006-06-27 Simon Josefsson <jas@extundo.com>
42909 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
42910 Eggert and Martin Lambers.
42912 2006-06-27 Bruno Haible <bruno@clisp.org>
42914 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
42915 result to 0, not to empty.
42916 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
42918 2006-06-27 Bruno Haible <bruno@clisp.org>
42920 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
42922 2006-06-26 Simon Josefsson <jas@extundo.com>
42924 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
42927 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
42929 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
42930 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
42931 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
42933 2006-06-26 Mark D. Baushke <mdb@gnu.org>
42935 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
42937 2006-06-26 Bruno Haible <bruno@clisp.org>
42939 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
42941 2006-06-26 Bruno Haible <bruno@clisp.org>
42943 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
42945 2006-06-26 Bruno Haible <bruno@clisp.org>
42947 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
42948 SGI C compiler in pre-C99 mode.
42949 Suggested by Mark D. Baushke and Larry Jones.
42951 2006-06-26 Bruno Haible <bruno@clisp.org>
42953 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
42955 Reported by Mark D. Baushke and Larry Jones.
42957 2006-06-26 Bruno Haible <bruno@clisp.org>
42959 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
42961 Suggested by Mark D. Baushke and Larry Jones.
42963 2006-06-23 Simon Josefsson <jas@extundo.com>
42964 Bruno Haible <bruno@clisp.org>
42966 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
42967 Emit mostlyclean-local rule.
42968 (func_emit_tests_Makefile_am): Likewise.
42969 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
42971 2006-06-23 Mark D. Baushke <mdb@gnu.org>
42973 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
42975 2006-06-23 Bruno Haible <bruno@clisp.org>
42977 * tests/test-stdint.c: Update to match ISO C 99 Technical
42980 2006-06-23 Bruno Haible <bruno@clisp.org>
42982 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
42984 2006-06-23 Bruno Haible <bruno@clisp.org>
42986 * lib/stdint_.h: Treat IRIX like OpenBSD.
42988 2006-06-23 Bruno Haible <bruno@clisp.org>
42990 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
42991 ISO C 99 Technical Corrigendum 1.
42993 2006-06-22 Simon Josefsson <jas@extundo.com>
42995 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
42998 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
43000 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
43001 needed. Some compiler complained about some of them. Problem reported
43003 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
43005 2006-06-21 Simon Josefsson <jas@extundo.com>
43007 * tests/test-getaddrinfo.c: New file.
43009 * modules/getaddrinfo-tests: New file.
43011 * MODULES.html.sh: Add inet_pton.
43013 * modules/inet_pton: New file.
43015 2006-06-21 Simon Josefsson <jas@extundo.com>
43017 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
43018 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
43019 of using the (limited) gnulib implementation on Windows XP.
43021 * m4/inet_pton.m4: New file.
43023 2006-06-21 Simon Josefsson <jas@extundo.com>
43025 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
43028 * lib/socket_.h: Don't define WINVER.
43030 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
43031 slightly modified to work in gnulib.
43033 2006-06-21 Simon Josefsson <jas@extundo.com>
43035 * doc/gnulib.texi (Windows sockets): Add.
43037 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
43039 * lib/read-file.c (fread_file): Start with buffer allocation of
43040 0 bytes rather than 1 byte; this simplifies the code.
43041 Don't invoke feof; it's not needed. Refactor to avoid duplicate
43042 code to free buffer and save/restore errno.
43043 (internal_read_file): Remove unused local.
43045 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
43047 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
43048 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
43049 Problem reported by Denis Excoffier in
43050 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
43052 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43054 * modules/sys_socket, modules/socklen: Include sys/types since
43055 FreeBSD 4.x's sys/socket.h needs it.
43057 2006-06-19 Simon Josefsson <jas@extundo.com>
43059 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
43061 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
43063 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
43065 2006-06-19 Bruno Haible <bruno@clisp.org>
43067 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
43068 and FULL_PATH_INTTYPES_H in angle brackets.
43069 Reported by Mark D. Baushke <mdb@gnu.org>.
43071 2006-06-17 Eric Blake <ebb9@byu.net>
43073 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
43076 2006-06-17 Bruno Haible <bruno@clisp.org>
43078 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
43081 2006-06-17 Bruno Haible <bruno@clisp.org>
43083 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
43084 whether errno is declared. Assume <errno.h> declares errno.
43086 2006-06-17 Bruno Haible <bruno@clisp.org>
43088 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
43090 2006-06-17 Bruno Haible <bruno@clisp.org>
43092 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
43093 problem on Solaris 2.5.1.
43095 2006-06-16 Eric Blake <ebb9@byu.net>
43097 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
43098 * lib/unicodeio.c [!defined errno]: Likewise.
43099 * lib/strtol.c [!defined errno]: Likewise.
43100 * lib/strtod.c [!defined errno]: Likewise.
43102 2006-06-15 Eric Blake <ebb9@byu.net>
43104 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
43106 2006-06-15 Eric Blake <ebb9@byu.net>
43108 * config/srclist.txt (ssize_t.m4): Lose sync.
43110 2006-06-15 Bruno Haible <bruno@clisp.org>
43112 * modules/stdint (Files): Include m4/full-header-path.m4,
43113 m4/size_max.m4, m4/wchar_t.m4.
43114 (Makefile.am): Many more substitutions.
43115 * modules/stdint-tests: New file.
43116 * tests/test-stdint.c: New file.
43118 2006-06-15 Bruno Haible <bruno@clisp.org>
43120 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
43121 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
43122 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
43123 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
43124 gl_CHECK_TYPE_SAME): New macros.
43126 2006-06-15 Bruno Haible <bruno@clisp.org>
43128 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
43130 2006-06-15 Bruno Haible <bruno@clisp.org>
43132 * lib/stdint_.h: Rewritten to be fully auto-configured.
43133 Fixes bug on HP-UX/IA64.
43135 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
43137 * lib/getdate.y (__attribute__): Don't define if already defined.
43138 Problem reported by Larry Jones.
43139 * lib/utimens.c (__attribute__): Likewise.
43141 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
43143 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
43144 reported by Andreas Schwab.
43146 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43147 Bruno Haible <bruno@clisp.org>
43149 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
43150 check for the declaration of strnlen and a run test that exposes the
43151 AIX 5.1 strnlen bug. In the failure case, #define strndup to
43154 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43155 Bruno Haible <bruno@clisp.org>
43157 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
43159 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43161 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
43162 compile test, for Tru64 4.0D.
43164 2006-05-28 Karl Berry <karl@gnu.org>
43166 * config/srclist.txt (printf-args.c): lose sync.
43168 2006-05-26 Martin Lambers <marlam@marlam.de>
43170 * lib/getpass.c: Updates the test for the native W32 API, and adds
43171 missing includes, thus fixing compilation warnings.
43173 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
43175 * lib/exclude.c (exclude_fnmatch): New function.
43176 (excluded_file_name): Call exclude_fnmatch.
43177 * lib/exclude.h (excluded_file_name): New prototype
43179 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
43181 * lib/tempname.c (small_open, large_open): New macros.
43182 (__open, __open64) [!_LIBC]: Remove.
43183 (__gen_tempname): Use small_open and large_open instead of __open
43184 and __open64. This fixes a portability bug on HP-UX 11.11i
43185 reported by Simon Wing-Tang in
43186 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
43188 2006-05-24 Bruno Haible <bruno@clisp.org>
43190 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
43191 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
43192 Reported by Thorsten Maerz <torte@netztorte.de> via
43193 Aaron Stone <aaron@serendipity.cx>.
43195 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
43197 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
43198 gl_ rather than jm_. Link, don't run, so that cross-compiles are
43199 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
43200 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
43201 not really conditional on the cache.
43202 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
43204 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
43206 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
43207 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
43208 (my_usleep): Don't mishandle maximum value.
43210 2006-05-19 Jim Meyering <jim@meyering.net>
43212 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
43214 2006-05-17 Bruno Haible <bruno@clisp.org>
43216 Cygwin portability.
43217 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
43219 2006-05-17 Bruno Haible <bruno@clisp.org>
43221 * lib/stdint_.h: Fix recognition of Cygwin.
43223 2006-05-15 Bruno Haible <bruno@clisp.org>
43225 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
43226 on libtool patch by Ralf Wildenhues.
43228 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
43230 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
43231 test for C99 conformance; (bool) 0.5 is an integer constant
43232 expression, but (bool) -0.5 is not. Problem reported by Fedor
43233 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
43235 2006-05-11 Simon Josefsson <jas@extundo.com>
43237 * m4/xvasprintf.m4: Fix obvious typo.
43239 2006-05-11 Jim Meyering <jim@meyering.net>
43241 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
43244 2006-05-10 Simon Josefsson <jas@extundo.com>
43246 * lib/md4.c: Typo fix, update copyright years.
43247 (K1, K2): Don't use L because it turn computations into 64-bit on
43250 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
43252 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
43253 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
43254 unwanted sign propagation, e.g., on hosts with 64-bit int.
43255 There still are some problems with reeelly weird theoretical hosts
43256 (e.g., 33-bit int) but it's not worth worrying about now.
43257 * lib/sha1.c (rol): Likewise.
43258 (K1, K2, K3, K4): Remove unnecessary L suffix.
43260 2006-05-10 Bruno Haible <bruno@clisp.org>
43262 * lib/des.c: Cast to avoid warnings.
43264 2006-05-09 Bruno Haible <bruno@clisp.org>
43266 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
43267 (Depends-on): Depend also on xsize, stdarg.
43268 (configure.ac): Add gl_XVASPRINTF.
43270 2006-05-09 Bruno Haible <bruno@clisp.org>
43272 * m4/xvasprintf.m4: New file.
43274 2006-05-09 Bruno Haible <bruno@clisp.org>
43276 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
43277 (EOVERFLOW): Define fallback value.
43278 (xstrcat): New function.
43279 (xvasprintf): Recognize the special case of a string concatenation.
43281 2006-05-08 Eric Blake <ebb9@byu.net>
43283 * gnulib-tool (func_version): Base copyright year on CVS date.
43284 (func_emit_copyright_notice): New function.
43285 (func_emit_lib_Makefile_am): Use it.
43286 (func_emit_tests_Makefile_am): Likewise.
43287 (func_import): Likewise.
43289 2006-05-08 Bruno Haible <bruno@clisp.org>
43291 * modules/stdarg: New file.
43292 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
43294 2006-05-08 Bruno Haible <bruno@clisp.org>
43296 * m4/stdarg.m4: New file, from GNU gettext.
43298 2006-05-08 Bruno Haible <bruno@clisp.org>
43300 * config/srclist.txt (build-aux/config.rpath): different from latest
43303 2006-05-08 Bruno Haible <bruno@clisp.org>
43305 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
43307 2006-05-05 Jim Meyering <jim@meyering.net>
43309 * m4/warning.m4: New file, derived from bison's file by the same name.
43311 2006-05-03 Bruno Haible <bruno@clisp.org>
43313 * lib/stdint_.h: Shorter URL.
43314 * lib/inttypes.h: Likewise.
43316 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
43318 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
43320 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
43322 * lib/verify.h: Document the internals better. Most of this change
43323 was written by Bruno Haible.
43325 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
43327 * doc/verify.texi: New file, partly based on a proposal by
43330 2006-05-02 Bruno Haible <bruno@clisp.org>
43332 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
43334 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
43336 2006-04-29 Bruno Haible <bruno@clisp.org>
43338 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
43339 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
43341 2006-04-29 Bruno Haible <bruno@clisp.org>
43343 * gnulib-tool: Make --update option actually work.
43345 2006-04-29 Bruno Haible <bruno@clisp.org>
43347 * doc/gcd.texi: New file.
43348 * doc/gnulib.texi: Include it.
43350 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
43352 * lib/getdate.y (get_date): When adding relative date, start with the
43353 initial time, not with the result of the first mktime call.
43355 2006-04-25 Bruno Haible <bruno@clisp.org>
43357 * gnulib-tool (func_import): Output the include directives in three
43358 blocks, sorted separately.
43359 Reported by Ben Pfaff <blp@cs.stanford.edu>.
43361 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
43363 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
43364 to define main with arguments, for C++. Reported by Eric Blake.
43365 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
43366 Prefer 'int main ()' to 'int main (void)', for C++.
43367 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
43368 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
43369 for 'main', for C99 and C++.
43371 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
43373 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
43374 Don't assume that exit status -1 is valid.
43375 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43376 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
43377 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43378 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
43379 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
43380 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
43381 not AC_TRY_RUN. Use return, not exit. Don't assume that
43382 functions can be used without declaring them, or that you can
43383 exit with status -1.
43384 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43386 2006-04-24 Karl Berry <karl@gnu.org>
43388 * config/srclist.txt (longdouble.m4): sync lost.
43390 2006-04-24 Eric Blake <ebb9@byu.net>
43392 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
43394 2006-04-24 Bruno Haible <bruno@clisp.org>
43396 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
43397 poll() implementation in AIX.
43398 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43400 2006-04-24 Bruno Haible <bruno@clisp.org>
43402 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
43403 assigned exactly once.
43405 2006-04-23 Claudio Fontana <claudio@gnu.org>
43406 Bruno Haible <bruno@clisp.org>
43408 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
43409 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
43412 2006-04-23 Bruno Haible <bruno@clisp.org>
43414 * modules/copy-file: Depend on unistd.
43415 * modules/execute: Likewise.
43416 * modules/fatal-signal: Likewise.
43417 * modules/findprog: Likewise.
43418 * modules/mkdtemp : Likewise.
43419 * modules/pipe: Likewise.
43420 * modules/wait-process: Likewise.
43422 2006-04-23 Bruno Haible <bruno@clisp.org>
43424 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
43425 condition was already detected.
43426 Reported by Ben Pfaff <blp@cs.stanford.edu>.
43428 2006-04-23 Bruno Haible <bruno@clisp.org>
43430 * lib/copy-file.c: Include <unistd.h> unconditionally.
43431 * lib/execute.c: Likewise.
43432 * lib/fatal-signal.c: Likewise.
43433 * lib/findprog.c: Likewise.
43434 * lib/mkdtemp.c: Likewise.
43435 * lib/pipe.h: Likewise.
43436 * lib/pipe.c: Likewise.
43437 * lib/wait-process.h: Likewise.
43439 2006-04-23 Bruno Haible <bruno@clisp.org>
43441 * gnulib-tool (func_usage): Fix --import description. Document
43443 (func_import): Create temporary file in a temporary directory, if
43444 --dry-run is specified. Silence errors from 'grep' when there are no
43445 m4 files in $m4dir.
43446 (func_create_testdir): Silence errors from 'grep' when there are no
43447 m4 files in $m4dir.
43448 Reported by Karl Berry <karl@freefriends.org>.
43450 2006-04-20 Bruno Haible <bruno@clisp.org>
43452 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
43453 one argument, so that the code will be portable to Autoconf 2.60.
43454 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
43455 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
43456 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
43458 2006-04-19 Derek Price <derek@ximbiot.com>
43459 Eric Blake <ebb9@byu.net>
43461 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
43462 rather than "/full/path.h". Update comment to match. Shorten &
43463 generalize m4_translit call via AS_TR_CPP.
43465 2006-04-19 Derek Price <derek@ximbiot.com>
43466 Eric Blake <ebb9@byu.net>
43468 * lib/inttypes.h: Correct grammar in comment.
43470 2006-04-18 Derek Price <derek@ximbiot.com>
43471 Paul Eggert <eggert@cs.ucla.edu>
43473 * modules/inttypes: New file.
43474 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
43476 2006-04-18 Derek Price <derek@ximbiot.com>
43477 Paul Eggert <eggert@cs.ucla.edu>
43479 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
43482 2006-04-18 Derek Price <derek@ximbiot.com>
43483 Paul Eggert <eggert@cs.ucla.edu>
43485 * lib/inttypes.h: New file.
43486 * lib/strtoimax.c: Assume <inttypes.h>.
43488 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
43490 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
43491 isn't mounted. Problem reported by Kir Kolyshkin.
43493 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
43495 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
43496 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
43498 * lib/regex.h (RE_DUP_MAX): Update comment to match current
43501 2006-04-12 Eric Blake <ebb9@byu.net>
43503 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
43504 is now done automatically by the corresponding Autoconf macro.
43506 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
43508 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
43511 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
43513 Merge regex changes from libc, removing some of our
43514 POSIX-conformance changes that were rejected and redoing them in a
43515 less-intrusive way.
43517 * lib/regcomp.c (re_compile_internal, init_dfa):
43518 Length arg is now size_t, not Idx. All uses changed.
43519 (peek_token): Forward decl now says internal_function.
43520 (__re_error_msgid, __re_error_msgid_idx):
43521 Now static rather than extern with attribute_hidden.
43522 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
43523 For some reason libc prefers K&R style defns for external functions.
43524 (regerror) [!defined _LIBC]: Likewise.
43525 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
43526 (seek_collating_symbol_entry, lookup_collation_sequence_value):
43527 (build_range_exp, build_collating_symbol):
43528 Use K&R-style defn.
43529 (re_compile_fastmap): Use '\0' to memset, not 0.
43530 (utf8_sb_map): Make the calculations more obvious.
43531 (init_dfa, parse_bracket_exp, build_charclass_op):
43532 Call calloc and cast result, as glibc does.
43533 (init_word_char, fetch_token, peek_token, peek_token_bracket):
43534 (build_range_exp, build_collating_symbol):
43535 Now internal functions.
43537 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
43539 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
43540 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
43541 Don't depend on VMS; depend on __VMS instead, for POSIX
43542 namespace cleanness.
43543 (regoff_t): Define to ssize_t, not long int.
43545 Remove the REG_ macros named below. Instead, make the old names
43546 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
43548 (REG_BACKSLASH_ESCAPE_IN_LISTS):
43549 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
43550 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
43551 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
43552 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
43553 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
43554 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
43555 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
43556 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
43557 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
43558 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
43559 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
43560 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
43561 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
43562 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
43563 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
43564 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
43566 Remove. All uses replaced by the old RE_* names.
43567 (RE_BACKSLASH_ESCAPE_IN_LISTS):
43568 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
43569 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
43570 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
43571 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
43572 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
43573 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
43574 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
43575 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
43576 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
43577 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
43578 Don't bother having these macros be independent of each others'
43579 values, since they no longer exist in the POSIX name space.
43581 Rename the following member names back to their old names,
43582 unless !__USE_GNU_REGEX. All uses changed back.
43583 (buffer): Renamed from re_buffer.
43584 (allocated): Renamed from re_allocated.
43585 (used): Renamed from re_used.
43586 (syntax): Renamed from re_syntax.
43587 (fastmap): Renamed from re_fastmap.
43588 (translate): Renamed from re_translate.
43589 (can_be_null): Renamed from re_can_be_null.
43590 (regs_allocated): Renamed from re_regs_allocated.
43591 (fastmap_accurate): Renamed from re_fastmap_accurate.
43592 (no_sub): Renamed from re_no_sub.
43593 (not_bol): Renamed from re_not_bol.
43594 (not_eol): Renamed from re_not_eol.
43595 (newline_anchor): Renamed from re_newline_anchor.
43596 (num_regs): Renamed from rm_num_regs.
43597 (start): Renamed from rm_start.
43598 (end): Renamed from rm_end.
43600 (free_state): Move up a bit.
43602 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
43603 #define to be empty.
43604 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
43605 when that is what is intended.
43606 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
43607 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
43609 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
43610 All uses changed back to re_malloc, etc. It's now the caller's
43611 responsibility to check for overflow; all callers changed.
43612 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
43613 (re_x2nrealloc): Remove.
43614 (free_state): Remove decl.
43616 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
43617 (re_set_registers, re_exec):
43618 Use K&R-style defn.
43620 2006-01-31 Roland McGrath <roland@redhat.com>
43622 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
43623 Reported by Mike Frysinger <vapier@gentoo.org>.
43625 2006-01-15 Andreas Jaeger <aj@suse.de>
43628 * lib/regex_internal.c (re_string_reconstruct): Adjust for
43629 build_wcs_upper_buffer change.
43630 (build_wcs_upper_buffer): Change return type.
43632 2005-12-10 Ulrich Drepper <drepper@redhat.com>
43634 * lib/regex_internal.h: Include <stdint.h> if available.
43636 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
43638 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
43640 2005-10-14 Ulrich Drepper <drepper@redhat.com>
43642 * lib/regcomp.c: Adjust for changed secondary hash function.
43644 2005-09-30 Ulrich Drepper <drepper@redhat.com>
43646 * lib/regex.h: Pretty printing.
43647 Clean up namespace a bit.
43649 2005-09-30 Jakub Jelinek <jakub@redhat.com>
43651 * lib/regexec.c (update_cur_sifted_state, check_arrival,
43652 check_arrival_add_next_nodes): Avoid using uninitialized variable.
43654 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
43655 Ulrich Drepper <drepper@redhat.com>
43658 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
43660 (bitset_word_t): Renamed from bitset_word. All uses changed.
43662 2005-09-22 Ulrich Drepper <drepper@redhat.com>
43665 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
43666 * lib/regcomp.c: Remove unnecessary uses of
43667 unsigned RE_TRANSLATE_TYPE.
43668 * lib/regex_internal.h: Likewise.
43669 * lib/regex_internal.c: Likewise.
43670 * lib/regexec.c: Likewise.
43671 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
43673 2005-09-07 Ulrich Drepper <drepper@redhat.com>
43675 * lib/regexec.c (find_recover_state): Remove unnecessary
43677 (transit_state_bkref): Make DFA a const pointer.
43678 (get_subexp): Likewise.
43679 (check_arrival): Likewise.
43680 (update_cur_sifted_state): Likewise.
43681 (re_search_internal): Likewise.
43682 (prune_impossible_nodes): Likewise.
43683 (acquire_init_state_context): Likewise.
43684 (proceed_next_node): Likewise.
43685 (set_regs): Likewise.
43686 (free_fail_stack_return): Likewise.
43687 (check_arrival_expand_ecl): Mark DFA parameter as const.
43688 (check_arrival_expand_ecl_sub): Likewise.
43689 (check_subexp_limits): Likewise.
43690 (sub_epsilon_src_nodes): Likewise.
43691 (add_epsilon_src_nodes): Likewise.
43692 (merge_state_array): Likewise.
43693 (update_regs): Likewise.
43694 (build_trtable): Likewise.
43695 (sift_states_backward): Mark MCTX parameter as const.
43696 (build_sifted_states): Likewise.
43697 (update_cur_sifted_state): Likewise.
43698 (sift_states_mkref): Likewise.
43699 (check_arrival_expand_ecl): Mark eclosure as const.
43700 (check_dst_limits_calc_pos_1): Likewise.
43701 * lib/regex_internal.h (re_match_context_t): Make dfa a const
43704 2005-09-06 Ulrich Drepper <drepper@redhat.com>
43706 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
43707 (transit_state_sb): Likewise.
43708 (transit_state_mb): Likewise.
43709 (sift_states_iter_mb): Likewise.
43710 (check_arrival_add_next_nodes): Likewise.
43711 (check_node_accept_bytes): Change first parameter to pointer-to-const.
43712 [_LIBC] (re_search_2_stub): Use mempcpy.
43714 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
43715 mbrtowc for very simple UTF-8 case.
43717 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
43718 a pointer-to-const.
43719 (re_acquire_state_context): Likewise.
43720 * lib/regex_internal.h: Adjust prototypes.
43722 * lib/regex.c: Prevent using C++ compilers.
43724 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
43725 (re_acquire_state_context): Likewise.
43727 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
43729 * modules/regex (Depends-on): Add ssize_t.
43731 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
43733 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
43736 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
43738 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
43740 2006-03-29 Mark D. Baushke <mdb@gnu.org>
43741 Bruno Haible <bruno@clisp.org>
43743 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
43744 <sys/types.h> and <inttypes.h>.
43746 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43748 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
43749 `__error_t_defined', so argp.h will not typedef the former.
43751 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
43753 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
43754 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
43755 glibc names. Even if glibc is changed to conform to POSIX, the
43756 traditional names will be available anyway, since regex depends on
43757 the extensions module. Also, fix a longstanding typo in the
43758 implementation of Spencer ERE test #75 from grep 2.3. Problems
43759 reported by Emanuele Giaquinta. Also, change sense of cached
43760 variable, so that the message makes sense.
43762 2006-03-24 Simon Josefsson <jas@extundo.com>
43764 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
43765 including some doc fixes.
43766 (base64_encode_alloc): Fix +1 bug on allocation failures.
43768 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43770 * lib/base64.c (base64_encode): Do not read past end of array with
43771 unsanitized input on systems with CHAR_BIT > 8.
43773 2006-03-24 Eric Blake <ebb9@byu.net>
43775 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
43777 2006-03-22 Karl Berry <karl@gnu.org>
43779 * config/srclist.txt (*setenv.[ch]): get from coreutils.
43780 * config/srclistvars.sh (COREUTILS): new var.
43782 2006-03-17 Jim Meyering <jim@meyering.net>
43784 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
43785 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
43787 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
43789 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
43790 no longer needs it. Instead, check that regoff_t is as least
43791 as wide as ptrdiff_t.
43793 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
43794 so that our regex.h stays compatible with the installed regex.
43795 This is helpful for installers who configure --without-included-regex.
43796 Problem reported by Emanuele Giaquinta.
43798 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
43800 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
43801 Typedef to long int, not to off_, as POSIX will likely change
43804 2006-03-15 Eric Blake <ebb9@byu.net>
43806 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
43808 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
43810 * lib/argp-help.c (validate_uparams): Fix typo
43811 * lib/argp-parse.c (argp_default_options): Consistently begin help
43812 messages with a lowercase letter.
43814 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
43816 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
43817 overrun buffers and shouldn't be used (much as gets shouldn't be
43819 * lib/time_r.c (asctime_r, ctime_r): Likewise.
43821 2006-03-08 Simon Josefsson <jas@extundo.com>
43823 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
43824 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43826 2006-03-08 Simon Josefsson <jas@extundo.com>
43828 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
43829 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43831 2006-03-08 Simon Josefsson <jas@extundo.com>
43833 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
43834 signal that configure disabled the device.
43836 2006-03-08 Simon Josefsson <jas@extundo.com>
43838 * build-aux/maint.mk: Fix refresh-po, to handle no translated
43841 2006-03-07 Simon Josefsson <jas@extundo.com>
43843 * modules/getopt (Depends-on): Add unistd.
43845 * modules/unistd: New file.
43847 2006-03-07 Simon Josefsson <jas@extundo.com>
43849 * modules/gc-random: New file.
43851 2006-03-07 Simon Josefsson <jas@extundo.com>
43853 * m4/unistd_h.m4: New file.
43855 2006-03-07 Simon Josefsson <jas@extundo.com>
43857 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
43858 test to be side-effect free by storing the result in the cache
43859 variable gl_cv_lib_readline, and moving the assignment of
43860 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
43861 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43863 2006-03-07 Simon Josefsson <jas@extundo.com>
43865 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
43866 error on missing devices (the functions will return an error).
43868 * m4/gc.m4: Move random stuff to gc-random.m4
43870 2006-03-07 Simon Josefsson <jas@extundo.com>
43872 * lib/unistd_.h: New file.
43874 2006-03-07 Simon Josefsson <jas@extundo.com>
43876 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
43878 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
43880 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
43881 Problem reported by Juan Manuel Guerrero.
43883 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
43885 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
43887 * lib/getlogin_r.c: Likewise.
43888 * lib/getlogin_r.h: Likewise.
43889 * lib/glob.c: Likewise.
43890 * lib/pagealign_alloc.c: Likewise.
43891 * lib/unistd_.h: Remove; no longer needed.
43893 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
43895 * MODULES.html.sh (Support for systems lacking POSIX:2001):
43897 * modules/c-stack (Depends-on): Add unistd.
43898 * modules/getlogin_r: Likewise.
43899 * modules/glob: Likewise.
43900 * modules/pagealign_alloc: Likewise.
43901 * modules/unistd (Files): Remove lib/unistd_.h.
43902 (EXTRA_DIST): Remove.
43903 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
43905 (MOSTLYCLEANFILES): Remove unistd.h-t.
43907 2006-03-03 Simon Josefsson <jas@extundo.com>
43909 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
43911 2006-03-03 Simon Josefsson <jas@extundo.com>
43913 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
43916 2006-03-03 Simon Josefsson <jas@extundo.com>
43918 * build-aux/maint.mk: Add indent target.
43920 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
43922 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
43923 our replacement poll.h in any case, to avoid a differing
43924 declaration from a system header. Seen on AIX.
43926 2006-03-01 Simon Josefsson <jas@extundo.com>
43928 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
43931 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
43933 * modules/gettime (Depends-on): Add extensions module.
43934 * modules/nanosleep (Depends-on): Likewise.
43935 * modules/settime (Depends-on): Likewise.
43937 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
43939 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
43940 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
43942 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43943 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
43945 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
43946 not "==". Reported by Ralf Wildenhues.
43948 2006-03-01 Karl Berry <karl@gnu.org>
43950 * doc/Copyright/request-*: new files, synced from gnuorg.
43952 2006-03-01 Karl Berry <karl@gnu.org>
43954 * config/srclist.txt (Copyright/*): new entries.
43956 2006-02-28 Simon Josefsson <jas@extundo.com>
43958 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
43960 2006-02-27 Simon Josefsson <jas@extundo.com>
43962 * lib/base64.h: Indent #define's. From Jim Meyering
43963 <jim@meyering.net>.
43965 2006-02-27 Jim Meyering <jim@meyering.net>
43967 Revert the change of 2006-02-24, so these files can continue
43968 to be sync'd from gettext.
43969 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
43972 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
43974 * modules/intprops: New file.
43975 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
43977 * modules/getloadavg (Files): Remove lib/intprops.h.
43978 (Depends-on): Add intprops.
43979 * modules/human: Likewise.
43980 * modules/inttostr: Likewise.
43981 * modules/openat: Likewise.
43982 * modules/sig2str: Likewise.
43983 * modules/userspec: Likewise.
43984 * modules/utimecmp: Likewise.
43985 * modules/xnanosleep: Likewise.
43986 * modules/xstrtol: Likewise.
43988 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
43990 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
43991 * modules/lock-tests (TESTS): Use $(EXEEXT).
43992 * modules/tls-tests: Likewise.
43993 * modules/argp-tests: Likewise.
43994 (check_PROGRAMS): New var, replacing...
43995 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
43997 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43999 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
44002 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
44004 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
44006 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44008 Sync from coreutils.
44009 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
44012 2006-02-22 Jim Meyering <jim@meyering.net>
44014 Sync from coreutils.
44015 * m4/chdir-safer.m4: New file.
44017 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
44019 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
44020 AT_FDCWD exceeds INT_MAX.
44021 * lib/openat.h (AT_FDCWD): Likewise.
44023 2006-02-17 Eric Blake <address@hidden>
44025 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
44027 2006-02-16 Simon Josefsson <jas@extundo.com>
44029 * modules/getaddrinfo (Depends-on): Add sys_socket.
44031 2006-02-15 Simon Josefsson <jas@extundo.com>
44033 * build-aux/maint.mk: Add dsyntax-check rule.
44035 2006-02-15 Eric Blake <ebb9@byu.net>
44037 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
44038 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
44039 'present but cannot compile' warnings on cygwin.
44040 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
44041 use ws2tcpip.h if sys/socket.h works.
44042 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
44043 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
44045 2006-02-14 Simon Josefsson <jas@extundo.com>
44047 * modules/maintainer-makefile (Files): Rename.
44049 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
44050 and (the local) Makefile.cfg to maint-cfg.mk.
44052 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
44055 * modules/maintainer-makefile: New module.
44057 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
44058 severaly stripped to make it possible to build it up from scratch
44059 with reliable tests.
44061 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
44062 fixes to permit overriding the default actions when configure and
44063 makefile are not available.
44065 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
44067 Sync from coreutils.
44068 * modules/lstat (Depends-on): Don't depend on xalloc.
44069 (License): Change from GPL to LGPL, since this is now simply a
44070 replacement for a libc function.
44072 2006-02-14 Jim Meyering <jim@meyering.net>
44074 Sync from coreutils.
44076 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
44077 failure on deficient systems, and simplify gnulib lgpl dependencies.
44078 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
44079 xmalloc/lstat combination. Based on a patch from Bruno Haible.
44081 * lib/xalloc-die.c: Remove unused definition of N_.
44083 2006-02-14 Jim Meyering <jim@meyering.net>
44085 Sync from coreutils.
44086 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
44087 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
44088 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
44089 double-quote uses of that variable, to accommodate the rare case in
44090 which getmntent is available in none of the libraries checked. This
44091 happens at least on FreeBSD 5.0.
44093 2006-02-13 Simon Josefsson <jas@extundo.com>
44095 * gnulib-tool (Usage): Fix --import, from
44096 karl@freefriends.org (Karl Berry).
44098 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
44100 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
44102 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
44104 * lib/argp-namefrob.h: Restore changes accidentally lost during the
44105 "autoupdate" on 2005-12-12.
44107 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
44109 * modules/closeout (Depends-on): Remove atexit.
44111 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
44113 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
44114 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
44116 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
44118 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
44119 __EXTENSIONS__ if this causes compilation to fail. Problem
44120 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
44121 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
44123 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
44125 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
44126 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
44127 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
44130 2006-01-26 Simon Josefsson <jas@extundo.com>
44132 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
44133 prototype is visible on mingw32.
44135 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
44138 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
44141 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
44143 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
44144 attempt to open for write; this always fails, at least on POSIX
44145 hosts. This reinstates the 2006-01-09 change, which was
44146 inadvertently removed.
44148 2006-01-26 Bruno Haible <bruno@clisp.org>
44150 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
44151 Reported by Paul Eggert.
44153 2006-01-26 Bruno Haible <bruno@clisp.org>
44154 Paul Eggert <eggert@cs.ucla.edu>
44156 * lib/stdbool_.h (_Bool)
44157 [(! (defined __cplusplus || defined __BEOS__)
44158 && !defined __GNUC__
44159 && !(defined __HP_cc || defined __xlc__
44160 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
44161 || defined __sgi))]:
44162 #define to signed char in these cases too; this simplifies
44163 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
44164 etc., separately) and makes it more conservative.
44166 2006-01-25 Simon Josefsson <jas@extundo.com>
44168 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
44169 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
44170 ws2tcpip.h with WINVER=0x0501. All for mingw32.
44172 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
44174 * lib/argp-namefrob.h: Bugfix. Remove stray #
44176 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
44178 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
44179 so that we test the test.
44180 Check for yet another HP-UX cc bug involving *bool |= bool.
44182 2006-01-25 Karl Berry <karl@gnu.org>
44184 * config/srclist.txt (vasnprintf.c): sync lost.
44186 2006-01-25 Jim Meyering <jim@meyering.net>
44188 Sync from the stable (b5) branch of coreutils:
44190 * lib/fts.c (fts_children): Don't let close() clobber errno from
44193 * lib/fts.c (fts_stat): When following a symlink-to-directory,
44194 don't necessarily interpret stat-fails+lstat-succeeds as indicating
44195 a dangling symlink. That can also happen at least for ELOOP.
44196 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
44197 FYI, this bug predates the inclusion of fts.c in coreutils.
44199 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
44200 in their own block, so pre-c99 compilers don't object.
44202 Avoid the double-free (first in fts_read, second in fts_close) that
44203 would occur when an `active' directory is made inaccessible (e.g.,
44204 via chmod a-x) during a traversal.
44205 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
44206 before returning. Reproduce this failure by
44207 mkdir -p a/b; cd a; chmod a-x . b
44208 Reported by Stavros Passas.
44210 2006-01-25 Jim Meyering <jim@meyering.net>
44212 * lib/fileblocks.c: Remove more useless parentheses.
44213 * lib/readutmp.h: Likewise.
44215 2006-01-25 Bruno Haible <bruno@clisp.org>
44217 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
44219 Reported by Paul Eggert.
44221 2006-01-25 Bruno Haible <bruno@clisp.org>
44223 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
44224 rid of a trap command. For Solaris sh.
44225 Reported by Mark D. Baushke <mdb@gnu.org>.
44227 2006-01-24 Simon Josefsson <jas@extundo.com>
44229 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
44232 2006-01-24 Karl Berry <karl@gnu.org>
44234 * config/srclist.txt (argp-namefrob.h): sync lost.
44236 2006-01-24 Jim Meyering <jim@meyering.net>
44238 * modules/openat (Files): Add lib/intprops.h.
44239 From Mark D. Baushke.
44241 2006-01-24 Jim Meyering <jim@meyering.net>
44243 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
44244 Reported by Mark D. Baushke.
44246 2006-01-24 Jim Meyering <jim@meyering.net>
44248 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
44250 2006-01-24 Bruno Haible <bruno@clisp.org>
44252 * modules/strnlen (Maintainer): Change from glibc to all.
44254 2006-01-24 Bruno Haible <bruno@clisp.org>
44256 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
44257 Patch by Paul Eggert.
44259 2006-01-24 Bruno Haible <bruno@clisp.org>
44261 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
44263 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
44266 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
44267 'signed char' to avoid problems with the built-in _Bool type.
44268 Reported by Paul Eggert on 2005-11-26.
44270 2006-01-24 Bruno Haible <bruno@clisp.org>
44272 * gnulib-tool (func_import): Avoid constructing complicated sed
44273 expressions inside backquote.
44274 Report and solution by Mark D. Baushke <mdb@gnu.org>.
44276 2006-01-23 Ulrich Drepper <drepper@redhat.com>
44278 These changes imported from libc.
44279 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
44280 test and two separate function calls.
44281 * lib/strndup.c (__strndup): Add libc_hidden_def.
44283 2006-01-23 Simon Josefsson <jas@extundo.com>
44285 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
44286 Remove the test_*_SOURCES variable: automake infers it by default.
44287 * modules/tls-tests: Likewise.
44289 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
44291 Work around porting bugs reported by Dieter in
44292 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
44293 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
44294 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
44295 Include "getopt.h" first, to check interface.
44296 (getenv): Declare only if defined HAVE_DECL_GETENV &&
44298 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
44299 (__strndup): Revert to K&R-style function dfns, the glibc style.
44300 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
44301 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
44302 Include strnlen.h first, to get prototype properly.
44303 (strnlen): Renamed from __strnlen.
44306 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
44308 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
44310 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
44312 * config/srclist.txt: Adjust to reflect glibc reorganization.
44313 This affects only comments.
44315 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
44317 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
44318 Reported by Bruce Korb <bkorb@gnu.org>.
44320 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
44322 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
44323 to pacify gcc -Wswitch-default.
44325 2006-01-22 Bruno Haible <bruno@clisp.org>
44327 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
44328 temporary buffer for sprintf, take into account the precision also
44329 for 'd', 'i', 'u', 'o', 'x', 'X'.
44331 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
44333 * modules/argp-tests: New module
44334 * tests/test-argp.c: New file
44335 * tests/test-argp-2.sh: New file
44337 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
44339 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
44340 (__argp_base_name): Removed
44341 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
44343 (__argp_base_name): Provide macro definition or extern declaration
44344 depending on the configuration
44346 2006-01-20 Simon Josefsson <jas@extundo.com>
44348 * modules/inet_ntop (Depends-on): Depend on sys_socket.
44350 2006-01-20 Simon Josefsson <jas@extundo.com>
44352 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
44354 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
44356 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
44357 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
44358 Suggested by Bruno Haible.
44360 2006-01-20 Karl Berry <karl@gnu.org>
44362 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
44363 until changes propagate, I guess.
44365 2006-01-19 Simon Josefsson <jas@extundo.com>
44367 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
44369 2006-01-19 Simon Josefsson <jas@extundo.com>
44371 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
44373 2006-01-19 Simon Josefsson <jas@extundo.com>
44375 * gnulib-tool: Set check_PROGRAMS.
44377 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44378 modules/des-tests, modules/gc-arcfour-tests,
44379 modules/gc-arctwo-tests, modules/gc-des-tests,
44380 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44381 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44382 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44383 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44384 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44385 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
44386 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
44389 2006-01-18 Simon Josefsson <jas@extundo.com>
44391 * modules/socklen (Depends-on): Depend on sys_socket.
44393 2006-01-18 Simon Josefsson <jas@extundo.com>
44395 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
44396 modules/des-tests, modules/gc-arcfour-tests,
44397 modules/gc-arctwo-tests, modules/gc-des-tests,
44398 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
44399 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
44400 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
44401 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
44402 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
44403 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
44404 $(EXEEXT) to automake TESTS variable, for mingw32.
44406 2006-01-17 Simon Josefsson <jas@extundo.com>
44408 * modules/socklen (Include): Need sys/socket.h.
44410 2006-01-17 Bruno Haible <bruno@clisp.org>
44412 * modules/ssize_t (Include): Add <sys/types.h>.
44414 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
44416 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
44417 it's not portable and it doesn't work with cross-compiles.
44418 Problem reported by Bruno Haible. Fix missing-$ typo in
44419 'test "gl_cv_ignore_unused_libraries" ...' that prevented
44420 -zignore from being used with Sun's C compiler.
44422 2006-01-12 Simon Josefsson <jas@extundo.com>
44424 * lib/base64.c: Fix warning, reported by Bruno Haible
44425 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
44427 2006-01-12 Bruno Haible <bruno@clisp.org>
44429 * modules/ldd: New file.
44430 * build-aux/ldd.sh.in: New file.
44431 * MODULES.html.sh (Support for building libraries and executables): Add
44434 2006-01-12 Bruno Haible <bruno@clisp.org>
44436 * m4/ldd.m4: New file.
44438 2006-01-12 Bruno Haible <bruno@clisp.org>
44440 * gnulib-tool (func_import, func_create_testdir): Don't go into an
44441 endless loop while replacing $auxdir with build-aux.
44443 2006-01-11 Simon Josefsson <jas@extundo.com>
44445 * lib/stdint_.h (SIZE_MAX): Add missing (.
44447 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
44449 Sync from coreutils.
44450 * lib/md5.c: Fix commentary typos.
44451 (alignof, UNALIGNED_P): No need for a GCC-specific version.
44452 * lib/md5.h (__attribute__): Remove; unused.
44453 * lib/sha1.c: Fix commentary to match md5 better.
44454 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
44455 so that we don't need to worry about alignment. All uses changed.
44456 This merges the 2005-10-28 md5 change into sha1.
44458 2006-01-11 Jim Meyering <jim@meyering.net>
44460 Sync from coreutils.
44461 * lib/md5.c (OP): Fix spacing.
44463 2006-01-11 Bruno Haible <bruno@clisp.org>
44465 Ensure automatic ordering between gl_LOCK and gl_ARGP.
44466 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
44467 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
44469 2006-01-11 Bruno Haible <bruno@clisp.org>
44471 Ensure automatic ordering between gl_LOCK and gl_ARGP.
44472 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
44473 the "early" section as well.
44475 2006-01-11 Bruno Haible <bruno@clisp.org>
44477 Avoid "ar: no archive members specified" error on MacOS X.
44478 * gnulib-tool (func_modules_add_dummy): New function.
44479 (func_import, func_create_testdir): Invoke it.
44481 2006-01-11 Bruno Haible <bruno@clisp.org>
44483 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
44484 with $auxdir in AC_CONFIG_FILES statements.
44486 2006-01-11 Bruno Haible <bruno@clisp.org>
44488 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
44489 Initialize also noinst_HEADERS to empty.
44491 2006-01-11 Bruno Haible <bruno@clisp.org>
44493 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
44495 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
44498 2006-01-11 Bruno Haible <bruno@clisp.org>
44500 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
44501 overridable by the user.
44502 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44504 2006-01-10 Simon Josefsson <jas@extundo.com>
44506 * modules/sys_socket: New file.
44508 2006-01-10 Simon Josefsson <jas@extundo.com>
44510 * m4/sys_socket_h.m4: New file.
44512 2006-01-10 Simon Josefsson <jas@extundo.com>
44514 * lib/socket_.h: New file.
44516 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
44518 * modules/readutmp (Maintainer): Add myself.
44520 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
44522 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
44523 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
44524 People who are still concerned with buggy memcmp implementations
44525 can invoke gl_FUNC_MEMCMP themselves.
44527 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
44529 * lib/regex_internal.h (BITSET_WORD_BITS):
44530 Work around a bug in 64-bit PGC (before version 6.1-2), where the
44531 preprocessor mishandles large unsigned values as if they were signed.
44532 Problem reported by Claudio Fontana in
44533 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
44535 2006-01-10 Jim Meyering <jim@meyering.net>
44537 Avoid the double-free (first in fts_read, second in fts_close) that
44538 would occur when an `active' directory is made inaccessible (e.g.,
44539 via chmod a-x) during a traversal.
44540 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
44541 before returning. Reproduce this failure by
44542 mkdir -p a/b; cd a; chmod a-x . b
44543 Reported by Stavros Passas.
44545 Sync from coreutils.
44546 * lib/sha1.c: Tweak grammar in a comment.
44548 2006-01-10 Jim Meyering <jim@meyering.net>
44550 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
44551 Patch by Joerg Sonnenberger.
44553 2006-01-10 Bruno Haible <bruno@clisp.org>
44555 * modules/readutmp: Depend on module free.
44556 * modules/strtok_r: Depend on module restrict.
44558 2006-01-10 Bruno Haible <bruno@clisp.org>
44560 * modules/gettext (configure.ac): Add an invocation of
44561 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
44563 2006-01-10 Bruno Haible <bruno@clisp.org>
44565 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
44566 Reported by Werner Lemberg <wl@gnu.org>.
44568 2006-01-10 Bruno Haible <bruno@clisp.org>
44570 * lib/localcharset.c: Update from GNU gettext.
44572 2006-01-10 Bruno Haible <bruno@clisp.org>
44574 * lib/argp.h (__const): Remove macro. Use const instead.
44575 * lib/argp-fmtstream.h (__const): Likewise.
44576 * lib/glob_.h (__const): Remove macro.
44577 * lib/glob-libc.h: Use const instead of __const.
44579 2006-01-10 Bruno Haible <bruno@clisp.org>
44581 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
44583 Needed to avoid an automake error regarding the 'gettext' module.
44585 2006-01-09 Simon Josefsson <jas@extundo.com>
44587 * modules/inet_ntop (Depends-on): Add restrict.
44589 2006-01-09 Simon Josefsson <jas@extundo.com>
44591 * modules/gc-rijndael-tests (License): Put under LGPL.
44593 * modules/gc-des-tests (License): Likewise.
44595 * modules/gc-arcfour-tests (License): Likewise.
44597 * modules/gc-arctwo-tests (License): Likewise.
44599 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
44601 * modules/gc-hmac-sha1-tests (Files): Likewise.
44603 * modules/gc-hmac-md5-tests (License): Likewise.
44605 * modules/gc-sha1-tests (License): Likewise.
44607 * modules/gc-md5-tests (License): Likewise.
44609 * modules/gc-md4-tests (License): Likewise.
44611 * modules/gc-md2-tests (License): Likewise.
44613 * modules/gc-tests (License): Likewise.
44615 * modules/des-tests (License): Likewise.
44617 * modules/md4-tests (License): Likewise.
44619 * modules/md2-tests (License): Likewise.
44621 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
44623 Sync from coreutils:
44625 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
44626 * modules/lib-ignore: New file.
44627 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
44628 chdir-safer.m4, lchmod.m4.
44629 * modules/openat: Add mkdirat.c, openat-priv.h.
44631 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
44633 Sync from coreutils.
44634 * m4/lib-ignore.m4: New file.
44635 * m4/lchmod.m4: New file.
44637 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
44639 Sync from coreutils.
44640 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
44641 for write access: POSIX says that must fail.
44642 * lib/fts.c (diropen): Likewise.
44643 * lib/save-cwd.c (save_cwd): Likewise.
44644 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
44645 well, for minor improvements on hosts that lack O_DIRECTORY.
44646 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
44647 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
44648 Fall back on chown if open failed with EACCES.
44650 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
44651 Report an error at compile-time if only a 1-second nominal clock
44652 resolution is found.
44654 * lib/lchmod.h: New file.
44655 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
44656 (make_dir_parents): Use lchown rather than chown, and
44657 lchmod rather than chmod.
44659 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
44660 dummies too. Problem with "none" reported by Bob Proulx. Problem with
44661 "proc" reported by n0dalus.
44663 * lib/mountlist.c: Include <limits.h>.
44664 (dev_from_mount_options)
44665 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
44666 New function. It no longer assumes "dev=" has the System V meaning
44667 on Linux (since it doesn't). It also parses "dev=" more carefully.
44668 (read_file_system_list)
44669 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
44670 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
44673 * lib/posixtm.h (PDS_PRE_2000): New macro.
44674 * lib/posixtm.c (year): Arg is now syntax_bits rather than
44675 allow_century. All usages changed. Reject dates outside the range
44676 1969-1999 if PDS_PRE_2000 is used.
44678 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
44680 Sync from coreutils.
44681 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
44682 (Time of day items): Mention the possibility of leap seconds.
44683 Problem reported by Dr. David Alan Gilbert.
44685 2006-01-09 Jim Meyering <jim@meyering.net>
44687 Sync from coreutils.
44689 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
44691 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
44693 * lib/modechange.c (mode_compile): Reject an invalid mode string
44694 that starts with an octal digit. From Andreas Gruenbacher.
44696 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
44697 and dup to open_safer and dup_safer, respectively.
44698 (openat_permissive): Fix typo in comment.
44700 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
44701 "gettext.h"; either no longer needed or are guaranteed by openat.h.
44702 (_): Remove; no longer needed.
44703 (openat): Renamed from rpl_openat; no need for rpl_openat
44704 since openat.h renames openat for us.
44705 Replace most of the body with a call to openat_permissive,
44706 to avoid duplicate code.
44707 Port to (probably hypothetical) environments were mode_t is
44709 (openat_permissive): Require mode arg, so that we can check
44710 types better. Put it just after flags. Change cwd failure
44711 indicator from pointer-to-bool to pointer-to-errno-value.
44712 All callers changed.
44713 Invoke openat_save_fail and/or openat_restore_fail if
44714 cwd_errno is null, so that openat can call us.
44715 (openat_permissive, fdopendir, fstatat, unlinkat):
44716 Simplify errno handling to avoid some duplicate code,
44717 as it's OK to set errno on success.
44718 * lib/openat.h: Revamp code so that function macros depend on
44719 __OPENAT_PREFIX only, not also on AT_FDCWD.
44720 (openat_ro): Remove. Caller changed to use openat_permissive.
44721 (openat_permissive): Now a macro, if not a function.
44722 (openat_restore_fail, openat_save_fail): Now always functions,
44723 since mkdirat needs them even if __OPENAT_PREFIX is defined.
44725 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
44727 * lib/mkdirat.c: Include openat-priv.h.
44728 Remove definitions of macros defined therein.
44729 * lib/openat.c: Likewise.
44731 * lib/mkdirat.c (mkdirat): New file and function.
44732 * lib/openat.h (mkdirat): Declare.
44734 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
44736 * lib/openat.h (openat_permissive): Declare.
44737 (openat_ro): Define.
44739 * lib/openat.c (EXPECTED_ERRNO): New macro.
44740 (openat_permissive): New function -- used in remove.c rewrite.
44741 (all functions): Set errno just before returning, only if there
44742 was an actual failure.
44743 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
44745 Emulate openat-family functions using Linux's procfs, if possible.
44746 Idea and some code based on Ulrich Drepper's glibc changes.
44748 * lib/openat.c: (BUILD_PROC_NAME): New macro.
44749 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
44750 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
44751 before falling back on save_cwd and restore_cwd.
44752 (fdopendir, fstatat, unlinkat): Likewise.
44754 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
44755 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
44757 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
44758 as second argument to va_arg. Otherwise, some versions of gcc
44759 warn that `if this code is reached, the program will abort'.
44761 2006-01-09 Jim Meyering <jim@meyering.net>
44763 Sync from coreutils.
44764 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
44765 Require openat-priv.h.
44767 2006-01-09 Bruno Haible <bruno@clisp.org>
44769 * modules/strnlen (Include): Use strnlen.h.
44771 2006-01-09 Bruno Haible <bruno@clisp.org>
44773 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
44775 2006-01-09 Bruno Haible <bruno@clisp.org>
44777 * lib/sysexit_.h (EX_OK): New macro.
44778 Suggested by Martin Lambers <marlam@marlam.de>.
44780 2006-01-09 Bruno Haible <bruno@clisp.org>
44782 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
44783 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
44785 2006-01-09 Bruno Haible <bruno@clisp.org>
44787 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
44790 2006-01-09 Bruno Haible <bruno@clisp.org>
44792 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
44793 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
44794 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
44795 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
44797 2006-01-09 Bruno Haible <bruno@clisp.org>
44799 * build-aux/javacomp.sh.in: New file, moved from lib/.
44800 * modules/javacomp-script (Files): Update.
44801 (configure.ac): Add AC_CONFIG_FILES invocation.
44802 (EXTRA_DIST): Remove variable.
44804 * build-aux/javaexec.sh.in: New file, moved from lib/.
44805 * modules/javaexec (Files): Update.
44806 (configure.ac): Add AC_CONFIG_FILES invocation.
44807 (EXTRA_DIST): Remove javaexec.sh.in.
44809 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
44810 * modules/csharpcomp-script (Files): Update.
44811 (configure.ac): Add AC_CONFIG_FILES invocation.
44812 (EXTRA_DIST): Remove variable.
44814 * build-aux/csharpexec.sh.in: New file, moved from lib/.
44815 * modules/csharpexec (Files): Update.
44816 (configure.ac): Add AC_CONFIG_FILES invocation.
44817 (EXTRA_DIST): Remove csharpexec.sh.in.
44819 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
44821 Sync from coreutils.
44823 Add POSIX ACL support
44824 * lib/acl.h (copy_acl, set_acl): Add declarations.
44825 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
44826 systems other than Linux.
44827 (chmod_or_fchmod): New function: use fchmod when possible,
44828 and chmod otherwise.
44829 (file_has_acl): Add a POSIX ACL implementation, with a
44830 Linux-specific subcase.
44831 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
44832 S_ISVTX from one file to another. Fall back to fchmod/chmod when
44833 acls are unsupported.
44834 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
44835 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
44838 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
44840 Sync from coreutils.
44841 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
44843 2006-01-07 Bruno Haible <bruno@clisp.org>
44845 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
44848 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
44850 * lib/strftime.c (tzname): Don't declare if it is already #defined.
44851 Problem reported for Mingw by Mark Junker.
44853 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
44855 * README: Gnulib normally doesn't generate a tarball.
44857 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
44859 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
44860 long int, not int, for nanosecond counts, so that people who are
44861 used to POSIX struct timespec won't be surprised. Reported by Jim
44864 2005-12-28 Bruno Haible <bruno@clisp.org>
44866 * build-aux/config.rpath: Update from GNU gettext.
44868 2005-12-16 Jim Meyering <jim@meyering.net>
44870 * modules/fprintftime: New module.
44871 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
44873 2005-12-16 Jim Meyering <jim@meyering.net>
44875 * m4/fprintftime.m4: New file.
44877 2005-12-16 Jim Meyering <jim@meyering.net>
44879 * lib/fprintftime.c, lib/fprintftime.h: New files.
44881 2005-12-15 Simon Josefsson <jas@extundo.com>
44883 * modules/socklen (configure.ac): Fix M4 macro name, to align with
44886 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
44888 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
44889 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
44891 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
44893 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
44894 * lib/argp-help.c (fill_in_uparams): Check if the constructed
44895 struct uparams is valid. Fall back to the default values if it is
44898 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
44900 * modules/argp (Files): Add argp-pin.c
44901 (Depends-on): dirname
44902 (lib_SOURCES): Add argp-pin.c
44904 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
44906 * m4/argp.m4: Check if program_invocation_name and
44907 program_invocation_short_name are declared and define appropriate
44908 macros if they are not.
44910 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
44912 * lib/argp-help.c (__argp_base_name): New function
44913 (__argp_short_program_name): Rewrite using __argp_base_name
44914 * lib/argp-namefrob.h: Define program_invocation_name and
44915 program_invocation_short_name if requested
44916 (__argp_base_name): Add prototype
44917 * lib/argp-parse.c (argp_def): Use gettext wrappers
44918 (argp_default_parser): Use __argp_base_name
44919 * lib/argp-pin.c: New file. Defines program_invocation_name and
44920 program_invocation_short_name on systems that lack them.
44922 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
44924 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
44925 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
44926 porting problem reported by Georg Schwarz in
44927 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
44929 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
44931 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
44932 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
44933 porting problem reported by Georg Schwarz in
44934 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
44936 2005-12-05 Bruno Haible <bruno@clisp.org>
44938 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
44939 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
44940 Reported by Mark Junker <mjscod@gmx.de>.
44942 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
44944 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
44945 Use implementation from Albert Chin, with some
44946 comments/corrections by Stepan Kasal and myself.
44948 2005-12-02 Bruno Haible <bruno@clisp.org>
44950 * gnulib-tool (func_import): Accept GPLed build tool modules when
44952 * modules/csharpcomp-script: New file.
44953 * modules/csharpcomp: Depend on it.
44954 * modules/javacomp-script: New file.
44955 * modules/javacomp: Depend on it.
44956 Suggested by Simon Josefsson.
44958 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
44960 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
44961 statement, to work around an HP-UX 10.20 compiler bug reported by
44964 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
44966 * modules/savedir (Depends-on): Add openat.
44968 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
44970 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
44971 (uintmax_t) [defined uintmax_t]: Do not declare.
44972 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
44973 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
44974 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
44975 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
44976 sake of portability to weird hosts that C allows (though we don't
44977 know of any practical examples).
44979 * lib/savedir.h (fdsavedir): New decl.
44980 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
44981 contains most of the former guts of savedir.
44982 (savedir): Use savedirstream.
44983 Include "openat.h".
44985 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
44987 * modules/obstack (Files): Add m4/ulonglong.m4.
44988 Problem reported by Davide Angelocola.
44990 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
44992 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
44993 coreutils no longer futzes with rounding modes.
44995 2005-11-14 Jim Meyering <jim@meyering.net>
44997 * lib/mkstemp-safer.c: Include <config.h>, required for possible
44998 replacement of mkstemp.
45000 2005-11-10 Simon Josefsson <jas@extundo.com>
45002 * lib/readline.c: Remove EOL.
45004 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
45006 * modules/gethrxtime (Depends-on): Add gettime.
45008 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
45010 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
45011 or gettimeofday; no longer needed.
45013 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
45015 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
45017 (gethrxtime) [! (HAVE_NANOUPTIME
45018 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
45019 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
45020 our own approximation.
45022 2005-11-08 Eric Blake <ebb9@byu.net>
45024 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
45026 2005-11-08 Eric Blake <ebb9@byu.net>
45028 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
45030 2005-11-04 Bruno Haible <bruno@clisp.org>
45032 * gnulib-tool: Implement --update mode.
45034 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
45036 Fix porting problem reported by Theodoros V. Kalamatianos.
45037 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
45038 Don't assume that futimes failing means we must fail.
45040 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
45042 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
45043 variables to suggest the intended function of the PATH_MAX check.
45045 2005-10-30 Kean Johnston <jkj@sco.com>
45047 Trivial changes to support SCO systems.
45048 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
45050 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
45051 where __ptr is null when no I/O is pending.
45053 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
45055 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
45056 leave errno alone. Problem reported by Dmitry V. Levin.
45058 2005-10-28 Simon Josefsson <jas@extundo.com>
45060 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
45063 * tests/test-gc-md2.c, tests/test-md2.c: New files.
45065 * modules/md2, modules/md2-tests: New files.
45067 2005-10-28 Simon Josefsson <jas@extundo.com>
45069 * m4/inet_ntop.m4: More tests.
45071 * m4/gc-md2.m4, md2.m4: New file.
45073 2005-10-28 Simon Josefsson <jas@extundo.com>
45075 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
45076 "restrict" keywords, as per POSIX. Protect the function
45077 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
45078 Don't use K&R prototypes. Check the sprintf return values.
45079 Re-define EAFNOSUPPORT if not present. Indent.
45081 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
45082 suggested by Bruno Haible <bruno@clisp.org>.
45084 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
45086 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
45088 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
45091 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
45093 * lib/md2.h, lib/md2.c: New files.
45095 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
45097 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
45098 errno alone. Problem reported by Frederic Jolliton.
45100 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
45102 * modules/verify (License): Change from GPL to LGPL. This is a
45103 tiny module and there are apparently near-equivalents that are
45104 under the BSD license.
45106 2005-10-24 Simon Josefsson <jas@extundo.com>
45108 * modules/sha1: Relicense to LGPL.
45110 2005-10-24 Simon Josefsson <jas@extundo.com>
45112 * lib/md4.h: Shrink buffer size, now that we changed the type.
45114 2005-10-23 Simon Josefsson <jas@extundo.com>
45116 * gnulib-tool (func_import): Fix --tests-base.
45118 2005-10-22 Simon Josefsson <jas@extundo.com>
45120 * modules/arcfour (Depends-on): Need stdint.
45122 2005-10-22 Simon Josefsson <jas@extundo.com>
45124 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
45125 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
45127 2005-10-22 Simon Josefsson <jas@extundo.com>
45129 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
45130 suggested by Bruno Haible <bruno@clisp.org>.
45132 2005-10-22 Simon Josefsson <jas@extundo.com>
45134 * lib/crc.h: Include stddef.h, for size_t.
45136 2005-10-22 Simon Josefsson <jas@extundo.com>
45138 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
45139 arcfour_context struct (simplify test vector testing in GNU
45142 2005-10-21 Simon Josefsson <jas@extundo.com>
45144 * modules/des, modules/des-tests: New files.
45146 * modules/gc-des, modules/gc-des-tests: New files.
45148 * tests/test-des.c, tests/test-gc-des.c: New file.
45150 2005-10-21 Simon Josefsson <jas@extundo.com>
45152 * modules/arctwo, modules/arctwo-tests: New files.
45154 * tests/test-arctwo.c: New file.
45156 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
45158 * tests/test-gc-arctwo.c: New file.
45160 2005-10-21 Simon Josefsson <jas@extundo.com>
45162 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
45163 Bruno Haible <bruno@clisp.org>.
45165 * m4/gc-des.m4: New file.
45167 2005-10-21 Simon Josefsson <jas@extundo.com>
45169 * m4/arctwo.m4: New file.
45171 * m4/gc-arctwo.m4: New file.
45173 2005-10-21 Simon Josefsson <jas@extundo.com>
45175 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
45178 2005-10-21 Simon Josefsson <jas@extundo.com>
45180 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
45183 * lib/hmac-sha1.c (hmac_sha1): Likewise.
45185 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
45186 Bruno Haible <bruno@clisp.org>.
45188 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
45191 2005-10-21 Simon Josefsson <jas@extundo.com>
45193 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
45195 2005-10-21 Simon Josefsson <jas@extundo.com>
45197 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
45199 2005-10-21 Simon Josefsson <jas@extundo.com>
45201 * lib/des.h, lib/des.c: New files.
45203 * lib/gc-gnulib.c: Support DES.c
45205 2005-10-21 Simon Josefsson <jas@extundo.com>
45207 * lib/arctwo.h, lib/arctwo.c: New files.
45209 * lib/gc-gnulib.c: Support ARCTWO.
45211 2005-10-21 Simon Josefsson <jas@extundo.com>
45213 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
45214 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45216 2005-10-21 Simon Josefsson <jas@extundo.com>
45218 * gnulib-tool (func_import, func_create_testdir): Define automake
45219 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
45220 Makefile.am snippet),
45221 suggested by Bruno Haible <bruno@clisp.org>.
45223 * modules/gc (Makefile.am): Use it.
45225 2005-10-21 Bruno Haible <bruno@clisp.org>
45227 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
45230 2005-10-19 Simon Josefsson <jas@extundo.com>
45232 * tests/test-gc-rijndael.c: New file.
45234 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
45236 2005-10-19 Simon Josefsson <jas@extundo.com>
45238 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
45241 2005-10-19 Simon Josefsson <jas@extundo.com>
45243 * tests/test-gc-arcfour.c: New file.
45245 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
45247 2005-10-19 Simon Josefsson <jas@extundo.com>
45249 * modules/gc-md4, modules/gc-md4-tests: New file.
45251 * tests/test-gc-md4.c: New file.
45253 2005-10-19 Simon Josefsson <jas@extundo.com>
45255 * m4/gc-md4.m4: New file.
45257 2005-10-19 Simon Josefsson <jas@extundo.com>
45259 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
45260 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
45263 2005-10-19 Simon Josefsson <jas@extundo.com>
45265 * m4/gc-arcfour.m4: New file.
45267 * m4/gc-rijndael.m4: New file.
45269 2005-10-19 Simon Josefsson <jas@extundo.com>
45271 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
45273 2005-10-19 Simon Josefsson <jas@extundo.com>
45275 * lib/gc-gnulib.c: Support ARCFOUR.
45277 2005-10-19 Simon Josefsson <jas@extundo.com>
45279 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
45282 * lib/gc.h: Add ECB enum type.
45284 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
45286 2005-10-18 Simon Josefsson <jas@extundo.com>
45288 * tests/test-md5.c: New file.
45290 * modules/md5-tests: New file.
45292 2005-10-18 Simon Josefsson <jas@extundo.com>
45294 * tests/test-md4.c: New file.
45296 * modules/md4, modules/md4-tests: New files.
45298 2005-10-18 Simon Josefsson <jas@extundo.com>
45300 * m4/md4.m4: New file.
45302 2005-10-18 Simon Josefsson <jas@extundo.com>
45304 * lib/md4.h, lib/md4.c: New files, based on md5.?.
45306 2005-10-17 Stepan Kasal <kasal@ucw.cz>
45308 * gnulib-tool (func_create_testdir): Omit the second check whether
45309 BUILT_SOURCES in nonempty.
45311 2005-10-17 Simon Josefsson <jas@extundo.com>
45313 * tests/test-rijndael.c: New file.
45315 2005-10-17 Simon Josefsson <jas@extundo.com>
45317 * modules/sha1: Depend on stdint instead of md5.
45319 * modules/md5: Depend on stdint, remove uint32_t.
45321 2005-10-17 Simon Josefsson <jas@extundo.com>
45323 * modules/gc-sha1-tests: New file.
45325 * tests/test-gc-sha1.c: New file.
45327 2005-10-17 Simon Josefsson <jas@extundo.com>
45329 * m4/md5.m4: Remove call to uint32_t.m4.
45331 2005-10-17 Simon Josefsson <jas@extundo.com>
45333 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
45335 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
45338 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
45340 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
45342 2005-10-17 Simon Josefsson <jas@extundo.com>
45344 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
45346 2005-10-17 Simon Josefsson <jas@extundo.com>
45348 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
45350 2005-10-17 Simon Josefsson <jas@extundo.com>
45352 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
45354 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
45356 2005-10-17 Bruno Haible <bruno@clisp.org>
45358 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
45359 that it can also be used in a test.
45361 2005-10-16 Bruno Haible <bruno@clisp.org>
45363 * gnulib-tool (func_emit_tests_Makefile_am): Also define
45364 TESTS_ENVIRONMENT, so that individual tests can augment it.
45366 * gnulib-tool (func_create_testdir): Use an intermediate target for
45367 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
45368 macros, like $(ALLOCA_H), which cannot be passed through the command
45371 2005-10-15 Simon Josefsson <jas@extundo.com>
45373 * modules/rijndael-tests: New file.
45375 * modules/rijndael: New file.
45377 2005-10-15 Simon Josefsson <jas@extundo.com>
45379 * m4/rijndael.m4: New file.
45381 2005-10-15 Simon Josefsson <jas@extundo.com>
45383 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
45385 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
45387 2005-10-14 Simon Josefsson <jas@extundo.com>
45389 * tests/test-arcfour.c: New file.
45391 * modules/arcfour, modules/arcfour-tests: New files.
45393 2005-10-14 Simon Josefsson <jas@extundo.com>
45395 * m4/arcfour.m4: New file.
45397 2005-10-14 Simon Josefsson <jas@extundo.com>
45399 * lib/arcfour.h, lib/arcfour.c: New files.
45401 2005-10-14 Roland McGrath <roland@redhat.com>
45403 Import from libc. [BZ #1331]
45404 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
45406 Reported by Matej Vela <vela@debian.org>.
45408 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
45410 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
45411 include <wchar.h>; no longer needed.
45413 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
45415 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
45417 2005-10-14 Jakub Jelinek <jakub@redhat.com>
45418 and Ulrich Drepper <drepper@redhat.com>
45421 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
45422 instead of inline stream orientation test and two separate
45423 function calls. Pay no attention to USE_IN_LIBIO.
45425 2005-10-13 Simon Josefsson <jas@extundo.com>
45427 * modules/gc-hmac-md5-tests: New file.
45429 * tests/test-gc-hmac-sha1.c: New file.
45431 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
45433 * modules/gc-hmac-md5-tests: New file.
45435 * tests/test-gc-md5.c: New file.
45437 * modules/gc-md5-tests: New file.
45439 2005-10-13 Simon Josefsson <jas@extundo.com>
45441 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
45442 Move memory allocation outside of loop.
45444 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
45446 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
45447 intermediate directory is in a read-only file system. Problem
45448 reported by Eric Blake.
45450 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
45452 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
45454 2005-10-12 Simon Josefsson <jas@extundo.com>
45456 * tests/test-hmac-sha1.c: New file.
45458 * modules/hmac-sha1-tests: New file.
45460 * modules/hmac-sha1: New file.
45462 2005-10-12 Simon Josefsson <jas@extundo.com>
45464 * modules/gc-sha1: New file.
45466 2005-10-12 Simon Josefsson <jas@extundo.com>
45468 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
45470 * tests/test-gc-pbkdf2-sha1.c: New file.
45472 2005-10-12 Simon Josefsson <jas@extundo.com>
45474 * modules/gc-md5, modules/gc-hmac-md5: New files.
45476 * modules/gc (Files): Remove md5, memxor and hmac files.
45478 2005-10-12 Simon Josefsson <jas@extundo.com>
45480 * m4/gc-pbkdf2-sha1.m4: New file.
45482 * m4/gc-hmac-sha1.m4: New file.
45484 * m4/gc-sha1: New file.
45486 * m4/hmac-sha1.m4: New file.
45488 2005-10-12 Simon Josefsson <jas@extundo.com>
45490 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
45492 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
45494 2005-10-12 Simon Josefsson <jas@extundo.com>
45496 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
45497 suggested by Bruno Haible <bruno@clisp.org>.
45499 2005-10-12 Simon Josefsson <jas@extundo.com>
45501 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
45503 2005-10-12 Simon Josefsson <jas@extundo.com>
45505 * lib/gc-pbkdf2-sha1.c: New file.
45507 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
45509 2005-10-12 Simon Josefsson <jas@extundo.com>
45511 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
45513 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
45515 2005-10-12 Simon Josefsson <jas@extundo.com>
45517 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
45518 GC_USE_HMAC_MD5, respectively.
45520 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
45521 (gc_md5): Fix typo.
45523 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
45525 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
45527 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
45529 2005-10-12 Bruno Haible <bruno@clisp.org>
45531 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
45532 Reported by Stepan Kasal <kasal@ucw.cz>.
45534 2005-10-11 Simon Josefsson <jas@extundo.com>
45536 * tests/test-crc.c: New file.
45538 * modules/crc, modules/crc-tests: New files.
45540 2005-10-11 Simon Josefsson <jas@extundo.com>
45542 * m4/crc.m4: New file.
45544 2005-10-11 Simon Josefsson <jas@extundo.com>
45546 * lib/gc.h: Add gc_hash and gc_hash_buffer.
45548 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
45550 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
45552 2005-10-11 Simon Josefsson <jas@extundo.com>
45554 * lib/crc.h, lib/crc.c: New files.
45556 * lib/gc.h (gc_hash_buffer): Add doc.
45558 2005-10-11 Bruno Haible <bruno@clisp.org>
45560 * modules/c-strcasestr: New file.
45561 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
45563 2005-10-11 Bruno Haible <bruno@clisp.org>
45565 * modules/c-strcase: New file.
45566 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
45568 2005-10-11 Bruno Haible <bruno@clisp.org>
45570 * lib/strcasecmp.c: Include limits.h.
45571 (strcasecmp): Avoid integer overflow on exotic platforms.
45572 * lib/strncasecmp.c: Include limits.h.
45573 (strncasecmp): Avoid integer overflow on exotic platforms.
45574 Reported by Paul Eggert.
45576 2005-10-11 Bruno Haible <bruno@clisp.org>
45578 * lib/c-strcasestr.h: New file, from GNU gettext.
45579 * lib/c-strcasestr.c: New file, from GNU gettext.
45581 2005-10-11 Bruno Haible <bruno@clisp.org>
45583 * lib/c-strcase.h: New file, from GNU gettext.
45584 * lib/c-strcasecmp.c: New file, from GNU gettext.
45585 * lib/c-strncasecmp.c: New file, from GNU gettext.
45587 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
45589 * modules/mempcpy (License): GPL -> LGPL.
45590 * modules/strchrnul (License): Likewise.
45591 * modules/sysexits (License): Likewise.
45593 2005-10-08 Simon Josefsson <jas@extundo.com>
45595 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
45597 2005-10-07 Simon Josefsson <jas@extundo.com>
45599 * m4/memxor.m4: Remove gl_C_RESTRICT call.
45601 2005-10-06 Simon Josefsson <jas@extundo.com>
45603 * tests/test-hmac-md5.c: New file.
45605 * modules/hmac-md5-tests: New file.
45607 * modules/hmac-md5: New file.
45609 2005-10-06 Simon Josefsson <jas@extundo.com>
45611 * m4/hmac-md5.m4: New file.
45613 * m4/memxor.m4: Require gl_C_RESTRICT.
45615 2005-10-06 Simon Josefsson <jas@extundo.com>
45617 * lib/memxor.c (memxor): Avoid casts and warnings.
45619 2005-10-06 Simon Josefsson <jas@extundo.com>
45621 * lib/hmac-md5.c: New file.
45623 * lib/hmac.h: New file.
45625 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
45627 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
45628 promotes to int, not unsigned int, to catch the AIX 5.3
45631 2005-10-05 Simon Josefsson <jas@extundo.com>
45633 * modules/memxor: New file.
45635 * modules/iconv (Files): Move config.rpath to havelib, it is used
45638 * modules/havelib (Files): Add config.rpath.
45640 2005-10-05 Simon Josefsson <jas@extundo.com>
45642 * m4/memxor.m4: New file.
45644 2005-10-05 Simon Josefsson <jas@extundo.com>
45646 * lib/memxor.c (memxor): Fix compiler error.
45648 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
45649 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
45651 * lib/memxor.h, lib/memxor.c: New files.
45653 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
45654 we assume all systems have it, suggested by Jim Meyering
45655 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
45656 any systems lack sys/socket.h; mingw32 is known to lack it, but we
45657 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
45660 2005-10-05 Simon Josefsson <jas@extundo.com>
45662 * config/srclist.txt: Add glibc bug 1423 for md5.h.
45664 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
45666 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
45667 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
45668 needed, since the source code now assumes these .h files.
45670 2005-10-05 Derek Price <derek@ximbiot.com>
45672 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
45674 2005-10-05 Bruno Haible <bruno@clisp.org>
45676 * modules/stdint (License): Change to LGPL.
45678 2005-10-04 Simon Josefsson <jas@extundo.com>
45680 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
45681 D. Baushke" <mdb@gnu.org>.
45683 2005-10-04 Bruno Haible <bruno@clisp.org>
45685 * lib/verify.h (verify_true): Provide alternative definition for C++.
45687 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
45689 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
45690 (SSIZE_MAX): New macro, if not already defined.
45691 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
45694 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
45696 Sync from coreutils.
45697 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
45698 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
45699 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
45700 ULLONG_MAX doesn't work with 2.7.2.1.
45702 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
45704 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
45707 * modules/exclude (Depends-on): Depend on verify.
45708 * modules/strtoimax (Depends-on): Likewise.
45709 * modules/utimecmp (Depends-on): Likewise.
45711 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
45713 * lib/exclude.c: Include verify.h.
45714 (verify): Remove. All callers changed to use verify.h's version.
45715 * lib/strtoimax.c: Likewise.
45716 * lib/utimecmp.c: Likewis.e
45718 Sync from coreutils.
45719 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
45720 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
45721 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
45722 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
45723 bother returning ENOSYS if settimeofday or stime fails; just let
45724 them return whatever errno they want to return.
45725 * lib/utimens.c: Include unistd.h, for dup2.
45726 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
45727 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
45729 2005-10-02 Jim Meyering <jim@meyering.net>
45731 Sync from coreutils.
45732 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
45733 from glibc-2.2.5 that fails for read-only files.
45735 2005-10-02 Jim Meyering <jim@meyering.net>
45737 Sync from coreutils.
45738 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
45739 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
45740 `#if HAVE_CONFIG_H'.
45741 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
45742 Remove AT_FDCWD test.
45743 Do not consume the fd unless successful.
45744 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
45745 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
45746 block, so that we don't even try to compile it if settimeofday is
45747 available. This works around a compilation failure on OSF1 V5.1,
45748 due to stime requiring a `long int*' while tv_sec is `int'.
45750 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
45752 Sync from coreutils.
45753 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
45754 against `yes', rather than just testing for nonempty.
45756 2005-10-01 Simon Josefsson <jas@extundo.com>
45758 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
45761 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
45762 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
45763 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
45764 freeaddrinfo and gai_strerror are declared by the POSIX headers.
45765 Check if struct addrinfo is declared.
45767 2005-10-01 Simon Josefsson <jas@extundo.com>
45769 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
45770 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
45771 AI_* and EAI_* definitions. Protect function declarations.
45773 2005-10-01 Jim Meyering <jim@meyering.net>
45775 Sync from coreutils.
45777 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
45778 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
45779 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
45780 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
45781 in the inet and nsl libraries. Required on Solaris 5.7.
45783 2005-10-01 Jim Meyering <jim@meyering.net>
45785 Sync from coreutils.
45786 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
45787 in the inet and nsl libraries. Required on Solaris 5.7.
45789 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
45791 * lib/getdelim.c (getdelim): Remove unused variables.
45793 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
45795 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
45796 so that the code works even with ancient cpp. Portability problem
45797 with GCC 2.7.2.1 reported by Thomas M.Ott.
45799 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
45801 * modules/regex (Depends-on): Add strcase.
45803 * modules/gethostname (Licence): Change from GPL to LGPL, since
45804 gethostname.c is a trivial implementation of a standard library
45806 * modules/poll (License): Change from GPL to LGPL, since it's
45807 derived from LGPL code.
45809 2005-09-27 Jim Meyering <jim@meyering.net>
45811 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
45814 * lib/intprops.h (signed_type_or_expr__): Define.
45815 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
45816 for unsigned types.
45818 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
45820 * lib/verify.h (verify_expr): Remove, replacing with:
45821 (verify_true): New macro that returns true instead of void.
45822 (verify_type__): Remove.
45823 (verify): Use verify_true rather than verify_type__.
45825 2005-09-26 Bruno Haible <bruno@clisp.org>
45827 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
45829 (lib_SOURCES): Remove mbchar.c.
45830 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
45831 (Files): Add m4/mbrtowc.m4.
45832 * modules/mbiter: Likewise.
45833 * modules/mbuiter: Likewise.
45835 2005-09-26 Bruno Haible <bruno@clisp.org>
45837 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
45838 compile mbchar.c if they are not both present.
45839 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
45840 * m4/mbiter.m4 (gl_MBITER): Likewise.
45841 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
45842 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
45843 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
45845 2005-09-25 Jim Meyering <jim@meyering.net>
45847 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
45848 also uses socklen_t.
45850 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
45852 * lib/utimens.c (ENOSYS): Define if not already defined.
45853 (futimens): Support having a null PATH if the file descriptor
45856 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
45858 (__attribute): Define to empty unless GCC 3.1 or later.
45859 This works around a core dump on OpenBSD 3.4, which has GCC
45860 2.95.3, which dumps core when given __attribute__(()). It also
45861 simplifies other tests, since we really don't want to bother with
45862 worrying about which ancient version of GCC supported what.
45863 Original problem reported by Yoann Vandoorselaere, with part of
45864 the fix suggested by Derek Price.
45866 2005-09-24 Jim Meyering <jim@meyering.net>
45868 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
45869 so we can once again use a positive bitfield width of 1 -- now we
45870 don't have to explain why we were using a bitfield width of 2.
45872 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
45874 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
45875 and similarly for the other external symbols. Problem reported
45878 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
45879 bug reported by Jim Meyering.
45881 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
45882 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
45883 not needed, since socklen is a prerequisite module.
45885 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
45887 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
45888 Problem reported by Eric Blake.
45889 (getaddrinfo): Initialize se so that it's not garbage.
45890 Redo internal storage allocation so that it doesn't make unportable
45891 assumptions about alignment.
45894 * lib/utimens.c (futimens): Use futimesat if available.
45895 Prefer it to futimes since it doesn't have the futimes bug.
45897 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
45898 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
45899 Instead, declare a function that returns a pointer to an array,
45900 and use verify_type__ to declare the size of the array.
45901 Problem and germ of a solution reported by Bruno Haible.
45902 (verify_type__): Use 2, not 1, for bitfield size, to avoid
45903 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
45905 2005-09-23 Jim Meyering <jim@meyering.net>
45907 Sync from coreutils.
45908 Correct build failure (socklen_t not defined) on at least
45909 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
45910 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
45912 2005-09-23 Jim Meyering <jim@meyering.net>
45914 * modules/getaddrinfo (Depends-on): Add socklen.
45916 2005-09-23 Bruno Haible <bruno@clisp.org>
45918 * tests/test-verify.c: New file.
45920 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
45922 Sync from coreutils.
45924 * modules/argmatch (Depends-on): Add verify.
45925 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
45927 * modules/save-cwd (Depends-on): Likewise.
45929 * modules/openat (Files): Add lib/openat-die.c.
45930 (Depends-on): Remove error, exitfail.
45933 * modules/verify: New file.
45934 * MODULES.html.sh (Diagnostics <assert.h>): New section,
45935 with "verify" module.
45937 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
45939 Sync from coreutils.
45941 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
45942 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
45943 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
45944 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
45945 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
45946 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
45947 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
45948 Don't bother checking for string.h, stdlib.h, unistd.h.
45949 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
45950 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
45952 * m4/jm-macros.m4 (gl_MACROS): Likewise.
45953 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
45955 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
45956 (gl_GETDATE): Use it.
45958 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
45960 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
45962 Sync from coreutils.
45964 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
45966 * lib/argmatch.h: Include verify.h
45967 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
45968 (ARGMATCH_ASSERT): Remove; unused.
45969 * lib/canonicalize.c: Assume STDC_HEADERS.
45970 * lib/exclude.c: Include "strcase.h".
45971 * lib/regex_internal.h [!defined _LIBC]: Likewise.
45972 * lib/getusershell.c: Include stdio--.h rather than stdio.h
45974 (getusershell): Call fopen, not fopen_safer.
45975 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
45976 Do not include unistd-safer.h.
45977 (save_cwd): Don't call fd_safer; no longer needed
45978 now that we include fcntl--.h.
45980 * lib/getdate.y (relative_time): New type.
45981 (RELATIVE_TIME_0): New constant.
45982 (parser_control): Use relative_time instead of doing it ourselves.
45983 (%union): Add new relative_time rel member.
45984 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
45986 (relunit, relunit_snumber): Now of type rel.
45987 (zone, rel, relunit, get_date): Adjust to above changes.
45989 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
45990 Do not include unistd-safer.h.
45991 (getloadavg): Don't call fd_safer; no longer needed
45992 now that we include fcntl--.h.
45994 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
45995 (make_dir_parents): Treat ENOSYS like EEXIST.
45997 Improve quality of diagnostics on restore_cwd failure.
45998 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
45999 (make_dir_parents): Last arg is now int * (for errno), not bool *.
46000 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
46001 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
46002 each time through the loop. Do not diagnose restore_cwd failure;
46003 that is the caller's job (and perhaps the caller does not care).
46005 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
46006 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
46007 If the file already exists but is not a directory, don't bother
46008 to try to make its parents.
46009 Close potential file descriptor leak if we can't chdir("/") (!).
46010 Don't always return true if chdir($PWD) fails; return true only
46011 if the requested action was done successfully (except for the
46013 Don't log final directory unless we actually made it.
46014 Refactor to avoid duplicate code to fix up permissions.
46015 Don't attempt to fix up parent permissions if chdir($PWD) fails.
46017 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
46018 to make it a bit faster and (I hope) clearer.
46019 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
46020 Fix bug in formats like %2N.
46022 * lib/verify.h: New file.
46024 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
46026 Sync from coreutils.
46027 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
46029 2005-09-22 Jim Meyering <jim@meyering.net>
46031 Sync from coreutils.
46033 * m4/lstat.m4 (gl_FUNC_LSTAT):
46034 Use AC_LIBSOURCES to require lstat.c and lstat.h.
46035 Remove obsolete comment.
46036 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
46037 * m4/xstrtod.m4: Likewise.
46039 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
46041 2005-09-22 Jim Meyering <jim@meyering.net>
46043 Sync from coreutils.
46045 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
46047 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
46048 the .tm_year member, since otherwise gcc-4.0 would now warn about
46049 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
46051 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
46052 order to avoid an unsuppressible warning from gcc on 64-bit systems.
46054 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
46055 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
46056 when run in a time zone for which daylight savings time is in effect
46057 for the starting date.
46059 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
46060 stop us from restricting permissions of just-created absolute-named
46062 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
46063 to restore initial working directory.
46064 * lib/mkdir-p.c (make_dir_parents): New parameter:
46065 different_working_dir, to tell caller if/when we change the working
46066 directory and are unable to return to the initial one.
46067 * lib/mkdir-p.h (make_dir_parents): Update prototype.
46068 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
46069 `return false'. This fixes a bug introduced on 2004-07-30.
46071 * lib/openat.c (fdopendir): Be sure to close the supplied
46072 file descriptor before returning. This makes our replacement
46073 implementation a little closer to Solaris's, where fdopendir
46074 ties the file descriptor to the returned DIR* pointer.
46075 * lib/openat.c (unlinkat): New function.
46076 * lib/openat.h (unlinkat): Add prototype.
46077 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
46078 (openat_restore_fail): Rename from openat_restore_die.
46079 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
46081 Provide an alternative to exiting immediately upon save_cwd or
46082 restore_cwd failure. Now, an application can arrange e.g.,
46083 to perform a longjump in that case.
46084 * lib/openat.c: Include dirname.h.
46085 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
46086 (rpl_openat, fdopendir, fstatat): Call openat_save_die
46087 and openat_restore_die rather than calling error directly.
46088 Don't include "error.h" or "exitfail.h"; they're no longer needed.
46090 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
46091 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
46094 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
46095 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
46096 int utc, int nanoseconds);
46098 date should not have to allocate a megabyte of virtual memory to
46099 handle a format argument like +%1048575T. When implemented with
46100 strftime, it must allocate such a buffer, use strftime to fill it
46101 in, print it, then free it.
46102 With fprintftime, it simply prints everything and exits.
46103 With no need for memory allocation, that's one fewer way to fail.
46104 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
46105 optional field width, not before, so we accept %9:z, not %:9z.
46106 (my_strftime): Be sure to use L_('x') for literals.
46108 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
46109 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
46110 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
46111 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
46112 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
46113 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
46114 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
46115 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
46116 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
46117 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
46118 * lib/xgethostname.c, lib/xreadlink.c:
46119 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
46121 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
46122 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
46123 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
46124 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
46125 and don't include <sys/file.h>).
46127 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
46129 Sync from coreutils.
46131 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
46132 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
46133 [!LDAV_DONE]: Avoid unused variable warning.
46135 2005-09-21 Bruno Haible <bruno@clisp.org>
46137 * lib/unicodeio.h (unicode_to_mb): New declaration.
46139 2005-09-20 Derek Price <derek@ximbiot.com>
46141 * lib/getaddrinfo.c: Don't include <netdb.h> included from
46144 2005-09-20 Bruno Haible <bruno@clisp.org>
46146 * gnulib-tool: Remove trailing slashes from the values specified for
46147 --source-base, --m4-base, --tests-base, --aux-dir.
46148 Suggested by Simon Josefsson <jas@extundo.com>.
46150 2005-09-20 Bruno Haible <bruno@clisp.org>
46152 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
46153 func_modules_to_filelist, func_import, func_create_testdir): Make all
46154 sorting results locale-independent, so that gnulib-cache.m4 doesn't
46155 change when gnulib-tool is invoked in a different locale.
46157 2005-09-19 Simon Josefsson <jas@extundo.com>
46159 * m4/socklen.m4: Fix typo.
46161 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
46163 Use a consistent style for including <config.h>.
46164 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
46165 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
46166 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
46167 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
46168 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
46169 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
46170 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
46171 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
46172 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
46173 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
46174 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
46175 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
46176 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
46177 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
46178 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
46179 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
46180 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
46181 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
46182 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
46183 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
46184 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
46185 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
46186 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
46187 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
46188 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
46189 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
46190 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
46191 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
46192 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
46193 lib/xstrtoumax.c, lib/yesno.c:
46194 Standardize inclusion of config.h.
46195 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
46196 lib/inttostr.h: Removed inclusion of config.h from header files.
46197 * lib/inttostr.c: Adjusted in-tree users.
46198 * lib/timespec.h: Remove superfluous warning to include config.h.
46199 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
46200 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
46201 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
46202 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
46203 config.h with HAVE_CONFIG_H.
46205 2005-09-19 Jim Meyering <jim@meyering.net>
46207 * modules/pathmax (License): Change to LGPL.
46209 2005-09-19 Derek Price <derek@ximbiot.com>
46211 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
46213 2005-09-19 Bruno Haible <bruno@clisp.org>
46215 * gnulib-tool (import): Provide default for --tests-base.
46217 2005-09-19 Bruno Haible <bruno@clisp.org>
46219 * doc/quote.texi: New file, extracted from gnulib.texi.
46220 * doc/ctime.texi: New file, extracted from gnulib.texi.
46221 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
46222 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
46223 * doc/gnulib.texi: Include them.
46225 2005-09-18 Bruno Haible <bruno@clisp.org>
46228 * gnulib-tool (func_readlink): New function.
46229 (func_ln_if_changed): Use it.
46231 2005-09-18 Bruno Haible <bruno@clisp.org>
46233 * gnulib-tool: Support --with-tests also with --import.
46234 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
46235 (func_import): Use variables $testsbase and $inctests. Emit a
46236 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
46237 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
46238 SUBDIRS += $testsdir.
46239 (func_create_testdir): Update.
46241 2005-09-18 Bruno Haible <bruno@clisp.org>
46243 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
46244 instead of $dry_run.
46245 (func_cp_if_changed, func_mv_if_changed): Remove functions.
46246 (func_ln_if_changed): Don't handle dry-run here.
46247 (func_import): In dry-run mode, detect more precisely which actions
46248 would be performed, and don't use "...ing" verbs.
46250 2005-09-18 Bruno Haible <bruno@clisp.org>
46252 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
46253 (func_import): Use join on two temporary files instead of three nested
46254 loops, in order to determine which files are new or old.
46256 2005-09-18 Bruno Haible <bruno@clisp.org>
46258 * gnulib-tool (func_import): Comment out code that spits out the
46259 new files with --dry-run.
46261 2005-09-18 Bruno Haible <bruno@clisp.org>
46263 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
46265 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
46267 * lib/stat-time.h: New file.
46268 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
46269 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
46270 in a different way.
46271 (timespec_cmp): New function.
46272 * lib/utimecmp.c: Include stat-time.h.
46273 (SYSCALL_RESOLUTION): Depend on whether various struct stat
46274 members exist, not on the obsolescent ST_MTIM_NSEC.
46275 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
46277 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
46279 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
46281 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
46283 * MODULES.html.sh (File system functions): Add stat-time.
46284 * modules/stat-time: New file.
46285 * modules/timespec (Files): Remove m4/st_mtim.m4; this
46286 is now done in a different way, by the stat-time module.
46287 * modules/utimecmp (Depends-on): Add stat-time.
46289 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
46291 * m4/st_mtim.m4: Remove. Superseded by...
46292 * m4/stat-time.m4: New file.
46293 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
46294 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
46296 2005-09-15 Derek Price <derek@ximbiot.com>
46298 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
46300 2005-09-15 Derek Price <derek@ximbiot.com>
46302 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
46303 * lib/regex_internal.c: Ditto, using this...
46304 (__GNUC_PREREQ): ...new macro.
46305 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
46307 (__GNUC_PREREQ): ...this new macro.
46309 * lib/strstr.h: Include string.h. Define strstr as a macro here.
46311 2005-09-15 Derek Price <derek@ximbiot.com>
46312 Paul Eggert <eggert@cs.ucla.edu>
46314 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
46315 changes, consolidating in...
46316 * lib/regex_internal.h: ...this file.
46318 2005-09-13 Jim Meyering <jim@meyering.net>
46320 * lib/canon-host.c: Filter through gnu indent and reword comments
46322 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
46324 2005-09-13 Derek Price <derek@ximbiot.com>
46326 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
46328 Reported by Jim Meyering <jim@meyering.net>.
46330 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46332 * lib/base64.c: Typo.
46333 (base64_encode): Put b64str in initialized data section.
46335 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
46337 Merge glibc and coreutils changes into gnulib, plus a few
46339 * lib/md5.c: Use #error rather than a string.
46340 (CYCLIC): New macro, from glibc source. Use it instead of rol.
46341 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
46342 (__attribute__): Define to empty for non recent-GCC.
46343 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
46344 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
46345 Renamed from their non-__ counterparts, with new macros replacing
46346 them if not _LIBC. Add __THROW attribute.
46348 (struct md5_ctx): Align buffer if using GCC.
46349 * lib/sha1.h (struct sha1_ctx): Likewise.
46350 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
46351 The old name was backwards.
46352 (NOTSWAP): Remove; not used.
46353 (rol): New macro, moved here from md5.h.
46354 (sha1_process_block): Remove a FIXME that doesn't make sense.
46356 2005-09-12 Derek Price <derek@ximbiot.com>
46358 Return usable errors from canon-host.
46359 * lib/canon-host.h: New file.
46360 * lib/canon-host.c (canon_host): Wrap...
46361 (canon_host_r): ...this new function, which now relies exclusively on
46363 (ch_strerror): New function.
46364 (last_cherror): New global.
46365 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
46367 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
46369 (freeaddrinfo): Free ai->ai_canonname when set.
46371 2005-09-12 Derek Price <derek@ximbiot.com>
46373 Make canon-host require getaddrinfo.
46374 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
46375 AC_LIBSOURCE canon-host.h. Call...
46376 (gl_PREREQ_CANON_HOST): ...this new function, which requires
46378 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
46380 2005-09-12 Derek Price <derek@ximbiot.com>
46382 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
46384 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
46386 2005-09-12 Derek Price <derek@ximbiot.com>
46388 * lib/gai_strerror.c: Include config.h when available. Include
46389 getaddrinfo.h before other headers to test interface.
46390 Reported by Larry Jones <lawrence.jones@ugs.com>.
46392 2005-09-12 Derek Price <derek@ximbiot.com>
46393 Paul Eggert <eggert@cs.ucla.edu>
46395 * modules/glob (Files): Add glob-libc.h.
46397 2005-09-12 Derek Price <derek@ximbiot.com>
46398 Paul Eggert <eggert@cs.ucla.edu>
46400 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
46401 glob_.h, glob-libc.h.
46402 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
46404 2005-09-12 Derek Price <derek@ximbiot.com>
46405 Paul Eggert <eggert@cs.ucla.edu>
46407 * lib/glob-libc.h: Renamed from glob_.h. The new version is
46408 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
46409 protecting things that should be done only in gnulib contexts.
46410 * lib/glob_.h: New file, containing only the glob things needed for
46412 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
46413 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
46414 (glob, globfree, glob_pattern_p): Now defined simply in terms of
46415 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
46416 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
46417 and to respect the namespace rules better.
46419 2005-09-08 Simon Josefsson <jas@extundo.com>
46421 * modules/socklen: New file.
46423 2005-09-08 Simon Josefsson <jas@extundo.com>
46425 * m4/socklen.m4: New file.
46427 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
46429 * modules/utimens (Files): Add m4/utimbuf.m4, since
46430 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
46431 Reported by Sergey Poznyakoff.
46433 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
46435 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
46436 definitions, since that's the preferred style in glibc.
46437 Fix a minor spacing issue, and update copyright notice to match
46440 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
46442 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
46444 2005-09-06 Simon Josefsson <jas@extundo.com>
46446 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
46447 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
46449 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
46451 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
46454 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
46456 * config/srclist.txt: Add glibc bug 1302.
46458 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
46460 Change bitset word type from unsigned int to unsigned long int,
46461 as this has better performance on typical 64-bit hosts.
46462 Port bitset code to hosts with unusual word sizes.
46463 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
46464 (build_collating_symbol):
46465 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
46466 argument is a bitset. This is merely a style issue, but it makes
46467 it clearer that an entire array is expected.
46468 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
46469 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
46470 Port to the case where bitset_word is not the same as unsigned int.
46471 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
46472 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
46474 * lib/regexec.c (check_dst_limits_calc_pos_1,
46475 check_subexp_matching_top):
46476 (build_trtable, group_nodes_into_DFAstates):
46478 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
46479 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
46480 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
46481 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
46482 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
46483 * lib/regcomp.c (optimize_subexps, lower_subexp):
46484 Work even if bitset_word has holes in its bitwise representation.
46485 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
46486 * lib/regexec.c (check_dst_limits_calc_pos_1,
46487 check_subexp_matching_top):
46489 * lib/regex_internal.c (re_string_reconstruct):
46490 Don't assume UCHAR_MAX == 255.
46491 * lib/regex_internal.h (bitset_set_all): Likewise.
46492 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
46494 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
46495 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
46497 (BITSET_WORD_MAX): New macro.
46498 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
46499 (bitset_set_all, bitset_copy): Now inline functions, not macros.
46500 (bitset_empty, bitset_copy):
46501 Prefer sizeof (bitset) to multiplying it out ourselves.
46502 (bitset_not_merge): Remove; unused.
46503 (bitset_contain): Return bool, not unsigned int with one bit on.
46504 All callers changed.
46505 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
46506 alignment than re_node_set; do this by defining a new internal
46507 type struct dests_alloc and using it to allocate memory.
46509 2005-09-05 Bruno Haible <bruno@clisp.org>
46511 * gnulib-tool (func_import): Fix comparison in handling of symbolic
46514 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
46516 * modules/size_max (Makefile.am): Add size_max.h
46518 2005-09-04 Derek Price <derek@ximbiot.com>
46520 * gnulib-tool (func_import): Fix reversed $symbolic logic.
46522 2005-09-03 Simon Josefsson <jas@extundo.com>
46524 * gnulib-tool: Fix typo.
46526 2005-09-03 Simon Josefsson <jas@extundo.com>
46528 * config/srclist.txt: Add glibc bug 1293.
46530 2005-09-03 Derek Price <derek@ximbiot.com>
46532 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
46533 From Larry Jones <lawrence.jones@ugs.com>.
46535 2005-09-02 Simon Josefsson <jas@extundo.com>
46537 * modules/socklen: New file.
46539 2005-09-02 Simon Josefsson <jas@extundo.com>
46541 * modules/havelib: New module.
46543 * modules/gettext, modules/iconv, modules/lock, modules/readline:
46546 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
46548 Check for arithmetic overflow when calculating sizes, to prevent
46549 some buffer-overflow issues. These patches are conservative, in the
46550 sense that when I couldn't determine whether an overflow was possible,
46551 I inserted a run-time check.
46552 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
46554 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
46555 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
46556 (re_xnrealloc, re_x2nrealloc): New inline functions.
46557 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
46558 parse_bracket_exp):
46559 (build_equiv_class, build_charclass): Check for arithmetic overflow
46560 in size expression calculations.
46561 * lib/regex_internal.c (re_string_realloc_buffers):
46562 (build_wcs_upper_buffer, re_node_set_add_intersect):
46563 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
46564 (re_dfa_add_node, register_state): Likewise.
46565 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
46566 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
46567 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
46568 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
46570 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
46572 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
46573 m4/ulonglong.m4. Problem reported by Martin Lambers.
46575 2005-09-02 Bruno Haible <bruno@clisp.org>
46577 Support for lib vs. lib64 distinction on biarch platforms.
46578 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
46579 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
46580 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
46582 2005-09-02 Bruno Haible <bruno@clisp.org>
46584 * gnulib-tool (import): In the other first-use case, provide defaults
46587 2005-09-02 Bruno Haible <bruno@clisp.org>
46589 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
46590 patches not yet found in the latest gettext release.
46592 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
46594 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
46595 to avoid a collision with bits/local_lim.h in glibc.
46596 All uses changed. Problem reported by Dmitry V. Levin in
46597 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
46599 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
46600 bugs in int versus size_t comparisons.
46601 (re_string_context_at): Fix bug where the code assumed that
46604 Use bool where appropriate.
46605 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
46606 All callers changed.
46607 (calc_eclosure_iter): Likewise, for ROOT arg.
46608 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
46609 (build_charclass_op): Likewise, for NON_MATCH arg.
46610 * lib/regex_internal.c (re_string_allocate, re_string_construct):
46611 (re_string_construct_common): Likewise, for ICASE arg.
46612 * lib/regexec.c (re_search_2_stub, re_search_stub):
46613 Likewise, for RET_LEN arg.
46614 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
46615 (set_regs): Likewise, for FL_BACKTRACK arg.
46616 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
46617 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
46618 (calc_eclosure_iter, parse_bracket_exp):
46619 Use bool for internal variables that are booleans.
46620 * lib/regexec.c (re_search_internal, check_matching,
46621 proceed_next_node):
46622 (set_regs, build_sifted_states, sift_states_bkref):
46623 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
46624 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
46625 (find_collation_sequence_value):
46627 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
46628 (re_node_set_compare):
46629 Return bool, not int. All callers changed.
46630 * lib/regexec.c (check_halt_node_context, check_dst_limits):
46631 (build_trtable, check_node_accept): Likewise.
46632 * lib/regex_internal.h: Include stdbool.h.
46634 Fix bugs uncovered when converting to bool.
46635 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
46636 failure instead of charging ahead blindly.
46637 * lib/regex_internal.c (register_state): Likewise.
46638 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
46639 for freeing internal storage.
46640 (group_nodes_into_DFA_states): Use unsigned int, not int, for
46641 bitset pieces used as boolean, to avoid undefined behavior
46642 on hosts that do int overflow checking.
46644 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
46646 * config/srclist.txt: Add glibc bugs 1285-1287.
46648 2005-09-01 Jim Meyering <jim@meyering.net>
46650 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
46651 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
46652 Require gl_STAT_MACROS, too.
46654 2005-09-01 Bruno Haible <bruno@clisp.org>
46656 * gnulib-tool (import): In the first-use case, provide defaults.
46658 2005-09-01 Bruno Haible <bruno@clisp.org>
46660 * gnulib-tool (func_import): Remove the .tmp files.
46662 2005-09-01 Bruno Haible <bruno@clisp.org>
46664 * gnulib-tool (func_import): Fix handling of symbolic links.
46666 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
46668 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
46669 old glibc regex code mishandles strings longer than 2**31 bytes.
46670 This patch fixes this when the regex code is used in gnulib
46671 (i.e., outside glibc).
46673 This patch should not affect the use of the regex code inside
46674 glibc. No doubt this problem also needs to be handled for glibc
46675 as well, but the result will be an incompatible change to the
46676 glibc ABI, and the old ABI will have to be supported too. That
46677 can be the the subject for another patch.
46679 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
46680 governing whether the rest of this patch is active. By default,
46681 the macro is disabled and the patch has no effect.
46682 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
46683 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
46684 (struct re_pattern_buffer, re_search, re_search_2, re_match):
46685 (re_match_2, re_set_registers): Use the new types.
46686 * lib/regex_internal.h (Idx, re_hashval_t): New types.
46687 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
46689 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
46690 (re_string_context_at, bin_tree_t, re_dfastate_t):
46691 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
46692 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
46693 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
46694 (re_string_char_size_at, re_string_wchar_at):
46695 (re_string_elem_size_at):
46696 Use the new types and macros to port to 64-bit hosts.
46697 Use unsigned types for internal values, so that the code
46698 mostly works even for arrays larger than SSIZE_MAX.
46699 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
46700 (search_duplicated_node, calc_eclosure_iter, fetch_number):
46701 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
46702 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
46703 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
46704 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
46705 (calc_inveclosure, parse_dup_op, build_range_exp):
46706 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
46707 (fetch_number, create_token_tree, mark_opt_subexp):
46709 * lib/regex_internal.c (re_string_construct_common,
46710 create_ci_newstate):
46711 (create_cd_newstate, re_string_allocate, re_string_construct):
46712 (re_string_realloc_buffers, build_wcs_upper_buffer):
46713 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
46714 (re_string_reconstruct, re_string_peek_byte_case):
46715 (re_string_fetch_byte_case, re_string_context_at):
46716 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
46717 (re_node_set_init_copy, re_node_set_add_intersect):
46718 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
46719 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
46720 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
46721 (re_acquire_state, re_acquire_state_context, register_state):
46723 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
46724 search_cur_bkref_entry):
46725 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
46726 (re_search_internal, re_search_2_stub, re_search_stub)
46727 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
46728 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
46729 (update_cur_sifted_state, check_dst_limits):
46730 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
46731 (check_subexp_limits, sift_states_bkref, merge_state_array):
46732 (check_subexp_matching_top, get_subexp, get_subexp_sub):
46733 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
46734 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
46735 (expand_bkref_cache, check_node_accept_bytes):
46736 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
46737 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
46738 (acquire_init_state_context, check_halt_node_context):
46739 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
46740 (sift_states_backward, clean_state_log_if_needed):
46741 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
46742 (find_recover_state, transit_state_sb, transit_state_mb):
46743 (transit_state_bkref, build_trtable, match_ctx_clean):
46745 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
46746 to work around an assumption that REG_MISSING is negative.
46748 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
46749 (seek_collating_symbol_entry) [defined _LIBC]:
46750 (lookup_collation_sequence_value) [defined _LIBC]:
46751 (build_range_exp, build_collating_symbol) [defined _LIBC]:
46752 Use prototypes rather than old-style function definitions.
46753 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
46754 (transit_state_sb) [0]:
46755 (find_collation_sequence_value) [defined _LIBC]: Likewise.
46757 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
46760 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
46761 (optimize_subexps, lower_subexp):
46762 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
46763 since the signed shift might overflow. Use 1u<<31 instead.
46764 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
46766 * lib/regexec.c (check_dst_limits_calc_pos_1,
46767 check_subexp_matching_top): Likewise.
46769 * lib/regcomp.c (optimize_subexps, lower_subexp):
46770 Use CHAR_BIT rather than 8, for clarity.
46771 * lib/regexec.c (check_dst_limits_calc_pos_1):
46772 (check_subexp_matching_top): Likewise.
46773 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
46774 have to worry about portability issues when shifting it left.
46775 Remove no-longer-needed test for table_size > 0.
46776 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
46777 in a word, as the resulting behavior is undefined.
46778 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
46779 in one case, a <= should have been an <, and in another case the
46780 whole test was missing.
46781 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
46782 the standard name CHAR_BIT.
46783 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
46784 this is not true on one's complement and signed-magnitude hosts.
46786 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
46788 (struct re_dfa_t): Remove unused member states_alloc.
46789 * lib/regcomp.c (init_dfa): Don't initialize unused members.
46791 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
46793 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
46794 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
46795 and large-file glibc and in 32-bit large-file Solaris.
46797 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
46799 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
46800 lengths fit in regoff_t; this isn't true if regoff_t is the same
46802 * lib/regex.c (re_search_internal): 5th arg is LAST_START
46803 (= START + RANGE) instead of RANGE. This avoids overflow
46804 problems when regoff_t is the same width as size_t.
46805 All callers changed.
46806 (re_search_2_stub): Check for overflow when adding the
46807 sizes of the two strings.
46808 (re_search_stub): Check for overflow when adding START
46809 to RANGE; if it occurs, substitute the extreme value.
46811 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
46813 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
46815 2005-08-31 Jim Meyering <jim@meyering.net>
46817 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
46818 a pointer-to-const.
46819 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
46820 (register_state): Likewise.
46821 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
46822 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
46823 (group_nodes_into_DFAstates): Likewise.
46825 2005-08-31 Jim Meyering <jim@meyering.net>
46827 * check-module: Add a FIXME comment.
46829 2005-08-31 Eric Blake <ebb9@byu.net>
46831 * modules/unistd-safer (Files): Add unistd--.h.
46832 * modules/stdio-safer (Files): Add stdio--.h.
46834 2005-08-31 Derek Price <derek@ximbiot.com>
46836 * lib/getdelim.c (getdelim): Return EOF on EOF.
46837 Reported by Larry Jones <lawrence.jones@ugs.com>.
46839 2005-08-31 Bruno Haible <bruno@clisp.org>
46841 Avoid unnecessary diffs in the generated lib/Makefile.am.
46842 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
46843 the generated files.
46844 (func_import): Don't set cmd.
46846 2005-08-31 Bruno Haible <bruno@clisp.org>
46848 * lib/strstr.c: Include <stddef.h>, for NULL.
46849 * lib/strcasestr.c: Likewise.
46850 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46852 2005-08-31 Bruno Haible <bruno@clisp.org>
46854 * gnulib-tool: New option --macro-prefix.
46855 (func_import): Use macro_prefix.
46856 (import): Handle option --macro-prefix.
46858 2005-08-31 Bruno Haible <bruno@clisp.org>
46860 * gnulib-tool (import): Rename most ac_* variables to cached_*.
46861 Also use new variables cached_lgpl, cached_libtool.
46863 2005-08-31 Bruno Haible <bruno@clisp.org>
46865 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
46866 always instantiating them.
46868 2005-08-31 Bruno Haible <bruno@clisp.org>
46870 * gnulib-tool (func_import): Read the previous cached settings
46871 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
46872 earlier added by gnulib but are now dropped. Warn when a gnulib file
46873 overwrites a non-gnulib file.
46875 2005-08-31 Bruno Haible <bruno@clisp.org>
46877 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
46878 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
46879 projects that don't keep autogenerated files in CVS. Put into
46880 actioncmd only the specified modules, not the transitive closure.
46882 2005-08-31 Bruno Haible <bruno@clisp.org>
46884 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
46885 Create directories that shall be filled.
46886 (import): Don't look for gl_* macros in configure.ac. Recurse across
46887 all directories containing a gnulib-cache.m4 files, if meaningful.
46889 2005-08-31 Bruno Haible <bruno@clisp.org>
46891 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
46892 (import): Set seen_libtool when we see gl_LIBTOOL.
46894 2005-08-31 Bruno Haible <bruno@clisp.org>
46896 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
46897 declaration macro definitions from generated gnulib.m4.
46899 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
46901 * lib/iconvme.h: Add prototype for iconv_alloc.
46903 2005-08-29 Simon Josefsson <jas@extundo.com>
46905 * lib/iconvme.c: Fix errno.
46907 2005-08-29 Bruno Haible <bruno@clisp.org>
46909 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
46910 that it works when the directory contains spaces.
46912 2005-08-29 Bruno Haible <bruno@clisp.org>
46914 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
46916 2005-08-29 Bruno Haible <bruno@clisp.org>
46918 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
46921 2005-08-29 Bruno Haible <bruno@clisp.org>
46922 and Stepan Kasal <kasal@ucw.cz>
46924 * check-module: If more parameters are given, check each of them
46925 separately; add more exceptions, as noted by Jim Meyering.
46926 (check_module): New procedure.
46927 (%exempt_header): Now contains all exceptions.
46929 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
46931 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
46933 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
46935 * lib/iconvme.c: Split iconv_string into iconv_alloc.
46937 2005-08-28 Bruno Haible <bruno@clisp.org>
46939 * m4/gnulib-tool.m4: New file.
46941 2005-08-27 Jim Meyering <jim@meyering.net>
46943 * modules/unistd-safer (Files): Add pipe-safer.c.
46944 * modules/fcntl-safer (Files): Add creat-safer.c.
46946 2005-08-27 Jim Meyering <jim@meyering.net>
46948 * m4/stdlib-safer.m4: New file. From coreutils.
46949 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
46950 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
46951 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
46952 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
46953 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
46955 2005-08-27 Jim Meyering <jim@meyering.net>
46957 * lib/fopen-safer.c: Merge minor changes from coreutils.
46958 * lib/dup-safer.c: Likewise.
46959 * lib/fd-safer.c: Likewise.
46961 Merge from coreutils.
46962 * lib/stdio--.h: New file.
46963 * lib/stdlib--.h: New file.
46964 * lib/mkstemp-safer.c: New file.
46966 GNU tar needs these.
46967 * lib/pipe-safer.c: New file.
46968 * lib/creat-safer.c: New file.
46969 * lib/fcntl--.h (creat): Define to creat_safer.
46970 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
46971 * lib/unistd--.h (pipe): Define to pipe_safer.
46972 * lib/unistd-safer.h: Declare pipe_safer.
46974 2005-08-26 Simon Josefsson <jas@extundo.com>
46976 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
46977 Haible <bruno@clisp.org>.
46979 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
46981 * lib/regex_internal.h: Remove all references to
46982 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
46984 (bitset_not, bitset_merge, bitset_not_merge):
46985 (bitset_mask, re_string_allocate, re_string_construct):
46986 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
46987 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
46988 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
46989 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
46990 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
46991 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
46992 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
46993 (re_acquire_state_context):
46994 Remove unnecessary forward decls.
46995 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
46996 Put __attribute at function definition,
46997 now that the function decl has been removed.
46998 * lib/regex_internal.c (re_string_peek_byte_case):
46999 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
47002 2005-08-25 Stepan Kasal <kasal@ucw.cz>
47004 * m4/regex.m4: Add AC_PREREQ(2.50).
47005 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
47007 2005-08-25 Simon Josefsson <jas@extundo.com>
47009 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
47012 2005-08-25 Simon Josefsson <jas@extundo.com>
47014 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
47015 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
47016 GLIBC specific code.
47018 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
47020 Make regex safe for g++. This fixes one real bug (an "err"
47021 that should have been "*err"). g++ problem reported by
47023 * lib/regex_internal.h (re_calloc): New macro, consistent with
47024 re_malloc etc. All callers of calloc changed to use re_calloc.
47025 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
47026 not int. All callers changed.
47027 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
47028 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
47029 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
47030 (find_recover_state): Change "err" to "*err"; this fixes what
47031 appears to be a real bug.
47032 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
47035 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
47037 * modules/regex (Depends-on): Add malloc, since the code
47038 assumes that !malloc(0) means failure.
47040 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
47042 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
47044 alloca modernization/simplification for regex.
47045 * lib/regex.c: Remove portability cruft for alloca. This no longer
47046 needs to be at the start of the file, and can be moved into
47047 regex_internal.h and simplified.
47048 * lib/regex_internal.h: Include <alloca.h>.
47049 (__libc_use_alloca) [!defined _LIBC]: New macro.
47050 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
47051 now works outside glibc.
47053 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
47055 * config/srclist.txt: Add glibc bugs 1241, 1245.
47057 2005-08-25 Jim Meyering <jim@meyering.net>
47059 * lib/open-safer.c: Include <config.h>.
47060 Otherwise, we'd lose LARGEFILE support in any file using
47063 2005-08-25 Bruno Haible <bruno@clisp.org>
47065 * m4/minmax.m4: Require autoconf 2.52.
47066 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
47067 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
47068 alternatives of translit over the alphabet.
47069 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
47071 2005-08-24 Simon Josefsson <jas@extundo.com>
47073 * tests/test-getpass.c: New file.
47075 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
47077 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
47078 for GNU regex features.
47080 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
47082 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
47083 * lib/regex.h (regerror): Likewise.
47085 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
47086 requires this. (The code never needed it.)
47088 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
47089 All uses of recently-renamed identifiers changed to use the new,
47090 POSIX-compliant names. The code will build and run just fine
47091 without these changes, but it's better to eat our own dog food
47092 and use the standard-conforming names.
47094 * lib/regex.h: Fix a multitude of POSIX name space violations.
47095 These changes have an effect only for programs that define
47096 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
47097 do not change anything for programs compiled in the normal way.
47098 Also, there is no effect on the ABI.
47100 (_REGEX_SOURCE): New macro.
47101 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
47102 defined and _GNU_SOURCE is not; this fixes a name space violation.
47104 Rename the following macros to obey POSIX requirements.
47105 The old names are still visible as macros if _REGEX_SOURCE is defined.
47106 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
47107 RE_BACKSLASH_ESCAPE_IN_LISTS.
47108 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
47109 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
47110 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
47111 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
47112 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
47113 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
47114 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
47115 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
47116 (REG_INTERVALS): renamed from RE_INTERVALS.
47117 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
47118 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
47119 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
47120 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
47121 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
47122 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
47123 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
47124 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
47125 RE_UNMATCHED_RIGHT_PAREN_ORD.
47126 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
47127 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
47128 (REG_DEBUG): renamed from RE_DEBUG.
47129 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
47130 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
47131 unusual, since we can't clash with the POSIX REG_ICASE.
47132 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
47133 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
47134 (REG_NO_SUB): renamed from RE_NO_SUB.
47135 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
47136 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
47137 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
47138 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
47139 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
47140 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
47141 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
47142 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
47143 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
47144 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
47145 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
47146 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
47147 RE_SYNTAX_POSIX_MINIMAL_BASIC.
47148 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
47149 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
47150 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
47151 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
47152 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
47153 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
47154 (REG_FIXED): Renamed from REGS_FIXED.
47155 (REG_NREGS): Renamed from RE_NREGS.
47157 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
47158 of other REG_* macros, since POSIX says the user is allowed to
47159 #undef these macros selectively.
47161 (reg_errcode_t): Update comment stating what other tables need
47164 Rename the following enum values to obey POSIX requirements.
47165 The old names are still visible as macros.
47166 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
47167 is not defined, since GNU is supposed to be a superset of POSIX as
47168 much as possible, and since we want reg_errcode_t to be a signed
47169 type for implementation consistency.
47170 (_REG_NOERROR): Renamed from REG_NOERROR.
47171 (_REG_NOMATCH): Renamed from REG_NOMATCH.
47172 (_REG_BADPAT): Renamed from REG_BADPAT.
47173 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
47174 (_REG_ECTYPE): Renamed from REG_ECTYPE.
47175 (_REG_EESCAPE): Renamed from REG_EESCAPE.
47176 (_REG_ESUBREG): Renamed from REG_ESUBREG.
47177 (_REG_EBRACK): Renamed from REG_EBRACK.
47178 (_REG_EPAREN): Renamed from REG_EPAREN.
47179 (_REG_EBRACE): Renamed from REG_EBRACE.
47180 (_REG_BADBR): Renamed from REG_BADBR.
47181 (_REG_ERANGE): Renamed from REG_ERANGE.
47182 (_REG_ESPACE): Renamed from REG_ESPACE.
47183 (_REG_BADRPT): Renamed from REG_BADRPT.
47184 (_REG_EEND): Renamed from REG_EEND.
47185 (_REG_ESIZE): Renamed from REG_ESIZE.
47186 (_REG_ERPAREN): Renamed from REG_ERPAREN.
47187 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
47188 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
47189 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
47190 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
47192 (_REG_RE_NAME, _REG_RM_NAME): New macros.
47193 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
47194 changed. But support the old name if the new one is not defined
47195 and if _REGEX_SOURCE.
47197 Change the following member names in struct re_pattern_buffer.
47198 The old names are still supported if !_REGEX_SOURCE.
47199 The new names are always supported, regardless of _REGEX_SOURCE.
47200 (re_buffer): Renamed from buffer.
47201 (re_allocated): Renamed from allocated.
47202 (re_used): Renamed from used.
47203 (re_syntax): Renamed from syntax.
47204 (re_fastmap): Renamed from fastmap.
47205 (re_translate): Renamed from translate.
47206 (re_can_be_null): Renamed from can_be_null.
47207 (re_regs_allocated): Renamed from regs_allocated.
47208 (re_fastmap_accurate): Renamed from fastmap_accurate.
47209 (re_no_sub): Renamed from no_sub.
47210 (re_not_bol): Renamed from not_bol.
47211 (re_not_eol): Renamed from not_eol.
47212 (re_newline_anchor): Renamed from newline_anchor.
47214 Change the following member names in struct re_registers.
47215 The old names are still supported if !_REGEX_SOURCE.
47216 The new names are always supported, regardless of _REGEX_SOURCE.
47217 (rm_num_regs): Renamed from num_regs.
47218 (rm_start): Renamed from start.
47219 (rm_end): Renamed from end.
47221 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
47222 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
47223 Prepend __ to parameter names.
47225 Undo yesterday's changes.
47227 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
47229 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
47230 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
47233 2005-08-24 Jim Meyering <jim@meyering.net>
47235 Sync from coreutils.
47236 * m4/fcntl-safer.m4: New file.
47238 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
47239 and object files for this module.
47241 2005-08-24 Jim Meyering <jim@meyering.net>
47243 Sync from coreutils.
47244 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
47246 2005-08-24 Jim Meyering <jim@meyering.net>
47248 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
47249 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
47251 2005-08-24 Jim Meyering <jim@meyering.net>
47253 * modules/fcntl-safer: New module.
47254 * modules/fts (Depends-on): Add fcntl-safer.
47255 * MODULES.html.sh (File descriptor based Input/Output):
47258 2005-08-24 Bruno Haible <bruno@clisp.org>
47260 Support for unit test modules.
47261 * modules/README: Mention tests modules.
47262 * modules/TEMPLATE-TESTS: New file.
47263 * gnulib-tool: New options --extract-tests-module, --with-tests and
47264 --tests-base (unused for the moment).
47265 (testsbase, inctests): New variables.
47266 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
47267 (func_verify_module): Exclude TEMPLATE-TESTS.
47268 (func_verify_nontests_module, func_verify_tests_module): New functions.
47269 (func_get_dependencies): Add implicit dependency for tests modules.
47270 (func_get_tests_module): New function.
47271 (func_modules_transitive_closure): When --with-tests was specified,
47272 include the unit tests as well, unless explicitly avoided.
47273 (func_emit_lib_Makefile_am): Ignore the tests modules here.
47274 (func_emit_tests_Makefile_am): New function.
47275 (func_create_testdir): When --with-tests was specified, emit a
47277 * MODULES.html.sh (Future developments): Update.
47279 2005-08-24 Bruno Haible <bruno@clisp.org>
47281 * modules/tls-tests: New file.
47282 * tests/test-tls.c: New file, from GNU gettext.
47284 2005-08-24 Bruno Haible <bruno@clisp.org>
47286 * modules/lock-tests: New file.
47287 * tests/test-lock.c: New file, from GNU gettext.
47289 2005-08-24 Bruno Haible <bruno@clisp.org>
47291 * lib/lock.h: Add multiple inclusion guard.
47292 * lib/tls.h: Add multiple inclusion guard.
47294 2005-08-24 Bruno Haible <bruno@clisp.org>
47296 * gnulib-tool: Add support for the --aux-dir option to
47297 --create-testdir, --create-megatestdir, --test, --megatest.
47298 (func_create_testdir, func_create_megatestdir): Optionally emit a
47299 AC_CONFIG_AUX_DIR directive.
47300 (create-testdir, create-megatestdir, test, megatest): Provide a
47301 default value for $auxdir.
47303 2005-08-24 Bruno Haible <bruno@clisp.org>
47305 * gnulib-tool (import): Use compound statement instead of subshell
47308 2005-08-24 Bruno Haible <bruno@clisp.org>
47310 * gnulib-tool (import): Change --aux-dir default to "build-aux".
47312 2005-08-24 Bruno Haible <bruno@clisp.org>
47314 * gnulib-tool (func_version): Update.
47316 2005-08-24 Bruno Haible <bruno@clisp.org>
47318 * gnulib-tool (func_import, func_create_testdir,
47319 func_create_megatestdir): Quote all autoconf macro arguments.
47321 2005-08-24 Bruno Haible <bruno@clisp.org>
47323 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
47324 option --force, because --force causes the aclocal.m4 of each
47325 subdirectory to be newer than the corresponding config.h.in.
47327 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
47329 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
47330 All contents moved to gl_REGEX.
47331 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
47332 assume that it does.
47334 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
47336 * lib/regex.h (REG_NOSYS)
47337 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
47338 Define, since POSIX requires it as of 2001.
47340 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
47341 New private symbol, used to keep the enum signed in all cases.
47342 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
47344 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
47346 * lib/regex_internal.c (re_string_skip_chars, register_state):
47348 Remove forward decls; no longer needed now that we use prototypes.
47349 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
47350 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
47351 (clean_state_log_if_needed): Likewise.
47353 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
47355 * config/srclist.txt: Add glibc bugs 1231-1233.
47357 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
47359 Fix problems reported by Sam Steingold in
47360 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
47361 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
47362 assumed that reg_errcode_t is a signed type, which is not
47363 necessarily true if _XOPEN_SOURCE is not defined.
47364 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
47365 since some compilers warn about it otherwise.
47367 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
47369 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
47370 (init_word_char, create_initial_state, duplicate_node_closure):
47371 (fetch_token, peek_token_bracket, build_range_exp):
47372 (build_collating_symbol): Remove forward decls; no longer needed
47373 now that we use prototypes.
47376 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
47377 (re_compile_fastmap_iter, regcomp, regerror, regfree):
47378 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
47379 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
47380 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
47381 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
47382 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
47383 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
47384 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
47385 (build_range_exp, build_collating_symbol, parse_bracket_exp):
47386 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
47387 (build_charclass, build_charclass_op, fetch_number, create_tree):
47388 (create_token_tree, mark_opt_subexp, duplicate_tree):
47389 Use prototypes rather than old-style definitions.
47391 * lib/regex_internal.c:
47392 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
47393 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
47394 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
47395 (re_string_reconstruct, re_string_peek_byte_case):
47396 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
47397 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
47398 (re_node_set_init_copy, re_node_set_add_intersect):
47399 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
47400 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
47401 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
47402 (re_acquire_state, re_acquire_state_context, register_state):
47403 (create_ci_newstate, create_cd_newstate, free_state):
47405 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
47407 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
47408 (re_search_internal, prune_impossible_nodes):
47409 (acquire_init_state_context, check_matching, static):
47410 (check_halt_node_context, check_halt_state_context, proceed_next_node):
47411 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
47412 (update_regs, sift_states_backward, build_sifted_states):
47413 (clean_state_log_if_needed, merge_state_array):
47414 (update_cur_sifted_state, add_epsilon_src_nodes):
47415 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
47416 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
47417 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
47418 (find_recover_state, check_subexp_matching_top, transit_state_mb):
47419 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
47420 (check_arrival, check_arrival_add_next_nodes):
47421 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
47422 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
47423 (check_node_accept_bytes, check_node_accept, extend_buffers):
47424 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
47425 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
47429 * lib/regex_internal.h:
47430 (re_string_allocate, re_string_construct, re_string_reconstruct):
47431 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
47432 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
47433 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
47434 (re_string_context_at, re_string_peek_byte_case):
47435 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
47436 is defined, since we now use prototypes always.
47438 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
47439 C89 or better. All uses removed.
47441 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
47443 * config/srclist.txt: Add glibc bugs 1220-1227.
47445 2005-08-20 Jim Meyering <jim@meyering.net>
47447 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
47448 of unused local, dfa.
47450 2005-08-20 Bruno Haible <bruno@clisp.org>
47452 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
47454 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
47456 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
47457 (re_node_set_insert_last, re_dfa_add_node):
47458 Rename local variables to avoid GCC shadowing warnings.
47460 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
47462 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
47463 [defined lint]: Suppress bogus uninitialized-variable warnings.
47465 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
47466 and let the caller return REG_ESPACE if out of space. This
47467 removes an uninitialied-variable warning with GCC 4.0.1, and also
47468 avoids taking the address of a local variable. All callers
47471 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
47473 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
47474 $LIBCSRC/posix/regexec.c.
47475 Add glibc bug 1217 for regcomp.c.
47477 2005-08-19 Jim Meyering <jim@meyering.net>
47479 * lib/regexec.c (proceed_next_node): Redo local variables to
47480 avoid GCC shadowing warnings.
47482 2005-08-18 Bruno Haible <bruno@clisp.org>
47484 * lib/strstr.c (strstr): Fix return value in multibyte case.
47485 * lib/strcasestr.c (strcasestr): Likewise.
47487 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
47489 * lib/regex.h: Remove useless space-before-tab. From coreutils.
47491 2005-08-17 Jim Meyering <jim@meyering.net>
47493 Make the %s format (seconds since the epoch) work for a negative
47494 number and when used with a zero-padded field width, e.g. %015s.
47496 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
47497 label so that it precedes the code to set `digits'. Otherwise,
47498 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
47499 print `00-22'. Now, it prints `-0022', as it should.
47501 2005-08-17 Bruno Haible <bruno@clisp.org>
47503 * modules/strstr (Files): Add m4/mbrtowc.m4.
47504 (Depends-on): Add mbuiter.
47506 2005-08-17 Bruno Haible <bruno@clisp.org>
47508 * modules/strcasestr: New file.
47509 * MODULES.html.sh (String handling, based on ANSI C 89): Add
47512 2005-08-17 Bruno Haible <bruno@clisp.org>
47514 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
47516 2005-08-17 Bruno Haible <bruno@clisp.org>
47518 * modules/mbuiter: New file.
47519 * MODULES.html.sh (Extended multibyte and wide character utilities):
47522 2005-08-17 Bruno Haible <bruno@clisp.org>
47524 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
47525 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
47527 2005-08-17 Bruno Haible <bruno@clisp.org>
47529 * m4/strcasestr.m4: New file.
47531 2005-08-17 Bruno Haible <bruno@clisp.org>
47533 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
47534 * lib/strstr.c: Completely rewritten, with multibyte locale support.
47536 2005-08-17 Bruno Haible <bruno@clisp.org>
47538 * lib/strcasestr.h: New file.
47539 * lib/strcasestr.c: New file.
47541 2005-08-17 Bruno Haible <bruno@clisp.org>
47543 * lib/strcasecmp.c: Use mbuiter.h.
47545 2005-08-17 Bruno Haible <bruno@clisp.org>
47547 * lib/mbuiter.h: New file.
47549 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
47551 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
47552 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
47553 and gl_GETOPT are both invoked via different paths (as happens
47554 with GNU tar CVS because it uses both argp and getopt), the former
47557 2005-08-16 Bruno Haible <bruno@clisp.org>
47559 * modules/tls: New file.
47560 * MODULES.html.sh (Multithreading): Add tls.
47562 2005-08-16 Bruno Haible <bruno@clisp.org>
47564 * modules/strnlen1: New file.
47565 * MODULES.html.sh (String handling): Add strnlen1.
47567 2005-08-16 Bruno Haible <bruno@clisp.org>
47569 * modules/strcase (Files): Add m4/mbrtowc.m4.
47570 (Depends-on): Add strnlen1, mbchar.
47572 2005-08-16 Bruno Haible <bruno@clisp.org>
47574 * modules/mbiter: New file.
47575 * MODULES.html.sh (Extended multibyte and wide character utilities):
47578 2005-08-16 Bruno Haible <bruno@clisp.org>
47580 * modules/mbfile: New file.
47581 * MODULES.html.sh (Extended multibyte and wide character utilities):
47584 2005-08-16 Bruno Haible <bruno@clisp.org>
47586 * modules/mbchar: New file.
47587 * MODULES.html.sh (Extended multibyte and wide character utilities):
47590 2005-08-16 Bruno Haible <bruno@clisp.org>
47592 * m4/tls.m4: New file, from GNU gettext.
47594 2005-08-16 Bruno Haible <bruno@clisp.org>
47596 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
47598 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
47600 2005-08-16 Bruno Haible <bruno@clisp.org>
47602 * m4/mbiter.m4: New file.
47604 2005-08-16 Bruno Haible <bruno@clisp.org>
47606 * m4/mbfile.m4: New file.
47608 2005-08-16 Bruno Haible <bruno@clisp.org>
47610 * m4/mbchar.m4: New file.
47612 2005-08-16 Bruno Haible <bruno@clisp.org>
47614 * lib/tls.h: New file, from GNU gettext.
47615 * lib/tls.c: New file, from GNU gettext.
47617 2005-08-16 Bruno Haible <bruno@clisp.org>
47619 * lib/strnlen1.h: New file.
47620 * lib/strnlen1.c: New file.
47622 2005-08-16 Bruno Haible <bruno@clisp.org>
47624 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
47625 (mbi_init): Update.
47626 (mbi_avail, mbi_advance): Let the iteration end before the terminating
47627 NUL byte, not after it.
47629 2005-08-16 Bruno Haible <bruno@clisp.org>
47631 * lib/strcase.h (strcasecmp): Add note in comments.
47632 * lib/strncasecmp.c: Use code from strcasecmp.c.
47633 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
47634 (strcasecmp): Work correctly in multibyte locales.
47636 2005-08-16 Bruno Haible <bruno@clisp.org>
47638 * lib/mbiter.h: New file.
47640 2005-08-16 Bruno Haible <bruno@clisp.org>
47642 * lib/mbfile.h: New file.
47644 2005-08-16 Bruno Haible <bruno@clisp.org>
47646 * lib/mbchar.h: New file.
47647 * lib/mbchar.c: New file.
47649 2005-08-16 Bruno Haible <bruno@clisp.org>
47651 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
47652 the valid ones. Makes the comparison operations transitive:
47653 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
47654 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
47656 2005-08-15 Simon Josefsson <jas@extundo.com>
47658 * modules/ssize_t (License): Change to 'unlimited'.
47660 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
47662 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
47664 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
47665 Add comments for each pending glibc patch.
47667 2005-08-15 Bruno Haible <bruno@clisp.org>
47669 * lib/regex.h (__restrict_arr): Don't define to __restrict if
47670 __cplusplus is defined.
47672 2005-08-14 Jim Meyering <jim@meyering.net>
47674 Sync from coreutils.
47676 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
47677 Use the hash-table-based cycle-detection code not just when
47678 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
47679 Reported by James Youngman in
47680 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
47681 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
47682 FTS_TIGHT_CYCLE_CHECK.
47683 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
47684 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
47686 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
47687 * lib/fts.c (fd_safer): Remove decl.
47688 Include fcntl--.h rather than unistd-safer.h
47689 (fts_safe_changedir): Don't call fd_safer; no longer needed
47690 now that we include fcntl--.h.
47692 2005-08-12 Simon Josefsson <jas@extundo.com>
47694 * modules/getndelim2: Use ssize_t module.
47695 * modules/getnline: Likewise.
47696 * modules/safe-read: Likewise.
47697 * modules/xreadlink: Likewise.
47699 * modules/ssize_t: New file.
47701 2005-08-12 Simon Josefsson <jas@extundo.com>
47703 * m4/readline.m4: Look for termcap, curses or ncurses if required.
47705 2005-08-12 Simon Josefsson <jas@extundo.com>
47707 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47710 2005-08-12 Simon Josefsson <jas@extundo.com>
47712 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
47713 readline, getdelim and check_version.
47714 (Support for systems lacking ISO C 99: Sizes of integer types):
47717 2005-08-12 Bruno Haible <bruno@clisp.org>
47719 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
47721 2005-08-11 Simon Josefsson <jas@extundo.com>
47723 * modules/readline: New file.
47725 * modules/strnlen (Files): Add strnlen.h.
47727 2005-08-11 Simon Josefsson <jas@extundo.com>
47729 * m4/readline.m4: New file.
47731 2005-08-11 Simon Josefsson <jas@extundo.com>
47733 * lib/readline.h, readline.c: New file.
47735 2005-08-11 Simon Josefsson <jas@extundo.com>
47737 * doc/gnulib.texi (Initial import, Finishing touches): Mention
47740 2005-08-11 Bruno Haible <bruno@clisp.org>
47742 * lib/strnlen.h (strnlen): Change parameter name to match comment.
47744 2005-08-10 Stepan Kasal <kasal@ucw.cz>
47746 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
47748 2005-08-10 Simon Josefsson <jas@extundo.com>
47750 * tests/test-iconvme.c: New file.
47752 2005-08-10 Simon Josefsson <jas@extundo.com>
47754 * m4/strnlen.m4: New file.
47756 * m4/strndup.m4: Don't check for strnlen declaration, done in
47759 2005-08-10 Simon Josefsson <jas@extundo.com>
47761 * lib/strndup.c: Use strnlen.h.
47763 * lib/strnlen.h: New file.
47765 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
47769 2005-08-02 Simon Josefsson <jas@extundo.com>
47771 * modules/readline: New file.
47773 2005-08-02 Simon Josefsson <jas@extundo.com>
47775 * modules/getdelim: New file.
47777 * modules/getline: Rewrite, don't use getndelim2.
47779 2005-08-02 Simon Josefsson <jas@extundo.com>
47781 * m4/getline.m4: Separate out getdelim stuff into separate module.
47783 * m4/getdelim.m4: New file.
47785 2005-08-02 Simon Josefsson <jas@extundo.com>
47787 * lib/getline.h, getline.c: Rewrite.
47789 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
47791 2005-07-31 Bruno Haible <bruno@clisp.org>
47793 * lib/lock.h (gl_lock_initializer): New macro.
47794 (gl_lock_define_initialized): Use it.
47795 (gl_rwlock_initializer): New macro.
47796 (gl_rwlock_define_initialized): Use it.
47797 (gl_recursive_lock_initializer): New macro.
47798 (gl_recursive_lock_define_initialized): Use it.
47800 2005-07-30 Karl Berry <karl@gnu.org>
47802 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
47803 Report from Ben Pfaff, regarding getopt.
47805 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
47807 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
47809 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
47810 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
47811 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
47812 (gl_GETOPT): Use the new macros. Most of the implementation
47813 is moved to the new macros. This is for programs like Emacs
47814 that don't want all the functionality of gl_GETOPT.
47816 2005-07-26 Bruno Haible <bruno@clisp.org>
47818 * m4/lock.m4: Update from GNU gettext.
47820 2005-07-26 Bruno Haible <bruno@clisp.org>
47822 * lib/lock.h: Update from GNU gettext.
47823 * lib/lock.c: Update from GNU gettext.
47825 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
47827 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
47828 obsolescent AC_TRY_RUN. Include the default includes files, for
47831 2005-07-24 Bruno Haible <bruno@clisp.org>
47833 * modules/visibility: New file.
47834 * MODULES.html.sh (Misc): Add visibility.
47836 2005-07-24 Bruno Haible <bruno@clisp.org>
47838 * m4/visibility.m4: New file.
47840 2005-07-24 Bruno Haible <bruno@clisp.org>
47842 * doc/visibility.texi: New file.
47844 2005-07-22 Bruno Haible <bruno@clisp.org>
47846 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
47847 $(ALLOCA_H), redundant through BUILT_SOURCES.
47848 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
47849 redundant through BUILT_SOURCES.
47850 * modules/byteswap (Makefile.am): Remove explicit dependency on
47851 $(BYTESWAP_H), redundant through BUILT_SOURCES.
47852 * modules/fnmatch (Makefile.am): Remove explicit dependency on
47853 $(FNMATCH_H), redundant through BUILT_SOURCES.
47854 * modules/getopt (Makefile.am): Remove explicit dependency on
47855 $(GETOPT_H), redundant through BUILT_SOURCES.
47856 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
47857 redundant through BUILT_SOURCES.
47858 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
47859 redundant through BUILT_SOURCES.
47860 * modules/stdbool (Makefile.am): Remove explicit dependency on
47861 $(STDBOOL_H), redundant through BUILT_SOURCES.
47862 * modules/stdint (Makefile.am): Remove explicit dependency on
47863 $(STDINT_H), redundant through BUILT_SOURCES.
47864 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
47865 Remove explicit dependency on $(SYSEXITS_H).
47866 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
47868 2005-07-18 Simon Josefsson <jas@extundo.com>
47870 * lib/check-version.c (check_version): Accept identical versions too.
47872 2005-07-18 Bruno Haible <bruno@clisp.org>
47874 * modules/lock: New file.
47875 * MODULES.html.sh (Multithreading): New section.
47877 2005-07-18 Bruno Haible <bruno@clisp.org>
47879 * m4/lock.m4: New file, from GNU gettext.
47881 2005-07-18 Bruno Haible <bruno@clisp.org>
47883 * lib/lock.h: New file, from GNU gettext.
47884 * lib/lock.c: New file, from GNU gettext.
47886 2005-07-18 Bruno Haible <bruno@clisp.org>
47888 * lib/lock.h (gl_once_t): New type.
47889 (gl_once_define, gl_once): New macros.
47890 * lib/lock.c (fresh_once): New variable.
47891 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
47894 2005-07-16 Simon Josefsson <jas@extundo.com>
47896 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
47897 workaround, suggested by Bruno.
47899 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
47901 * modules/xalloc (Depends-on): Add xalloc-die.
47902 * modules/xvasprintf (Depends-on): Add xalloc-die.
47904 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
47906 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
47907 with a minor change.
47909 2005-07-15 Bruno Haible <bruno@clisp.org>
47911 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
47912 When using lib/poll.c, define poll as rpl_poll.
47914 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
47916 * modules/argp (Depends-on): Remove unlocked-io.
47918 2005-07-14 Derek Price <derek@ximbiot.com>
47920 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
47921 for glob symlink bug.
47923 2005-07-14 Bruno Haible <bruno@clisp.org>
47925 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
47926 Instead, test for *_unlocked function declarations directly.
47928 2005-07-11 Simon Josefsson <jas@extundo.com>
47930 * modules/size_max: New file.
47932 * modules/xsize: Depend on size_max module for size_max.m4.
47934 2005-07-11 Simon Josefsson <jas@extundo.com>
47936 * lib/size_max.h: New file.
47938 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
47940 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
47941 copyright symbol and the year.
47942 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
47943 (version_etc_va): Use parameterized copyright notice.
47944 Reword to conform to the current GNU coding standards.
47946 2005-07-11 Karl Berry <karl@gnu.org>
47948 * doc/gnulib.texi (Quoting): new node.
47949 (Initial import): more info, from Patrice.
47951 2005-07-11 Bruno Haible <bruno@clisp.org>
47953 * gnulib-tool (func_usage): Document option --avoid.
47954 (Command line options): Handle --avoid.
47955 (func_acceptable): New function.
47956 (func_modules_transitive_closure): Use it.
47958 2005-07-11 Bruno Haible <bruno@clisp.org>
47960 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
47961 Reported by Jim Meyering.
47963 2005-07-10 Bruno Haible <bruno@clisp.org>
47965 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
47966 Needed when size_t is smaller than 'unsigned int'.
47967 Reported by Paul Eggert.
47969 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
47971 * modules/argp (Depends-on): Add unlocked-io
47973 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
47975 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
47978 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
47980 * config/srclist.txt: Comment out regcomp.c, since we have a porting
47983 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
47984 and Paul Eggert <eggert@cs.ucla.edu>
47986 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
47987 in wint_t, not wchar_t. Remove now-unnecessary cast.
47989 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
47991 * modules/regex (Files): Add lib/regex_internal.c,
47992 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
47993 (Depends-on): Add extensions.
47994 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
47996 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
47998 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
48000 * m4/same.m4 (gl_SAME): Likewise.
48001 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
48003 * m4/regex.m4: Adjust to new libc regex implementation.
48004 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
48005 all the .c and .h parts of (the new) regex.
48006 Quote the m4 stuff better.
48007 Check for RE_ICASE bug of old gnulib.
48008 Check for REG_STARTEND of recent libc.
48009 Rename local variables from jm_* to gl_*.
48010 Quote operand of "test -f".
48011 Say "recent enough" version of libc, not "version 2".
48012 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
48013 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
48014 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
48015 Remove check for btowc, isascii.
48016 Require AM_LANGINFO_CODESET.
48018 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
48020 * lib/regex.c, regex.h: Sync from libc.
48021 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
48023 New files, synced from libc, except that regex_internal.h
48024 currently has a small porting fix.
48026 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
48028 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
48029 regex_internal.c, regexec.c.
48030 Add regex_internal.h too, but as a comment, since the libc version
48031 is currently broken in gnulib mode.
48033 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
48035 Support programs like Emacs that use gnulib but not gettext.
48036 * MODULES.html.sh (Internationalization functions): Add gettext-h.
48037 * modules/gettext-h: New file.
48038 * modules/gettext (Files): Remove lib/gettext.h.
48039 (Depends-on): Add gettext-h.
48040 (Makefile.am): Remove lib_SOURCES.
48041 * modules/argmatch, modules/c-stack, modules/closeout:
48042 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
48043 * modules/execute, modules/file-type, modules/getaddrinfo:
48044 * modules/getopt, modules/human, modules/javacomp:
48045 * modules/javaexec, modules/mkdir-p, modules/obstack:
48046 * modules/openat, modules/pagealign_alloc, modules/pipe:
48047 * modules/quotearg, modules/regex, modules/rpmatch:
48048 * modules/unicodeio, modules/userspec, modules/version-etc:
48049 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
48051 Depend on gettext-h, not gettext.
48053 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
48055 * gnulib-tool (func_import): Add support for 'public domain' license.
48056 * modules/alloca, modules/atexit, modules/memmove:
48057 Now public domain, not GPL.
48058 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
48059 * modules/realloc, modules/strerror, modules/strtod:
48062 2005-07-05 Bruno Haible <bruno@clisp.org>
48064 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
48065 autoconf CVS. Needed for mingw.
48067 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
48069 Remove the dependency of the strftime module on the tzset module.
48070 * modules/strftime (Depends-on): Remove dependency on tzset.
48072 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
48074 Remove the dependency of the strftime module on the tzset module.
48075 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
48076 gl_FUNC_TZSET_CLOBBER.
48078 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
48080 Remove the dependency of the strftime module on the tzset module.
48081 * lib/strftime.c (my_strftime)
48082 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
48083 Copy the input structure, to work around some of the bug with
48084 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
48085 Solaris releases, you should also use the tzset module, but we won't
48086 require it as a dependency any more since we don't want LGPLed code
48087 to depend on GPLed code.
48089 2005-07-02 Jim Meyering <jim@meyering.net>
48091 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
48092 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
48093 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
48094 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
48096 2005-07-02 Jim Meyering <jim@meyering.net>
48098 * lib/backupfile.c (backup_args): Change a `0' to NULL.
48100 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
48102 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
48103 declares only 'struct timespec;' (!).
48105 2005-07-01 Jim Meyering <jim@meyering.net>
48107 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
48108 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
48109 * lib/save-cwd.c, tempname.c:
48110 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48111 and don't include <sys/file.h>).
48113 2005-06-29 Jim Meyering <jim@meyering.net>
48115 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
48116 type name. Use the variable name instead.
48117 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
48120 2005-06-28 Simon Josefsson <jas@extundo.com>
48122 * modules/check-version (Files): Add check-version.m4.
48124 2005-06-28 Simon Josefsson <jas@extundo.com>
48126 * m4/check-version.m4: New file, suggested by Jim Meyering
48127 <jim@meyering.net>.
48129 2005-06-28 Simon Josefsson <jas@extundo.com>
48131 * lib/check-version.h, lib/check-version.c: New files.
48133 2005-06-28 Simon Josefsson <jas@extundo.com>
48135 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
48136 collision with global variable. Better indentation. Don't
48137 increment buffer pointer beyond buffer end. Based on comments
48138 from Paul Eggert <eggert@cs.ucla.edu>.
48140 * lib/base64.h: Indent.
48142 2005-06-28 Simon Josefsson <jas@extundo.com>
48144 * doc/gnulib.texi (Library version handling): New section.
48146 2005-06-28 Jim Meyering <jim@meyering.net>
48148 * check-module (find_included_lib_files): Hard-code another
48149 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
48150 but modules/fts-lgpl (correctly) does not list those files.
48152 * modules/canonicalize (Files): Add lib/pathmax.h.
48154 2005-06-25 Simon Josefsson <jas@extundo.com>
48156 * modules/check-version: New file.
48158 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
48160 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
48161 initializer of struct addrinfo, as an indication that we don't
48162 care how many members the structure has.
48164 2005-06-24 Derek Price <derek@ximbiot.com>
48165 and Bruno Haible <bruno@clisp.org>
48167 Remove stat module & update lstat.
48168 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
48169 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
48170 * m4/stat.m4: Remove this file.
48172 2005-06-24 Derek Price <derek@ximbiot.com>
48173 and Bruno Haible <bruno@clisp.org>
48175 Remove stat module & update lstat.
48176 * lib/stat.c: Remove this file...
48177 (slash_aware_lstat): ...moving this content and its support...
48178 * lib/lstat.c (rpl_lstat): ...into here.
48179 * lib/lstat.h: New file.
48181 2005-06-24 Derek Price <derek@ximbiot.com>
48182 and Bruno Haible <bruno@clisp.org>
48184 Remove stat module & update lstat.
48185 * config/srclist.txt (libc sources): Remove stat.
48187 2005-06-24 Derek Price <derek@ximbiot.com>
48188 and Bruno Haible <bruno@clisp.org>
48190 Remove stat module & update lstat.
48191 * MODULES.html.sh (stat): Remove.
48192 * MODULES.html: Regenerated.
48193 * modules/lstat (Description): Correct function name.
48194 (Files): Add "lstat.h".
48195 (Depends-on): Remove stat, add xalloc, stat-macros.
48196 * modules/stat: Remove this file.
48197 (Include): Add "lstat.h", remove <sys/stat.h>.
48199 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
48201 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
48202 (ranged_convert): Don't save conversion in a temporary struct.
48203 This causes a warning with GCC 4.0.0, and anyway in the typical
48204 case it's not worth the extra 100 bytes or so of code.
48205 (ranged_convert, __mktime_internal): When calling a function via a
48206 pointer P, use P () rather than (*P) (), as we now assume C89 or
48209 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
48211 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
48212 "who -r" failed to give output. Problem reported by Tim Waugh.
48214 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
48215 (xcalloc): Use it to avoid needless tests.
48216 Problem reported by Jim Meyering.
48218 2005-06-20 Derek Price <derek@ximbiot.com>
48220 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
48221 unnecessary for Autoconfs > 2.59c.
48223 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
48225 * lib/argp.h (__option_is_short): Check upper limit of
48226 __key. Isprint() requires its argument to have the value
48227 of an unsigned char or EOF.
48229 2005-06-16 Jim Meyering <jim@meyering.net>
48231 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
48232 when either N or S is zero.
48234 2005-06-16 Derek Price <derek@ximbiot.com>
48236 * m4/bison.m4: Declare YACC & YFLAGS precious.
48238 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
48240 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
48241 multibyte string or pattern, fall back on unibyte matching.
48242 Problem reported by James Youngman.
48244 2005-06-08 Bruno Haible <bruno@clisp.org>
48246 * modules/csharpcomp: New file.
48247 * MODULES.html.sh (C#): Add csharpcomp.
48249 2005-06-08 Bruno Haible <bruno@clisp.org>
48251 * m4/csharpcomp.m4: New file, from GNU gettext.
48253 2005-06-08 Bruno Haible <bruno@clisp.org>
48255 * lib/csharpcomp.h: New file, from GNU gettext.
48256 * lib/csharpcomp.c: New file, from GNU gettext.
48257 * lib/csharpcomp.sh.in: New file, from GNU gettext.
48259 2005-06-08 Bruno Haible <bruno@clisp.org>
48261 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
48264 2005-06-07 Derek Price <derek@ximbiot.com>
48267 * lib/glob_.h: Indent nested #ifdef.
48269 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
48271 Sync from coreutils.
48272 Use "file name" when talking about file names, instead of "filename"
48273 or "path", as per the GNU coding standards.
48274 * lib/mkdir-p.c: Renamed from makepath.c.
48275 (make_dir_parents): Renamed from make_path. All callers changed.
48276 * lib/mkdir-p.h: Likewise. All includers changed.
48277 * lib/filenamecat.c: Renamed from path-concat.c.
48278 (file_name_concat): Renamed from path_concat. All callers changed.
48279 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
48280 * lib/filenamecat.h: Likewise. All includers changed.
48281 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
48282 in comments or local variable names.
48283 * lib/basename.c: Likewise.
48284 * lib/canonicalize.c, canonicalize.h: Likewise.
48285 * lib/dirname.c, dirname.h: Likewise.
48286 * lib/euidaccess.c: Likewise.
48287 * lib/exclude.c: Likewise
48288 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
48289 * lib/fsusage.c, fsuage.h: Likewise.
48290 * lib/fts.c, fts_.h: Likewise.
48291 * lib/getcwd.c: Likewise.
48292 * lib/getloadavg.c: Likewise.
48293 * lib/mkstemp.c: Likewise.
48294 * lib/mountlist.c, mountlist.h: Likewise.
48295 * lib/openat.c, openat.h: Likewise.
48296 * lib/readlink-stub.c: Likewise.
48297 * lib/readutmp.c, readutmp.h: Likewise.
48298 * lib/rename.c: Likewise.
48299 * lib/rmdir.c: Likewise.
48300 * lib/same.c: Likewise.
48301 * lib/savedir.c: Likewise.
48302 * lib/stripslash.c: Likewise.
48303 * lib/tempname.c: Likewise.
48304 * lib/xreadlink.c: Likewise.
48305 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
48307 * lib/exclude.h: Likewise.
48309 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
48310 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48311 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
48312 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48313 * lib/pathmax.h: Include <limits.h> unconditionally, since other
48314 files have been getting away with it for years (MORE/BSD 4.3
48316 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
48317 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
48319 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
48320 Define to 256, not 255, as per modern POSIX.
48322 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
48324 Sync from coreutils.
48325 Use "file name" when talking about file names, instead of "filename"
48326 or "path", as per the GNU coding standards.
48327 * MODULES.html.sh: mkdir-p renamed from makepath.
48328 filenamecat renamed from path-concat.
48329 * modules/filenamecat: Renamed from modules/path-concat.
48330 (Files): filenamecat.h and filenamecat.c renamed from
48331 path-concat.h and path-concat.c.
48332 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
48333 (Include): filenamecat.h, not path-concat.h.
48334 * modules/mkdir-p: Renamed from modules/makepath.
48335 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
48337 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
48338 (Include): mkdir-p.h, not makepath.h.
48340 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
48342 Sync from coreutils.
48343 * m4/mkdir-p.m4: Renamed from makepath.m4.
48344 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
48345 Rename files from makepath.c to mkdir-p.c, and from
48346 makepath.h to mkdir-p.h.
48347 * m4/filenamecat.m4: Renamed from path-concat.m4.
48348 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
48349 Rename files from path-concat.c to filenamecat.c,
48350 and from path-concat.h to filenamecat.h.
48351 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
48352 "file name" in local variables or comments.
48353 * m4/rename.m4: Likewise.
48355 2005-06-01 Bruno Haible <bruno@clisp.org>
48357 * modules/csharpexec: New file.
48358 * MODULES.html.sh (C#): New section.
48360 2005-06-01 Bruno Haible <bruno@clisp.org>
48362 * m4/csharp.m4: New file, from GNU gettext.
48363 * m4/csharpexec.m4: New file, from GNU gettext.
48365 2005-06-01 Bruno Haible <bruno@clisp.org>
48367 * lib/csharpexec.h: New file, from GNU gettext.
48368 * lib/csharpexec.c: New file, from GNU gettext.
48369 * lib/csharpexec.sh.in: New file, from GNU gettext.
48371 2005-05-31 Derek Price <derek@ximbiot.com>
48372 Paul Eggert <eggert@cs.ucla.edu>
48375 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48377 2005-05-31 Derek Price <derek@ximbiot.com>
48378 Paul Eggert <eggert@cs.ucla.edu>
48381 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
48383 2005-05-29 Derek Price <derek@ximbiot.com>
48385 * config/srclist.txt (glob_.h, glob.c): Add these files.
48387 2005-05-29 Derek Price <derek@ximbiot.com>
48389 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
48390 * modules/glob: New file.
48391 * modules/getlogin_r: Add link to POSIX spec in description.
48393 2005-05-29 Derek Price <derek@ximbiot.com>
48394 Paul Eggert <eggert@cs.ucla.edu>
48396 * m4/glob.m4: New file.
48398 2005-05-29 Derek Price <derek@ximbiot.com>
48399 Paul Eggert <eggert@cs.ucla.edu>
48401 * lib/glob_.h, lib/glob.c: New files.
48403 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
48405 * modules/fts (Files): Remove m4/inttypes-pri.m4.
48406 * modules/fts-lgpl (Depends-on): Remove gettext.
48408 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
48410 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
48411 and don't require gt_INTTYPES_PRI.
48413 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
48415 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
48417 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
48418 the configuration hassle isn't worth it.
48419 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
48420 (LONGEST_MODIFIER, PRIuMAX): Remove.
48422 2005-05-27 Bruno Haible <bruno@clisp.org>
48424 * lib/getlogin_r.h: Remove second include of <stddef.h>.
48426 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
48428 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
48429 _POSIX_PTHREAD_SEMANTICS for Solaris.
48431 2005-05-25 Derek Price <derek@ximbiot.com>
48433 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
48435 2005-05-25 Derek Price <derek@ximbiot.com>
48436 Paul Eggert <eggert@cs.ucla.edu>
48438 * modules/getlogin_r, m4/getlogin_r.m4: New files.
48439 * lib/getlogin_r.c, getlogin_r.h: New files.
48441 2005-05-25 Bruno Haible <bruno@clisp.org>
48442 Derek Price <derek@ximbiot.com>
48444 * lib/getlogin_r.h: Simplify API documentation.
48446 2005-05-23 Derek Price <derek@ximbiot.com>
48448 * modules/minmax (Files): Add m4/minmax.m4.
48449 (configure.ac): Add gl_MINMAX.
48451 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
48453 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
48454 so that unistd-safer.h (GPL'ed code) need not be included.
48456 2005-05-22 Bruno Haible <bruno@clisp.org>
48458 * m4/minmax.m4: New file.
48459 Based on a patch by Derek Price <derek@ximbiot.com>.
48461 2005-05-22 Bruno Haible <bruno@clisp.org>
48463 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
48464 (INT64_MIN): Fix definition.
48465 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
48467 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
48468 NEED_SIGNED_INT_TYPES.
48470 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
48471 HAVE_SYSTEM_INTTYPES.
48473 2005-05-22 Bruno Haible <bruno@clisp.org>
48475 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
48476 Also include <sys/param.h> if it defines MIN, MAX.
48477 Based on a patch by Derek Price <derek@ximbiot.com>.
48479 2005-05-21 Jim Meyering <jim@meyering.net>
48481 * modules/fts (Files): Add m4/inttypes-pri.m4.
48482 (Depends-on): Add lstat and remove gettext. Alphabetize.
48484 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
48487 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
48488 (setup_dir, free_dir): New functions.
48489 (enter_dir, leave_dir): Define trivial
48490 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
48491 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
48492 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
48493 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
48494 Move to fts-cycle.c.
48495 (fts_open): Use setup_dir.
48496 (fts_close): Use free_dir.
48497 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
48498 This adds a label and some gotos, but the alternatives were messier.
48499 Check for memory allocation failure when entering a dir.
48500 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
48501 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
48502 (FTS): New member fts_cycle, that is a union that contains the
48503 old active_dir_ht and cycle_state. All uses changed to mention
48504 fts_cycle.ht and fts_cycle.state.
48505 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
48506 fts.c, with the following changes:
48507 (setup_dir, free_dir): New functions.
48508 (enter_dir): Now returns bool. Return true if successful, false
48509 if memory exhausted. All callers changed.
48510 Do not bother partly cleaning up on
48511 memory allocation failure; that is free_dir's job.
48512 However, free ad if hash_insert fails, to avoid memory leak.
48513 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
48514 fts->fts_options to see which union member to use.
48516 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
48518 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
48519 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
48521 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
48523 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
48525 2005-05-20 Jim Meyering <jim@meyering.net>
48527 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
48528 Now a macro, to pacify GCC.
48530 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
48532 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
48535 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
48537 * lib/chown.c (rpl_chown): Return -1 on failure.
48539 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
48541 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
48542 Don't check for stddef.h.
48543 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
48544 don't use its results.
48545 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
48546 since we include them unconditionally. Don't require
48547 AM_STDBOOL_H, since stdbool is a prerequisite.
48548 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
48549 since we assume C89 or better.
48550 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
48551 as we don't use their results.
48552 Don't check for fchdir, memmove, memset, strrchr, as we use
48553 them unconditionally.
48554 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
48555 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
48557 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
48559 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
48560 Include <stddef.h> unconditionally, since we assume C89 now.
48561 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
48562 * lib/fts.c: Include fts_.h first, to check interface.
48563 Do not include intprops.h; no longer needed.
48564 Include cycle-check.h and hash.h, since fts_.h no longer does.
48565 Remove unnecessary casts of closedir to void.
48566 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
48567 decide whether to decrement nlinks.
48568 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
48569 (FTS): Use struct hash_table * instead of Hash_table, so that
48570 we no longer need to include hash.h here.
48572 2005-05-18 Jim Meyering <jim@meyering.net>
48574 * modules/dirfd (License): Change to LGPL. Most of the code
48575 is already in the public domain.
48577 2005-05-18 Jim Meyering <jim@meyering.net>
48579 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
48580 Reported by Yoann Vandoorselaere.
48582 2005-05-17 Jim Meyering <jim@meyering.net>
48584 * m4/fts.m4: New file, from coreutils.
48586 2005-05-17 Jim Meyering <jim@meyering.net>
48588 * lib/fts.c, lib/fts_.h: New files, from coreutils.
48590 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
48592 Sync from coreutils.
48593 * m4/unlinkdir.m4: New file.
48595 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
48597 Sync from coreutils.
48598 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
48599 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
48600 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
48601 White space changes only.
48602 * lib/makepath.c (make_path): Port to hosts where leading "//" is
48604 * lib/yesno.c: Include getline.h, not ctype.h.
48605 (yesno): Don't remove leading white space; POSIX doesn't allow it.
48606 Use getline to remove arbitrary restriction on response length.
48608 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
48610 * config/srclist-update: Spell out "Street" in FSF postal
48611 mail address; this is the style the FSF seems to prefer.
48613 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
48614 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
48615 this updates FSF postal mail address.
48617 Sync from coreutils.
48618 * modules/unlinkdir: New file.
48619 * modules/yesno (Depends-on): Add getline.
48620 * MODULES.html.sh (File system functions): Add unlinkdir.
48622 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
48624 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
48626 Change the initial comment to refer to GPL, not LGPL.
48627 gnulib-tool will change it to LGPL as needed.
48629 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
48630 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
48631 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
48632 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
48633 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
48634 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
48635 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
48636 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
48637 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
48638 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
48639 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
48640 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
48641 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
48642 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
48643 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
48644 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
48645 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
48646 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
48647 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
48648 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
48649 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
48650 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
48651 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
48652 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
48653 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
48654 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
48655 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
48656 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
48657 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
48658 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
48659 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
48660 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
48661 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
48662 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
48663 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
48664 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
48665 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
48666 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
48667 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
48668 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
48669 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
48670 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
48671 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
48672 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
48673 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
48674 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
48675 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
48676 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
48677 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
48678 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
48679 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
48680 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
48681 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
48682 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
48683 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
48684 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
48685 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
48686 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
48687 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
48688 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
48689 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
48690 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
48691 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
48692 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
48693 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
48694 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
48695 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
48696 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
48697 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
48698 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
48699 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
48700 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
48701 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
48702 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
48703 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
48704 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
48705 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
48706 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
48707 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
48708 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
48709 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
48710 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
48711 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
48712 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
48713 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
48714 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
48715 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
48716 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
48717 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
48718 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
48719 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
48720 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
48721 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
48722 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
48723 lib/yesno.c, lib/yesno.h:
48724 Update FSF postal mail address.
48726 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
48728 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
48729 tests/test-memmem.c, tests/test-stpncpy.c:
48730 Update FSF postal mail address.
48732 2005-05-13 Bruno Haible <bruno@clisp.org>
48734 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
48735 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
48736 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
48737 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
48738 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
48739 Add support for 64-bit integers in the MSVC compiler.
48741 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
48743 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
48745 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
48747 * gnulib-tool (func_import): Sort and uniquify recommended includes.
48749 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
48751 * doc/getdate.texi (General date syntax): Don't say that date
48752 date --iso-8601=ns generates acceptable dates; it doesn't yet.
48753 Problem reported by Nic Ferrier.
48755 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48757 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
48758 specified in ai_socktype. Fix invalid ai_protocol
48759 check. ai_protocol is usually set to 0 or depending on
48760 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
48761 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
48762 ai_socktype / ai_protocol in the returned addrinfo structure.
48764 2005-05-10 Simon Josefsson <jas@extundo.com>
48766 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
48767 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48769 2005-05-10 Karl Berry <karl@gnu.org>
48771 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
48772 (from http://www.gnu.org/licenses).
48773 * doc/COPYING.LIB: also rename to COPYING.LESSER.
48774 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
48777 2005-05-10 Karl Berry <karl@gnu.org>
48779 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
48780 (COPYING.DOC): remove.
48782 * config/srclist-update: new FSF address.
48784 2005-05-10 Derek Price <derek@ximbiot.com>
48786 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
48789 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48790 Bruno Haible <bruno@clisp.org>
48792 * modules/inet_ntop: New file.
48793 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48796 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48797 Bruno Haible <bruno@clisp.org>
48799 * m4/inet_ntop.m4: New file.
48801 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48802 Bruno Haible <bruno@clisp.org>
48804 * lib/inet_ntop.h: New file.
48805 * lib/inet_ntop.c: New file, from glibc with modifications.
48807 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
48809 * modules/time_r (License): Change to LGPL.
48810 * modules/extensions (License): Change to LGPL. Actually,
48811 the license is more permissive than that, but currently gnulib-tool
48812 doesn't know how to handle more-permissive licenses.
48814 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
48815 Problem reported by Dave Love.
48817 2005-05-08 Jim Meyering <jim@meyering.net>
48819 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
48822 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
48824 * modules/argmatch (Depends-on): Add stdbool.
48825 * modules/backupfile (Depends-on): Likewise.
48826 * modules/chdir-long (Depends-on): Likewise.
48827 * modules/closeout (Depends-on): Likewise.
48828 * modules/cycle-check (Depends-on): Likewise.
48829 * modules/dirname (Depends-on): Likewise.
48830 * modules/fnmatch (Depends-on): Likewise.
48831 * modules/fsusage (Depends-on): Likewise.
48832 * modules/fwriteerror (Depends-on): Likewise.
48833 * modules/getcwd (Depends-on): Likewise.
48834 * modules/getloadavg (Depends-on): Likewise.
48835 * modules/hard-locale (Depends-on): Likewise.
48836 * modules/makepath (Depends-on): Likewise.
48837 * modules/mountlist (Depends-on): Likewise.
48838 * modules/nanosleep (Depends-on): Likewise.
48839 * modules/posixtm (Depends-on): Likewise.
48840 * modules/quotearg (Depends-on): Likewise.
48841 * modules/readtokens (Depends-on): Likewise.
48842 * modules/readtokens0 (Depends-on): Likewise.
48843 * modules/readutmp (Depends-on): Likewise.
48844 * modules/save-cwd (Depends-on): Likewise.
48845 * modules/strftime (Depends-on): Likewise.
48846 * modules/userspec (Depends-on): Likewise.
48847 * modules/utimecmp (Depends-on): Likewise.
48848 * modules/xgetcwd (Depends-on): Likewise.
48849 * modules/xnanosleep (Depends-on): Likewise.
48850 * modules/xstrtod (Depends-on): Likewise.
48851 * modules/yesno (Depends-on): Likewise.
48853 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
48855 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
48858 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
48860 Merge from coreutils. Among other things,
48861 add bulletproofing for cases where stdin, stdout, or stderr are closed.
48862 * lib/fd-safer.c: New file.
48863 * lib/fcntl-safer.h, open-safer.c: Remove.
48864 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
48865 * lib/dup-safer.c: Include unistd-safer.h first.
48866 Don't include errno.h.
48867 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
48868 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
48869 * lib/file-type.c: Rely on file-type.h change.
48870 * lib/getloadavg.c: Include unistd-safer.h.
48871 (getloadavg): Use safer open.
48872 * lib/getusershell.c: Include "stdio-safer.h".
48873 (getusershell): Use safer fopen.
48874 * lib/long-options.c (long_options): Use NULL rather than 0.
48875 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
48877 * lib/modechange.c: Likewise.
48878 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
48879 (MODE_DONE): New constant.
48880 (struct mode_change): Remove 'next' member.
48881 (make_node_op_equals): New function; like the old one of the
48882 same name, except it allocates an array.
48883 (mode_compile, mode_create_from_ref): Use it.
48884 (mode_compile): Allocate result as an array, not a linked list.
48885 Parse octal string ourself, so that we catch mistakes like "+0".
48886 (mode_adjust): Arg is an array, not a linked list.
48887 * lib/modechange.c: Include stat-macros.h, xalloc.h.
48888 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
48889 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
48890 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
48891 Remove. This is now stat-macros.h's job.
48892 (talloc): Remove. All callers replaced by xalloc, so that
48893 our invokers don't have to worry about reporting memory failures.
48894 (make_node_op_equals): Remove.
48895 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
48897 (struct mode_change): Moved here from modechange.h.
48898 (mode_append_entry): Remove.
48899 (mode_compile): Remove MASKED_OPS arg, since it encouraged
48900 apps to have incorrect behavior. Use simpler algorithm for head
48901 and tail. Don't futz with umask; that's now the job of mode_adjust.
48902 Detect more invalid usages rather than having somewhat-random behavior.
48903 Don't insert an "a=" action, as that leads to incorrect behavior.
48904 (mode_compile, mode_create_from_ref): Return NULL on error instead
48905 of an enum, since now there's only one way to have an error. All
48907 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
48908 at the correct time. Simplify calculation of "+u" and its ilk.
48909 Don't mishandle "+X".
48910 (mode_free): Remove "register" and localize decls.
48911 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
48912 (struct mode_change): Move to modechange.c; callers don't
48913 need to see this stuff.
48914 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
48915 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
48916 (mode_change, mode_adjust): Reflect the new signatures noted above.
48917 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
48918 that might redefine system include files.
48919 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
48920 (my_usleep): Use NULL rather than (void *) 0.
48921 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
48922 Use siginterrupt to specify that system calls should be interrupted.
48923 (rpl_nanosleep): Move initialization of suspended closer to call of
48925 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
48926 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
48927 (desirable_utmp_entry): New function.
48928 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
48929 using x2nrealloc, to simplify logic.
48930 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
48931 size calculation. Do not assume utmp file is a regular file.
48932 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
48933 (READ_UTMP_CHECK_PIDS): New constant.
48934 * lib/save-cwd.c: Include unistd-safer.h.
48935 (save_cwd): Use fd_safer.
48936 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
48937 [!_LIBC] Include "stat-macros.h" instead.
48938 * lib/unistd-safer.h (fd_safer): New decl.
48940 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
48942 * modules/getloadavg (Depends-on): Add unistd-safer.
48943 * modules/getusershell (Depends-on): Add stdio-safer.
48944 * modules/lstat (Depends-on): Remove xalloc.
48945 * modules/mkstemp (Depends-on): Add stat-macros.
48946 * modules/modechange (Depends-on): Remove xstrtol.
48947 Add stat-macros, xalloc.
48948 * modules/save-cwd (Depends-on): Add unistd-safer.
48949 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
48950 * modules/unistd-safer (Files): Add lib/fd-safer.c
48951 (Makefile.am): Remove lib_SOURCES.
48953 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
48954 Remove fcntl-safer; unistd-safer supersedes it.
48956 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
48958 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
48960 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
48961 (gl_PREREQ_CHOWN): Remove.
48962 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
48963 it. Don't require AC_HEADER_STAT.
48964 (gl_PREREQ_LSTAT): Remove.
48965 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
48966 Don't require AC_HEADER_STAT.
48967 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
48968 (gl_PREREQ_RMDIR): Remove.
48969 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
48970 mention stat-macros.h or AC_HEADER_STAT, since we'll make
48971 the stat-macros module a prerequisite.
48972 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
48973 * m4/filemode.m4 (gl_FILEMODE): Likewise.
48974 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
48975 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
48976 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
48978 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
48979 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
48981 * m4/fcntl-safer.m4: Remove.
48982 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
48983 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
48984 Invoke gl_PREREQ_FD_SAFER.
48985 (gl_PREREQ_FD_SAFER): New macro.
48986 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
48987 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
48988 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
48989 Remove duplicate call to AC_LIBOBJ(readutmp).
48990 (gl_PREREQ_READUTMP): Remove. All uses inlined.
48992 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
48993 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
48995 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
48997 * MODULES.html.sh (Misc): Add byteswap.
48999 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
49001 * modules/getcwd (Depends-on): Add extensions.
49002 * modules/openat (Depends-on): Likewise.
49004 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
49006 * modules/byteswap: New file.
49008 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
49010 * m4/byteswap.m4: New file.
49012 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
49014 * lib/byteswap_.h: New file.
49016 2005-04-25 Karl Berry <karl@gnu.org>
49018 * m4/gettext.m4: Update from GNU gettext 0.14.4.
49020 2005-04-25 Albert Chin <china@thewrittenword.com>
49022 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
49025 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
49027 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
49028 (func_ln_if_changed) Remove forcibly for no error message
49029 in case file does not exist.
49031 2005-04-19 Simon Josefsson <jas@extundo.com>
49033 * gnulib-tool (Options): Make --symlink mean --symbolic.
49035 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
49037 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
49039 2005-04-16 Simon Josefsson <jas@extundo.com>
49041 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
49043 2005-04-15 Simon Josefsson <jas@extundo.com>
49045 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
49047 2005-04-15 Simon Josefsson <jas@extundo.com>
49049 * gnulib-tool: Rename --symlink to --symbolic.
49051 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
49053 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
49054 symbolic links to files instead of copying/moving. Add --aux-dir,
49055 specifying directory relative --dir where auxiliary build tools
49058 2005-04-14 Bruno Haible <bruno@clisp.org>
49060 * modules/allocsa (License): Change to LGPL.
49061 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49063 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
49065 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
49066 that "UTC +1 second" continues to work. Problem reported
49067 by Dmitry V. Levin.
49068 (relunit_snumber): New rule.
49071 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
49073 * lib/getdate.y (universal_time_zone_table): New constant.
49074 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
49075 universal_time_zone_table.
49076 (lookup_zone): Prefer universal_time_zone_table to
49077 local_time_zone_table, so that "GMT" time stamps are allowed in
49078 London during the summer. Problem reported by Ian Abbott.
49080 2005-04-12 Jim Meyering <jim@meyering.net>
49082 * lib/human.c (humblock): Set *options even when returning due to
49083 xstrtoumax conversion failure. Thanks to a used-uninitialized
49084 warning from gcc-4.
49086 2005-04-09 Jim Meyering <jim@meyering.net>
49088 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
49089 -Wuninitialized: initialize tm0.tm_year.
49091 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
49093 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
49094 count, since there's no maximum. All uses changed.
49095 Add member dsts_seen.
49096 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
49098 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
49099 Use pc_rels_seen to decide whther a date is absolute.
49101 * lib/getdate.y (number): Don't overwrite year.
49102 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
49105 2005-04-02 Simon Josefsson <jas@extundo.com>
49107 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
49108 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
49110 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
49112 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
49113 where no absolute path name can be longer than PATH_MAX.
49115 2005-03-27 Jim Meyering <jim@meyering.net>
49117 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
49119 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
49121 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
49122 "one's complement" -> "ones' complement" in comment, as per Knuth.
49123 "value of type" -> "type or expression" in comment.
49124 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
49126 2005-03-26 Jim Meyering <jim@meyering.net>
49129 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
49130 Correct typos: s/or/of/.
49132 2005-03-26 Jim Meyering <jim@meyering.net>
49134 * modules/check-include-files: Move to ../ and rename to...
49135 * check-module: ...this.
49137 2005-03-25 Jim Meyering <jim@meyering.net>
49139 * modules/xvasprintf (Files): Add xalloc.h.
49141 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
49143 * modules/gettext (Files): config/config.rpath ->
49144 build-aux/config.rpath
49145 * modules/iconv (Files): Likewise.
49146 Problem reported by Oskar Liljeblad.
49148 2005-03-23 Jim Meyering <jim@meyering.net>
49150 * modules/check-include-files: New script to check for
49151 missing dependencies, multiple includes, etc.
49153 * modules/c-strtold (Depends-on): Add xalloc.
49154 * modules/c-strtod (Depends-on): Add xalloc.
49155 * modules/hash (Depends-on): Add xalloc.
49156 (Files): Remove lib/xalloc.h.
49158 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
49159 * modules/userspec (Files): Add lib/inttostr.h.
49161 2005-03-23 Jim Meyering <jim@meyering.net>
49163 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
49165 2005-03-22 Jim Meyering <jim@meyering.net>
49167 * modules/stat-macros: New module.
49168 * modules/canonicalize, modules/euidaccess, modules/file-type,
49169 * modules/filemode, modules/lchown, modules/makepath,
49170 * modules/rmdir, modules/stat: Depend on new stat-macros module
49171 rather than listing lib/stat-macros.h manually.
49172 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
49174 2005-03-22 Jim Meyering <jim@meyering.net>
49176 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
49178 2005-03-22 Bruno Haible <bruno@clisp.org>
49180 * config/srclist.txt: Replace target directory 'config' with
49182 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
49183 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
49186 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
49188 * modules/chdir-long (Depends-on): Add mempcpy.
49190 * modules/acl, modules/backupfile, modules/c-strtod,
49191 modules/c-strtold, modules/canon-host, modules/canonicalize,
49192 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
49193 modules/exclude, modules/exitfail, modules/file-type,
49194 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
49195 modules/getdate, modules/getline, modules/getpagesize,
49196 modules/getpass, modules/getugroups, modules/group-member,
49197 modules/hard-locale, modules/hash, modules/human, modules/idcache,
49198 modules/inttostr, modules/long-options, modules/makepath,
49199 modules/md5, modules/memcasecmp, modules/memcoll,
49200 modules/modechange, modules/mountlist, modules/path-concat,
49201 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
49202 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
49203 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
49204 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
49205 modules/strftime, modules/strndup, modules/strverscmp,
49206 modules/timespec, modules/unlocked-io, modules/userspec,
49207 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
49209 Remove lib_SOURCES line from Makefile.am section, as this is now
49210 done automatically by the corresponding Autoconf macro.
49212 2005-03-21 Jim Meyering <jim@meyering.net>
49214 Changes imported from coreutils.
49216 * lib/cycle-check.c: Don't include xalloc.h.
49218 * lib/path-concat.c: Don't include assert.h.
49219 (path_concat): Remove assertion that would have triggered
49220 for ABASE starting with more than one slash.
49221 Reported by Andreas Schwab.
49223 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
49224 properly when ABASE is an absolute file name.
49225 Correct the description of this function.
49226 Include <assert.h>.
49227 Add an assertion and a test driver.
49228 This fixes a bug introduced on 2004-07-02.
49229 Andreas Schwab reported the resulting failure of cp --parents:
49230 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
49232 2005-03-21 Jim Meyering <jim@meyering.net>
49234 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
49235 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
49237 2005-03-21 Jim Meyering <jim@meyering.net>
49238 and Paul Eggert <eggert@cs.ucla.edu>
49240 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
49241 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
49242 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
49243 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
49244 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
49245 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
49246 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
49247 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
49248 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
49249 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
49250 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
49251 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
49252 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
49253 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
49254 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
49255 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
49256 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
49259 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
49261 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
49262 (which shouldn't happen), generate nothing instead of returning 0
49263 immediately, so that nstrftime (NULL, ...) doesn't return 0.
49265 2005-03-16 Bruno Haible <bruno@clisp.org>
49267 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
49268 HAVE_LONGLONG_64BIT.
49270 2005-03-16 Bruno Haible <bruno@clisp.org>
49272 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
49273 HAVE_LONGLONG_64BIT.
49275 2005-03-16 Bruno Haible <bruno@clisp.org>
49277 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
49278 HAVE_LONGLONG_64BIT.
49280 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
49282 * lib/strftime.c (my_strftime): Prepend space to format so that we can
49283 reliably distinguish strftime failure from empty output on POSIX
49286 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
49288 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
49289 (iconv_string): Don't guess a size-zero buffer, as that might cause
49290 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
49291 result would be 'too large', where 'too large' is (heuristically)
49292 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
49293 overflow concerns. This will prevent some unwanted malloc failures
49294 when the inputs are very large.
49296 2005-03-15 Karl Berry <karl@gnu.org>
49298 * config/srclist.txt (config.rpath): from gettext.
49299 * config/config.rpath: update.
49301 2005-03-15 Bruno Haible <bruno@clisp.org>
49303 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
49306 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
49309 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
49312 2005-03-14 Simon Josefsson <jas@extundo.com>
49314 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
49317 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
49319 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
49320 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
49322 * lib/strtol.c: Likewise.
49324 2005-03-14 Jim Meyering <jim@meyering.net>
49326 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
49327 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
49328 to be nonzero so that we (and caller) can detect the difference
49329 between a valid zero-length expansion and an error return, even
49330 when the underlying strftime fails before writing anything into
49333 2005-03-14 Bruno Haible <bruno@clisp.org>
49335 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
49336 Update from GNU gettext 0.14.3.
49338 2005-03-10 Jim Meyering <jim@meyering.net>
49340 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
49342 2005-03-10 Jim Meyering <jim@meyering.net>
49344 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
49345 so that this module works on systems without fchdir.
49347 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
49349 Factor int-properties macros into a single file, except for
49350 glibc-related files.
49351 * lib/intprops.h: New file.
49352 * lib/getloadavg.c: Include it instead of limits.h.
49353 (INT_STRLEN_BOUND): Remove.
49354 * lib/human.c: Include intprops.h.
49355 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
49356 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
49358 * lib/inttostr.h: Include intprops.h instead of limits.h.
49359 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
49360 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
49361 for consistency with intprops.h.
49362 (time_t_is_integer, twos_complement_arithmetic): Use them.
49363 * lib/sig2str.h: Include <signal.h>, intprops.h.
49364 (INT_STRLEN_BOUND): Remove.
49365 * lib/strftime.c (TYPE_SIGNED): Remove.
49366 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
49367 * lib/strtol.c: Adjust comments to match intprops.h.
49368 * lib/userspec.c: Include intprops.h.
49369 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
49370 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
49371 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
49372 instead of rolling our own expressions.
49373 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
49375 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
49377 (my_strftime): Do not mishandle years close to INT_MAX, by doing
49378 the right thing even if adding 1900 would overflow. Similarly
49379 for tm_mon + 1 and tm_yday + 1.
49380 Make %Y always equivalent to %C%y, and similarly for %G and %g.
49381 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
49382 (DO_SIGNED_NUMBER): New macro.
49383 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
49385 2005-03-07 Bruno Haible <bruno@clisp.org>
49387 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
49389 2005-03-07 Bruno Haible <bruno@clisp.org>
49391 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
49393 2005-03-04 Derek R. Price <derek@ximbiot.com>
49395 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
49396 (func_import): Only replace files via --import when they have actually
49399 2005-03-03 Derek R. Price <derek@ximbiot.com>
49401 * m4/mmap-anon.m4: New file.
49402 * m4/pagealign_alloc.m4: New file.
49404 2005-03-03 Derek R. Price <derek@ximbiot.com>
49405 Bruno Haible <bruno@clisp.org>
49407 * modules/pagealign_alloc: New file.
49408 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
49410 2005-03-03 Derek R. Price <derek@ximbiot.com>
49411 Bruno Haible <bruno@clisp.org>
49413 * lib/pagealign_alloc.h: New file.
49414 * lib/pagealign_alloc.c: New file.
49416 2005-03-03 Bruno Haible <bruno@clisp.org>
49418 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
49419 Use an all-permissive copyright notice, recommended by RMS.
49421 2005-03-02 Bruno Haible <bruno@clisp.org>
49423 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
49424 of AIX, the replacement has to be done only after <string.h> is
49425 included, therefore not in config.h. stpncpy.h does the replacement,
49426 and stpncpy.c uses it.
49428 2005-03-02 Bruno Haible <bruno@clisp.org>
49430 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
49433 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
49435 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
49436 The workaround isn't strictly needed for POSIX conformance, and
49437 it's too much of a pain to configure and maintain. We'll ask
49438 people to fix their kernels instead.
49439 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
49440 (NANOSLEEP_BUG_WORKAROUND): Remove.
49441 (xnanosleep): Remove the workaround.
49443 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
49445 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
49446 Reported by Derek Price.
49447 (Include): Add "timespec.h".
49449 * modules/xnanosleep (Depends-on): Remove gethrxtime.
49451 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
49453 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
49454 to detect nanosleep bug.
49456 2005-03-01 Bruno Haible <bruno@clisp.org>
49458 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
49460 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
49462 * modules/gethrxtime: New file.
49463 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
49464 (Depends-on): Add gethrxtime.
49465 (configure.ac): Add gl_XNANOSLEEP.
49466 (Makefile.am): Remove lib_SOURCES line.
49468 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
49470 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
49471 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
49473 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
49475 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
49476 * lib/timespec.h (gettime): Return void, since it always
49477 succeeds now. All uses changed.
49478 * lib/gettime.c (gettime) Likewise.
49479 [HAVE_NANOTIME]: Prefer nanotime.
49480 Assume gettimeofday succeeds, as POSIX requires.
49481 Assime time () succeeds, since other code already does.
49482 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
49483 (timespec_subtract): Remove.
49484 (NANOSLEEP_BUG_WORKAROUND): New constant.
49485 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
49486 things considerably. Use it only on GNU/Linux hosts, since the
49487 workaround shouldn't be needed elsewhere.
49489 2005-02-24 Bruno Haible <bruno@clisp.org>
49491 * modules/gettext (Files): Add m4/glibc2.m4.
49493 2005-02-24 Bruno Haible <bruno@clisp.org>
49495 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
49496 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
49498 Update from GNU gettext 0.14.2.
49499 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
49501 2005-02-24 Bruno Haible <bruno@clisp.org>
49503 * lib/localcharset.c: Update from GNU gettext 0.14.2.
49504 * lib/config.charset: Update from GNU gettext 0.14.2.
49506 2005-02-24 Bruno Haible <bruno@clisp.org>
49508 * lib/gettext.h: Update from GNU gettext 0.14.2.
49510 2005-02-23 Simon Josefsson <jas@extundo.com>
49512 * m4/iconvme.m4: New file.
49514 2005-02-23 Jim Meyering <jim@meyering.net>
49516 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
49518 Thanks to Bruno Haible for catching it.
49520 2005-02-22 Simon Josefsson <jas@extundo.com>
49522 * modules/iconvme: New file.
49524 * MODULES.html.sh: Add iconvme.
49526 2005-02-22 Simon Josefsson <jas@extundo.com>
49528 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
49530 2005-02-22 Simon Josefsson <jas@extundo.com>
49532 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
49534 2005-02-22 Jim Meyering <jim@meyering.net>
49536 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
49539 2005-02-20 Neil Conway <neilc@samurai.com>
49541 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
49542 returned by OSX/Darwin if the specified buffer is not large
49543 enough for the hostname.
49545 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
49547 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
49548 pass it to _help, otherwise the latter coredumps trying to
49549 dereference state.root_argp.
49551 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
49553 * modules/chdir-long (Depends-on): Add memrchr.
49554 * modules/memrchr (Files): Add lib/memrchr.h.
49555 (Include): "memrchr.h".
49557 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
49559 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
49561 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
49563 * lib/memrchr.h: New file.
49564 * lib/chdir-long.c: Include it.
49565 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
49566 Don't bother including stddef.h.
49568 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
49570 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
49572 Include <sys/types.h>, for dev_t.
49573 (ME_DUMMY, ME_REMOTE): Move from here....
49574 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
49575 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
49577 Include mountlist.h first, to test the interface.
49579 2005-01-29 Bruno Haible <bruno@clisp.org>
49581 * lib/progname.c (program_name): Initialize.
49582 Needed when linking statically on MacOS X.
49584 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
49586 Sync from coreutils.
49587 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
49588 (Depends-on): Add c-strtod.
49589 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
49591 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
49593 Sync from coreutils.
49594 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
49596 Remove files that are specific to coreutils.
49597 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
49599 2005-01-28 Bruno Haible <bruno@clisp.org>
49601 * modules/javacomp: New file.
49602 * MODULES.html.sh (Java): Add javacomp.
49604 2005-01-28 Bruno Haible <bruno@clisp.org>
49606 * m4/javacomp.m4: New file, from GNU gettext.
49608 2005-01-28 Bruno Haible <bruno@clisp.org>
49610 * lib/javacomp.sh.in: New file, from GNU gettext.
49611 * lib/javacomp.h: New file, from GNU gettext.
49612 * lib/javacomp.c: New file, from GNU gettext.
49614 2005-01-26 Simon Josefsson <jas@extundo.com>
49616 * lib/gai_strerror.c: Use GPL in header.
49618 2005-01-26 Bruno Haible <bruno@clisp.org>
49620 * modules/javaexec: New file.
49621 * MODULES.html.sh (Java): Add javaexec.
49623 2005-01-26 Bruno Haible <bruno@clisp.org>
49625 * m4/javaexec.m4: New file, from GNU gettext.
49627 2005-01-26 Bruno Haible <bruno@clisp.org>
49629 * lib/javaexec.sh.in: New file, from GNU gettext.
49630 * lib/javaexec.h: New file, from GNU gettext.
49631 * lib/javaexec.c: New file, from GNU gettext.
49633 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
49635 * modules/lchown (Depends-on): Remove lchown.h
49637 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
49639 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
49640 must be defined if the header file was not found, in order
49641 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
49643 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
49645 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
49646 initializers for struct pentry_state.
49647 (__argp_error): Check return value of __asprintf
49648 (__argp_failure): Translate error message
49650 * lib/argp-parse.c: Removed braces around the expansion of N_()
49652 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
49654 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
49655 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
49656 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
49657 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
49658 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
49659 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
49660 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
49661 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
49662 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
49663 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
49664 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
49665 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
49666 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
49667 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
49668 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
49669 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
49670 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
49671 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
49672 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
49673 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
49674 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
49675 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
49676 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
49677 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
49678 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
49679 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
49680 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
49681 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
49682 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
49683 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
49684 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
49685 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
49686 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
49687 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
49688 xstrtol.m4, xstrtoumax.m4, yesno.m4:
49689 Use an all-permissive copyright notice, recommended by RMS.
49691 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
49693 * modules/chdir-long (Depends-on): Remove mempcpy.
49695 2005-01-21 Jim Meyering <jim@meyering.net>
49697 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
49698 same value as for Solaris 9.
49700 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
49701 component length. This included changing the parameter to be
49702 of type `char *' rather than `char const *'.
49703 * lib/chdir-long.h (chdir_long): Update prototype.
49705 * lib/openat.c (fdopendir, fstatat): New functions.
49706 * lib/openat.h: Include headers required for use of DIR and struct
49708 [AT_SYMLINK_NOFOLLOW]: Define.
49709 (fdopendir, fstatat): Add prototypes.
49711 2005-01-21 Bruno Haible <bruno@clisp.org>
49713 * modules/classpath: New file.
49714 * MODULES.html.sh (Java): Add classpath.
49716 2005-01-21 Bruno Haible <bruno@clisp.org>
49718 * lib/classpath.h: New file, from GNU gettext.
49719 * lib/classpath.c: New file, from GNU gettext.
49721 2005-01-20 Simon Josefsson <jas@extundo.com>
49723 * modules/version-etc-fsf: New file.
49725 2005-01-20 Simon Josefsson <jas@extundo.com>
49727 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
49728 * lib/version-etc.c: Remove version_etc_copyright.
49729 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
49730 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
49732 2005-01-20 Simon Josefsson <jas@extundo.com>
49734 * lib/base64.h (isbase64): Add.
49736 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
49737 using a unsigned prototype, don't inline.
49738 (base64_decode): Use it.
49740 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
49742 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
49745 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
49747 * lib/save-cwd.c (save_cwd): Remove code to support the case
49748 where fchdir is missing or flaky.
49750 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
49752 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
49754 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
49756 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
49757 AC_LIBSOURCES now does this.
49758 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
49759 with new ullong_max module.
49761 2005-01-19 Bruno Haible <bruno@clisp.org>
49763 * modules/sh-quote: New file.
49764 * MODULES.html.sh (Executing programs): Add sh-quote.
49766 2005-01-19 Bruno Haible <bruno@clisp.org>
49768 * lib/sh-quote.h: New file, from GNU gettext.
49769 * lib/sh-quote.c: New file, from GNU gettext.
49771 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
49773 Merge from coreutils.
49774 * m4/ullong_max.m4: New file.
49775 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
49776 (gl_MACROS): Assume localeconv exists.
49778 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
49780 Merge changes from coreutils, as described below in several
49781 changelogs dated today.
49783 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
49784 (O_DIRECTORY): Remove; not needed here, since "." must be
49785 a directory. All uses removed.
49786 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
49787 universal on Suns, and we also need to test for IRIX.
49788 Revamp code to use 'if' rather than '#if'.
49789 Avoid unnecessary comparison of cwd->desc to 0.
49791 * lib/utimens.c (futimens): Robustify the previous patch, by checking
49792 for known valid error numbers rather than observed invalid ones.
49794 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
49796 * modules/ullong_max: New file.
49798 * modules/chdir-long, modules/openat: New files.
49799 * modules/save-cwd (Depends-on): Depend on chdir-long.
49800 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
49802 2005-01-18 Jim Meyering <jim@meyering.net>
49804 Merge from coreutils.
49805 * m4/chdir-long.m4, m4/openat.m4: New files.
49806 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
49807 save-cwd.h. Add AC_LIBOBJ for save-cwd.
49808 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
49809 is sane and DOES follow symlinks. Besides, testing 20 different
49810 systems found no broken chown implementations.
49811 Prompted by a change in rsync's copy of this macro.
49812 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
49814 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
49816 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
49817 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
49818 NULL-means-set-to-current-time semantics.
49819 Remove temporary file immediately, rather than waiting
49820 for configure's at-exit trap code to do it.
49822 2005-01-18 Jim Meyering <jim@meyering.net>
49824 * lib/version-etc.c (version_etc_copyright): Update copyright date.
49826 * lib/utimens.c (futimens): Account for the fact that futimes
49827 can also fail with errno == ENOSYS or errno == ENOENT.
49828 Patch from Dmitry V. Levin.
49830 Change the name of the robust chdir function from chdir to chdir_long.
49831 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
49832 (restore_cwd): Use chdir_long, not chdir.
49833 * lib/chdir-long.c: Renamed from chdir.c.
49834 * lib/chdir-long.h: Renamed from chdir.h.
49835 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
49838 2005-01-18 Bruno Haible <bruno@clisp.org>
49840 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
49841 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
49842 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
49843 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
49844 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
49845 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
49846 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
49847 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
49848 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
49849 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
49850 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
49851 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
49852 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
49853 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
49854 Use an all-permissive copyright notice, recommended by RMS.
49856 2005-01-18 Bob Proulx <bob@proulx.com>
49858 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
49859 simplify offsetof() macro construct to avoid compile failure with
49860 native HP-UX 11.0 ANSI C compiler.
49862 2005-01-17 Bruno Haible <bruno@clisp.org>
49864 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
49865 redundant because stpncpy.m4 takes care of it.
49867 2005-01-17 Bruno Haible <bruno@clisp.org>
49869 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
49871 2005-01-17 Bruno Haible <bruno@clisp.org>
49873 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
49876 2005-01-17 Bruno Haible <bruno@clisp.org>
49878 * lib/fwriteerror.h (fwriteerror): Change specification to include
49880 * lib/fwriteerror.c: Include <stdbool.h>.
49881 (fwriteerror): At the end, close the file stream. Record whether
49882 stdout was already closed.
49884 2005-01-17 Bruno Haible <bruno@clisp.org>
49886 * lib/execute.c (environ): Declare if needed.
49887 * lib/pipe.c (environ): Likewise.
49888 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
49890 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
49892 * modules/argp: Depend on vsnprintf
49894 2005-01-10 Jim Meyering <jim@meyering.net>
49896 * modules/closeout (Depends-on): Add atexit.
49898 2005-01-06 Bruno Haible <bruno@clisp.org>
49900 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
49902 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
49904 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
49905 definitions to be after all include files, to avoid collisions.
49906 Problem reported by Bob Proulx.
49908 2005-01-04 Jim Meyering <jim@meyering.net>
49910 Changes imported from coreutils.
49911 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
49912 as the mkstemp template, use a temporary directory and an
49913 8.3-friendly template to avoid trouble on systems like DJGPP.
49914 Reported by Juan M. Guerrero via Stepan Kasal.
49915 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
49916 close. Remove the temporary directory right away, rather than waiting
49917 for configure's at-exit trap code to do it.
49918 Suggestion from Stepan Kasal.
49920 2005-01-01 Simon Josefsson <jas@extundo.com>
49922 * gnulib-tool: Print #include directives when --import'ing.
49924 2004-12-28 Simon Josefsson <jas@extundo.com>
49926 * tests/test-base64.c: Include required header files. Remove
49929 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
49931 * modules/error (Depends-on): Remove gettext.
49933 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
49935 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
49936 not needed. This removes a dependency on the gettext module.
49937 [defined _LIBC]: Do not include <libintl.h>; not needed.
49939 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
49941 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
49942 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
49944 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
49946 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
49949 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
49951 * modules/getdate (Depends-on): Remove alloca-opt.
49953 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
49955 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
49957 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
49959 * lib/argp-parse.c: Include <stddef.h>.
49960 (alignof, alignto): New macros.
49961 (parser_init): Don't assume that void * is aligned sufficiently
49964 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
49965 need to extend the stack.
49966 (YYINITDEPTH): New macro, so that the initial stack isn't overly
49969 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
49971 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
49973 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
49975 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
49976 (2004-10-24) change. Apparently this was a false alarm.
49978 * modules/getdate: Depend on alloca-opt, not alloca.
49980 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
49982 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
49983 Remove now-obsolete comment about AIX.
49984 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
49985 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
49986 (YYMAXDEPTH): New macro.
49988 2004-12-18 Simon Josefsson <jas@extundo.com>
49990 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
49992 2004-12-18 Bruno Haible <bruno@clisp.org>
49994 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
49996 2004-12-18 Bruno Haible <bruno@clisp.org>
49998 * lib/fatal-signal.c (fatal_signals): Make non-const.
49999 (init_fatal_signals): New function.
50000 (uninstall_handlers, install_handlers): Ignore signals that were set to
50002 (at_fatal_signal): Call init_fatal_signals.
50003 (init_fatal_signal_set): Likewise. Ignore signals that were set to
50005 Reported by Paul Eggert.
50007 2004-12-18 Bruno Haible <bruno@clisp.org>
50009 * doc/alloca.texi: New file.
50010 * doc/alloca-opt.texi: New file.
50012 2004-12-17 Jim Meyering <jim@meyering.net>
50014 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
50015 Otherwise, install-sh could exit with improper exit status when
50016 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
50018 2004-12-16 Simon Josefsson <jas@extundo.com>
50020 * tests/test-base64.c: Add license.
50022 2004-12-15 Stepan Kasal <address@hidden>
50024 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
50026 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
50028 * modules/getcwd (Files): Add m4/d-ino.m4.
50029 Suggested by Mark D. Baushke.
50031 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
50033 * lib/getdate.y (textint): New member "negative".
50034 (time_zone_hhmm): New function.
50035 Expect 14 shift-reduce conflicts, not 13.
50036 (o_colon_minutes): New rule.
50037 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
50038 (yylex): Set the "negative" member of signed numbers.
50040 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
50042 * doc/getdate.texi (Time of day items, Time zone items):
50043 Describe new formats +00:00, UTC+00:00.
50045 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
50047 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
50048 spurious "-l"s. Problem reported by Stepan Kasal.
50050 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
50052 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
50053 in Autoconf 2.59. Problem reported by Mark D. Baushke.
50055 2004-12-04 Simon Josefsson <jas@extundo.com>
50057 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
50058 Vandoorselaere <yoann@prelude-ids.org>.
50060 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
50062 Changes imported from coreutils.
50063 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
50065 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
50067 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
50069 Changes imported from coreutils.
50070 * lib/hard-locale.c: Assume <locale.h> exists.
50071 Include "strdup.h".
50072 (GLIBC_VERSION): New macro.
50073 (hard_locale): Assume setlocale exists.
50074 Rewrite to avoid #ifdef.
50075 Use strdup rather than malloc + strcpy.
50076 * lib/human.c: Assume <locale.h> exists.
50077 (human_readable): Assume localeconv exists.
50079 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
50081 * modules/hard-locale (Depends-on): Add strdup.
50083 2004-12-01 Jakub Jelinek <jakub@redhat.com>
50085 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
50086 convert T2, not T. (Imported from libc.)
50088 2004-11-30 Simon Josefsson <jas@extundo.com>
50090 * modules/restrict (License): Change to LGPL.
50092 2004-11-30 Simon Josefsson <jas@extundo.com>
50094 * m4/restrict.m4: Add copyright and copying conditions.
50096 2004-11-30 Simon Josefsson <jas@extundo.com>
50098 * m4/base64.m4: New file.
50100 2004-11-30 Simon Josefsson <jas@extundo.com>
50102 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
50105 * tests/test-base64.c: New file.
50107 * modules/base64: New file.
50109 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
50111 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
50112 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
50114 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
50116 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
50118 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
50119 (__getcwd.c): Don't restore errno; glibc doesn't.
50120 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
50121 first, falling back to our code only if its results look suspicious.
50122 Ensure that the resulting buffer is only as large as necessary.
50124 * lib/readutmp.c: Include readutmp.h first.
50125 Include <errno.h>, since readutmp.h no longer does that.
50126 * lib/readutmp.h: Don't include <errno.h>,
50127 <sys/param.h>, <time.h>; not needed to establish interface.
50128 (errno): Remove decl.
50129 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
50130 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
50131 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
50133 2004-11-28 Simon Josefsson <jas@extundo.com>
50135 * lib/base64.h, base64.c: New file.
50137 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
50139 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
50141 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
50143 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
50144 (Depends-on): Remove pathmax, same. Add mempcpy.
50145 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
50146 (Makefile.am): Append getcwd.h to lib_SOURCES.
50147 (Include): Add getcwd.h.
50148 (Maintainer): Change from Jim Meyering to "all, glibc",
50149 since getdate now uses intended-for-glibc code.
50150 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
50151 (Depends-on): Depend on getcwd. Do not depend on pathmax.
50153 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
50155 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
50156 HP's ANSI C compiler.
50157 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
50158 Declaring int functions causes warnings on some modern systems and
50159 shouldn't be needed to compile on ancient ones.
50160 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
50163 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
50164 with the following changes.
50165 (__set_errno): Parenthesize properly.
50166 Include <stdbool.h>.
50167 (MIN, MAX, MATCHING_INO): New macros.
50168 (__getcwd): Define with prototype, not K&R form.
50169 Use heuristics to allocate default buffer on stack if possible.
50170 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
50171 behavior, and to avoid the PATH_MAX limit when computing
50173 Use MATCHING_INO to compare inode number to file.
50174 Check for arithmetic overflow in size calculations.
50175 Fix bug in reallocation of dot array that caused getcwd to fail
50176 on directories nested deeper than 75.
50177 Be more careful about saving errno on error.
50178 Do not use realloc; use only free+malloc, as this is a bit
50179 more flexible and avoids a needless copy operation.
50180 Do not inspect st_dev and st_ino for symbolic links; POSIX
50181 doesn't specify the latter.
50182 Check for closedir errors.
50183 Avoid needless casts.
50184 Use "#ifdef weak_alias" around weak_alias, to be like other
50186 The following changes to getcwd.c have effect only when used in
50187 gnulib; they have no effect inside glibc proper.
50188 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
50189 as alloca isn't used.
50190 (alloca, __alloca): Likewise.
50191 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
50192 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
50193 unconditionally, as gnulib assumes C89 or better.
50194 Do not include <sys/param.h>.
50195 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
50196 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
50198 (NULL) [!defined NULL]: Remove; we assume C89 or better.
50199 Include <dirent.h> in a way that is compatible with modern Autoconf.
50200 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
50201 New macros, if not already defined.
50202 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
50203 Use "_LIBC", not "defined _LIBC", for consistency.
50204 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
50206 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
50207 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
50208 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
50209 credit only to Jim Meyering and adjust the copyright dates.
50210 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
50211 <stdlib.h>, <unistd.h>, "pathmax.h".
50212 Instead, include "xgetcwd.h" (first) and "getcwd.h".
50213 (INITIAL_BUFFER_SIZE): Remove.
50214 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
50216 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
50218 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
50219 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
50220 Use the _ONCE methods, for efficiency.
50221 Check for fcntl.h. In test program, include <errno.h>
50222 and <fcntl.h> if available. Remove old K&R cruft from
50223 test program. Check for common errors in GNU/Linux,
50224 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
50225 don't do AC_LIBOBJ, as that's getcwd.m4's job.
50226 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
50227 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
50229 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
50230 accommodate new getcwd.c.
50231 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
50232 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
50233 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
50234 that's all we need now.
50236 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50238 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
50239 argp-parse.c depends on getopt internals, that means we should
50240 always use our getopt, to be on the safe side.
50241 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
50242 order not to spoil the result of an eventual previous invocation
50243 of gl_GETOPT_SUBSTITUTE.
50245 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50247 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
50248 redefinition warnings. To avoid them, include the defines
50249 in `#if !defined __need_getopt ... #endif'. The only place
50250 where __getopt_argv_const is used is in definitions
50251 of getopt_long and getopt_long_only below, which are as well
50252 protected by `#ifndef __need_getopt'.
50253 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
50254 __need_getopt after including <stdio.h> and <unistd.h> These
50255 headers might have defined it.
50257 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
50259 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
50261 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
50263 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
50264 (futimens): New function, which uses futimes if available.
50265 (futimens, utimens): Support timespec==NULL, with same semantics
50266 as utime and utimens.
50267 * lib/utimens.h (futimens): New decl.
50269 2004-11-23 Jim Meyering <jim@meyering.net>
50271 * lib/getopt_.h: Remove trailing blanks.
50273 2004-11-23 Jim Meyering <jim@meyering.net>
50275 * lib/__fpending.c: Add comment.
50277 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
50279 * modules/canonicalize (Depends-on): Add xreadlink.
50280 Problem reported by James Youngman.
50282 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
50284 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
50286 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
50287 optopt): Use them instead of invoking ## directly; otherwise, the
50288 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
50290 2004-11-19 Bruno Haible <bruno@clisp.org>
50292 * lib/strtok_r.c: Move comments from here...
50293 * lib/strtok_r.h: ... to here.
50295 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
50297 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
50298 implementations that mishandle size_t overflow.
50300 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
50302 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
50303 might fail. Problem reported by Yoann Vandoorselaere.
50304 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
50305 implementations that mishandle size_t overflow.
50307 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
50309 * modules/canon-host (Depends-on): Add strdup.
50311 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
50313 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
50315 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
50317 * lib/canon-host.c: Include "strdup.h".
50318 (canon_host): Use getaddrinfo if available, so that IPv6 works.
50319 Use strdup instead of malloc/strcpy to duplicate strings.
50321 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
50322 (human_space_before_unit): New constant.
50323 * lib/human.c (human_readable): Support it.
50325 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
50326 (xgetcwd): Set errno correctly when failing.
50327 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
50328 the failure is actually due to a PATH_MAX problem.
50330 Further getopt changes to make it more likely that glibc will
50331 buy the changes back.
50332 * lib/getopt.c (POSIXLY_CORRECT): New constant.
50333 (getopt): Use it, so to preserve glibc semantic
50334 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
50335 when compiling for libc.
50336 * lib/getopt_.h (__getopt_argv_const): Bring it back.
50337 (getopt_long, getopt_long_only): Use it.
50339 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50340 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
50341 (getopt): Argv is now char * const *, as per standard.
50342 (_getopt_internal_r, _getopt_internal): Argv is now char **,
50343 not char *__getopt_argv_const *.
50344 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50345 _getopt_long_only_r): Likewise.
50346 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
50347 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50348 _getopt_long_r, _getopt_long_only_r): Likewise.
50349 * lib/getopt_.h (__getopt_argv_const): Remove.
50350 (getopt): Argv is now char * const *, as per standard.
50352 * lib/getdate.y (tORDINAL): New token.
50353 (day, relunit): Allow it for relative times.
50354 (relative_time_table): Use tORDINAL for ordinals.
50356 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
50358 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
50359 Document that "second" isn't allowed as an ordinal number.
50361 2004-11-16 Jim Meyering <jim@meyering.net>
50363 * modules/closeout (Depends-on): Add fpending.
50365 2004-11-15 Jim Meyering <jim@meyering.net>
50367 * lib/closeout.c: Include "__fpending.h" once again.
50368 Include <stdbool.h>.
50369 (close_stdout): Don't fail just because stdout was closed initially,
50370 since some programs don't write to stdout in the normal course of
50371 operation (other than --version and --help), and we don't want this
50372 function to make e.g. `touch file >&-' fail.
50373 But do fail if it was closed and someone has tried to write to it.
50374 E.g., `printf foo >&-' must fail.
50376 2004-11-13 Jim Meyering <jim@meyering.net>
50378 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
50380 2004-11-12 Simon Josefsson <jas@extundo.com>
50382 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
50383 small doc fix is still pending.
50385 2004-11-11 Simon Josefsson <jas@extundo.com>
50387 * modules/strtok_r: New file.
50389 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50392 2004-11-11 Simon Josefsson <jas@extundo.com>
50394 * m4/strtok_r.m4: New file.
50396 * m4/getopt.m4: Replace opterr.
50398 2004-11-11 Simon Josefsson <jas@extundo.com>
50400 * lib/strtok_r.h, strtok_r.c: New file.
50402 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
50404 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
50405 of replacing opterr, getopt, etc. This should handle the
50406 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
50408 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
50410 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
50411 we can stop lying to compilers about the constness of argv when we
50412 are compiled outside glibc.
50413 (getopt, getopt_long, getopt_long_only): Use it.
50414 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
50415 _getopt_internal, getopt): Likewise.
50416 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
50417 _getopt_long_only_r): Likewise.
50418 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
50419 _getopt_long_r, _getopt_long_only_r): Likewise.
50421 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
50422 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
50423 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
50424 the other external symbols.
50425 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
50426 declaration, since the above renaming now works around collisions.
50428 2004-11-11 Jim Meyering <jim@meyering.net>
50430 * lib/linebreak.c: Remove trailing blanks.
50431 * lib/alloca_.h: Likewise.
50432 * lib/acosl.c: Likewise.
50433 * lib/euidaccess.c: Likewise.
50434 * lib/allocsa.h: Likewise.
50436 2004-11-10 Simon Josefsson <jas@extundo.com>
50438 * m4/getaddrinfo.m4: New file.
50440 2004-11-10 Simon Josefsson <jas@extundo.com>
50442 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
50444 2004-11-10 Simon Josefsson <jas@extundo.com>
50446 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50449 * modules/getaddrinfo: New file.
50451 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
50453 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
50455 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
50457 * lib/mktime.c (SHR): New macro, which is a portable
50458 substitute for >> that should work even on Crays.
50459 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
50460 Problem reported by Mark D. Baushke in
50461 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
50462 * lib/getdate.y (SHR): Likewise.
50464 * lib/strftime.c (SHR): Likewise.
50466 * lib/quotearg.c (struct quoting_options): Use unsigned int for
50467 quote_these_too, so that right shifts are well defined. All uses
50470 2004-11-10 Jim Meyering <jim@meyering.net>
50472 Ensure that no close failure goes unreported.
50473 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
50474 return early when it seems there's nothing to flush.
50475 Don't include __fpending.h.
50477 2004-11-10 Jim Meyering <jim@meyering.net>
50479 * modules/closeout (Depends-on): Remove fpending.
50481 2004-11-10 Jim Meyering <jim@meyering.net>
50483 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
50485 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
50487 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
50489 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
50490 and AC_REQUIRE when possible, to avoid duplicate checks.
50491 Check for <wchar.h>.
50493 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
50495 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
50497 2004-11-09 Bruno Haible <bruno@clisp.org>
50499 * m4/sockpfaf.m4: New file.
50501 2004-11-05 Bruno Haible <bruno@clisp.org>
50503 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
50504 Reported by Mark D. Baushke <mdb@cvshome.org>.
50506 2004-11-04 Bruno Haible <bruno@clisp.org>
50508 2004-09-11 Bruno Haible <bruno@clisp.org>
50509 * allocsa.valgrind: New file.
50510 2004-02-06 Bruno Haible <bruno@clisp.org>
50511 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
50512 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
50513 Reported by Christopher Seip <chris.seip@hp.com>.
50515 2004-11-04 Bruno Haible <bruno@clisp.org>
50517 * modules/allocsa (Files): Add lib/allocsa.valgrind.
50518 (Makefile.am): Distribute it.
50520 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
50522 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
50523 with errno == ERANGE if the buffer is too small.
50524 Problem reported by Mark D. Baushke.
50526 2004-11-03 Albert Chin <china@thewrittenword.com>
50527 Paul Eggert <eggert@cs.ucla.edu>
50529 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
50530 equivalent, substitute $ac_type for equivalent type rather than
50531 blindly using uint32_t *always* which won't work if uint32_t is not
50532 available. Define _UINT32_T to work around typedef of uint32_t if
50533 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
50536 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
50538 * m4/jm-macros.m4: Sync from coreutils.
50539 (gl_MACROS): Check for mbrlen, for pathchk.
50540 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
50542 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
50544 * lib/xreadlink.c (MAXSIZE): New macro.
50545 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
50546 size does not exceed MAXSIZE. Avoid cast.
50547 As suggested by Mark D. Baushke in
50548 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
50549 if readlink fails with buffer size just under MAXSIZE, try again
50552 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
50554 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
50556 2004-11-02 Derek R. Price <derek@ximbiot.com>
50557 and Paul Eggert <eggert@cs.ucla.edu>
50559 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
50560 (get_date): Overparenthesize to avoid GCC warning.
50562 2004-11-02 Bruno Haible <bruno@clisp.org>
50564 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
50567 2004-11-02 Bruno Haible <bruno@clisp.org>
50569 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
50570 function returns void.
50572 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
50574 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
50575 fflush_unlocked, flockfile, funlockfile, funlockfile,
50576 fputs_unlocked, putc_unlocked.
50578 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
50580 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
50581 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
50584 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
50586 * modules/getdate (Files): Add doc/getdate.texi.
50587 (Depends-on): Add setenv, xalloc.
50589 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
50591 * lib/getdate.y: Add support for TZ="foo" within a date string.
50592 Fix some bugs near time_t boundaries. Reject dates with
50593 out-of-range components, e.g., "Sept 31".
50594 Include <stdlib.h>, "setenv.h", "xalloc.h".
50595 (ISDIGIT_LOCALE): Remove; unused.
50596 Note that the TZ and time functions used here are not reentrant.
50597 (mktime_ok, get_tz): New functions.
50598 (TZBUFSIZE): New constant.
50599 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
50600 This requires that we sometimes generate our own TZ="XXX..." setting.
50602 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
50604 * doc/getdate.texi: New file, from coreutils with modifications for
50605 the new TZ parsing.
50607 2004-10-27 Derek R. Price <derek@ximbiot.com>
50609 * lib/mktime.c (not_equal_tm): Remove redundant check.
50611 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
50613 * modules/regex (lib_SOURCES): Add regex.c.
50614 Reported by James Youngman in
50615 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
50617 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
50619 * lib/getdate.y: Use Bison 1.875 features, and some minor
50620 code cleanups. This change does not affect semantics.
50621 Don't include <stdlib.h>; no longer needed.
50622 Don't include unlocked-io.h; only the "#if TEST" code uses
50623 stdio, and performance isn't crucial there.
50624 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
50625 Bison 1.875 features as described below.
50626 All uses of "PC." replaced by "pc->".
50627 (YYSTYPE): Add a forward declaration.
50628 (yylex, yyerror): Use full prototypes in forward decls.
50629 Use "%pure-parser" rather than obsolescent "%pure_parser".
50630 Use %parse-param and %lex-param instead of obsolescent
50631 YYPARSE_PARAM and YYLEX_PARAM.
50632 (meridian_table, month_and_day_table, time_units_table,
50633 relative_time_table, time_zone_table, military_table,
50634 lookup_zone, lookup_word, get_date):
50635 Use NULL instead of 0 where appropriate.
50636 (to_hour): Avoid abort (), to avoid a dependency on
50638 (yyerror, yylex): Now accepts parser_control * arg.
50639 (main) [TEST]: Use '\0' rather than 0 for char.
50641 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
50643 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
50645 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
50647 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
50648 It's now the caller's responsibility to handle the case where
50649 !HAVE_GETPAGESIZE && !defined getpagesize.
50651 * lib/mktime.c (leapyear): Arg is long int, not int.
50653 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
50655 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
50657 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
50659 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
50660 missing. Problem reported by James Youngman.
50662 2004-10-16 Simon Josefsson <jas@extundo.com>
50664 * gnulib-tool: Fix comments. Fix parse problem.
50665 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
50667 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
50669 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
50670 implementation of getopt_long. Problem reported by Alexander Taler in:
50671 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
50673 2004-10-15 Bruno Haible <bruno@clisp.org>
50675 * gnulib-tool: Untabify. Initialize supplied_libname.
50676 (func_usage): More homogenous output.
50677 (func_modules_transitive_closure, func_modules_to_filelist,
50678 func_emit_lib_Makefile_am): New functions.
50679 (func_import): New function, extracted from big case statement. Use
50680 func_get_license, func_modules_transitive_closure,
50681 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
50682 opt_lgpl. Don't use test -a, as it's not portable.
50683 (func_create_testdir): Use func_modules_transitive_closure,
50684 func_modules_to_filelist, func_emit_lib_Makefile_am.
50686 2004-10-15 Bruno Haible <bruno@clisp.org>
50688 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
50690 2004-10-15 Bruno Haible <bruno@clisp.org>
50692 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
50693 the portions belonging to each module.
50694 Suggested by Derek Robert Price <derek@ximbiot.com>.
50696 2004-10-12 Simon Josefsson <jas@extundo.com>
50698 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
50699 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
50702 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
50704 * modules/vsnprintf: New file.
50706 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
50708 * m4/vsnprintf.m4: New file.
50710 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
50712 * lib/vsnprintf.h: New file.
50713 * lib/vsnprintf.c: New file.
50715 2004-10-11 Bruno Haible <bruno@clisp.org>
50717 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
50720 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
50722 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
50724 2004-10-07 Bruno Haible <bruno@clisp.org>
50726 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
50727 fits into the provided buffer.
50729 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
50731 * lib/diacrit.c, diacrit.h: Add GPL notice.
50733 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
50735 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
50736 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
50737 This avoids a potential constant-folding bug.
50739 2004-10-05 Bruno Haible <bruno@clisp.org>
50741 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
50742 for the declaration of strsep.
50744 2004-10-05 Bruno Haible <bruno@clisp.org>
50746 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
50748 2004-10-04 Simon Josefsson <jas@extundo.com>
50750 * modules/memmem: New file.
50751 * tests/test-memmem.c: New file.
50752 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
50754 2004-10-04 Simon Josefsson <jas@extundo.com>
50756 * m4/memmem.m4: New file.
50758 2004-10-04 Simon Josefsson <jas@extundo.com>
50760 * lib/memmem.h: New file.
50761 * lib/memmem.c: New file, taken from glibc.
50763 2004-10-04 Simon Josefsson <jas@extundo.com>
50765 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
50766 '#ifdef USE_UNLOCKED_IO'.
50768 2004-10-04 Simon Josefsson <jas@extundo.com>
50770 * config/srclist.txt: Add memmem from glibc.
50772 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
50774 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
50776 * modules/argmatch, modules/argp, modules/closeout, modules/error,
50777 modules/exclude, modules/getdate, modules/getline,
50778 modules/getndelim2, modules/getpass, modules/getpass-gnu,
50779 modules/getusershell, modules/linebuffer, modules/md5,
50780 modules/mountlist, modules/posixtm, modules/readtokens,
50781 modules/readutmp, modules/regex, modules/sha1,
50782 modules/version-etc, modules/yesno:
50783 Remove dependency on unlocked-io.
50785 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
50787 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
50789 * m4/unlocked-io.m4: Add copyright notice.
50790 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
50792 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
50794 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
50795 * lib/xmalloc.c (xmemdup): Likewise.
50796 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
50797 XFREE): Remove these long-obsolescent macros.
50798 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
50799 * lib/xstrdup.c: Remove.
50801 * lib/regex.c (re_comp): Cast gettext return value to char *,
50802 Problem reported by Martin Neitzel via Mark D. Baushke.
50804 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
50806 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
50807 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
50808 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
50809 regex.c, sha1.c, version-etc.c, yesno.c:
50810 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
50811 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
50812 the includer's responsibility.
50814 Sync from coreutils.
50816 * lib/modechange.c (mode_compile): Don't decrement a pointer that
50817 points to the start of a string, as the C Standard says the
50818 resulting behavior is undefined.
50820 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
50821 simple -> simple_backups, numbered_existing ->
50822 numbered_existing_backups, numbered -> numbered_backups
50823 to avoid shadowing problems. All uses changed.
50824 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
50825 * lib/backupfile.c (check_extension, numbered_backup):
50826 Rename locals to avoid shadowing 'basename'.
50827 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
50830 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
50831 * lib/.cvsignore: Add getopt.h.
50833 2004-10-04 Bruno Haible <bruno@clisp.org>
50835 * modules/README: New file.
50836 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
50839 2004-10-02 Jim Meyering <jim@meyering.net>
50841 * lib/dirfd.h, getpagesize.h: Add copyright notice.
50843 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
50845 * modules/strsep: New file.
50847 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
50849 * m4/strsep.m4: New file.
50851 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
50853 * lib/strsep.h: New file.
50854 * lib/strsep.c: New file.
50856 2004-10-01 Simon Josefsson <jas@extundo.com>
50858 * lib/snprintf.c (snprintf): Handle size==0.
50860 2004-10-01 Simon Josefsson <jas@extundo.com>
50861 Bruno Haible <bruno@clisp.org>
50863 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
50864 (snprintf): Declare 'args'.
50866 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
50868 * lib/snprintf.c: Remove comments as to why each header is needed.
50870 2004-10-01 Bruno Haible <bruno@clisp.org>
50872 * MODULES.html.sh: Add strsep.
50874 2004-09-30 Simon Josefsson <jas@extundo.com>
50876 * modules/snprintf: New file.
50878 2004-09-30 Simon Josefsson <jas@extundo.com>
50880 * m4/snprintf.m4: New file.
50882 2004-09-30 Simon Josefsson <jas@extundo.com>
50884 * lib/snprintf.h, lib/snprintf.c: New files.
50886 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50888 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
50889 (hol_entry_help): Never translate an empty string.
50890 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
50891 * lib/argp.h (OPTION_NO_TRANS): New option.
50893 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
50895 * modules/argp (Maintainer): Replace Simon Josefsson
50896 by Sergey Poznyakoff.
50898 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
50900 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
50901 changes merged back into glibc.
50903 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
50905 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
50907 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
50909 * lib/xvasprintf.c: Include xalloc.h.
50910 (xvasprintf): Use xalloc_die, not xmalloc_die.
50912 2004-09-29 Bruno Haible <bruno@clisp.org>
50914 * modules/alloca-opt: New file, derived from modules/alloca.
50915 * modules/allocsa: Depend on alloca-opt instead of alloca.
50916 * modules/setenv: Likewise.
50917 * modules/vasnprintf: Likewise.
50918 * MODULES.html.sh: Add alloca-opt.
50920 2004-09-28 Simon Josefsson <jas@extundo.com>
50922 * gnulib-tool: New parameter --lgpl, to asseert that modules are
50923 LGPL, and to replace license template from GPL to LGPL.
50925 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
50927 * modules/dummy: Change license to LGPL.
50929 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
50931 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
50933 2004-09-24 Simon Josefsson <jas@extundo.com>
50935 * modules/minmax (License): Change from GPL to LGPL.
50937 2004-09-23 Simon Josefsson <jas@extundo.com>
50939 * gnulib-tool (--import): Typo.
50941 2004-09-23 Simon Josefsson <jas@extundo.com>
50943 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
50945 2004-09-22 Bruno Haible <bruno@clisp.org>
50947 * modules/*: Add 'License' field.
50948 * gnulib-tool: Accept --extract-license option.
50949 (func_get_license): New function.
50951 2004-09-21 Bruno Haible <bruno@clisp.org>
50953 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
50954 Reported by Simon Josefsson.
50956 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
50958 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
50959 gl_AC_TYPE_LONG_LONG.
50961 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
50963 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
50965 2004-09-18 Simon Josefsson <jas@extundo.com>
50966 and Paul Eggert <eggert@cs.ucla.edu>
50968 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
50969 calls with autoreconf. Define GL_LIB.
50971 2004-09-14 Karl Berry <karl@gnu.org>
50973 * config/srclist.txt: unsync setenv.c, sigh.
50975 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
50977 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
50978 Problem reported by Bruno Haible in:
50979 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
50981 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
50983 * config/srclist.txt: Comment out argp-pvh.c.
50985 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
50987 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
50988 in case some system header has #define'd it. Problem reported by
50989 Soeren D. Schulze in
50990 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
50992 2004-09-09 Karl Berry <karl@gnu.org>
50994 * regex.[ch]: delete from the root. These were supposed to be
50995 synced with emacs cvs, but this has not happened for about
50996 a year, and anyway nothing else uses emacs regex.[ch].
50997 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
50998 lib/regex[.ch] is untouched.
51000 2004-09-09 Bruno Haible <bruno@clisp.org>
51002 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
51004 2004-09-09 Bruno Haible <bruno@clisp.org>
51006 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
51008 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
51010 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
51012 * modules/xvasprintf: New file.
51013 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
51015 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
51017 * lib/xvasprintf.h: New file.
51018 * lib/xvasprintf.c: New file.
51019 * lib/xasprintf.c: New file.
51021 2004-09-08 Bruno Haible <bruno@clisp.org>
51023 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
51025 2004-09-08 Bruno Haible <bruno@clisp.org>
51027 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
51028 length is > INT_MAX.
51029 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
51032 2004-09-08 Bruno Haible <bruno@clisp.org>
51034 * lib/stdint_.h: New file, taken from GNU clisp.
51036 2004-09-08 Bruno Haible <bruno@clisp.org>
51037 Oskar Liljeblad <oskar@osk.mine.nu>
51039 * modules/stdint: New file.
51040 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
51042 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
51044 Import from coreutils.
51045 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
51046 strings on unbounded length. alloca's performance benefits aren't
51047 that important here.
51048 (V_STRDUP): Remove.
51049 (parse_with_separator): New function, with most of the internals
51050 of the old parse_user_spec. Allow user to omit both user and group,
51051 for compatibility with FreeBSD.
51052 Clone only the user name, not the entire spec.
51053 Do not set *uid, *gid unless entirely successful.
51054 Avoid memory leak in some failing cases.
51055 Fix regression for USER.GROUP reported by Dmitry V. Levin in
51056 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
51057 (parse_user_spec): Rewrite to use parse_with_separator.
51059 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
51061 * modules/userspec: Don't depend on alloca.
51063 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
51065 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
51067 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
51069 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
51070 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
51071 utimecmp, utimens, xnanosleep. Rename sha to sha1.
51073 2004-08-16 Simon Josefsson <jas@extundo.com>
51075 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
51076 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
51077 Add --dry-run for --import.
51078 Let user provided command line parameters override configure.ac
51081 2004-08-12 Simon Josefsson <jas@extundo.com>
51083 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
51084 as discussed with Paul Eggert in threads rooted at
51085 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
51087 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
51088 Before, the test was empty, and relied on ELIDE_CODE in source
51090 (gl_PREREQ_GETOPT): New macro.
51091 (gl_GETOPT): Use them.
51093 2004-08-12 Simon Josefsson <jas@extundo.com>
51095 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
51096 * lib/getopt_.h: Renamed from getopt.h.
51098 2004-08-12 Simon Josefsson <jas@extundo.com>
51100 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
51101 Change default library name from libfoo to libgnu.
51102 Now, if you have a configure.ac that says:
51105 gl_MODULES(error getopt etcetera)
51107 you can import all you need by running:
51108 ../gnulib/gnulib-tool --import
51110 * modules/getopt (Files): Rename getopt.h to getopt_.h.
51111 (Makefile.am): Rewrite, use logic from argz.
51112 (Include): Use <getopt.h> instead of "getopt.h".
51114 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
51116 * modules/argp (Files): Add m4/unlocked-io.m4.
51117 (Depends-on): Add extensions.
51119 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
51121 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
51122 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
51123 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
51124 Check for program_invocation_name, program_invocation_short_name,
51125 flockfile, funlockfile, features.h, _getopt_long_only_r.
51127 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
51129 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
51130 its complicated substitute.
51131 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
51132 and program_invocation_name.
51133 (__argp_basename) [!_LIBC]: Remove; the only use was
51134 replaced by its body.
51135 (__argp_short_program_name): Change condition from
51136 !defined __argp_short_program_name to
51137 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
51138 to match argp-namefrob.h.
51139 (__argp_failure): Don't assume strerror_r returns char *.
51140 * lib/argp-parse.c (N_): Define unconditionally.
51141 (argp_default_options): Fill out initializers with 0 to avoid
51144 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
51146 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
51149 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
51151 Merge from coreutils.
51153 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
51155 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
51156 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
51158 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
51160 Merge from coreutils.
51162 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
51163 wmemchr or wmemcpy. Problem reported by Robert Dahlem
51164 for Reliant Unix 5.43.
51166 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
51167 (union fooround): Use uintmax_t, not long int.
51168 The rest is a merge from libc:
51169 [defined _LIBC]: Include <shlib-compat.h>.
51170 (_obstack) [defined _LIBC]: Remove after 2.3.4.
51172 * lib/settime.c (settime): Recode to avoid warning with
51175 * lib/strverscmp.c: Convert to UTF-8.
51177 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
51179 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
51182 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
51184 * modules/xalloc-die: New file.
51185 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
51187 * modules/md5 (Files): Add m4/uint32_t.m4.
51188 * modules/sha1: Renamed from modules/sha.
51190 Rename lib/sha.h to lib/sha1.h.
51191 Rename lib/sha.c to lib/sha1.c.
51192 Rename m4/sha.m4 to m4/sha1.m4.
51193 (lib_SOURCES): Likewise.
51194 (configure.ac): Rename gl_SHA to gl_SHA1.
51195 (Include): sha.h -> sha1.h.
51197 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
51199 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
51200 * m4/sha1.m4: Renamed from sha.m4.
51201 (gl_SHA1): Renamed from gl_SHA. All uses changed.
51203 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
51205 * lib/obstack.h (obstack_empty_p):
51206 Don't assume that chunk->contents is suitably aligned.
51207 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
51208 Likewise. Problem reported by Benno in
51209 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
51211 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
51212 readable. This could be improved further but it'd take some work.
51214 2004-08-08 Simon Josefsson <jas@extundo.com>
51216 * modules/xgethostname (Depends-on): Remove exit and error (not
51219 * modules/getpass-gnu: Add getpass.h.
51220 (Depends-on): Add stdbool.
51221 * modules/getpass: Add getpass.h.
51223 2004-08-08 Simon Josefsson <jas@extundo.com>
51225 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
51226 Check getpass declaration.
51228 2004-08-08 Simon Josefsson <jas@extundo.com>
51230 * lib/xgethostname.c: Don't include error.h (not used).
51232 * lib/getpass.h: Add.
51233 * lib/getpass.c: Include getpass.h first.
51235 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
51237 * lib/xalloc-die.c: New file.
51238 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
51240 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
51241 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
51243 (_, N_, xalloc_die): Move to xalloc-die.c.
51244 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
51245 so that we needn't mess with xalloc_msg_memory_exhausted.
51247 * lib/sha1.h: Renamed from sha.h.
51248 (SHA1_H): Renamed from _SHA_H.
51249 (sha1_ctx): Renamed from sha_ctx.
51250 (sha1_init_ctx): Renamed from sha_init_ctx.
51251 (sha1_process_block): Renamed from sha_process_block.
51252 (sha1_process_bytes): Renamed from sha_process_bytes.
51253 (sha1_finish_ctx): Renamed from sha_finish_ctx.
51254 (sha1_read_ctx): Renamed from sha_read_ctx.
51255 (sha1_stream): Renamed from sha_stream.
51256 (sha1_buffer): Renamed from sha_buffer.
51257 * lib/sha1.c: Likewise; renamed from sha.c.
51258 Do not include <sys/types.h>.
51259 Include <stddef.h> rather than <stdlib.h>.
51261 2004-08-08 Bruno Haible <bruno@clisp.org>
51263 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
51264 FILESYSTEM_PREFIX_LEN.
51265 * lib/progreloc.c: Likewise.
51266 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
51268 2004-08-06 Simon Josefsson <jas@extundo.com>
51270 * modules/progname (Depends-on): Don't depend on stdbool.
51272 2004-08-06 Simon Josefsson <jas@extundo.com>
51274 * modules/getsubopt: New file.
51275 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51278 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
51280 More merge from coreutils.
51282 * m4/utimens.m4, m4/utimecmp.m4: New files.
51283 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
51284 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
51285 prereq.m4, sha.m4: Import changes from coreutils.
51287 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
51289 More merge from coreutils.
51290 * modules/raise, modules/readtokens0, modules/utimens:
51291 * modules/utimecmp, module/xnanosleep: New files.
51292 * modules/strftime: Add lib/strftime.h.
51293 Change include from <time.h> to "strftime.h".
51294 * modules/yesno: Add lib/yesno.h.
51295 * modules/backupfile: Remove lib/addext.c.
51296 * modules/euidaccess: Add stat-macros.h.
51297 * modules/canonicalize, modules/euidaccess,
51298 modules/filemode, modules/lchown, modules/makepath,
51299 modules/rmdir, modules/stat: Likewise.
51301 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
51304 * lib/argp-help.c (make_hol, hol_append): Don't assume that
51305 SIZE_MAX is a valid preprocessor constant.
51306 (__argp_basename): Change from "#ifndef _LIBC"
51307 to "#ifndef __argp_short_program_name", so that
51308 we don't compile these functions for tar.
51310 More merges from coreutils.
51311 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
51312 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
51313 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
51314 * lib/addext.c: Remove; no longer needed.
51315 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
51316 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
51317 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
51318 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
51319 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
51320 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
51321 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
51322 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
51323 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
51324 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
51325 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
51326 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
51327 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
51328 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
51329 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
51330 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
51331 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
51332 Import changes from coreutils.
51334 2004-08-05 Simon Josefsson <jas@extundo.com>
51336 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
51338 2004-08-05 Simon Josefsson <jas@extundo.com>
51340 * m4/getsubopt.m4: New file.
51342 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
51344 Merge from coreutils.
51346 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
51347 * m4/getcwd-path-max.m4: New files.
51349 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
51350 FILESYSTEM_PREFIX_LEN ->
51351 FILE_SYSTEM_PREFIX_LEN.
51352 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
51353 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
51354 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
51355 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
51357 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
51358 prerequisite modules now handle the DOS stuff.
51359 Don't check for unistd.h.
51361 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
51363 Merge from coreutils.
51365 * lib/.gdb-history: Remove; this doesn't belong here.
51367 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
51368 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
51369 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
51370 * lib/getcwd.c: New files.
51372 * lib/dirname.h: Include <stdbool.h>.
51373 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
51374 for consistency with POSIX terminology. All uses changed.
51375 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
51376 (strip_trailing_slashes): Use bool for booleans.
51377 * lib/stripslash.c (strip_trailing_slashes): Likewise.
51379 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
51380 sometimes returns a positive errno value even when it succeeds.
51381 (print_errno_message) [!LIBC]: Fall back on strerror if
51382 __strerror_r fails.
51384 * lib/path-concat.c (mempcpy): Don't define if a system header defines
51385 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
51386 (longest_relative_suffix): New function.
51387 (path_concat): Use it. Assume first argument is not NULL.
51388 Port to DOS. Omit redundant separators.
51389 Report an error instead of returning NULL.
51390 Use mempcpy instead of memcpy.
51391 (xpath_concat): Remove: not declared or used.
51393 * lib/same.h: Include <stdbool.h>
51394 (same_name): Return bool, not int.
51395 * lib/same.c (same_name): Likewise.
51396 (errno): Don't declare; we assume C89 or better now.
51398 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
51399 if not already defined.
51401 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
51402 * lib/dup-safer.c (errno): Likewise.
51404 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
51406 Merge from coreutils.
51407 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
51408 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
51409 * modules/path-concat: Don't depend on strdup.
51411 2004-08-03 Simon Josefsson <jas@extundo.com>
51413 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
51414 * lib/progname.h: Don't include stdbool.h.
51416 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
51418 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
51419 * MODULES.html.sh (func_all_modules): Remove fatal.
51421 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
51423 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
51425 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
51427 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
51430 2004-08-02 Simon Josefsson <jas@extundo.com>
51432 * lib/getsubopt.h: New file, with comments from Bruno Haible.
51433 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
51434 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
51436 2004-08-01 Simon Josefsson <jas@extundo.com>
51438 * lib/xgetdomainname.c: Include stdlib.h, for free().
51440 2004-07-19 Bruno Haible <bruno@clisp.org>
51442 * MODULES.html.sh (func_all_modules): Add dummy.
51444 2004-07-16 Simon Josefsson <jas@extundo.com>
51446 * modules/dummy: New file.
51448 2004-07-16 Simon Josefsson <jas@extundo.com>
51450 * lib/dummy.c: New file.
51452 2004-07-16 Bruno Haible <bruno@clisp.org>
51454 * lib/backupfile.h: Add extern "C" for C++.
51455 * lib/closeout.h: Likewise.
51456 * lib/copy-file.h: Likewise.
51457 * lib/findprog.h: Likewise.
51458 * lib/full-write.h: Likewise.
51459 * lib/pathname.h: Likewise.
51460 * lib/progname.h: Likewise.
51461 * lib/stpcpy.h: Likewise.
51462 * lib/stpncpy.h: Likewise.
51463 * lib/strcase.h: Likewise.
51464 * lib/strstr.h: Likewise.
51465 * lib/xalloc.h: Likewise.
51467 * lib/mbswidth.h: Add extern "C" for C++.
51468 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
51470 2004-07-13 Robert Millan <robertmh@gnu.org>
51472 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
51474 2004-07-09 Simon Josefsson <jas@extundo.com>
51476 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
51477 failed without this.)
51479 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
51481 * modules/chown (Files): Add lib/fchown-stub.c, since
51482 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
51484 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
51486 * lib/fchown-stub.c: New file.
51488 2004-06-24 Jim Meyering <jim@meyering.net>
51490 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
51492 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
51494 * modules/argz: Omit "#include".
51496 * MODULES.html.sh (func_all_modules): Add calloc, to match
51497 2004-06-01 addition of calloc module.
51499 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
51501 * m4/argz.m4: New file, which is autoupdated from libtool.
51503 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
51505 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
51508 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
51510 * config/srclist-update: Don't insist on "USA." before the
51511 close-comment, as libtool omits the period and puts the */ on a
51513 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
51514 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
51516 2004-06-22 Gary V. Vaughan <gary@gnu.org>
51518 * modules/argz: New file.
51519 * MODULES.html.sh (func_all_modules): Add argz.
51521 2004-06-12 Jim Meyering <jim@meyering.net>
51522 and Paul Eggert <eggert@cs.ucla.edu>
51524 * modules/hash (Files): Add lib/xalloc.h.
51525 * modules/pipe (Depends-on): Add wait-process.
51526 * modules/stat (Depends-on): Add xalloc.
51527 * modules/userspec (Files): Add lib/userspec.h.
51530 Upgrade from gettext-0.13.
51531 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
51532 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
51533 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
51535 2004-06-10 Jim Meyering <jim@meyering.net>
51537 * lib/calloc.c: New file.
51539 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
51541 * lib/getdate.y (yylex): Allow space between sign and number.
51542 Problem reported by Dan Jacobson.
51544 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
51546 Merge from coreutils CVS.
51548 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
51549 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
51550 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
51551 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
51552 xstrtol.m4: Fix copyright date and/or serial number.
51554 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
51555 See if we need an fchown replacement.
51556 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
51557 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
51558 and use the replacement function if we detect either defect.
51560 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
51563 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
51564 and Jim Meyering <jim@meyering.net>
51566 Merge from coreutils CVS.
51568 * lib/stat-macros.h: New file, with contents from file-type.h
51569 and coreutils' system.h.
51570 * lib/file-type.c: Include "stat-macros.h".
51571 * lib/file-type.h (file_type): Move all macro definitions to new file,
51574 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
51575 Wrap old code with this conditional.
51576 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
51577 function that does not dereference symlinks.
51578 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
51580 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
51581 dependency problems.
51582 (xreadlink): Accept new arg SIZE, for efficiency.
51583 All decls and uses changed.
51584 * lib/xreadlink.h: Include <stddef.h>, for size_t.
51586 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
51587 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
51589 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
51592 2004-06-01 Jim Meyering <jim@meyering.net>
51594 * m4/calloc.m4: New file.
51596 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
51598 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
51599 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
51600 Also, fix a typo in a diagnostic.
51602 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
51604 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
51605 or AC_FUNC_REALLOC.
51607 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
51609 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
51610 macros to be defined.
51611 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
51612 the allocator returns NULL because the requested size is zero.
51614 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
51616 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
51617 var. Add comment explaining why libc still defines it. This
51618 merges the following patch from glibc:
51619 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
51621 2004-05-20 Andreas Schwab <schwab@suse.de>
51623 * m4/free.m4: Replace free if it not known to work, not the other
51626 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
51628 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
51629 present in glibc since revision 1.1 of this file.
51630 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
51631 obstack_alignment_mask, obstack_alloc, obstack_base,
51632 obstack_blank, obstack_blank_fast, obstack_chunk_size,
51633 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
51634 obstack_grow0, obstack_init, obstack_int_grow,
51635 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
51636 obstack_next_free, obstack_object_size, obstack_ptr_grow,
51637 obstack_ptr_grow_fast, obstack_room): Remove declarations of
51638 nonexistent functions.
51640 2004-05-18 Karl Berry <karl@gnu.org>
51642 * config/srclist.txt: break link for vasnprintf.c.
51644 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
51646 Port obstack to the AS/400, where pointers are 16 bytes wide and
51647 you cannot cast an integer to a valid pointer. This patch is
51648 currently waiting to be integrated into glibc; see
51649 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
51651 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
51652 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
51653 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
51654 (struct obstack): temp member is now a union of a pointer and
51655 an integer, instead of an integer. All integer uses changed.
51656 This does not affect the physical layout of struct obstack,
51657 except on hosts (like the AS/400) where the size or alignment of
51658 void * is greater than that of ptrdiff_t.
51659 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
51660 __STDC__)]: Store temporary in pointer member of union, not
51662 * lib/obstack.c: Include <stddef.h>, for offsetof.
51663 (struct fooalign): Remove; it doesn't need a name.
51664 (union fooround): Change double to long double, and add void *.
51665 (DEFAULT_ALIGNMENT): Use offsetof to compute.
51666 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
51667 not a macro. Hence the values are always int; so remove all
51668 casts-to-int in uses.
51670 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
51672 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
51673 we can get this patch merged into glibc.
51675 2004-05-17 Derek R. Price <derek@ximbiot.com>
51676 Paul Eggert <eggert@cs.ucla.edu>
51678 * m4/argp: Depend on alloca.
51680 2004-05-17 Derek R. Price <derek@ximbiot.com>
51681 Paul Eggert <eggert@cs.ucla.edu>
51683 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
51686 2004-05-17 Bruno Haible <bruno@clisp.org>
51688 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
51689 precision that consists of a '.' followed by an empty digit string.
51690 Patch by Tor Lillqvist <tml@iki.fi>.
51692 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
51694 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
51695 for backward compatibility with older code. We need our own
51696 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
51697 it under some other name, and our alloca.h will define it.
51699 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
51700 Derek Price <derek@ximbiot.com>
51702 * lib/alloca.c: Include <alloca.h>, to get our interface.
51703 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
51704 include <alloca.h> first. Use C89 prototype for alloca; this
51705 requires including <stddef.h> for size_t. Use extern "C" if C++.
51706 Use #elif for simplicity, since we can assume C89 now.
51707 Don't try to source the system alloca.h since it will not be found
51708 and to prevent recursively including its replacement.
51709 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
51710 * lib/regex.c: Likewise.
51712 2004-05-16 Derek Price <derek@ximbiot.com>
51713 Paul Eggert <eggert@cs.ucla.edu>
51715 getline cleanup. This changes the getndelim2 API: both order of
51716 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
51719 * lib/getline.c: Don't include stddef.h or stdio.h, since our
51720 interface does that.
51721 (getline): Always use getdelim, so that we don't have two
51722 copies of this code.
51723 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
51725 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
51726 (GETNDELIM2_MAXIMUM): New macro.
51727 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
51728 instead of the old practice of delim2==0. All callers changed.
51729 Return -1 on overflow, instead of returning junk.
51730 Do not set *linesize unless allocation succeeds.
51731 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
51732 that we include sys/types.h.
51733 * lib/getnline.h: Likewise.
51734 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
51735 (getndelim2): Reorder arguments.
51736 * lib/getnline.c (getnline, getndelim):
51737 Don't discard the NMAX argument.
51738 (getnline): Invoke getndelim, to avoid code duplication.
51739 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
51740 of (size_t) -1 by callers of the getnline family.
51742 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
51744 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
51745 Check for gettimeofday.
51746 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
51747 Check for settimeofday, stime.
51749 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
51751 * lib/nanosleep.c (suspended): Change its type from int to
51752 sig_atomic_t volatile.
51753 (first_call): Make it private to rpl_nanosleep, and have it
51754 be zero initially as that's a bit faster.
51755 (my_usleep): Round up fractional times instead of truncating them,
51756 as this is the usual meaning for 'sleep'.
51758 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
51760 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
51761 (ENOSYS): Define if not defined.
51762 (settime): Fall back on stime if it exists and settimeofday fails.
51763 But don't bother with fallbacks if a method fails with errno == EPERM.
51765 2004-05-11 Jim Meyering <jim@meyering.net>
51767 Prior to this change, the save_cwd caller required read access to the
51768 current directory on most systems (ones with the fchdir function).
51770 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
51771 fails, try write-only, and finally, resort to using xgetcwd.
51773 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
51775 * lib/obstack.c, obstack.h: Import changes from libc.
51777 2004-04-28 Bruno Haible <bruno@clisp.org>
51779 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
51780 also implicitly appends .exe to executables.
51781 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
51782 accepts Windows pathnames.
51783 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
51784 Treat Cygwin like Windows, since it now accepts Windows pathnames.
51785 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
51786 Treat Cygwin like Windows, since it now accepts Windows pathnames.
51787 Reported by Derek Robert Price <derek@ximbiot.com>.
51789 2004-04-21 Karl Berry <karl@gnu.org>
51791 * config/srclist.txt (localcharset.c): break sync.
51793 2004-04-20 Paul Eggert <eggert@twinsun.com>
51795 * m4/host-os.m4: Add a copyright notice.
51797 2004-04-20 Jim Meyering <jim@meyering.net>
51799 Change UTILS_ to gl_ in AC_DEFINE'd names.
51800 Change utils_- and jm_-prefixed variables, too.
51801 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
51802 UTILS_FUNC_MKDIR_TRAILING_SLASH.
51803 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
51805 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
51806 Don't emit trailing blanks.
51807 Also rename jm_-prefixed variables to have gl_ prefix.
51809 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
51810 Also rename jm_-prefixed variables to have gl_ prefix.
51812 * m4/jm-macros.m4: Reflect the renamings.
51813 * m4/prereq.m4: Likewise.
51815 2004-04-20 Jim Meyering <jim@meyering.net>
51817 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
51820 2004-04-20 Jim Meyering <jim@meyering.net>
51821 Bruno Haible <bruno@clisp.org>
51823 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
51824 memory when realloc fails.
51826 2004-04-19 Jim Meyering <jim@meyering.net>
51828 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
51829 now that readutmp.c may call `free (0)'.
51831 2004-04-19 Bruno Haible <bruno@clisp.org>
51833 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
51834 * m4/inttypes_h.m4: Likewise.
51835 * m4/stdint_h.m4: Likewise.
51836 * m4/intmax_t.m4: Likewise.
51837 * m4/uintmax_t.m4: Likewise.
51839 2004-04-18 Jim Meyering <jim@meyering.net>
51841 * m4/prereq.m4: Don't forbid jm_ prefix.
51843 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
51844 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
51845 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
51846 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
51847 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
51848 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
51849 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
51850 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
51851 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
51852 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
51853 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
51854 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
51855 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
51856 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
51857 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
51858 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
51859 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
51860 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
51861 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
51863 2004-04-18 Jim Meyering <jim@meyering.net>
51865 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
51866 failure, don't leak memory and do call END_UTMP_ENT.
51868 2004-04-16 Jim Meyering <jim@meyering.net>
51870 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
51871 coreutils' stat program.
51872 (gl_PREREQ): Don't require jm_PREREQ_STAT.
51874 2004-04-11 Paul Eggert <eggert@twinsun.com>
51876 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
51878 (CHAR_BIT): Remove, since we assume C89.
51879 Include <stdint.h> if available, as per current Autoconf CVS advice.
51881 2004-03-31 Jim Meyering <jim@meyering.net>
51883 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
51884 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
51885 * m4/xalloc.m4: Likewise.
51887 2004-03-30 Paul Eggert <eggert@twinsun.com>
51889 Merge from coreutils.
51891 * m4/inttostr.m4: New file.
51892 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
51893 Require AM_STDBOOL_H and gl_TIMESPEC instead.
51894 Require gl_CLOCK_TIME.
51895 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
51897 2004-03-30 Paul Eggert <eggert@twinsun.com>
51899 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
51900 not bool, to be more consistent with Unix conventions.
51901 Suggested by Bruno Haible.
51903 Merge from coreutils.
51905 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
51906 * lib/umaxtostr.c: New files.
51908 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
51909 the usual <time.h> dance.
51910 (get_date): Change signature to support fractional time stamps.
51911 All callers changed.
51912 * lib/getdate.y: Include "getdate.h" first, as we can now
51913 assume C89 and don't need to worry about 'const'.
51914 Similarly, include "unlocked-io.h" near start, not in middle.
51915 Include <limits.h>.
51916 (textint.value): Use long int rather than int.
51917 (textint.digits): Use size_t rather than int.
51918 (BILLION, LOG10_BILLION): New constants.
51919 (parser_control): New member rel_ns. Members day_ordinal,
51920 time_zone, month, day, hour, minutes, rel_year, rel_month,
51921 rel_day, rel_hour, rel_minutes, rel_seconds
51922 are now long int, not int. Member seconds is now struct timespec,
51923 not int. New member timespec_seen. Members dates_seen, days_seen,
51924 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
51926 (%union.intval): Now long int, not int.
51927 New member timespec.
51928 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
51929 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
51930 (spec): Now is a timespec or an item list.
51931 (timespec, items): New nonterminals.
51932 (time, rel, relunit, number, get_date):
51933 Add support for fractional seconds.
51934 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
51935 (gmtime, localtime, mktime): Remove decls; not needed with C89.
51936 (to_hour): First arg is now long int, not int.
51937 (to_year): Returns long int, not int.
51938 Don't treat year -70 like 70.
51939 (tm_diff): Returns long int, not int.
51940 (lookup_word): Use bool instead of int when appropriate.
51941 (yylex): Use size_t for count, not int.
51942 Detect overflow when parsing large integer constants.
51943 Add support for fractions.
51944 (get_date): Make pointers 'const' if possible.
51945 Use more-portable code to detect integer overflow.
51946 (main) [TEST]: Adjust to above changes. Test for localtime failure.
51947 Don't use ctime; it's not reliable if the year has >4 digits.
51949 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
51950 This is for compatibility with BSD.
51952 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
51953 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
51954 From coreutils' system.h.
51956 * lib/userspec.c: Don't include "posixver.h".
51957 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
51958 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
51959 compatible extension. Simplify code by removing a boolean int
51960 that was always nonzero if a string was nonnull.
51962 2004-03-30 Jim Meyering <jim@meyering.net>
51964 Merge from coreutils.
51966 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
51967 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
51968 on some systems one must include <grp.h> before it.
51969 Reported by Christian Krackowizer.
51971 2004-03-30 Jim Meyering <jim@meyering.net>
51973 Merge from coreutils.
51975 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
51977 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
51978 an empty input stream.
51980 * lib/readtokens.c: Include <stdbool.h>.
51981 (readtoken): Use `size_t' rather than int/long.
51982 All callers adjusted.
51983 Use `bool' rather than `int' where appropriate.
51984 Use memset rather than an explicit loop.
51985 Use x2nrealloc rather than xrealloc.
51986 Allow the use of `\0' as a delimiter.
51987 (readtokens): Likewise.
51988 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
51990 2004-03-30 Jim Meyering <jim@meyering.net>
51992 * m4/realloc.m4: Remove file, since now it does no more than
51993 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
51994 the `configure.ac' section of module/realloc.
51995 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
51997 2004-03-30 Bruno Haible <bruno@clisp.org>
51999 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
52002 2004-03-29 Paul Eggert <eggert@twinsun.com>
52004 Merge changes to getloadavg.c from coreutils and Emacs.
52006 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
52007 Define to an expression, not to the empty string.
52008 Include cloexec.h and xalloc.h.
52009 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
52010 Use set_cloexec_flag rather than rolling our own.
52011 * lib/cloexec.c, lib/cloexec.h: New files.
52013 2004-03-29 Paul Eggert <eggert@twinsun.com>
52015 * m4/cloexec.m4: New file.
52017 2004-03-18 Paul Eggert <eggert@twinsun.com>
52019 * lib/getopt.h: Sync with libc CVS.
52021 2004-03-18 Paul Eggert <eggert@twinsun.com>
52022 Bruno Haible <bruno@clisp.org>
52024 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
52027 2004-03-18 Paul Eggert <eggert@twinsun.com>
52028 Bruno Haible <bruno@clisp.org>
52030 * lib/mbswidth.h: Include <wchar.h> only if
52031 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
52033 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
52035 2004-03-09 Paul Eggert <eggert@twinsun.com>
52037 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
52038 Sync with libc CVS.
52039 * lib/getopt_int.h: New file, also synced from libc.
52041 2004-03-09 Paul Eggert <eggert@twinsun.com>
52043 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
52044 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
52045 Bring back getopt.c, getopt.h, getopt1.c.
52047 2004-03-07 Paul Eggert <eggert@twinsun.com>
52049 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
52050 All uses changed. Check for sa_sigaction member; this fixes
52051 a bug first reported by Jason Andrade in
52052 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
52054 2004-03-07 Paul Eggert <eggert@twinsun.com>
52056 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
52057 '#if' expressions. Unlike the code it replaces, it does not
52058 depend on (defined _SC_PAGESIZE). However, it does depend on
52059 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
52060 first reported by Jason Andrade in
52061 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
52063 2004-02-25 Simon Josefsson <jas@extundo.com>
52065 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
52067 2004-02-25 Simon Josefsson <jas@extundo.com>
52069 * lib/strdup.h: New file.
52070 * lib/strdup.c: Include it.
52071 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
52072 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
52074 2004-02-23 Karl Berry <karl@gnu.org>
52076 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
52077 (from fencepost.gnu.org:/gd/gnuorg).
52079 2004-02-23 Karl Berry <karl@gnu.org>
52081 * config/srclistvars.sh (GNUORG) [karl]: redefine.
52082 * config/srclist.txt: add maintain/standards documents.
52084 2004-02-18 Bruno Haible <bruno@clisp.org>
52086 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
52087 Reported by Derek Robert Price <derek@ximbiot.com>.
52089 2004-02-16 Karl Berry <karl@gnu.org>
52091 * config/mkinstalldirs, install-sh: update from automake.
52093 2004-02-06 Karl Berry <karl@gnu.org>
52095 * m4/po.m4: update from gettext 0.14.1.
52097 2004-02-06 Karl Berry <karl@gnu.org>
52099 * lib/config.charset: update from gettext 0.14.1.
52101 2004-02-05 Paul Eggert <eggert@twinsun.com>
52103 Add comments and code, prompted by suggestions from Bruno Haible
52105 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
52106 describing the enum quoting_style values.
52107 * lib/quotearg.c (quotearg_alloc): New function.
52108 (quotearg_buffer_restyled): Treat lone { and } as special.
52109 Treat = as special. Work around bug with older shells
52110 that "see" a '\' that is really the 2nd byte of a multibyte char.
52111 Quote empty string with shell_quoting_style.
52113 2004-02-03 Bruno Haible <bruno@clisp.org>
52115 * m4/pipe.m4: New file, from GNU gettext.
52117 2004-02-03 Bruno Haible <bruno@clisp.org>
52119 * lib/pipe.h: New file, from GNU gettext.
52120 * lib/pipe.c: New file, from GNU gettext.
52122 2004-01-27 Bruno Haible <bruno@clisp.org>
52124 * m4/execute.m4: New file, from GNU gettext.
52126 2004-01-27 Bruno Haible <bruno@clisp.org>
52128 * lib/execute.h: New file, from GNU gettext.
52129 * lib/execute.c: New file, from GNU gettext.
52130 * lib/w32spawn.h: New file, from GNU gettext.
52132 2004-01-24 Paul Eggert <eggert@twinsun.com>
52134 Merge from diffutils.
52136 * lib/file-type.c (file_type): Add typed memory objects.
52137 * lib/file-type.h (S_TYPEISTMO): New macro.
52139 * lib/c-stack.h (c_stack_action): Remove argv argument.
52140 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
52141 (die): Don't calculate message unless segv_action returns.
52142 (get_stack_location, min_address_from_argv, max_address_from_argv,
52143 volatile stack_base, volatile_stack_size): Remove.
52144 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
52145 that every segmentation violation is a stack overflow. (Ouch!)
52146 See Debian bug 136249 (still outstanding) for more info about why
52147 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
52149 2004-01-24 Paul Eggert <eggert@twinsun.com>
52151 Exit-status fix from coreutils.
52153 Use exit_failure consistently in place of EXIT_FAILURE,
52154 so that program exit statuses are consistent on failure.
52156 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
52157 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
52158 * lib/argmatch.h: Comment fix to match the above.
52159 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
52160 Now a macro referring to exit_failure, instead of a separate
52161 variable. Include "exitfail.h" to get it.
52162 * lib/xstrtol.h: Include "exitfail.h".
52163 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
52165 * lib/long-options.c (parse_long_options): Use prototype
52166 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
52169 2004-01-21 Jim Meyering <jim@meyering.net>
52171 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
52172 so as not to conflict with a different-sized __mktime_internal
52173 function in GNU libc.
52174 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
52175 Problem building statically-linked `ls' reported by Michael Brunnbauer.
52177 2004-01-20 Karl Berry <karl@gnu.org>
52179 * config/config.guess: update from config.
52181 * config/srclistvars.sh: GNUWWWLICENSES for karl.
52183 2004-01-20 Bruno Haible <bruno@clisp.org>
52185 Safer stack allocation.
52186 * lib/setenv.c: Include allocsa.h.
52187 (alloca): Remove fallback definition.
52188 (freea): Remove macro.
52189 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
52192 2004-01-20 Bruno Haible <bruno@clisp.org>
52194 * m4/eealloc.m4: New file, from GNU gettext.
52196 2004-01-20 Bruno Haible <bruno@clisp.org>
52198 * m4/allocsa.m4: New file, from GNU gettext.
52200 2004-01-20 Bruno Haible <bruno@clisp.org>
52202 * lib/xallocsa.h: New file, from GNU gettext.
52203 * lib/xallocsa.c: New file, from GNU gettext.
52205 2004-01-20 Bruno Haible <bruno@clisp.org>
52207 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
52209 2004-01-20 Bruno Haible <bruno@clisp.org>
52211 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
52212 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
52215 2004-01-20 Bruno Haible <bruno@clisp.org>
52217 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
52220 2004-01-20 Bruno Haible <bruno@clisp.org>
52222 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
52224 2004-01-20 Bruno Haible <bruno@clisp.org>
52226 * lib/eealloc.h: New file.
52228 2004-01-20 Bruno Haible <bruno@clisp.org>
52230 * lib/binary-io.h: Avoid warnings on Cygwin.
52232 2004-01-20 Bruno Haible <bruno@clisp.org>
52234 * lib/allocsa.h: New file, from GNU gettext.
52235 * lib/allocsa.c: New file, from GNU gettext.
52237 2004-01-18 Karl Berry <karl@gnu.org>
52239 * doc/gpl.texi, doc/lgpl.texi: new files.
52241 2004-01-18 Karl Berry <karl@gnu.org>
52243 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
52244 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
52246 2004-01-15 Paul Eggert <eggert@twinsun.com>
52248 Merge from coreutils.
52250 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
52251 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
52252 (gl_DEFAULT_POSIX2_VERSION): Move
52253 the documentation from 'configure' into 'config.hin',
52254 so that 'configure --help' isn't burdened by it and
52255 we don't have to worry about its formatting there.
52256 Reword the documentation so that it's more succinct
52257 and can be run together into a single paragraph.
52258 * m4/same.m4 (gl_SAME): Check for pathconf.
52260 2004-01-15 Paul Eggert <eggert@twinsun.com>
52262 Merge from coreutils.
52264 * lib/posixver.c: Include posixver.h.
52266 * lib/same.c: Include <stdbool.h>, <limits.h>.
52267 (_POSIX_NAME_MAX): Define if not defined.
52269 (same_name): If file names are silently truncated, report
52270 that the file names are the same if they are the same after
52271 the silent truncation.
52273 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
52274 conversion function.
52275 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
52276 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
52279 2004-01-15 Jim Meyering <jim@meyering.net>
52281 Merge from coreutils.
52283 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
52284 if no library is required.
52285 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
52286 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
52287 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
52288 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
52289 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
52290 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
52291 value, $ac_cv_search_crypt, if it's "none required".
52292 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
52293 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
52294 not gl_FUNC_GETLOADAVG.
52295 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
52296 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
52298 2004-01-15 Jim Meyering <jim@meyering.net>
52300 Merge from coreutils.
52302 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
52303 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
52304 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
52306 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
52307 optional configure-time default.
52309 * lib/version-etc.c (version_etc_copyright): Update copyright date.
52311 * lib/xreadlink.c (xreadlink): Correct outdated comment.
52313 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
52315 Merge from coreutils.
52317 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
52318 value, $ac_cv_search_nanosleep, if it's "none required".
52320 2004-01-14 Paul Eggert <eggert@twinsun.com>
52322 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
52323 with like-named macro in fnmatch.c.
52324 (EXT): Use an internal constant instead.
52326 Merge fnmatch patches from glibc.
52327 * lib/fnmatch.c (mbsinit): Remove define.
52328 Add libc_hidden_ver (__fnmatch, fnmatch).
52329 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
52330 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
52332 2004-01-14 Karl Berry <karl@gnu.org>
52334 * config/install-sh: update from automake.
52336 2004-01-13 Karl Berry <karl@gnu.org>
52338 * config/install-sh: update from automake.
52340 2004-01-09 Karl Berry <karl@gnu.org>
52342 * config/install-sh: update from automake.
52344 2004-01-05 Karl Berry <karl@gnu.org>
52346 * config/config.{sub,guess}: update from config.
52348 2003-12-31 Karl Berry <karl@gnu.org>
52350 * config/depcomp: update from automake.
52352 2003-12-14 Karl Berry <karl@gnu.org>
52354 * lib/config.charset: update from gettext-runtime.
52356 2003-12-03 Paul Eggert <eggert@twinsun.com>
52358 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
52359 Bug reported by Alfred M. Szmidt.
52361 2003-12-03 Bruno Haible <bruno@clisp.org>
52363 * m4/gettext.m4: Upgrade from gettext-0.13.
52364 * m4/po.m4: Upgrade from gettext-0.13.
52365 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
52366 * m4/intmax.m4: New file, from gettext-0.13.
52367 * m4/printf-posix.m4: New file, from gettext-0.13.
52369 2003-11-29 Karl Berry <karl@gnu.org>
52371 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
52373 2003-11-25 Paul Eggert <eggert@twinsun.com>
52374 Bruno Haible <bruno@clisp.org>
52376 * lib/printf-parse.h: Don't include sys/types.h.
52377 (ARG_NONE): New macro.
52378 (char_directive): Change type of *arg_index fields to size_t.
52379 * lib/printf-parse.c: Don't include sys/types.h.
52380 (SSIZE_MAX): Remove macro.
52381 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
52382 Remove unnecessary overflow check.
52383 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
52386 2003-11-25 Bruno Haible <bruno@clisp.org>
52388 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
52390 2003-11-25 Bruno Haible <bruno@clisp.org>
52392 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
52395 2003-11-24 Paul Eggert <eggert@twinsun.com>
52397 * modules/alloca: Remove dependency on xalloc.
52399 2003-11-24 Paul Eggert <eggert@twinsun.com>
52401 * lib/alloca.c: Remove dependency on xalloc module.
52402 (xalloc_die): Remove.
52403 (memory_full) [!defined emacs]: New macro.
52404 [!defined emacs]: Don't include xalloc.h.
52405 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
52406 address arithmetic overflows. Change datatypes a bit to avoid
52409 2003-11-22 Jim Meyering <jim@meyering.net>
52411 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
52414 2003-11-21 Karl Berry <karl@gnu.org>
52416 * config/config.{sub,guess}: update from config.
52418 2003-11-18 Karl Berry <karl@gnu.org>
52420 * config/config.{sub,guess}: update from config.
52422 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
52424 2003-11-17 Paul Eggert <eggert@twinsun.com>
52426 * README: Mention that S+T cannot overflow if S is the size of
52427 an existing object and T is sufficiently small.
52429 2003-11-17 Jim Meyering <jim@meyering.net>
52431 On systems without utime and without a utimes function capable of
52432 dealing with a NULL struct utimbuf* argument, this utime replacement
52433 could -- in unusual circumstances -- leak a file descriptor.
52434 * lib/utime.c: Include <unistd.h> and <errno.h>.
52435 (utime_null): Be sure to close `fd' and to preserve errno.
52436 Reported by Geoff Collyer via Arnold Robbins.
52438 2003-11-17 Bruno Haible <bruno@clisp.org>
52440 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
52441 (Depends-on): Add xsize.
52443 2003-11-17 Bruno Haible <bruno@clisp.org>
52445 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
52447 2003-11-17 Bruno Haible <bruno@clisp.org>
52449 * lib/vasnprintf.c (alloca): Remove fallback definition.
52450 (freea): Remove definition.
52451 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
52452 Reported by Paul Eggert.
52454 2003-11-16 Paul Eggert <eggert@twinsun.com>
52455 Bruno Haible <bruno@clisp.org>
52457 Protect against address arithmetic overflow.
52458 * lib/printf-args.h: Include stddef.h.
52459 (arguments): Change type of field 'count' to size_t.
52460 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
52461 'unsigned int' where appropriate.
52462 * lib/printf-parse.h: Include sys/types.h.
52463 (char_directive): Change type of *arg_index fields to ssize_t.
52464 (char_directives): Change type of fields 'count', max_*_length to
52466 * lib/printf-parse.c: Include sys/types.h and xsize.h.
52467 (SSIZE_MAX): Define fallback value.
52468 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
52469 instead of 'int' where appropriate. Check a_allocated, d_allocated
52470 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
52471 * lib/vasnprintf.c: Include xsize.h.
52472 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
52473 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
52474 overflow. Avoid wraparound when converting a width or precision from
52477 2003-11-16 Bruno Haible <bruno@clisp.org>
52479 Update from GNU gettext.
52480 * lib/printf-parse.c: Generalize to it can be compiled for wide
52482 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
52483 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
52484 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
52485 SNPRINTF): New macros.
52486 Don't include <alloca.h> if the file is used inside libintl.
52487 (local_wcslen): New function, for Solaris 2.5.1.
52488 (VASNPRINTF): Use it instead of wcslen.
52490 2003-11-16 Bruno Haible <bruno@clisp.org>
52492 * lib/xsize.h (xmax): New function.
52493 (xsum, xsum3, xsum4): Declare as "pure" functions.
52495 2003-11-12 Paul Eggert <eggert@twinsun.com>
52497 * modules/xalloc (Files): Undo latest change, since xalloc.h
52498 no longer needs SIZE_MAX or PTRDIFF_MAX.
52500 2003-11-12 Paul Eggert <eggert@twinsun.com>
52502 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
52505 2003-11-12 Paul Eggert <eggert@twinsun.com>
52507 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
52508 "return", to pacify some unknown compiler. Problem reported
52509 by Joerg Schilling.
52511 2003-11-12 Paul Eggert <eggert@twinsun.com>
52513 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
52514 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
52515 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
52516 heuristic is just as accurate as far as we know, and it removes a
52517 dependency on size_max.m4 and ptrdiff_max.m4.
52519 2003-11-11 Bruno Haible <bruno@clisp.org>
52521 * modules/xsize (Files): Add m4/size_max.m4.
52522 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
52524 2003-11-11 Bruno Haible <bruno@clisp.org>
52526 * m4/size_max.m4: New file.
52527 * m4/ptrdiff_max.m4: New file.
52528 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
52529 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
52530 (gl_XALLOC): Invoke it.
52532 2003-11-11 Bruno Haible <bruno@clisp.org>
52534 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
52535 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
52538 2003-11-10 Paul Eggert <eggert@twinsun.com>
52540 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
52541 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
52542 rejected some allocations of exactly SIZE_MAX - 2 bytes.
52544 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
52545 not (size_t) -1, since it's defined here.
52547 2003-11-09 Karl Berry <karl@gnu.org>
52549 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
52551 2003-11-06 Paul Eggert <eggert@twinsun.com>
52553 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
52554 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
52555 Reject sizes of exactly SIZE_MAX bytes.
52556 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
52557 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
52559 2003-11-05 Bruno Haible <bruno@clisp.org>
52561 * lib/xsize.h: Include limits.h, to avoid a possible collision with
52562 SIZE_MAX defined in <limits.h> on Solaris.
52564 2003-11-04 Jim Meyering <jim@meyering.net>
52566 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
52567 variable names, rather than @VAR@.
52568 * modules/poll: Likewise.
52570 2003-11-04 Bruno Haible <bruno@clisp.org>
52572 * modules/xsize: New file.
52573 * modules/linebreak: Depend on xsize.
52574 * MODULES.html.sh (func_all_modules): Add xsize.
52576 2003-11-04 Bruno Haible <bruno@clisp.org>
52578 * m4/xsize.m4: New file.
52580 2003-11-04 Bruno Haible <bruno@clisp.org>
52582 * lib/xsize.h: New file.
52583 * lib/linebreak.c: Include xsize.h.
52584 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
52585 argument for overflow.
52586 Suggested by Paul Eggert.
52588 2003-11-03 Karl Berry <karl@gnu.org>
52590 * config/config.{guess,sub}: update from config.
52592 2003-11-03 Jim Meyering <jim@meyering.net>
52594 * modules/userspec (lib_SOURCES): Add userspec.h.
52595 (Include): Add "userspec.h".
52596 Improve description.
52598 2003-11-03 Jim Meyering <jim@meyering.net>
52600 * lib/userspec.c: Include "userspec.h".
52601 * lib/userspec.h: New file.
52603 2003-11-03 Bruno Haible <bruno@clisp.org>
52605 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
52607 2003-11-03 Bruno Haible <bruno@clisp.org>
52609 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
52610 available, to avoid (extremely rare) race condition.
52611 Suggested by Paul Eggert.
52613 2003-11-02 Karl Berry <karl@gnu.org>
52615 * config/srclist.txt (vasprintf.c): sync broken, sigh.
52617 2003-10-31 Paul Eggert <eggert@twinsun.com>
52619 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
52620 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
52621 (read_filesystem_list): Set and use me_type_malloced.
52622 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
52623 whatever the type happens to be), for brevity and consistency.
52624 Check for size calculation overflow on Alphas running OSF/1.
52626 2003-10-31 Jim Meyering <jim@meyering.net>
52628 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
52630 * lib/linebuffer.c: Include <string.h> for declaration of memset.
52632 2003-10-30 Paul Eggert <eggert@twinsun.com>
52633 Bruno Haible <bruno@clisp.org>
52635 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
52636 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
52638 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
52640 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
52641 netbsd*-gnu*. Suggested by Robert Millan.
52643 2003-10-29 Paul Eggert <eggert@twinsun.com>
52645 * modules/group-member: Depend on stdbool.
52647 2003-10-29 Paul Eggert <eggert@twinsun.com>
52649 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
52651 2003-10-29 Paul Eggert <eggert@twinsun.com>
52653 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
52654 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
52655 after the 'gnu' in these cases. This fixes some bugs in the
52656 previous change, and is based on suggestions by Robert Millan.
52658 2003-10-29 Paul Eggert <eggert@twinsun.com>
52660 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
52661 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
52663 * lib/quotearg.c (quotearg_n_options): Use it.
52664 * lib/group-member.c: Include <stdbool.h>.
52665 (free_group_info): Arg is now const *; don't free arg.
52666 (get_group_info): Now returns bool and accepts struct group_info *,
52667 rather than returning a malloc'ed struct group_info *.
52668 All uses changed. Check for overflow in internal size calculation.
52670 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
52671 rather than xmalloc/xrealloc.
52672 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
52673 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
52674 conformance bug: the old code used a pointer after freeing the
52675 storage that it addressed.
52676 * lib/hash.c (hash_initialize): Simplify the code by using
52677 xalloc_oversized rather than doing it by hand.
52678 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
52679 the buffer preserved. Use free and xmalloc instead.
52680 * lib/quotearg.c (quotearg_n_options): Likewise.
52681 Use a simpler test for size overflow. Don't use xalloc_oversized
52682 because unsigned int might be wider than size_t (!); this suggests
52683 that we should switch from unsigned int to size_t for slot numbers.
52685 2003-10-28 Paul Eggert <eggert@twinsun.com>
52687 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
52688 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
52689 NetBSD kernels. Requested by Richard Stallman.
52691 2003-10-27 Paul Eggert <eggert@twinsun.com>
52693 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
52694 to allocate the returned structure. Do not allocate a subarray,
52695 as x2nrealloc will do that.
52696 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
52697 instead of xnrealloc.
52698 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
52700 2003-10-27 Bruno Haible <bruno@clisp.org>
52702 * lib/stdbool_.h: Better support for BeOS.
52704 2003-10-26 Paul Eggert <eggert@twinsun.com>
52706 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
52709 2003-10-26 Paul Eggert <eggert@twinsun.com>
52711 * lib/xalloc.h (xalloc_oversized): New static inline function, for
52712 callers that want to do their own size-overflow checking. Include
52713 <stdbool.h>, since xalloc_oversized returns bool.
52714 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
52715 to use xalloc_oversized.
52717 Add two functions x2realloc, x2nrealloc, for programs that grow
52718 arrays dynamically by doubling their sizes.
52719 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
52720 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
52723 Port to C99 semantics for 'inline' of external functions.
52724 Bug reported by Bruno Haible.
52725 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
52726 with the old contents of xnmalloc.
52727 (xnmalloc, xmalloc): Use it.
52728 (xnrealloc_inline): New static inline function,
52729 with the old contents of xnrealloc.
52730 (xnrealloc, xrealloc): Use it.
52732 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
52735 2003-10-26 Karl Berry <karl@gnu.org>
52737 * config/srclist.txt (COPYING.DOC): no longer available from
52738 /gd/gnuorg; don't know where the ultimate source is.
52740 2003-10-25 Paul Eggert <eggert@twinsun.com>
52742 Fix several address-calculation bugs in the hash modules,
52743 plus some minor code cleanup.
52745 * lib/hash.h: Include <stdbool.h>, for bool.
52746 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
52747 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
52748 hash_get_n_entries, hash_get_max_bucket_length,
52749 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
52750 hash_rehash): Use size_t rather than unsigned.
52751 * lib/hash.c (struct hash_table, hash_get_n_buckets,
52752 hash_get_n_buckets_used, hash_get_n_entries,
52753 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
52754 hash_get_entries, hash_do_for_each, hash_string, is_prime,
52755 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
52757 (SIZE_MAX): Define if not defined.
52758 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
52759 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
52761 Use const * when possible.
52762 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
52763 (check_tuning): Fix bug: if tuning parameters were very close to
52764 0 or 1, rounding errors could have caused subscript violations.
52765 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
52766 (hash_initialize): Add 'fail:' label
52767 to free table and return NULL, and use it to simplify code.
52768 Use calloc rather than clearing the storage ourself.
52769 (hash_initialize, hash_rehash): Check for arithmetic overflow in
52770 buffer size calculations.
52771 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
52772 Include <stddef.h>, for size_t.
52773 * lib/hash-pjw.c (hash_pjw): Likewise.
52774 Switch to method described by Bruno Haible.
52775 Include <limits.h>, for CHAR_BIT.
52776 (SIZE_BITS): New macro.
52778 2003-10-23 Paul Eggert <eggert@twinsun.com>
52780 * m4/getline.m4 (AM_FUNC_GETLINE):
52781 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
52782 hosts. Problem reported by Derek Robert Price in
52783 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
52784 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
52785 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
52787 2003-10-21 Paul Eggert <eggert@twinsun.com>
52789 * lib/getndelim2.c (getndelim2): When size calculation overflows,
52790 ceiling the allocation at NMAX bytes rather than silently
52791 discarding input bytes before NMAX is reached. This makes
52792 a difference only if NMAX exceeds SIZE_MAX / 2.
52794 * lib/obstack.c: Merge from glibc.
52795 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
52796 Add libc_hidden_def (_obstack_newchunk).
52797 (_obstack_free) [! defined _LIBC]: Remove.
52798 [defined _LIBC]: Make a strong alias from obstack_free, rather than
52799 a clone of the function body.
52800 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
52801 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
52803 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
52805 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
52808 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
52809 (obstack_ptr_grow_fast, obstack_int_grow_fast):
52810 Don't use lvalue casts, as GCC plans to remove support for them
52811 in GCC 3.5. Reported by Joseph S. Myers. This bug
52812 was also present in the non-GCC version, indicating that this
52813 code had always been buggy and had never been widely used.
52814 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
52815 Use the fast variant of each macro, rather than copying the
52816 definiens of the fast variant; that way, we'll be more likely to
52817 catch future bugs in the fast variants.
52819 2003-10-20 Bruno Haible <bruno@clisp.org>
52821 * modules/wait-process: New file.
52822 * MODULES.html.sh (func_all_modules): Add wait-process.
52824 2003-10-20 Bruno Haible <bruno@clisp.org>
52826 * m4/wait-process.m4: New file.
52828 2003-10-20 Bruno Haible <bruno@clisp.org>
52830 * lib/wait-process.h: New file, from GNU gettext.
52831 * lib/wait-process.c: New file, from GNU gettext.
52833 2003-10-19 Jim Meyering <jim@meyering.net>
52835 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
52838 2003-10-18 Karl Berry <karl@gnu.org>
52840 * config/config.guess: update from config.
52842 2003-10-16 Paul Eggert <eggert@twinsun.com>
52844 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
52845 (getgroups): First arg is int, not size_t.
52846 Don't let 'free' mangle errno.
52848 2003-10-16 Paul Eggert <eggert@twinsun.com>
52850 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
52852 2003-10-16 Karl Berry <karl@gnu.org>
52854 * config/config.{guess,sub}: update from config.
52856 2003-10-16 Jim Meyering <jim@meyering.net>
52858 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
52861 2003-10-15 Paul Eggert <eggert@twinsun.com>
52863 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
52864 (SIZE_MAX): Remove.
52865 (new_exclude, add_exclude_file): Initial size no longer needs to
52867 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
52868 our own address arithmetic overflow checking.
52870 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
52871 (fnmatch): Do not alloca more than 2000 wide characters;
52872 instead, use malloc for large buffers.
52873 Check for address arithmetic overflow, and return -1
52874 with errno set to ENOMEM in that case.
52875 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
52876 (NEW_PATTERN): Do not alloca more than 8000 bytes;
52877 instead, return -1. Check for address arithmetic overflow.
52879 2003-10-14 Paul Eggert <eggert@twinsun.com>
52881 Handle invalid suffixes and overflow independently, so that
52882 callers can treat them independently as needed. Fix some bugs in
52883 suffix handling, e.g., "100k@" was not diagnosed as an invalid
52884 suffix for a human-readable blocksize. The major caller-visible
52885 change is the addition of a new
52886 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
52887 that both overflow and suffix chars were found.
52889 * lib/human.c (humblock): Don't check separately for invalid suffix
52890 char; that is xstrtoumax's job (now that its bug is fixed).
52891 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
52892 INTMAX_MAX]: New macros.
52893 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
52894 TYPE_MAXIMUM): New macros.
52895 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
52896 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
52897 if overflow occurs, as it's what __strtol does and it's more useful
52899 (__xstrtol): If __strtol reports some error other than ERANGE,
52900 reflect it to the caller as LONGINT_INVALID. If it reports
52901 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
52902 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
52903 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
52905 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
52906 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
52907 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
52908 [defined UINTMAX_MAX]: New macros.
52910 2003-10-14 Bruno Haible <bruno@clisp.org>
52912 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
52914 2003-10-14 Bruno Haible <bruno@clisp.org>
52916 * m4/sig_atomic_t: New file, from GNU gettext.
52917 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
52919 2003-10-14 Bruno Haible <bruno@clisp.org>
52921 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
52922 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
52923 Also use volatile where needed.
52925 2003-10-12 Paul Eggert <eggert@twinsun.com>
52927 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
52928 Change maintainer from Bruno Haible to 'all'.
52930 2003-10-12 Paul Eggert <eggert@twinsun.com>
52932 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
52934 2003-10-12 Paul Eggert <eggert@twinsun.com>
52936 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
52937 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
52938 and define in terms of the other primitives.
52939 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
52940 (SIZE_MAX): Define if not already defined.
52941 (array_size_overflow): New function.
52942 (xalloc_die): Abort instead of exiting if 'error' returns.
52943 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
52944 (xmalloc, xrealloc): Use them.
52945 (xcalloc): Check for address arithmetic overflow.
52946 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
52947 a bit faster than strcpy.
52949 2003-10-10 Simon Josefsson <jas@extundo.com>
52951 * modules/argp (Depends-on): Add restrict and strcase.
52953 2003-10-10 Simon Josefsson <jas@extundo.com>
52955 * m4/argp.m4: Add AC_C_INLINE.
52957 2003-10-08 Paul Eggert <eggert@twinsun.com>
52959 Merge getpass from libc, plus a few fixes.
52961 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
52962 Include <stdbool.h>.
52963 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
52964 __fsetlocking to empty.
52965 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
52966 do include <bits/libc-lock.h>.
52967 Do not include <fcntl.h>; not needed.
52968 [_LIBC]: Include <wchar.h>.
52969 (NOTCANCEL_MODE): New macro.
52970 (flockfile, funlockfile) [_LIBC]: New macros.
52971 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
52972 [!_LIBC]: New macros.
52973 (call_fclose): New function.
52974 (getpass): Use it. Save tty stream separately; this simplifies the
52975 code and makes it more reliable if stdin happens to equal stdout.
52976 Invoke __fsetlocking on tty.
52977 Handle thread cancellation if needed.
52978 Namespace cleanup (use __tcgetattr, __getline).
52979 Use bool for Booleans.
52980 [USE_IN_LIBIO]: Handle wide streams.
52981 [!_LIBC]: Unconditionally do the fseek, since we don't know what
52982 stream might go where.
52984 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
52985 doesn't have to include <stdio.h> before us.
52986 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
52987 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
52988 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
52989 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
52990 if not declared, so that we can use getpass.c code from libc without
52992 (flockfile, ftrylockfile, funlockfile): New macros.
52994 2003-10-08 Paul Eggert <eggert@twinsun.com>
52996 * modules/getpass: Depend on stdbool.
52998 2003-10-08 Paul Eggert <eggert@twinsun.com>
53000 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
53002 2003-10-07 Karl Berry <karl@gnu.org>
53004 * config/config.{guess,sub}: update from config.
53006 2003-10-06 Jim Meyering <jim@meyering.net>
53007 Bruno Haible <bruno@clisp.org>
53009 This lets translators provide better translations for the
53010 "Written by ..." part of --version output.
53011 * lib/version-etc.h: Include stdarg.h.
53012 (version_etc_copyright): Declare as readonly.
53013 (version_etc): Make this function variadic with a NULL-terminated list
53014 of author name strings.
53015 (version_etc_va): New declaration.
53016 * lib/version-etc.c: Include stdarg.h, stdlib.h.
53017 (version_etc_copyright): Declare as readonly.
53018 (version_etc_va): New function. Provide a different translatable string
53019 for each possible number of authors < 10. Abbreviate when there are 10
53021 (version_etc): Make this function variadic. Call version_etc_va.
53022 Suggestion from Gary V. Vaughan.
53024 * lib/long-options.h (parse_long_options): Change prototype: the
53025 authors string is moved to the end and becomes variadic.
53026 * lib/long-options.c: Include stdarg.h.
53027 (parse_long_options): Make this function variadic, too.
53028 Call version_etc_va, not version_etc.
53030 2003-10-06 Bruno Haible <bruno@clisp.org>
53032 * modules/version-etc-2: Remove file.
53033 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
53035 2003-10-06 Bruno Haible <bruno@clisp.org>
53037 * modules/fatal-signal: New file.
53038 * MODULES.html.sh (func_all_modules): Add fatal-signal.
53040 2003-10-06 Bruno Haible <bruno@clisp.org>
53042 * m4/fatal-signal.m4: New file.
53043 * m4/signalblocking.m4: New file, from GNU gettext.
53045 2003-10-06 Bruno Haible <bruno@clisp.org>
53047 * lib/version-etc-2.h: Remove file.
53048 * lib/version-etc-2.c: Remove file.
53050 2003-10-06 Bruno Haible <bruno@clisp.org>
53052 * lib/fatal-signal.h: New file, from GNU gettext.
53053 * lib/fatal-signal.c: New file, from GNU gettext.
53055 2003-10-05 Paul Eggert <eggert@twinsun.com>
53057 * README: Rework advice for preventing empty .o files.
53058 Don't recommend ELIDE constructs. Recommend <stddef.h>,
53061 2003-10-04 Karl Berry <karl@gnu.org>
53063 * lib/argp*: update from libc.
53065 2003-10-04 Karl Berry <karl@gnu.org>
53067 * config/config.{guess,sub}: update from config.
53069 2003-10-02 Bruno Haible <bruno@clisp.org>
53071 * modules/lchown (Include): Add lchown.h.
53072 * modules/time_r (Include): Use "..." syntax.
53073 * modules/xgetdomainname (Include): Add xgetdomainname.h.
53075 2003-10-01 Simon Josefsson <jas@extundo.com>
53077 * MODULES.html.sh (func_all_modules): Move gethostname from section
53078 'based on' to section 'lacking' POSIX:2001.
53080 2003-10-01 Larry Jones <lawrence.jones@eds.com>
53082 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
53083 to output mode on the same stream.
53085 2003-09-29 Paul Eggert <eggert@twinsun.com>
53087 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
53088 Fix arg typo in previous patch.
53090 2003-09-28 Jim Meyering <jim@meyering.net>
53092 * lib/error.c: Correct cpp indentation.
53094 2003-09-27 Paul Eggert <eggert@twinsun.com>
53096 * modules/free: New file.
53098 2003-09-27 Paul Eggert <eggert@twinsun.com>
53100 * m4/free.m4: New file.
53102 2003-09-27 Paul Eggert <eggert@twinsun.com>
53104 * lib/minmax.h (MIN, MAX)
53105 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
53106 Omit the special code that used __typeof__, since we worry that
53107 it could be more trouble than it's worth. See:
53108 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
53109 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
53111 * lib/free.c: New file.
53113 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
53115 Trivial fixes to Makefile.am parts of module listings.
53116 * modules/strstr: Append strstr.h to lib_SOURCES.
53117 * modules/strcase: Likewise, for strcase.h.
53119 2003-09-27 Karl Berry <karl@gnu.org>
53121 * config/mkinstalldirs: update from automake.
53123 2003-09-26 Paul Eggert <eggert@twinsun.com>
53125 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
53126 (error_tail): Do not loop, reallocating temporary buffer, since
53127 the output cannot contain more wide characters than the input
53128 contains bytes, the size must be big enough already. This avoids
53129 one potential size overflow calculation. Check for size overflow
53130 when calculating temporary buffer size. Free temporary buffer
53131 when done, if it was allocated with malloc; this plugs a memory
53132 leak. Remove casts from void * to pointers, that are no longer
53133 needed now that we're assuming C89 or better.
53135 Merge error changes from glibc.
53137 * lib/error.c, error.h: Update copyright notice header to match glibc.
53138 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
53139 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
53140 Disable cancellation while printing error.
53141 * lib/error.h: Prepend __ to parameter names.
53143 2003-09-26 Jim Meyering <jim@meyering.net>
53145 * lib/error.c (error_tail): Move some declarations
53146 into inner scope where the local variables are used.
53148 2003-09-26 Bruno Haible <bruno@clisp.org>
53150 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
53152 Don't define stpncpy through config.h; it's now done through stpncpy.h.
53154 2003-09-26 Bruno Haible <bruno@clisp.org>
53156 * lib/stpncpy.h (gnu_stpncpy): New declaration.
53157 (stpncpy): Define as alias for gnu_stpncpy.
53158 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
53160 2003-09-25 Simon Josefsson <jas@extundo.com>
53162 * lib/xgetdomainname.h: New file.
53163 * lib/xgetdomainname.c: New file.
53165 2003-09-25 Simon Josefsson <jas@extundo.com>
53166 Bruno Haible <bruno@clisp.org>
53168 * modules/getdomainname: New file.
53169 * modules/xgetdomainname: New file.
53170 * MODULES.html.sh (func_all_modules): Add getdomainname,
53173 2003-09-25 Simon Josefsson <jas@extundo.com>
53174 Bruno Haible <bruno@clisp.org>
53176 * m4/getdomainname.m4: New file.
53178 2003-09-25 Simon Josefsson <jas@extundo.com>
53179 Bruno Haible <bruno@clisp.org>
53181 * lib/getdomainname.h: New file.
53182 * lib/getdomainname.c: New file.
53184 2003-09-25 Karl Berry <karl@gnu.org>
53186 * lib/argp-fmtstream.c, argp-help.c: update from libc.
53188 2003-09-25 Karl Berry <karl@gnu.org>
53190 * config/install-sh: update from automake.
53192 2003-09-25 Bruno Haible <bruno@clisp.org>
53194 * modules/version-etc-2: New file, from modules/version-etc with
53196 * MODULES.html.sh (func_all_modules): Add version-etc-2.
53198 2003-09-25 Bruno Haible <bruno@clisp.org>
53200 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
53201 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
53203 2003-09-24 Simon Josefsson <jas@extundo.com>
53205 * modules/xgethostname: Add xgethostname.h.
53207 2003-09-24 Paul Eggert <eggert@twinsun.com>
53209 * lib/linebuffer.c (freebuffer): Don't free the argument, just
53210 the buffer associated with the argument. Bug reported by
53213 2003-09-24 Paul Eggert <eggert@twinsun.com>
53215 * README: Document assumptions that 'int' is at least 32 bits
53216 wide, that integer arithmetic is 2's complement without overflow,
53217 that there are no holes in integer values, that adding sizes of
53218 two nonoverlapping objects can't overflow, and that all-bits-zero
53219 yields scalar zero. Fix spelling and capitalization typos.
53221 2003-09-19 Karl Berry <karl@gnu.org>
53223 * lib/argp.h: update from libc.
53225 2003-09-17 Paul Eggert <eggert@twinsun.com>
53227 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
53228 to avoid spurious warnings like "AC_RUN_IFELSE was called before
53229 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
53231 2003-09-17 Paul Eggert <eggert@twinsun.com>
53233 * gnulib-tool: Use "test -h", not "test -L", for portability
53234 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
53235 (tags_regexp): Remove, since \| doesn't conform to POSIX.
53236 (sed_extract_prog): Issue s commands one-by-one, rather than
53237 using \| in one s command.
53239 2003-09-16 Paul Eggert <eggert@twinsun.com>
53241 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
53242 input error, instead of returning NULL the next time we are called
53243 (and therefore losing track of errno).
53245 2003-09-16 Bruno Haible <bruno@clisp.org>
53247 * gnulib-tool (func_create_testdir): Warn about duplicated
53250 2003-09-15 Paul Eggert <eggert@twinsun.com>
53252 * modules/argmatch, modules/fatal, modules/obstack,
53253 modules/xalloc, modules/xgethostname: Sort dependencies by
53254 importance, not alphabetically.
53256 2003-09-15 Paul Eggert <eggert@twinsun.com>
53258 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
53259 fails, so that the caller gets the proper errno.
53261 * lib/readutmp.c (read_utmp): Likewise.
53262 Check for fstat error. Close stream and free storage
53265 2003-09-14 Karl Berry <karl@gnu.org>
53267 * config/srclist.txt (strdup.c): disable for c89 changes.
53269 2003-09-14 Jim Meyering <jim@meyering.net>
53271 * lib/getloadavg.c: Correct cpp indentation.
53272 * lib/strdup.c: Likewise.
53273 * lib/vasnprintf.c: Likewise.
53275 2003-09-14 Bruno Haible <bruno@clisp.org>
53277 * modules/fwriteerror: New file.
53278 * MODULES.html.sh (func_all_modules): Add fwriteerror.
53280 2003-09-14 Bruno Haible <bruno@clisp.org>
53282 * lib/fwriteerror.h: New file.
53283 * lib/fwriteerror.c: New file.
53285 2003-09-12 Paul Eggert <eggert@twinsun.com>
53287 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
53288 modules/xgethostname, modules/xalloc: Depend on exit.
53290 2003-09-12 Paul Eggert <eggert@twinsun.com>
53292 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
53294 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
53295 and AC_MINIX, too, so that their extensions are available.
53297 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
53298 This macro has been superseded by gl_BACKUPFILE.
53300 More patches to assume C89 or better.
53302 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
53304 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
53306 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
53307 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
53308 Include <string.h>, <stdlib.h> unconditionally.
53309 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
53310 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
53311 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
53312 headers or for string.h.
53313 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
53316 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
53318 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
53319 * m4/userspec.m4 (gl_USERSPEC): Likewise.
53320 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
53321 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
53322 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53323 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
53325 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
53326 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
53327 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
53329 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
53330 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
53331 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
53334 2003-09-12 Paul Eggert <eggert@twinsun.com>
53336 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
53337 * lib/obstack.c [!defined _LIBC]: Likewise.
53338 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
53339 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
53340 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
53342 More changes to assume C89 or better.
53344 * lib/error.c (error_tail): Assume vprintf.
53346 * lib/argmatch.c (getenv): Remove decl.
53347 * lib/progreloc.c (get_full_program_name): Define via prototype.
53348 * lib/setenv.c (clearenv): Likewise.
53349 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
53351 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
53352 (malloc, memcpy): Remove decls.
53353 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
53354 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
53355 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53356 (memcpy): Remove macro.
53357 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
53358 (__P): Remove. All uses removed.
53359 (PTR): Remove. All uses changed to void *.
53360 (CHAR_BIT, NULL): Remove.
53361 (spaces, zeros, memset_space, memset_zero)
53362 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
53364 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
53365 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
53366 Define with prototype.
53367 Remove now-unnecessary prototype decl.
53368 (extra_args_spec): Assume ANSI C. All uses changed.
53369 (extra_args_spec_iso): Remove.
53370 (my_strftime, emacs_strftimeu): Define via prototype.
53371 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
53373 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
53374 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
53375 (strtoul, strtol): Remove decls.
53376 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
53378 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
53379 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
53380 (LOCALE_PARAM_PROTO): New macro.
53381 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
53382 (INTERNAL (strtol), strtol): Define with a prototype.
53383 (PARAMS): Remove. All uses removed.
53384 * lib/tempname.c: Include <string.h> unconditionally.
53385 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
53386 * lib/xgethostname.c (main): Define with a prototype.
53387 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
53388 Include <stdlib.h> unconditionally.
53389 (calloc, malloc, realloc, free): Remove decls.
53390 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
53391 Include <stdlib.h> unconditionally. Sort include file names.
53393 (xstrtod): Define with a prototype.
53394 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
53395 (strtol, strtoul): Remove decls.
53397 2003-09-11 Paul Eggert <eggert@twinsun.com>
53399 More patches to assume C89 or better.
53400 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
53401 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
53402 string.h, memchr, STDC_HEADERS.
53404 2003-09-11 Paul Eggert <eggert@twinsun.com>
53406 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
53407 Include <stdlib.h>, <string.h> unconditionally.
53408 Remove now-unnecessary cast to char *.
53409 * lib/strnlen.c: Include <string.h> unconditionally.
53410 * lib/yesno.c (yesno): Define with a prototype.
53412 2003-09-11 Bruno Haible <bruno@clisp.org>
53414 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
53416 2003-09-10 Jim Meyering <jim@meyering.net>
53418 * lib/error.c: Correct indentation of cpp directives.
53420 2003-09-10 Bruno Haible <bruno@clisp.org>
53422 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
53423 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
53424 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
53425 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
53426 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
53427 <stdlib.h> and <string.h> checks.
53428 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
53429 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
53431 2003-09-10 Bruno Haible <bruno@clisp.org>
53433 * lib/strcspn.c: Include <string.h> unconditionally.
53434 * lib/strpbrk.c: Include <string.h> unconditionally.
53435 * lib/strstr.c: Include <string.h> unconditionally.
53436 * lib/unicodeio.c: Include <string.h> unconditionally.
53437 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
53438 * lib/unsetenv.c: Likewise.
53439 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
53440 * lib/yesno.c: Include <stdlib.h> unconditionally.
53441 (rpmatch): Add prototype.
53443 2003-09-09 Paul Eggert <eggert@twinsun.com>
53445 More patches to assume C89 or better.
53446 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
53447 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
53448 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
53450 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
53452 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
53454 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
53456 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
53457 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
53458 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
53460 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
53461 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
53463 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
53465 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
53466 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
53467 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
53468 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
53469 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
53470 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
53472 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
53473 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
53474 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
53475 C headers, or for string.h.
53476 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
53477 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
53478 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
53479 headers, memory.h, stdlib.h, string.h, strings.h.
53480 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
53481 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
53482 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
53484 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
53485 headers, memory.h, string.h.
53486 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
53487 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
53489 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
53491 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
53492 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
53493 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
53494 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
53495 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
53497 2003-09-09 Paul Eggert <eggert@twinsun.com>
53501 * lib/acosl.c (main): Use a prototype.
53502 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
53505 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
53507 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
53508 (getopt, etopt_long, getopt_long_only, _getopt_internal)
53509 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
53511 * lib/getopt.c (const): Remove macro.
53512 Include <string.h> unconditionally.
53513 (my_index): Remove; all uses changed to strchr.
53514 (strlen): Remove decl.
53515 (exchange): Remove forward decl; no longer needed.
53516 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
53517 Define with prototype.
53518 * lib/getopt1.c (const): Remove macro.
53519 (getopt_long, getopt_long_only, main): Define with prototype.
53521 * lib/getugroups.c: Include <string.h> unconditionally.
53523 * lib/getusershell.c: Include <stdlib.h> unconditionally.
53524 (getusershell, setusershell, endusershell, readname, main):
53525 Define with prototypes.
53527 * lib/group-member.c: Include group-member.h first.
53528 Include <stdlib.h> unconditionally.
53530 * lib/hard-locale.c: Include hard-locale.h first.
53531 Include <stdlib.h>, <string.h> unconditionally.
53533 * lib/hash.c (free, malloc): Remove decls.
53534 Include <stdlib.h> unconditionally.
53536 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
53537 (getenv): Do not declare.
53539 * lib/idcache.c: Include <string.h> unconditionally.
53541 * lib/long-options.c: Include long-options.h first, to test interface.
53542 Include <stdlib.h> unconditionally.
53544 * lib/makepath.c: Include makepath.h first, to test interface.
53545 Include <stdlib.h> and <string.h> unconditionally.
53547 * lib/linebuffer.c: Include <stdlib.h>.
53548 (free): Remove decl.
53550 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
53551 stddef.h. rpl_malloc returns void *, not char *.
53552 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
53555 * lib/md5.h: Include <limits.h> unconditionally.
53556 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
53557 (__P): Remove; all uses removed.
53558 * lib/md5.c: Include "md5.h" first.
53559 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
53560 md5_buffer, md5_process_bytes, md5_process_block):
53561 Define with prototypes.
53562 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
53563 * lib/sha.c: Include "sha.h" first.
53564 Include <stdlib.h>, <string.h> unconditionally.
53566 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
53567 * lib/memcmp.c (__ptr_t): Likewise.
53568 * lib/memrchr.c (__ptr_t): Likewise.
53569 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
53570 Include <string.h> unconditionally.
53571 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
53572 * lib/memchr.c: Include <stdlib.h> unconditionally.
53573 * lib/memchr.c (LONG_MAX): Remove.
53574 * lib/memrchr.c (LONG_MAX): Likewise.
53575 * lib/memchr.c (__memchr): Define via a prototype.
53576 * lib/memrchr.c (__memrchr): Likewise.
53577 * lib/memcmp.c (__P): Remove, and remove all uses.
53578 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
53579 Remove forward decls; no longer needed.
53580 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
53581 Use types required by C89 in prototype.
53583 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
53584 * lib/savedir.c: Likewise.
53585 * lib/mkdir.c (free): Remove decl.
53586 * lib/rmdir.c (rmdir): Define with a prototype.
53587 * lib/savedir.c: Include savedir.h first, to test interface.
53589 * lib/mktime.c (STDC_HEADERS): Remove.
53590 Include <stdlib.h>, <string.h> unconditionally.
53592 * lib/modechange.c: Include <stdlib.h> unconditionally.
53593 (malloc): Remove decl.
53595 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
53596 (free): Remove decl.
53598 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
53599 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
53600 (This type really should be intptr_t, but that's a C99ism.)
53601 (_obstack_memcpy): Remove: all uses changed to memcpy.
53602 Include <string.h> unconditionally.
53603 (struct obstack): Assume __STDC__ for types of members
53604 chunkfun, freefun, extra_arg.
53605 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
53606 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
53607 obstack_begin, obstack_specify_allocation,
53608 obstack_specify_allocation_with_arg, obstack_chunkfun,
53609 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
53610 Remove unprototyped decls and the macros that use them.
53611 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
53612 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
53613 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
53614 (defined __STDC__ && __STDC__)]:
53615 Remove nonprototyped code.
53616 Include <stdlib.h> unconditionally.
53617 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
53618 _obstack_allocated_p, _obstack_free, obstack_free,
53619 _obstack_memory_used, print_and_abort):
53620 Define using prototypes.
53621 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
53622 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
53623 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
53624 obstack_next_free, obstack_object_size, obstack_room) [0]:
53625 Remove unused, unprototyped code.
53627 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
53629 * lib/physmem.c (physmem_total, physmem_available, main): Define
53632 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
53633 (main): Define with a prototype.
53635 * lib/posixver.c (getenv): Remove decl.
53637 * lib/putenv.c (malloc): Returns void *, not char *.
53638 Include <string.h> unconditionally.
53639 (strchr, memcpy, NULL): Do not define.
53641 * lib/readtokens.c: Include readtokens.h first, to test interface.
53642 Include <stdlib.h>, <string.h> unconditionally.
53643 (init_tokenbuffer): Define with a prototype.
53645 * lib/regex.c (PARAMS): Remove. All uses removed.
53646 All uses of _RE_ARGS removed, too.
53647 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
53649 (bzero): Assume memset exists.
53650 (memcmp, memcpy, NULL): Remove.
53651 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
53652 char, or assignments to local vars of type signed char.
53653 (init_syntax_once, PREFIX(extract_number_and_incr),
53654 PREFIX(print_partial_compiled_pattern),
53655 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
53656 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
53657 PREFIX(regex_grow_registers), PREFIX(regex_compile),
53658 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
53659 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
53660 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
53661 wcs_compile_range, byte_compile_range, truncate_wchar,
53662 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
53663 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
53664 count_mbs_length, wcs_re_match_2_internal,
53665 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
53666 PREFIX(alt_match_null_string_p),
53667 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
53668 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
53669 regfree, PREFIX(extract_number)): Define with prototype. Remove
53670 now-unnecessary declaration, if any.
53671 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
53673 Remove now-unnecessary casts among pointer types.
53674 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
53676 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
53677 (free): Remove decl.
53679 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
53681 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
53682 (free): Remove decl.
53684 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
53685 * lib/xgetcwd.c: Likewise.
53687 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
53688 (free): Remove decl.
53690 * lib/strchrnul.c (strchrnul): Define with a prototype.
53691 Fix bug: c_in was not converted to char before searching.
53693 The following changes are not K&R related:
53695 * lib/group-member.h: Include <sys/types.h>, so that this file is
53697 * lib/makepath.h: Likewise.
53699 * lib/getusershell.c (readname, default_index, line_size, readname):
53700 Use size_t, not int, for sizes.
53701 (readname): If the size overflows, report an error instead of
53704 2003-09-09 Paul Eggert <eggert@twinsun.com>
53706 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
53709 2003-09-09 Paul Eggert <eggert@twinsun.com>
53711 * README: New section: portability guidelines.
53713 2003-09-09 Derek Robert Price <derek@ximbiot.com>
53715 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
53718 2003-09-09 Derek Robert Price <derek@ximbiot.com>
53720 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
53722 2003-09-08 Paul Eggert <eggert@twinsun.com>
53724 Assume C89 or better; remove K&R cruft.
53725 A few of these changes were first proposed by Derek Robert Price
53726 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
53728 * lib/addext.c: Include <string.h> unconditionally.
53729 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
53730 Don't declare getenv or malloc.
53732 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
53733 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
53735 (find_stack_direction, alloca): Use prototypes.
53737 * lib/atexit.c (atexit): Define using a prototype.
53739 * lib/basename.c, dirname.c, stripslash.c:
53740 Include <string.h> unconditionally.
53742 * lib/bcopy.c: Include <stddef.h>.
53743 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
53745 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
53747 * lib/error.h (error, error_at_line, error_print_progname)
53748 [! (defined (__STDC__) && __STDC__)]: Remove decls.
53749 * lib/error.c: Include error.h first, to check interface.
53750 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
53751 (VA_START): Remove; all uses changeed to va_start.
53752 (exit, strerror): Remove decls.
53753 (error_print_progname): Prototype uncondionally.
53754 Don't include <errno.h>; no longer needed.
53755 (private_strerror): Remove.
53756 (error_tail): Always define.
53757 (error, error_at_line): Assume C89 or better; always use prototypes.
53758 * lib/fatal.c: Include "fatal.h" first, to test interface.
53759 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
53760 (VA_START): Remove; all uses changed to va_start.
53761 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
53763 (exit): Remove decl.
53764 (fatal): Prototype unconditionally. Assume va_start works.
53765 Abort at end, to pacify gcc.
53767 * lib/euidaccess.c (main): Define with a prototype.
53769 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
53771 * lib/exitfail.c: Include <stdlib.h> unconditionally.
53773 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
53775 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
53776 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
53777 (getenv): Remove decl.
53778 (fnmatch): Define using a prototype.
53779 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
53780 (FCT): Define using a prototype.
53782 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
53784 * lib/gethostname.c: Include <stddef.h>.
53785 (gethostname): Define with prototype. Length is size_t, not int.
53787 2003-09-08 Paul Eggert <eggert@twinsun.com>
53789 Assume C89 or better; remove K&R cruft.
53790 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
53791 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
53792 string.h, getenv, malloc.
53793 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
53795 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
53796 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
53797 do not check for strerror.
53798 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
53799 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
53800 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
53801 do not check for doprnt or vprintf.
53802 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
53803 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
53805 2003-09-08 Paul Eggert <eggert@twinsun.com>
53807 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
53808 getversion.c should have been removed then, but was accidentally
53811 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
53812 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
53814 2003-09-08 Karl Berry <karl@gnu.org>
53816 * config/config.sub, config.guess, srclistvars.sh: update from savannah
53817 config, forget about prep.
53819 * config/depcomp, missing: update from automake.
53821 2003-09-07 Paul Eggert <eggert@twinsun.com>
53823 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
53824 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
53826 2003-09-07 Paul Eggert <eggert@twinsun.com>
53828 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
53829 copy_tm_result. Bug reported by Simon Josefsson in
53830 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
53832 2003-09-06 Paul Eggert <eggert@twinsun.com>
53834 * m4/time_r.m4: New file.
53835 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
53836 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
53837 is. Check for timegm declaration.
53838 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
53839 Do not check for gmtime_r.
53840 Replace mktime if __mktime_internal does not exist and if mktime
53841 hasn't been replaced already.
53843 2003-09-06 Paul Eggert <eggert@twinsun.com>
53845 * lib/time_r.c, lib/time_r.h: New files.
53847 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
53849 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
53850 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
53852 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
53854 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
53855 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
53856 Include <time_r.h>.
53858 * lib/timegm.c: Switch to glibc implementation, with the following
53860 [defined HAVE_CONFIG_H]: Include <config.h>.
53861 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
53862 (__mktime_internal) [!defined _LIBC]: New decl.
53863 (__gmtime_r) [!defined _LIBC]: New macro and function.
53864 (timegm): Use a prototype, since gnulib assumes C89.
53865 Do not bother declaring tmp to be const, as it's not really usefu.
53866 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
53867 (timegm): Declare only if HAVE_DECL_TIMEGM.
53869 2003-09-06 Paul Eggert <eggert@twinsun.com>
53871 * MODULES.html.sh (func_all_modules): Add time_r.
53872 * modules/time_r: New file.
53873 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
53874 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
53876 2003-09-03 Paul Eggert <eggert@twinsun.com>
53878 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
53879 Bug reported by Lute Kamstra in
53880 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
53882 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
53883 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
53884 course with correspondingly smaller numbers for tomorrow and
53885 yesterday. From Tadayoshi Funaba. Originally installed into
53886 sh-utils on 1999-08-07, but the patch got lost (I guess during the
53889 2003-08-31 Simon Josefsson <jas@extundo.com>
53891 * modules/timegm: New file.
53892 * MODULES.html.sh (func_all_modules): Add timegm.
53894 2003-08-31 Simon Josefsson <jas@extundo.com>
53896 * m4/timegm.m4: New file.
53898 2003-08-31 Simon Josefsson <jas@extundo.com>
53900 * lib/timegm.h: New file.
53901 * lib/timegm.c: New file. Based on
53902 wget-1.8.2/src/http.c:mktime_from_utc.
53904 2003-08-31 Karl Berry <karl@gnu.org>
53906 * lib/argp.h: update from libc.
53908 2003-08-28 Bruno Haible <bruno@clisp.org>
53910 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
53911 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
53912 followed by '#define fnmatch fnmatch_posix' gives an error.
53914 2003-08-28 Bruno Haible <bruno@clisp.org>
53916 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
53917 warning on QNX, which defines O_BINARY to 000000.
53919 2003-08-27 Jim Meyering <jim@meyering.net>
53921 * m4/mkstemp.m4: Require that the system mkstemp be able to create
53922 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
53923 would fail after 32. Reported by Danny Levinson. Details here:
53924 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
53926 2003-08-24 Bruno Haible <bruno@clisp.org>
53928 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
53929 MSVC7 <stdio.h> is included later.
53931 2003-08-22 Simon Josefsson <jas@extundo.com>
53933 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
53935 2003-08-20 Karl Berry <karl@gnu.org>
53937 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
53939 2003-08-20 Bruno Haible <bruno@clisp.org>
53941 * modules/progname: New file.
53942 * MODULES.html.sh (func_all_modules): Add progname.
53944 2003-08-20 Bruno Haible <bruno@clisp.org>
53946 * lib/progname.h: New file, from GNU gettext.
53947 * lib/progname.c: New file, from GNU gettext.
53948 * lib/progreloc.c: New file, from GNU gettext.
53950 2003-08-19 Jim Meyering <jim@meyering.net>
53952 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
53953 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
53955 2003-08-19 Bruno Haible <bruno@clisp.org>
53957 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
53960 2003-08-19 Bruno Haible <bruno@clisp.org>
53962 * lib/xstrdup.c: Assume <string.h> exists.
53964 2003-08-18 Paul Eggert <eggert@twinsun.com>
53966 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
53969 2003-08-18 Jim Meyering <jim@meyering.net>
53971 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
53972 * m4/lib-ld.m4: Likewise.
53974 2003-08-18 Jim Meyering <jim@meyering.net>
53976 * lib/setenv.h: Indent nested cpp directive.
53977 * lib/vasnprintf.c: Remove trailing blanks.
53979 2003-08-17 Simon Josefsson <jas@extundo.com>
53981 * modules/xstrndup: New file.
53982 * MODULES.html.sh (func_all_modules): Add xstrndup.
53984 2003-08-17 Simon Josefsson <jas@extundo.com>
53986 * modules/argp: Fix autoconf macro name. Add more dependencies.
53988 2003-08-17 Simon Josefsson <jas@extundo.com>
53990 * m4/xstrndup.m4: New file.
53992 2003-08-17 Simon Josefsson <jas@extundo.com>
53994 * m4/argp.m4: New file.
53996 2003-08-17 Simon Josefsson <jas@extundo.com>
53997 Bruno Haible <bruno@clisp.org>
53999 * lib/xstrndup.h: New file.
54000 * lib/xstrndup.c: New file.
54002 2003-08-17 Bruno Haible <bruno@clisp.org>
54004 * modules/strndup (Files, Include): Add lib/strndup.h.
54006 2003-08-17 Bruno Haible <bruno@clisp.org>
54008 * modules/euidaccess (Files): Add lib/euidaccess.h.
54010 2003-08-17 Bruno Haible <bruno@clisp.org>
54012 * lib/strndup.h: New file.
54014 2003-08-17 Bruno Haible <bruno@clisp.org>
54016 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
54017 like AC_GNU_SOURCE.
54018 * modules/extensions (configure.ac): Comment out the invocation of
54019 gl_USE_SYSTEM_EXTENSIONS.
54021 2003-08-16 Paul Eggert <eggert@twinsun.com>
54023 Merges from coreutils, etc.
54024 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
54025 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
54026 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
54028 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
54029 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
54031 2003-08-16 Paul Eggert <eggert@twinsun.com>
54033 Document merge from coreutils.
54034 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
54035 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
54036 * modules/utime: Add m4/utimes-null.m4.
54038 2003-08-16 Paul Eggert <eggert@twinsun.com>
54040 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
54041 space, undoing this 2003-08-12 change:
54042 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
54044 2003-08-16 Paul Eggert <eggert@twinsun.com>
54046 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
54047 strtoul.c from libc, undoing this 2003-08-12 change:
54048 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
54050 2003-08-16 Jim Meyering <jim@meyering.net>
54052 Merges from coreutils.
54053 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
54054 prefix. Adjust cache variables similarly. Create 500 rather than
54055 just 300 files, to exercise bug on Darwin6.5, too.
54056 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
54058 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
54059 AM_SYS_POSIX_TERMIOS.
54060 Reported by mkc@mathdogs.com.
54061 Also change use of $am_cv_sys_posix_termios
54062 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
54063 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
54064 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
54065 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
54066 in /proc/mounts until it finds one with matching device number. This
54067 is unnecessary when the FILE argument *is* a mount point. No stat call
54068 is necessary in that case. So, disable the statvfs-testing code on
54069 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
54070 as RedHat bug# 84846.
54071 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
54072 to 1MB, so as not to render systems with no stack size limit (e.g.,
54073 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
54074 Include <unistd.h>. On some systems,
54075 it is required for the definition of _SC_PAGESIZE.
54077 2003-08-16 Jim Meyering <jim@meyering.net>
54079 Merge from coreutils.
54080 * lib/xstrtoimax.c: #else #if -> #elif.
54081 * lib/xstrtoumax.c: Likewise.
54083 2003-08-16 Jim Meyering <jim@meyering.net>
54085 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
54086 * m4/utimes.m4: Removed.
54087 * m4/utimes-null.m4: Renamed from utimes.m4.
54089 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
54090 to 1MB, so as not to render systems with no stack size limit (e.g.,
54091 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
54092 Include <unistd.h>. On some systems,
54093 it is required for the definition of _SC_PAGESIZE.
54095 2003-08-16 Jim Meyering <jim@meyering.net>
54096 and Paul Eggert <eggert@cs.ucla.edu>
54098 Merges from coreutils, etc.
54100 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
54101 using the latest version from cvs. This avoids problems with #line
54102 directives using a vendor (Sun) compiler.
54103 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
54104 Don't set GETGROUPS_LIB here; now it's
54105 done via getgroups.m4's wrapper function.
54106 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
54107 rather than just in sh-util/configure.in, so that the
54108 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
54110 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
54111 AC_FUNC_GETLOADAVG where to find getloadavg.c.
54112 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
54113 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
54114 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
54115 Remove code that is now done by the newly-required macros.
54116 Append $(EXEEXT) to DF_PROG.
54117 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
54118 Do not invoke or require the following here,
54119 since prereq.m4 or some gnulib .m4 now does this for us:
54120 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
54121 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
54122 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
54123 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
54124 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
54125 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
54126 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
54128 Do not replace the following functions, as this is now the job
54129 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
54130 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
54131 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
54132 atexit getpass, strdup, getpagesize.
54134 Do not check for the following functions, as this is now the job
54135 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
54136 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
54138 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
54139 Check for sys/sysctl.h.
54140 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
54141 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
54142 of checking for ssize_t ourselves.
54144 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
54145 Require every macro that gnulib/modules/* suggests for us.
54146 (jm_PREREQ_ADDEXT): New macro.
54147 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
54148 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
54150 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
54151 (gl_PHYSMEM): Use it.
54152 Also check for `table' function.
54153 Check for new headers and functions.
54154 Add check for sys/sysmp.h.
54155 With suggestions from Kaveh Ghazi.
54156 Ignore headers that are present but cannot be compiled. This
54157 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
54160 2003-08-15 Paul Eggert <eggert@twinsun.com>
54162 Document merge from coreutils.
54163 * modules/userspec: Depend on posixver.
54164 * modules/strftime: Depend on tzset.
54166 2003-08-15 Paul Eggert <eggert@twinsun.com>
54168 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
54169 rather than tab, after '#' in shell-script copyright notices.
54170 Suggested by Bruno Haible.
54172 2003-08-15 Paul Eggert <eggert@twinsun.com>
54174 * config/srclist-update: Use three spaces, rather than tab, after '#'
54175 in shell-script copyright notices. Suggested by Bruno Haible.
54176 Remove unnecessary parenthesization in regular expression.
54178 2003-08-15 Jim Meyering <jim@meyering.net>
54180 Merge from coreutils.
54181 * lib/xgethostname.c: Include <stdlib.h>.
54182 (xghostname): Don't exit for anything other than memory-related
54183 failure; just return NULL.
54184 * lib/userspec.c: Include "posixver.h".
54185 (parse_user_spec): Accept `.' as a separator only
54186 in pre-POSIX-200112 mode.
54187 * lib/strtoimax.c: Use #elif rather than #else #if.
54188 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
54189 Remove function, now that we can rely on a working tzset function.
54190 [!_LIBC]: Ensure that the required autoconf test has been run.
54191 [!defined _NL_CURRENT && HAVE_STRFTIME]:
54192 Use underlying_strftime for %r.
54193 * lib/sha.c: Merge in some clean-up and optimization changes from
54195 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
54196 Ensure that it is a multiple of 64.
54197 Rearrange loop exit tests so as to avoid performing an
54198 additional fread after encountering an error or EOF.
54199 * lib/realloc.c: Update copyright date.
54201 2003-08-15 Jim Meyering <jim@meyering.net>
54202 and Paul Eggert <eggert@twinsun.com>
54204 Merge from coreutils.
54205 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
54206 member but strut utmpx does not. Needed for AIX 4.3.3.
54207 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
54209 2003-08-15 Jim Meyering <jim@meyering.net>
54210 and Paul Eggert <eggert@cs.ucla.edu>
54212 Merges from coreutils, etc.
54213 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
54214 Require gl_FUNC_TZSET_CLOBBER.
54215 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
54216 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
54219 2003-08-14 Paul Eggert <eggert@twinsun.com>
54221 Help the merge from coreutils.
54222 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
54223 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
54224 * m4/tzset.m4: Use it too.
54226 2003-08-14 Paul Eggert <eggert@twinsun.com>
54228 * modules/tzset: New file.
54230 2003-08-14 Jim Meyering <jim@meyering.net>
54232 Merges from coreutils.
54233 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
54234 variable names, rather than @FNMATCH_H@.
54235 * modules/alloca: Likewise for $(ALLOCA_H).
54237 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
54238 the three copies of the literal target, `fnmatch.h'.
54239 * modules/alloca (alloca.h): Likewise.
54241 2003-08-14 Jim Meyering <jim@meyering.net>
54243 Merge from coreutils.
54244 * m4/tzset.m4: New file.
54245 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
54246 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
54247 otherwise, AIX 5.1 systems would end up using the latter.
54248 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
54249 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
54250 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
54251 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
54253 2003-08-14 Jim Meyering <jim@meyering.net>
54255 Merge from coreutils.
54256 * lib/obstack.h: Whitespace changes.
54257 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
54258 and xcalloc return values.
54259 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
54260 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
54261 hang on OSF/1 5.1 for DIR on both local and remote file systems.
54262 Reported by (and fix confirmed by) Nelson H. F. Beebe.
54263 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
54265 Use mntctl's return value to drive the entry-processing loop, since
54266 we can't rely on the value of the vmt_length member in the last
54267 entry. On some systems doing so could result in exhausting
54268 virtual memory. Based in part on a patch from Mike Jetzer.
54270 2003-08-14 Jim Meyering <jim@meyering.net>
54271 and Paul Eggert <eggert@twinsun.com>
54273 Merges from coreutils, plus other fixes.
54274 * lib/physmem.c: Merge in portability changes from gcc/libiberty
54275 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
54276 for credits and details. Thanks to Kaveh Ghazi for helping
54277 to keep these files in sync.
54278 (ARRAY_SIZE): Define it.
54279 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
54280 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
54281 (memcasecmp): Don't assume size_t fits in unsigned int.
54282 Remove casts and duplicate code.
54283 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
54284 (memcpy): Remove definition.
54285 Merge in some clean-up and optimization changes from glibc.
54286 [BLOCKSIZE]: Move definition to top of file.
54287 Ensure that it is a multiple of 64.
54288 Rearrange loop exit tests so as to avoid performing an
54289 additional fread after encountering an error or EOF.
54290 * lib/md5.h (md5_uintptr): Define.
54291 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
54292 return to the initial working directory. Preserve errno
54294 * lib/idcache.c: Include "xalloc.h".
54295 (xmalloc, xrealloc): Remove decls.
54296 (getuser): Remove casts no longer required in C89.
54297 * lib/human.c: Include stdio.h, for sprintf.
54298 * lib/group-member.c: Include "xalloc.h".
54299 (xmalloc, xrealloc): Remove decls.
54300 (get_group_info): Remove casts no longer required in C89.
54301 * lib/getusershell.c (readname): Remove casts no longer required in
54303 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
54304 * lib/getline.c: Whitespace fix, from coreutils.
54306 2003-08-13 Paul Eggert <eggert@twinsun.com>
54308 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
54311 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54312 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54313 Undo previous (whitespace-only) change.
54315 2003-08-13 Paul Eggert <eggert@twinsun.com>
54317 * lib/exclude.c: Include <ctype.h>
54318 (IN_CTYPE_DOMAIN): New macro.
54319 (is_space): New fn.
54320 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
54323 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54324 Undo previous (whitespace-only) change.
54326 2003-08-13 Paul Eggert <eggert@twinsun.com>
54328 * config/srclist-update: Change update back to the old behavior,
54329 leaving whitespace alone. Use one 'sed' command rather than a
54331 (fixlicense): Now a variable, not a function.
54332 (remove_trailing_blanks): Remove.
54333 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
54334 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54335 Undo previous (whitespace-only) change.
54337 2003-08-12 Paul Eggert <eggert@twinsun.com>
54339 Merge from coreutils.
54340 * modules/euidaccess: Add lib_SOURCES, include for new
54343 2003-08-12 Paul Eggert <eggert@twinsun.com>
54345 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
54346 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
54347 Normalize leading white space and remove trailing white space.
54349 Merge from coreutils
54350 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
54352 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
54353 0.12.1. These files are now being upgraded automatically by
54354 ../config/srclist-update.
54356 2003-08-12 Paul Eggert <eggert@twinsun.com>
54358 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
54359 Normalize leading white space and remove trailing white space.
54360 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
54361 notice, as per ../config/srclist-update.
54363 Merge from coreutils.
54364 * lib/euidaccess.h: New file.
54365 * lib/euidaccess.c: Include it.
54366 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
54367 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
54368 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
54370 2003-08-12 Paul Eggert <eggert@twinsun.com>
54372 * config/srclist-update: Add copyright notice.
54373 (remove_id_lines, remove_trailing_blanks): New constants.
54374 (fixfile): Use them to normalize spacing a bit in copied files.
54375 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
54376 Normalize leading white space and remove trailing white space.
54378 * config/texinfo.tex: Sync with texinfo.
54380 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
54381 strtoul.c from libc, to merge coreutils whitespace changes.
54383 * config/srclist.txt: Get the following m4 files from gettext:
54384 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
54385 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
54386 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
54389 2003-08-12 Karl Berry <karl@gnu.org>
54391 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
54394 2003-08-11 Paul Eggert <eggert@twinsun.com>
54396 * modules/gnu-source, m4/gnu-source.m4:
54397 Remove; we're assuming Autoconf 2.54 or later now.
54398 Suggested by Bruno Haible.
54399 * MODULES.html.sh (func_all_modules): Remove gnu-source.
54401 2003-08-11 Bruno Haible <bruno@clisp.org>
54403 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
54405 2003-08-11 Bruno Haible <bruno@clisp.org>
54407 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
54408 (vasnprintf): Use it instead of wcslen.
54410 2003-08-11 Bruno Haible <bruno@clisp.org>
54412 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
54413 value to ensure that _Bool promotes to int. Use #define for _Bool when
54414 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
54416 2003-08-10 Karl Berry <karl@gnu.org>
54418 * lib/regex.h: update from libc (whitespace fix).
54420 2003-08-09 Paul Eggert <eggert@twinsun.com>
54422 Merge some files from coreutils. These changes were
54423 originally made by Jim Meyering.
54424 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
54425 many older Unixes require this.
54426 * lib/alloca.c (alloca): Remove cast to argument of free;
54427 no longer needed in C89.
54428 * lib/alloca_.h, regex.h: Fix white space to match
54429 what GNU indent does.
54431 2003-08-09 Paul Eggert <eggert@twinsun.com>
54433 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
54434 apparently Emacs's Unicode mode got confused before my 2003-08-05
54437 2003-08-08 Paul Eggert <eggert@twinsun.com>
54439 * m4/extensions.m4: New file.
54440 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
54441 Require gl_USE_SYSTEM_EXTENSIONS.
54442 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
54443 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
54445 2003-08-08 Paul Eggert <eggert@twinsun.com>
54447 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
54448 * modules/extensions, modules/gnu-source: New files.
54449 * modules/timespec, modules/unlocked-io: Depend on extensions.
54451 2003-08-07 Paul Eggert <eggert@twinsun.com>
54453 * modules/restrict: New file.
54454 * MODULES.html.sh (func_all_modules): Add restrict.
54455 * modules/regex: Depend on restrict.
54457 2003-08-07 Paul Eggert <eggert@twinsun.com>
54459 * m4/restrict.m4: New file.
54460 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
54462 2003-08-07 Bruno Haible <bruno@clisp.org>
54464 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
54465 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
54467 2003-08-07 Bruno Haible <bruno@clisp.org>
54469 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
54470 makes the module 'getndelim2' compatible with the module 'getline'.
54472 2003-08-05 Paul Eggert <eggert@twinsun.com>
54474 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
54475 byte with "\201" to avoid glitches when editing that source file
54476 with multi-gnome-terminal.
54478 2003-08-05 Paul Eggert <eggert@twinsun.com>
54480 * lib/bumpalloc.h: Remove.
54482 2003-08-05 Paul Eggert <eggert@twinsun.com>
54484 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
54485 * modules/bumpalloc: Remove.
54487 2003-08-04 Paul Eggert <eggert@twinsun.com>
54489 * lib/getloadavg.c: Change copyright notice and spacing to conform to
54492 Merge from coreutils.
54493 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
54495 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
54496 from Karl Berry, implemented by Jim Meyering.
54497 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
54498 from Dmitry V. Levin.
54499 Remove anachronistic cast of xrealloc.
54500 * lib/fnmatch_.h (__const): Remove. Use 'const'.
54501 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
54502 type. Otherwise, it wouldn't compile with at least /bin/cc on
54503 ymp-cray-unicos9.0.2.X.
54504 Combine two mostly-identical uses of alloca into one.
54505 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
54507 2003-08-04 Dave Love <d.love@dl.ac.uk>
54511 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
54512 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
54513 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
54514 obsolete NLIST_NAME_UNION.
54515 [__GNU__]: Undef BSD and FSCALE.
54516 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
54518 2003-08-03 Paul Eggert <eggert@twinsun.com>
54520 * lib/stdbool_.h (_Bool): Make it signed char, instead of
54521 an enum type, so that it's guaranteed to promote to int. See:
54522 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
54524 2003-08-03 Karl Berry <karl@gnu.org>
54526 * config/depcomp: update from automake.
54528 2003-07-31 Paul Eggert <eggert@twinsun.com>
54530 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
54531 (strerror): Don't assume that a printable int fits in 14 bytes.
54533 2003-07-31 Bruno Haible <bruno@clisp.org>
54535 * modules/getpass-gnu: New file.
54536 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
54538 2003-07-31 Bruno Haible <bruno@clisp.org>
54540 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
54542 2003-07-24 Karl Berry <karl@gnu.org>
54544 * config/missing: update from automake.
54546 2003-07-24 Derek Robert Price <derek@ximbiot.com>
54547 Bruno Haible <bruno@clisp.org>
54549 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
54550 * lib/getline.c (getline, getdelim): Likewise.
54551 Remove _GNU_SOURCE define; now it's defined in config.h through
54554 2003-07-23 Karl Berry <karl@gnu.org>
54556 * config/config.sub: update from prep.
54558 2003-07-22 Paul Eggert <eggert@twinsun.com>
54560 * modules/xalloc (Depends-on): Add exitfail.
54561 * modules/xmemcoll: Likewise.
54563 2003-07-22 Paul Eggert <eggert@twinsun.com>
54565 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
54566 over-parenthesization in macros.
54568 Sync with coreutils.
54570 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
54573 Use `exit_failure' for xalloc and xmemcoll instead of their own
54574 private exit-failure variables.
54575 * lib/xalloc.h (xalloc_exit_failure): Remove.
54576 * lib/xmalloc.c: Likewise. Include exitfail.h.
54577 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
54578 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
54579 * lib/xmemcoll.c: Likewise. Include exitfail.h.
54580 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
54582 2003-07-20 Jim Meyering <jim@meyering.net>
54584 * modules/closeout (Depends-on): Add exitfail.
54585 Suggestion from Bruno Haible.
54587 2003-07-19 Karl Berry <karl@gnu.org>
54589 * config/config.sub: update from prep.
54591 2003-07-18 Paul Eggert <eggert@twinsun.com>
54593 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
54595 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
54596 to test that it can stand by itself. Include "exitfail.h".
54597 Clients should set exit_failure instead.
54598 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
54600 2003-07-18 Bruno Haible <bruno@clisp.org>
54602 * modules/getndelim2: New file.
54603 * modules/getline: Share files with module getndelim2.
54604 * modules/getnline: Depend on getndelim2 instead of sharing files with
54605 it. Add getnline.c to lib_SOURCES.
54606 * MODULES.html.sh (func_all_modules): Add getndelim2.
54608 2003-07-18 Bruno Haible <bruno@clisp.org>
54610 * m4/getndelim2.m4: New file.
54611 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
54612 invoke gl_PREREQ_GETNDELIM2.
54613 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
54614 gl_PREREQ_GETNDELIM2.
54615 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
54618 2003-07-18 Bruno Haible <bruno@clisp.org>
54620 * lib/getndelim2.h: New file.
54621 * lib/getndelim2.c: Make into a module of its own. Include config.h,
54623 (getndelim2): Make non-static. Change return type to ssize_t.
54624 * lib/getline.h: Change argument names.
54625 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
54626 * lib/getnline.c: Include getndelim2.h.
54628 2003-07-18 Andreas Schwab <schwab@suse.de>
54630 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
54632 2003-07-17 Karl Berry <karl@gnu.org>
54634 * config/config.sub: update from prep.
54636 2003-07-17 Bruno Haible <bruno@clisp.org>
54638 * modules/getnline: New file.
54639 * modules/getline: Add lib/getndelim2.c to source file list.
54640 * MODULES.html.sh (func_all_modules): Add getnline.
54642 2003-07-17 Bruno Haible <bruno@clisp.org>
54644 * m4/getnline.m4: New file.
54646 2003-07-17 Bruno Haible <bruno@clisp.org>
54648 * m4/Makefile.am.in: Remove file.
54649 * m4/Makefile.am: Remove file.
54650 * m4/Makefile.in: Remove file.
54652 2003-07-17 Bruno Haible <bruno@clisp.org>
54654 * lib/getnline.h: New file.
54655 * lib/getnline.c: New file.
54656 * lib/getndelim2.c: New file, extracted from getline.c.
54657 (getndelim2): Renamed from getdelim2, with added nmax argument.
54658 * lib/getline.c: Include getndelim2.c.
54659 (getdelim2): Moved out to getndelim2.c.
54660 (getline, getdelim): Update.
54662 2003-07-17 Bruno Haible <bruno@clisp.org>
54664 * lib/Makefile.am: Remove file.
54665 * lib/Makefile.in: Remove file.
54667 2003-07-17 Bruno Haible <bruno@clisp.org>
54669 * configure.in: Remove file.
54670 * Makefile.in: Remove file.
54672 2003-07-17 Bruno Haible <bruno@clisp.org>
54674 * MODULES.html.sh: Put the </BODY> right before </HTML>.
54676 2003-07-16 Karl Berry <karl@gnu.org>
54678 * config/srclist-update: was running fixlicense twice, which caused
54679 texinfo.tex to be nullified for some reason. Simplify,
54680 $gplsrc is no longer needed as far as I can see?
54682 2003-07-16 Jim Meyering <jim@meyering.net>
54684 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
54686 2003-07-15 Paul Eggert <eggert@twinsun.com>
54688 * config/srclist.txt: Get the following files from gettext-runtime/intl
54689 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
54690 ref-del.sin. From Bruno Haible.
54691 * config/srclist-update (fixfile): Change grep pattern again, since the
54692 previous fix didn't work (there was another trailing $). Use
54693 '[$]' to escape the $s.
54695 2003-07-15 Karl Berry <karl@gnu.org>
54697 * lib/vasnprintf.c: update from gettext.
54699 2003-07-15 Karl Berry <karl@gnu.org>
54701 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
54702 gets expanded when surrounded by '$'.
54704 2003-07-15 Jim Meyering <jim@meyering.net>
54706 * modules/save-cwd: Don't depend on error. From Derek Price.
54708 2003-07-15 Jim Meyering <jim@meyering.net>
54710 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
54712 2003-07-14 Simon Josefsson <jas@extundo.com>
54714 * modules/mempcpy: New file.
54715 * MODULES.html.sh (func_all_modules): Add mempcpy.
54717 2003-07-14 Simon Josefsson <jas@extundo.com>
54719 * m4/mempcpy.m4: New file.
54721 2003-07-14 Simon Josefsson <jas@extundo.com>
54723 * lib/mempcpy.h: New file.
54724 * lib/mempcpy.c: New file.
54726 2003-07-14 Paul Eggert <eggert@twinsun.com>
54728 * modules/getdate, modules/posixtm: Depend on mktime.
54730 2003-07-14 Paul Eggert <eggert@twinsun.com>
54732 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
54733 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
54734 unicodeio.c, unicodeio.h, unlocked-io.h:
54735 Switch from LGPL to GPL.
54737 2003-07-14 Paul Eggert <eggert@twinsun.com>
54739 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
54740 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
54741 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
54742 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
54743 vasprintf.c, vasprintf.h: Regenerate. These files are now being
54744 updated automatically by ../config/srclist-update. This changes
54745 their license from LPGL to GPL.
54747 2003-07-14 Paul Eggert <eggert@twinsun.com>
54749 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
54750 assumed to refer to the root of the most recent stable gettext version.
54751 * config/srclistvars.sh: Add defaults for eggert.
54752 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
54753 Match "This program" as well as "The program". This is needed
54756 2003-07-14 Jim Meyering <jim@meyering.net>
54758 Don't emit diagnostics. Let callers do that.
54759 * lib/save-cwd.c: Don't include "error.h".
54760 (save_cwd): Don't call error. Ensure that errno is valid
54761 when returning nonzero.
54763 * lib/save-cwd.h (restore_cwd): Update prototype.
54764 * lib/save-cwd.c (restore_cwd): Remove two parameters.
54765 Simplify. Don't call error upon failure. Let callers do that.
54766 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
54767 when auditing is enabled. But don't bother updating the #if.
54769 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
54771 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
54772 it breaks C++ compilation.
54773 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
54775 2003-07-10 Simon Josefsson <jas@extundo.com>
54777 * modules/strchrnul (Makefile.am): Add strchrnul.h.
54779 2003-07-10 Jim Meyering <jim@meyering.net>
54781 * m4/clock_time.m4: Remove trailing blank.
54782 * m4/intmax_t.m4: Likewise.
54784 2003-07-10 Jim Meyering <jim@meyering.net>
54786 * lib/vasnprintf.c: Remove trailing blanks.
54787 Make cpp indentation consistent.
54789 2003-07-09 Paul Eggert <eggert@twinsun.com>
54791 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
54792 posixver.c, strftime.c, strnlen.c, strverscmp.c:
54793 Switch from LGPL to GPL.
54795 2003-07-09 Paul Eggert <eggert@twinsun.com>
54797 * config/srclist.txt: Sort sublists. Add
54798 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
54799 that differ from gnulib for one reason or another; we'd like this list
54800 to be smaller but for now let's document what we have.
54802 2003-07-08 Paul Eggert <eggert@twinsun.com>
54804 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
54805 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
54806 and sweeter "eval x=$x".
54807 * config/srclist.txt: Get lib/argp* from glibc.
54809 2003-07-07 Paul Eggert <eggert@twinsun.com>
54811 * lib/mktime.c: Fix some boundary cases and remove need for floating
54814 Issue a compile-time diagnostic if time_t is floating point, or if
54815 two's complement arithmetic is not in effect, or if arithmetic
54816 right shift does not propagate the sign. These assumptions were
54817 all in the original code but they weren't checked.
54819 (TIME_T_MIDPOINT, verify): New macros.
54820 (__isleap): Remove; it has integer overflow problems.
54821 (leapyear): New function, without those problems.
54822 (ydhms_tm_diff): Remove; splitting into two parts.
54823 (ydhms_diff): New function, containing the arithmetic part of
54824 the old ydhms_tm_diff function. Issue a compile-time
54825 diagnostic if we are not using C99 integer division.
54826 Avoid casts when possible.
54827 (guess_time_tm): New function, containing the checking part of
54828 the old ydhms_tm_diff function. Return the new value, rather than
54829 the difference between it and the old. Accept a new argument T
54830 so that *T specifies the old value. Check for overflow in the result.
54832 (__mktime_internal): Use a time_t offset, not a long int offset.
54833 This undoes the 2003-06-04 change, which is no longer needed now
54834 that we have better overflow checking.
54835 (localtime_offset): Likewise.
54837 (__mktime_internal): Avoid harmful overflow on hosts where time_t
54838 and long are 64-bit but int is only 32-bit.
54839 (ydhms_diff): Use long int to store year1 and yday1.
54840 Issue a compile-time diagnostic if long int is not wide enough.
54842 (__mktime_internal): Use long int to store adjusted year and yday.
54843 Use plain C rather than preprocessor commands, if that doesn't
54845 Check for overflow (and try to repair) after each probe
54846 rather than checking only at the very end. This avoids some bugs
54847 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
54848 does not equal GMT offset at maximum time).
54849 Use integer to check for overflow rather than floating point; this
54850 is more portable to non-IEEE hosts, and is a tad faster.
54851 When we detect that we are oscillating between two values,
54852 don't check whether tm_isdst has the requested value, since
54853 we already know the answer. When tm_isdst has the wrong value,
54854 use a different heuristic to find the right one, based on the
54855 extreme values actually observed in practice in tz2003a,
54856 rather than the (overly optimistic) "previous 3 calendar quarters".
54858 (not_equal_tm, print_tm, check_result): Use "const T" rather than
54859 "T const" to accommodate glibc style.
54860 (check_result): Use less-confusing report format. "long" -> "long int.
54862 Don't loop if the iteration overflows time_t.
54863 Allow a negative step in the iteration.
54865 2003-07-06 Karl Berry <karl@gnu.org>
54867 * config/depcomp: update from automake.
54868 * config/config.sub: update from prep.
54870 2003-07-03 Karl Berry <karl@gnu.org>
54872 * config/config.guess: update from prep.
54874 2003-07-01 Paul Eggert <eggert@twinsun.com>
54876 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
54877 xreadlink.c now includes it unconditionally.
54879 2003-07-01 Paul Eggert <eggert@twinsun.com>
54881 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
54882 having it depend on HAVE_SYS_TYPES_H.
54884 2003-07-01 Bruno Haible <bruno@clisp.org>
54886 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
54887 <sys/types.h> should be sufficient.
54888 Reported by Paul Eggert.
54890 2003-06-26 Karl Berry <karl@gnu.org>
54892 * config/depcomp: update from automake.
54894 2003-06-26 Bruno Haible <bruno@clisp.org>
54896 * modules/human: Depend on module stdbool.
54898 2003-06-25 Bruno Haible <bruno@clisp.org>
54900 * modules/readlink: New file.
54901 * modules/xreadlink: Depend on it.
54902 * MODULES.html.sh (func_all_modules): Add readlink.
54904 2003-06-25 Bruno Haible <bruno@clisp.org>
54906 * m4/readlink.m4: New file.
54908 2003-06-25 Bruno Haible <bruno@clisp.org>
54910 * lib/readlink.c: New file.
54912 2003-06-22 Karl Berry <karl@gnu.org>
54914 * config/srclist.txt: update mkinstalldirs from automake.
54915 * config/mkinstalldirs: update.
54917 2003-06-22 Bruno Haible <bruno@clisp.org>
54919 Portability to mingw32.
54920 * m4/ssize_t.m4: New file, from GNU gettext.
54921 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
54922 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
54924 2003-06-22 Bruno Haible <bruno@clisp.org>
54926 * modules/safe-read: Add m4/ssize_t.m4.
54927 * modules/xreadlink: Add m4/ssize_t.m4.
54929 2003-06-20 Bruno Haible <bruno@clisp.org>
54931 Assume C89, so PARAMS isn't needed.
54932 * lib/unicodeio.h (PARAMS): Remove.
54933 * lib/unicodeio.c: Don't use PARAMS.
54935 2003-06-18 Karl Berry <karl@gnu.org>
54937 * config/config.{guess,sub}: update from prep.
54939 2003-06-18 Jim Meyering <jim@meyering.net>
54941 Merge changes from coreutils.
54942 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
54943 Remove explicit declarations of xmalloc and realloc.
54945 (read_utmp): Remove anachronistic cast of xmalloc.
54947 2003-06-17 Paul Eggert <eggert@twinsun.com>
54949 Assume C89, so PARAMS isn't needed.
54950 * lib/backupfile.h (PARAMS): Remove. All uses removed.
54951 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
54952 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
54953 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
54954 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
54955 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
54956 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
54957 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
54958 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
54959 lib/xstrtod.h, lib/xstrtol.h: Likewise.
54960 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
54961 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
54962 no longer needed. Anyway, config.h should always be included before any
54965 2003-06-11 Simon Josefsson <jas@extundo.com>
54967 * modules/sysexits: New file.
54968 * MODULES.html.sh (func_all_modules): Add sysexits.
54970 2003-06-11 Simon Josefsson <jas@extundo.com>
54972 * lib/sysexit_.h: New file.
54974 2003-06-11 Derek Price <derek@ximbiot.com>
54976 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
54979 2003-06-11 Bruno Haible <bruno@clisp.org>
54981 * m4/sysexits.m4: New file.
54983 2003-06-10 Simon Josefsson <jas@extundo.com>
54985 * lib/argp.h: New file, from glibc.
54986 * lib/argp-ba.c: New file, from glibc.
54987 * lib/argp-eexst.c: New file, from glibc.
54988 * lib/argp-fmtstream.c: New file, from glibc.
54989 * lib/argp-fmtstream.h: New file, from glibc.
54990 * lib/argp-fs-xinl.c: New file, from glibc.
54991 * lib/argp-help.c: New file, from glibc.
54992 * lib/argp-namefrob.h: New file, from glibc.
54993 * lib/argp-parse.c: New file, from glibc.
54994 * lib/argp-pv.c: New file, from glibc.
54995 * lib/argp-pvh.c: New file, from glibc.
54996 * lib/argp-xinl.c: New file, from glibc.
54998 2003-06-10 Simon Josefsson <jas@extundo.com>
55000 * modules/strchrnul: New file.
55002 2003-06-10 Simon Josefsson <jas@extundo.com>
55004 * modules/argp: New file.
55006 2003-06-10 Simon Josefsson <jas@extundo.com>
55008 * m4/strchrnul.m4: New file.
55010 2003-06-10 Simon Josefsson <jas@extundo.com>
55012 * lib/strchrnul.h: New file.
55013 * lib/strchrnul.c: New file.
55015 2003-06-10 Bruno Haible <bruno@clisp.org>
55017 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
55019 2003-06-07 Karl Berry <karl@gnu.org>
55021 * config/config.{guess,sub}: update from prep.
55023 2003-06-07 Jim Meyering <jim@meyering.net>
55025 * modules/strtod: Use $(...) notation, not @...@ for
55026 AC_REPLACE'd variables.
55027 * modules/localcharset: Likewise.
55029 2003-06-07 Jim Meyering <jim@meyering.net>
55031 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
55032 in place of my name in the copyright comment.
55033 Remove definition and uses of __P.
55036 * lib/stat.c: Don't declare xmalloc explicitly.
55037 Instead, include "xalloc.h".
55038 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
55039 xrealloc, and xcalloc return values.
55040 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
55042 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
55044 2003-06-07 Bruno Haible <bruno@clisp.org>
55046 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
55047 avoid AC_CONFIG_LINKS.
55048 * modules/fnmatch (Makefile.am): Use explicit creation rule for
55049 fnmatch.h, to avoid AC_CONFIG_LINKS.
55050 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
55052 2003-06-07 Bruno Haible <bruno@clisp.org>
55054 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
55055 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
55056 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
55058 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
55059 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
55062 2003-06-06 Jim Meyering <jim@meyering.net>
55064 Merge from coreutils.
55065 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
55066 Consolidate declarations and initializations of *_base* locals.
55068 Merge from coreutils.
55069 This avoids a core dump on systems without GNU putenv,
55070 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
55071 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
55072 (unsetenv): New static function, from GNU libc.
55073 (rpl_putenv): Use it.
55075 * lib/modechange.c: Remove trailing blanks.
55077 Merge from coreutils.
55078 * lib/fsusage.c: Remove declaration of statfs.
55079 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
55081 * lib/posixtm.c: Include <stdbool.h> unconditionally.
55083 2003-06-06 Jim Meyering <jim@meyering.net>
55085 * lib/stdbool_.h: Renamed from stdbool.h.in.
55087 2003-06-06 Jim Meyering <jim@meyering.net>
55088 Bruno Haible <bruno@clisp.org>
55090 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
55091 Adjust Makefile.am snippet not to redirect directly to target.
55092 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
55094 2003-06-05 Paul Eggert <eggert@twinsun.com>
55096 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
55097 mismatch, look in future quarters as well as past. This fixes a
55098 bug when processing fall-backwards gaps immediately after a long
55099 period of daylight-saving time.
55101 * lib/mktime.c: Assume freestanding C89 or better.
55102 (HAVE_LIMITS_H): Remove. Assume it's 1.
55103 (__P): Remove; not used.
55104 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
55105 (mktime, not_equal_tm, print_tm, check_result,
55106 main): Use prototypes. Use const * where appropriate.
55107 (main): Fix typo in testing code that uncovered by above changes.
55108 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
55110 2003-06-04 Paul Eggert <eggert@twinsun.com>
55112 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
55113 locale.h, localeconv. This merges changes from coreutils.
55115 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
55116 It can be removed after the next Autoconf is released.
55117 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
55120 2003-06-04 Paul Eggert <eggert@twinsun.com>
55122 * lib/mktime.c: Fix Debian bug 177940
55123 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
55124 (localtime_offset): Now long int, not time_t, because we want it
55125 to be guaranteed to be signed. All uses changed.
55126 (__mktime_internal): If overflow would occur when adding offset,
55129 Merge 'human' changes from coreutils. Rewrite to support
55130 locale-specific notations like thousands separators.
55131 * lib/human.c: Simplify authorship notice.
55132 Include human.h immediately after config.h.
55133 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
55134 <limits.h>: Do not include, since human.h does.
55135 (SIZE_MAX, UINTMAX_MAX): New macros.
55136 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
55137 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
55138 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
55139 (power_letter): Renamed from suffixes.
55140 (generate_suffix_backwards): Remove.
55141 (adjust_value): Now takes int style (because of human.h changes)
55142 and long double value (for greater precision on some platforms).
55143 (group_number): New function.
55144 (human_readable): Use it. Use integer options, not enum.
55145 Put the options before the sizes in the arg list.
55146 Support all the new options.
55147 The old human_readable function has been removed;
55148 use inttostr.h instead.
55149 (human_readable, default_block_size, humblock):
55150 Use uintmax_t, not int, for block sizes.
55151 (human_readable_inexact, block_size_types): Remove.
55152 (block_size_opts): New constant.
55153 (human_options): Renamed from human_block_size, with new signature
55154 that allows block sizes up to UINTMAX_MAX. All callers changed.
55155 * lib/human.h: Add copyright and authorship notice.
55156 Include <limits.h> and <stdbool.h> unconditionally.
55157 (PARAMS): Remove. All uses removed.
55158 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
55159 (enum human_inexact_style): Remove tag; now a nameless enum.
55160 (human_floor, human_ceiling, human_round_to_even): Now have
55161 values 2, 0, 1 rather than -1, 1, 0.
55162 (human_group_digits, human_suppress_point_zero, human_autoscale,
55163 human_base_1024, human_SI, human_B): New constants.
55164 (human_readable_inexact, human_block_size): Remove.
55165 (human_readable): Size args are now uintmax_t, not int.
55166 (human_options): New decl.
55168 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
55169 unnecessary now that we assume C89 or better. This change
55170 imported from coreutils.
55172 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
55173 arbitrarily. This is the same patch as 2003-05-28, but it got lost
55174 in the 2003-05-30 sync from glibc.
55176 .h files should stand alone, but we shouldn't include <sys/types.h>
55177 if we can get away with just <stddef.h>.
55179 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
55180 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
55181 rather than <sys/types.h>, as we merely need size_t.
55182 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
55184 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
55185 Include <stdio.h>, to get FILE.
55186 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
55187 memcasecmp.h has included <stddef.h> and all we need is size_t.
55188 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
55189 our interface, instead of including <sys/types.h>
55191 2003-06-04 Paul Eggert <eggert@twinsun.com>
55193 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
55194 now, as glibc mktime is buggy on non-glibc systems.
55196 2003-06-03 Karl Berry <karl@gnu.org>
55198 * config/config.sub: update from prep.
55200 2003-06-02 Paul Eggert <eggert@twinsun.com>
55203 Fix some minor time-related bugs with POSIX time arguments.
55204 Some valid time stamps were being rejected (notably -1, and
55205 time stamps before 1900 on 64-bit hosts). And some invalid
55206 time stamps were being accepted, e.g. September 31.
55208 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
55209 that we can return (time_t) -1 successfully.
55210 * lib/posixtm.c: Likewise.
55211 [HAVE_STDBOOL_H]: Include <stdbool.h>.
55212 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
55213 (t): Remove static var.
55214 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
55215 of static var. All uses changed.
55216 (year): Do not reject years before 1900; they can occur with
55218 (posix_time_parse): Do not check for out-of-range components;
55219 that is now the caller's responsibility, since our checks were
55220 only approximations.
55221 (posixtime): Use mktime to check for out-of-range components,
55222 since it knows them exactly.
55223 If mktime returns (time_t) -1, check whether an error actually occurred
55224 by invoking localtime on -1.
55225 (main) [TEST_POSIXTIME]: Check for input data errors, and report
55226 posixtime failures better.
55227 Improve the test data (in comments only).
55229 2003-06-02 Karl Berry <karl@gnu.org>
55231 * config/mkinstalldirs (version): new variable.
55232 (--version): new option.
55233 (usage): improve message.
55235 2003-05-30 Karl Berry <karl@gnu.org>
55237 * lib/mktime.c: update from libc.
55239 2003-05-30 Bruno Haible <bruno@clisp.org>
55241 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
55242 * config/config.rpath: Upgrade to gettext-0.12.1.
55244 2003-05-30 Bruno Haible <bruno@clisp.org>
55246 * m4/gettext.m4: Upgrade to gettext-0.12.1.
55247 * m4/nls.m4: New file, from gettext-0.12.1.
55248 * m4/po.m4: New file, from gettext-0.12.1.
55249 * m4/progtest.m4: Upgrade to gettext-0.12.1.
55251 2003-05-30 Bruno Haible <bruno@clisp.org>
55253 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
55254 * lib/localcharset.h: Likewise.
55255 * lib/localcharset.c: Likewise.
55257 2003-05-29 Karl Berry <karl@gnu.org>
55259 * config/config.rpath: update from gettext.
55261 2003-05-28 Paul Eggert <eggert@twinsun.com>
55263 Assume the headers required for C89 freestanding compilers.
55264 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
55265 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
55266 * m4/human.m4 (gl_HUMAN): Likewise.
55267 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
55268 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
55269 * m4/userspec.m4 (gl_USERSPEC): Likewise.
55270 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
55271 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55272 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
55274 2003-05-28 Paul Eggert <eggert@twinsun.com>
55276 Assume the headers required for C89 freestanding compilers.
55277 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
55278 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
55279 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
55280 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
55281 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
55282 define, since <limits.h> is guaranteed to do that.
55283 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
55284 * lib/exclude.c: Include <stdbool.h> unconditionally.
55285 * lib/tempname.c: Include <stddef.h> unconditionally.
55286 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
55287 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
55288 <stddef.h> does that.
55289 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
55290 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
55291 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
55293 * lib/xstrtol.c: Likewise.
55294 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
55295 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
55297 * lib/addext.c (addext): Use assignment rather than cast, to avoid
55298 warnings on some platforms.
55300 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
55303 2003-05-26 Jim Meyering <jim@meyering.net>
55305 Merge in a change from coreutils:
55306 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
55307 that is guaranteed to be `no'. Use `no_such_member' to indicate
55308 that condition, rather than `-1' which is slightly misleading.
55309 Change the name of the cache variable to have the gl_ prefix.
55310 Prompted by a patch from Richard Dawe for DJGPP.
55312 2003-05-24 Karl Berry <karl@gnu.org>
55314 * config/config.guess: update from prep.
55316 2003-05-22 Karl Berry <karl@gnu.org>
55318 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
55320 2003-05-20 Karl Berry <karl@gnu.org>
55322 * config/config.guess: update from prep.
55324 2003-05-18 Karl Berry <karl@gnu.org>
55326 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
55327 might actually be set by the user.
55329 * config/depcomp, install-sh, mdate-sh: update from automake.
55331 2003-05-17 Bruno Haible <bruno@clisp.org>
55333 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
55334 invalid expansion for AC_EGREP_CPP.
55335 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
55336 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
55337 Suggested by Akim Demaille <akim@epita.fr> in
55338 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
55340 2003-05-12 Jim Meyering <jim@meyering.net>
55342 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
55343 the space-padded-by-default conversion specifiers, %e, %k, %l.
55345 2003-05-12 Bruno Haible <bruno@clisp.org>
55347 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
55348 the string is longer than 4 KB.
55350 2003-05-11 Karl Berry <karl@gnu.org>
55352 * config/config.{guess,sub}: update from prep.
55354 2003-05-09 Bruno Haible <bruno@clisp.org>
55356 * modules/error: Add m4/strerror_r.m4 to file list.
55358 2003-05-03 Bruno Haible <bruno@clisp.org>
55360 Upgrade to Unicode-4.0.
55361 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
55362 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
55363 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
55364 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
55365 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
55366 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
55367 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
55368 Change width of U+E0100..U+E01EF from 1 to 0.
55370 2003-04-25 Jim Meyering <jim@meyering.net>
55372 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
55373 of type size_t, not int.
55375 2003-04-25 Bruno Haible <bruno@clisp.org>
55377 * lib/copy-file.c: Include <stddef.h>, for size_t.
55379 2003-04-21 Paul Eggert <eggert@twinsun.com>
55381 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
55382 code which expansion is under static control. Patch imported from
55383 Akim Demaille's patch to Bison; see
55384 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
55386 2003-04-14 Bruno Haible <bruno@clisp.org>
55388 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
55390 2003-04-11 Jim Meyering <jim@meyering.net>
55392 Merge changes from Coreutils.
55394 2003-03-22 Jim Meyering <jim@meyering.net>
55396 * lib/strftime.c (widen): Cast alloca return value to proper type.
55398 2003-01-19 Ulrich Drepper <drepper@redhat.com>
55401 * lib/strftime.c (my_strftime): Handle very large width
55402 specifications for numeric values correctly. Improve checks for
55405 2003-01-19 Jim Meyering <jim@meyering.net>
55407 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
55409 (nl_get_alt_digit) [! defined my_strftime]: Define.
55410 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
55411 _nl_get_alt_digit and _nl_get_walt_digit.
55413 * lib/strftime.c (my_strftime): Merge in locale-related changes from
55414 libc. These changes have no effect outside of _LIBC.
55416 2003-04-10 Bruno Haible <bruno@clisp.org>
55418 * modules/findprog: New file.
55419 * MODULES.html.sh (func_all_modules): Add it.
55421 2003-04-10 Bruno Haible <bruno@clisp.org>
55423 * m4/findprog.m4: New file.
55424 * m4/eaccess.m4: New file.
55426 2003-04-10 Bruno Haible <bruno@clisp.org>
55428 * lib/findprog.h: New file, from GNU gettext.
55429 * lib/findprog.c: New file, from GNU gettext.
55431 2003-04-05 Jim Meyering <jim@meyering.net>
55433 Merge changes from Coreutils.
55435 * lib/exclude.h (PARAMS): Remove definition and uses.
55436 * lib/exclude.c: Remove uses of `PARAMS'.
55438 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
55439 Add test-cases for DOS filenames. Declare program_name.
55440 (main): Set up program_name. Patch by Rich Dawe.
55442 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
55444 Use mntctl's return value to drive the entry-processing loop, since
55445 we can't rely on the value of the vmt_length member in the last
55446 entry. On some systems doing so could result in exhausting
55447 virtual memory. Based in part on a patch from Mike Jetzer.
55449 2003-04-04 Bruno Haible <bruno@clisp.org>
55451 * modules/linebreak: New file.
55452 * MODULES.html.sh (func_all_modules): Add it.
55454 2003-04-04 Bruno Haible <bruno@clisp.org>
55456 * m4/linebreak.m4: New file.
55458 2003-04-04 Bruno Haible <bruno@clisp.org>
55460 * lib/linebreak.h: New file, from GNU gettext.
55461 * lib/linebreak.c: New file, from GNU gettext with slight
55463 * lib/lbrkprop.h: New file, from GNU gettext.
55465 2003-04-03 Bruno Haible <bruno@clisp.org>
55467 * modules/utf8-ucs4: New file.
55468 * modules/utf16-ucs4: New file.
55469 * modules/ucs4-utf8: New file.
55470 * modules/ucs4-utf16: New file.
55471 * MODULES.html.sh (func_all_modules): Add them.
55473 2003-04-03 Bruno Haible <bruno@clisp.org>
55475 * m4/utf-ucs4.m4: New file.
55476 * m4/ucs4-utf.m4: New file.
55478 2003-04-03 Bruno Haible <bruno@clisp.org>
55480 * lib/utf8-ucs4.h: New file, from GNU gettext.
55481 * lib/utf16-ucs4.h: New file, from GNU gettext.
55482 * lib/ucs4-utf8.h: New file, from GNU gettext.
55483 * lib/ucs4-utf16.h: New file, from GNU gettext.
55485 2003-04-02 Bruno Haible <bruno@clisp.org>
55487 * modules/binary-io: New file.
55488 * MODULES.html.sh (func_all_modules): Add it.
55490 2003-04-02 Bruno Haible <bruno@clisp.org>
55492 * lib/binary-io.h: New file, from GNU gettext.
55494 2003-04-01 Bruno Haible <bruno@clisp.org>
55496 * modules/pathname: New file.
55497 * MODULES.html.sh (func_all_modules): Add it.
55499 2003-04-01 Bruno Haible <bruno@clisp.org>
55501 * lib/pathname.h: New file, from GNU gettext.
55502 * lib/concatpath.c: New file, from GNU gettext.
55504 2003-03-30 Bruno Haible <bruno@clisp.org>
55506 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
55508 2003-03-30 Bruno Haible <bruno@clisp.org>
55510 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
55511 function chown() doesn't exist.
55513 2003-03-28 Bruno Haible <bruno@clisp.org>
55515 * modules/copy-file: New file.
55516 * MODULES.html.sh (func_all_modules): Add it.
55518 2003-03-28 Bruno Haible <bruno@clisp.org>
55520 * m4/copy-file.m4: New file.
55522 2003-03-28 Bruno Haible <bruno@clisp.org>
55524 * lib/copy-file.h: New file, from GNU gettext.
55525 * lib/copy-file.c: New file, from GNU gettext.
55527 2003-03-18 Jim Meyering <jim@meyering.net>
55529 * lib/quote.c (quote_n): Fix typo in comment.
55531 2003-03-18 Bruno Haible <bruno@clisp.org>
55533 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
55535 * m4/onceonly_2_57.m4: Likewise.
55537 2003-03-17 Bruno Haible <bruno@clisp.org>
55539 * m4/onceonly.m4: Require autoconf 2.54 or newer.
55540 (m4_quote): Remove macro.
55541 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
55543 2003-03-14 Jim Meyering <jim@meyering.net>
55545 Merge changes from Coreutils.
55546 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
55547 to be const, in order to avoid warnings.
55548 (obstack_room): Likewise.
55549 (obstack_empty_p): Likewise.
55551 2003-03-14 Bruno Haible <bruno@clisp.org>
55553 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
55554 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
55556 2003-03-13 Paul Eggert <eggert@twinsun.com>
55558 Merge changes from Bison.
55559 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
55560 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
55561 when compiling Bison 1.875's `bitset bset = obstack_alloc
55562 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
55563 * lib/hash.c: Include <stdbool.h> unconditionally.
55565 2003-03-13 Paul Eggert <eggert@twinsun.com>
55567 * m4/onceonly.m4 (m4_quote): New macro.
55568 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
55569 Quote AC_FOREACH variable-expansions properly.
55571 2003-03-13 Paul Eggert <eggert@twinsun.com>
55573 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
55575 2003-03-09 Paul Eggert <eggert@twinsun.com>
55577 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
55578 Reported by Bruce Becker; see:
55579 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
55581 2003-03-03 Paul Eggert <eggert@twinsun.com>
55582 Bruno Haible <bruno@clisp.org>
55584 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
55585 Reported by John Hughes, see
55586 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
55588 2003-02-20 Bruno Haible <bruno@clisp.org>
55590 * MODULES.html.sh (func_all_modules): Add poll.
55592 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
55594 * modules/poll: New file.
55596 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
55598 * lib/poll_.h: New file.
55599 * lib/poll.c: New file.
55601 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
55603 * m4/poll.m4: New file.
55605 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
55607 * modules/mathl: New file.
55609 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
55611 * lib/mathl.h: New file.
55612 * lib/acosl.c: New file.
55613 * lib/asinl.c: New file.
55614 * lib/atanl.c: New file.
55615 * lib/ceill.c: New file.
55616 * lib/cosl.c: New file.
55617 * lib/expl.c: New file.
55618 * lib/floorl.c: New file.
55619 * lib/frexpl.c: New file.
55620 * lib/ldexpl.c: New file.
55621 * lib/logl.c: New file.
55622 * lib/sincosl.c: New file.
55623 * lib/sinl.c: New file.
55624 * lib/sqrtl.c: New file.
55625 * lib/tanl.c: New file.
55626 * lib/trigl.c: New file.
55627 * lib/trigl.h: New file.
55629 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
55631 * m4/mathl.m4: New file.
55633 2003-02-18 Bruno Haible <bruno@clisp.org>
55635 * MODULES.html.sh (func_all_modules): Add mathl.
55637 2003-02-17 Bruno Haible <bruno@clisp.org>
55639 * modules/mkdtemp: New module.
55640 * MODULES.html.sh (func_all_modules): Add it.
55642 2003-02-17 Bruno Haible <bruno@clisp.org>
55644 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
55646 2003-02-17 Bruno Haible <bruno@clisp.org>
55648 * lib/mkdtemp.h: New file, from GNU gettext.
55649 * lib/mkdtemp.c: New file, from GNU gettext.
55651 2003-02-02 Jim Meyering <jim@meyering.net>
55653 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
55656 2003-01-31 Bruno Haible <bruno@clisp.org>
55658 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
55660 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
55662 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
55664 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
55667 2003-01-31 Bruno Haible <bruno@clisp.org>
55669 * lib/rename.c: #undef rename before defining rpl_rename.
55670 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
55672 2003-01-30 Bruno Haible <bruno@clisp.org>
55674 * modules/vasnprintf, modules/vasprintf: New modules.
55675 * MODULES.html.sh (func_all_modules): Add them.
55677 2003-01-30 Bruno Haible <bruno@clisp.org>
55679 * m4/signed.m4: New file, from GNU gettext.
55680 * m4/longdouble.m4: New file, from GNU gettext.
55681 * m4/wchar_t.m4: New file, from GNU gettext.
55682 * m4/wint_t.m4: New file, from GNU gettext.
55683 * m4/vasnprintf.m4: New file.
55684 * m4/vasprintf.m4: New file.
55686 2003-01-30 Bruno Haible <bruno@clisp.org>
55688 * lib/printf-args.h: New file, from GNU gettext.
55689 * lib/printf-args.c: New file, from GNU gettext.
55690 * lib/printf-parse.h: New file, from GNU gettext.
55691 * lib/printf-parse.c: New file, from GNU gettext.
55692 * lib/vasnprintf.h: New file, from GNU gettext.
55693 * lib/vasnprintf.c: New file, from GNU gettext.
55694 * lib/asnprintf.c: New file, from GNU gettext.
55695 * lib/vasprintf.h: New file, from GNU gettext with modifications.
55696 * lib/vasprintf.c: New file, from GNU gettext.
55697 * lib/asprintf.c: New file, from GNU gettext.
55699 2003-01-29 Bruno Haible <bruno@clisp.org>
55701 * modules/stpncpy: New module.
55702 * MODULES.html.sh (func_all_modules): Add it.
55704 2003-01-29 Bruno Haible <bruno@clisp.org>
55706 * m4/stpncpy.m4: New file.
55708 2003-01-29 Bruno Haible <bruno@clisp.org>
55710 * lib/stpncpy.h: New file, from GNU gettext with modifications.
55711 * lib/stpncpy.c: New file, from GNU gettext with modifications.
55713 2003-01-28 Bruno Haible <bruno@clisp.org>
55715 * modules/c-ctype: New module.
55716 * MODULES.html.sh (func_all_modules): Add it.
55718 2003-01-28 Bruno Haible <bruno@clisp.org>
55720 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
55722 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
55725 2003-01-27 Bruno Haible <bruno@clisp.org>
55727 * modules/xsetenv: New module.
55728 * MODULES.html.sh (func_all_modules): Add it.
55730 2003-01-27 Bruno Haible <bruno@clisp.org>
55732 * lib/xsetenv.h: New file, from GNU gettext.
55733 * lib/xsetenv.c: New file, from GNU gettext.
55735 2003-01-23 Jim Meyering <jim@meyering.net>
55737 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
55738 from working on systems without dirfd (at least Irix and OSF1/Tru64).
55740 2003-01-23 Bruno Haible <bruno@clisp.org>
55742 * modules/minmax: New module.
55743 * MODULES.html.sh (func_all_modules): Add it.
55745 2003-01-23 Bruno Haible <bruno@clisp.org>
55747 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
55750 2003-01-22 Bruno Haible <bruno@clisp.org>
55752 * modules/exit: New module.
55753 * MODULES.html.sh (func_all_modules): Add it.
55755 2003-01-22 Bruno Haible <bruno@clisp.org>
55757 * lib/exit.h: New file, from GNU gettext.
55759 2003-01-19 Bruno Haible <bruno@clisp.org>
55761 * gnulib-tool: Recognize option --extract-maintainer.
55762 (func_get_maintainer): New function.
55763 * modules/*: Add Maintainer entry.
55765 2003-01-16 Jim Meyering <jim@meyering.net>
55767 * m4/regex.m4: The `regex' struct is both input and output.
55768 Initialize it before each use. Patch by Tim Waugh.
55770 2003-01-16 Bruno Haible <bruno@clisp.org>
55772 * MODULES.html.sh: Add a table of contents. Add the module name as
55773 leftmost column. Add hyperlinks.
55775 2003-01-15 Bruno Haible <bruno@clisp.org>
55777 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
55779 2003-01-15 Bruno Haible <bruno@clisp.org>
55781 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
55782 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
55785 2003-01-15 Bruno Haible <bruno@clisp.org>
55787 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
55789 2003-01-15 Bruno Haible <bruno@clisp.org>
55791 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
55792 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
55794 2003-01-14 Jim Meyering <jim@meyering.net>
55796 * lib/same.c (same_name): Tweak a comment.
55798 2003-01-14 Bruno Haible <bruno@clisp.org>
55800 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
55801 when a string comparison is sufficient.
55803 2003-01-14 Bruno Haible <bruno@clisp.org>
55805 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
55808 2003-01-14 Bruno Haible <bruno@clisp.org>
55810 * lib/hash-pjw.c: Add comment about low quality of this function.
55812 2003-01-13 Bruno Haible <bruno@clisp.org>
55814 * modules/stpcpy: Distribute lib/stpcpy.h.
55815 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
55817 2003-01-13 Bruno Haible <bruno@clisp.org>
55819 * modules/*: Add a description.
55820 * modules/strpbrk: Fix Makefile.am snippet.
55821 * modules/strtoimax: Fix dependencies.
55822 * modules/strtoumax: Likewise.
55824 2003-01-13 Bruno Haible <bruno@clisp.org>
55826 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
55827 * modules/alloca (Makefile.am): All object files depend on alloca.h.
55828 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
55830 2003-01-13 Bruno Haible <bruno@clisp.org>
55832 * gnulib-tool (func_create_testdir): Store config/* files in the main
55834 * config.rpath: Move to ...
55835 * config/config.rpath: ... here.
55836 * modules/gettext: Contains config/config.rpath, not config.rpath.
55837 * modules/iconv: Likewise.
55839 2003-01-12 Paul Eggert <eggert@twinsun.com>
55841 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55842 to avoid collisions with libcurses and libreadline.
55844 * m4/getstr.m4: Remove.
55845 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
55847 2003-01-12 Paul Eggert <eggert@twinsun.com>
55849 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55850 to avoid collisions with libcurses and libreadline.
55852 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
55853 * lib/getstr.h, getstr.c: Remove.
55854 * lib/getline.c: Include "getline.h", to check interface.
55855 Move body of old getstr.c here: this defines MIN_CHUNK and
55856 declares getdelim2, which is renamed from getstr.
55857 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
55859 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
55861 * lib/linebuffer.h: Likewise.
55862 (readline): Remove backward-compatibility macro.
55864 2003-01-12 Paul Eggert <eggert@twinsun.com>
55866 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
55867 to avoid collisions with libcurses and libreadline.
55869 * MODULES.html.sh: Remove getstr.
55870 * modules/getline: Depend on unlocked-io, not getstr.
55872 2003-01-12 Jim Meyering <jim@meyering.net>
55874 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
55876 2003-01-10 Bruno Haible <bruno@clisp.org>
55878 * modules/alloca: Change Makefile.am requirements. Simplify Include
55879 requirements. Add lib/alloca_.h to file list.
55881 2003-01-10 Bruno Haible <bruno@clisp.org>
55883 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
55885 2003-01-10 Bruno Haible <bruno@clisp.org>
55887 * lib/alloca_.h: New file.
55888 * lib/getdate.y: Unconditionally include alloca.h.
55889 * lib/makepath.c: Likewise.
55890 * lib/setenv.c: Likewise.
55891 * lib/userspec.c: Likewise.
55893 2003-01-09 Karl Berry <karl@gnu.org>
55895 * MODULES.html.sh: include `dirname $0` in PATH, to find
55898 2003-01-09 Bruno Haible <bruno@clisp.org>
55900 * modules/stdbool: Change configure.ac, Makefile.am requirements.
55901 Simplify Include requirements. Add lib/stdbool.h.in to file list.
55903 2003-01-09 Bruno Haible <bruno@clisp.org>
55905 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
55907 2003-01-09 Bruno Haible <bruno@clisp.org>
55909 * lib/stdbool.h.in: New file.
55911 2003-01-09 Bruno Haible <bruno@clisp.org>
55913 * gnulib-tool (func_all_modules): Ignore files ending in ~.
55914 * MODULES.html.sh: Likewise.
55916 2003-01-08 Jim Meyering <jim@meyering.net>
55918 * lib/full-write.c: Undefine and define-away `const' after inclusion
55919 of errno.h, not before. Suggestion from Bruno Haible.
55921 2003-01-08 Bruno Haible <bruno@clisp.org>
55923 * modules/full-read: Depend on full-write.
55925 2003-01-08 Bruno Haible <bruno@clisp.org>
55927 * lib/safe-read.c: Include specification header first, to ensure its
55929 * lib/full-write.c: Likewise.
55931 2003-01-07 Jim Meyering <jim@meyering.net>
55933 * lib/full-write.c: Rework so that it may serve to define full_read,
55935 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
55937 2003-01-07 Bruno Haible <bruno@clisp.org>
55939 * lib/strtoimax.c: Include <stdint.h> as an alternative to
55941 * lib/xstrtol.h: Likewise.
55942 * lib/xstrtoimax.c: Likewise.
55943 * lib/xstrtoumax.c: Likewise.
55944 * lib/human.h: Likewise.
55946 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
55947 on systems that have <inttypes.h> but not <stdint.h>.
55949 2003-01-07 Bruno Haible <bruno@clisp.org>
55951 * MODULES.html.sh: Add copyright notice.
55952 (missed_files): Omit CVS directory entries.
55953 (func_module): Make it work with sed-3.02.
55954 * MODULES.txt: Remove file.
55956 2003-01-06 Jim Meyering <jim@meyering.net>
55958 * lib/version-etc.c: Update year in translatable copyright string.
55960 2003-01-03 Karl Berry <karl@gnu.org>
55962 * config/config.{guess,sub}: update from prep.
55964 2003-01-02 Karl Berry <karl@gnu.org>
55966 * doc/COPYING.DOC: belatedly updated to 1.2.
55968 2003-01-01 Karl Berry <karl@gnu.org>
55970 * gnulib-tool (func_verify_module): report module name $module in
55971 error message, not $1.
55972 * gnulib-tool (create-testdir): don't complain if destdir couldn't
55973 be created, only if it doesn't exist.
55974 * gnulib-tool (last_checkin_date): don't expand the $Date here.
55976 2002-12-31 Paul Eggert <eggert@twinsun.com>
55978 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
55980 2002-12-31 Paul Eggert <eggert@twinsun.com>
55982 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
55983 memcmp if strcoll doesn't work.
55985 2002-12-31 Bruno Haible <bruno@clisp.org>
55987 * lib/utime.c (utime_null): No need to call ftruncate if the file was
55990 2002-12-31 Bruno Haible <bruno@clisp.org>
55992 * lib/memcoll.c (STRCOLL): New macro.
55995 2002-12-31 Bruno Haible <bruno@clisp.org>
55997 * lib/localcharset.h: New file.
55998 * lib/localcharset.c: Include it.
55999 * lib/unicodeio.c: Likewise.
56001 2002-12-31 Bruno Haible <bruno@clisp.org>
56003 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
56004 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
56006 2002-12-31 Bruno Haible <bruno@clisp.org>
56008 * lib/getline.h: Include <stddef.h>, for size_t.
56010 * lib/unicodeio.h: Include <stddef.h>, for size_t.
56011 * lib/unicodeio.c: Don't include <stddef.h>.
56013 2002-12-31 Bruno Haible <bruno@clisp.org>
56015 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
56018 2002-12-24 Karl Berry <karl@gnu.org>
56020 * config/config.guess: update from prep.
56022 2002-12-24 Bruno Haible <bruno@clisp.org>
56024 General infrasructure.
56025 * m4/README: Rewritten.
56026 * m4/onceonly.m4: New file.
56027 * m4/onceonly_2_57.m4: New file.
56030 * m4/atexit.m4: New file.
56033 * m4/strtod.m4: New file.
56036 * m4/strtol.m4: New file.
56039 * m4/strtoul.m4: New file.
56042 * m4/memchr.m4: New file.
56045 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
56046 (jm_FUNC_MEMCMP): Invoke it.
56049 * m4/memcpy.m4: New file.
56052 * m4/memmove.m4: New file.
56055 * m4/memset.m4: New file.
56058 * m4/strcspn.m4: New file.
56061 * m4/strpbrk.m4: New file.
56064 * m4/strstr.m4: New file.
56067 * m4/strerror.m4: New file.
56070 * m4/mktime.m4: Renamed from jm-mktime.m4.
56071 (gl_PREREQ_MKTIME): New macro.
56072 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
56075 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
56076 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
56077 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
56080 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
56081 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
56082 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
56085 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
56086 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
56087 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
56089 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
56092 * m4/xalloc.m4: New file.
56095 * m4/alloca.m4: New file.
56098 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
56099 (jm_FUNC_PUTENV): Invoke it.
56102 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
56103 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
56104 when invoked twice.
56105 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
56109 * m4/memrchr.m4: New file.
56112 * m4/stpcpy.m4: New file.
56115 * m4/strcase.m4: New file.
56118 * m4/strdup.m4: New file.
56121 * m4/strnlen.m4: New file.
56124 * m4/strndup.m4: New file.
56127 * m4/xstrtod.m4: New file.
56130 * m4/xstrtol.m4: New file.
56133 * m4/getdate.m4: New file.
56135 Module unlocked-io.
56136 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
56137 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
56138 * m4/jm-glibc-io.m4n: Remove file.
56140 Module long-options.
56141 * m4/long-options.m4: New file.
56144 * m4/md5.m4: New file.
56147 * m4/sha.m4: New file.
56150 * m4/getstr.m4: New file.
56153 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
56154 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
56155 <sys/types.h>, for size_t. Use the function name gnu_getline, not
56156 simply getline. Infoke gl_PREREQ_GETLINE.
56159 * m4/obstack.m4: New file.
56162 * m4/hash.m4: New file.
56165 * m4/readtokens.m4: New file.
56168 * m4/strverscmp.m4: New file.
56171 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
56175 * m4/strtoll.m4: New file.
56178 * m4/strtoull.m4: New file.
56181 * m4/strtoimax.m4: New file.
56184 * m4/strtoumax.m4: New file.
56187 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
56188 jm_AC_PREREQ_XSTRTOIMAX.
56189 Moved the strtol prerequisites to strtol.m4.
56190 Moved the strtoll prerequisites to strtoll.m4.
56191 Moved the strtoimax prerequisites to strtoimax.m4.
56194 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
56195 jm_AC_PREREQ_XSTRTOUMAX.
56196 Moved the strtoul prerequisites to strtoul.m4.
56197 Moved the strtoull prerequisites to strtoull.m4.
56198 Moved the strtoumax prerequisites to strtoumax.m4.
56201 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
56202 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
56205 * m4/dup2.m4: New file.
56208 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
56209 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
56212 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
56213 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
56215 Module gettimeofday.
56216 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
56217 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
56218 gl_PREREQ_GETTIMEOFDAY.
56221 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
56222 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
56225 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
56226 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
56227 jm_AC_TYPE_UINTMAX_T.
56228 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
56231 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
56232 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
56235 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
56236 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
56239 * m4/timespec.m4 (gl_TIMESPEC): New macro.
56240 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
56241 * m4/st_mtim.m4: Indentation.
56244 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
56245 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
56246 gl_PREREQ_NANOSLEEP.
56249 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
56250 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
56251 (gl_REGEX): New macro.
56254 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
56255 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
56258 * m4/rmdir.m4: New file.
56261 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
56262 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
56263 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
56266 * m4/dirname.m4: New file.
56269 * m4/getopt.m4: New file.
56271 Module unistd-safer.
56272 * m4/unistd-safer.m4: New file.
56275 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
56277 (gl_PREREQ_FNMATCH_EXTRA): New macro.
56278 (gl_FUNC_FNMATCH_POSIX): New macro.
56279 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
56280 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
56284 * m4/exclude.m4: New file.
56287 * m4/human.m4: New file.
56293 * m4/backupfile.m4: New file.
56294 * m4/d-ino.m4: Indentation.
56297 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
56298 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
56299 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
56302 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
56306 * m4/euidaccess.m4: New file.
56309 * m4/file-type.m4: New file.
56312 * m4/fileblocks.m4: New file.
56315 * m4/filemode.m4: New file.
56318 * m4/isdir.m4: New file.
56321 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
56322 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
56325 * m4/makepath.m4: New file.
56328 * m4/modechange.m4: New file.
56331 * m4/mountlist.m4: New file.
56332 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
56335 Module path-concat.
56336 * m4/path-concat.m4: New file.
56339 * m4/pathmax.m4: New file.
56342 * m4/same.m4: New file.
56345 * m4/save-cwd.m4: New file.
56348 * m4/savedir.m4: New file.
56351 * m4/xgetcwd.m4: New file.
56352 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
56355 * m4/xreadlink.m4: New file.
56358 * m4/safe-read.m4: New file.
56361 * m4/safe-write.m4: New file.
56364 * m4/closeout.m4: New file.
56366 Module stdio-safer.
56367 * m4/stdio-safer.m4: New file.
56370 * m4/getpass.m4: New file.
56373 * m4/getugroups.m4: New file.
56375 Module group-member.
56376 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
56377 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
56380 * m4/idcache.m4: New file.
56383 * m4/userspec.m4: New file.
56386 * m4/clock_time.m4: New file.
56387 * m4/gettime.m4: New file.
56390 * m4/settime.m4: New file.
56393 * m4/posixtm.m4: New file.
56395 Module gethostname.
56396 * m4/gethostname.m4: New file.
56399 * m4/canon-host.m4: New file.
56402 * m4/codeset.m4: New file, from gettext-0.11.5.
56403 * m4/gettext.m4: New file, from gettext-0.11.5.
56404 * m4/glibc21.m4: New file, from gettext-0.11.5.
56405 * m4/iconv.m4: New file, from gettext-0.11.5.
56406 * m4/intdiv0.m4: New file, from gettext-0.11.5.
56407 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
56408 * m4/inttypes.m4: New file, from gettext-0.11.5.
56409 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
56410 * m4/isc-posix.m4: New file, from gettext-0.11.5.
56411 * m4/lcmessage.m4: New file, from gettext-0.11.5.
56412 * m4/lib-ld.m4: New file, from gettext-0.11.5.
56413 * m4/lib-link.m4: New file, from gettext-0.11.5.
56414 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
56415 * m4/progtest.m4: New file, from gettext-0.11.5.
56416 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
56417 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
56418 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
56420 Module localcharset.
56421 * m4/localcharset.m4: New file.
56423 Module hard-locale.
56424 * m4/hard-locale.m4: New file.
56427 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
56429 * m4/mbrtowc.m4: Add comment.
56432 * m4/memcasecmp.m4: New file.
56435 * m4/memcoll.m4: New file.
56438 * m4/unicodeio.m4: New file.
56441 * m4/rpmatch.m4: New file.
56444 * m4/yesno.m4: New file.
56447 * m4/exitfail.m4: New file.
56450 * m4/c-stack.m4 (gl_C_STACK): New macro.
56451 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
56454 * m4/error.m4 (gl_ERROR): New macro.
56455 (jm_PREREQ_ERROR): Use onceonly macros.
56458 * m4/fatal.m4: New file.
56461 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
56462 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
56464 Module getpagesize.
56465 * m4/getpagesize.m4: New file.
56467 Module getusershell.
56468 * m4/getusershell.m4: New file.
56471 * m4/physmem.m4: New file.
56474 * m4/posixver.m4: New file.
56477 * m4/quotearg.m4: New file.
56480 * m4/quote.m4: New file.
56483 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
56486 * m4/sig2str.m4: New file.
56489 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
56491 * m4/intmax_t.m4: New file.
56492 * m4/d-type.m4: Indentation.
56493 * m4/jm-macros.m4: Update.
56494 * m4/prereq.m4 (jm_PREREQ): Update.
56495 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
56496 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
56497 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
56498 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
56499 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
56500 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
56501 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
56502 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
56503 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
56504 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
56505 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
56506 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
56507 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
56508 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
56509 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
56510 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
56511 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
56512 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
56513 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
56515 2002-12-24 Bruno Haible <bruno@clisp.org>
56517 * MODULES.txt: Update according to m4/ changes.
56520 * config.rpath: New file, from gettext-0.11.5.
56522 * modules/*: New module descriptions.
56523 * gnulib-tool: New file.
56524 * MODULES.html.sh: New file.
56526 2002-12-21 Karl Berry <karl@gnu.org>
56528 * doc/fdl.texi: update to version 1.2.
56530 2002-12-19 Karl Berry <karl@gnu.org>
56532 * config/config.guess: update from prep.
56534 2002-12-18 Bruno Haible <bruno@clisp.org>
56536 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
56537 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
56539 2002-12-17 Bruno Haible <bruno@clisp.org>
56541 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
56542 stdlib.h, string.h.
56544 2002-12-17 Bruno Haible <bruno@clisp.org>
56546 * lib/canon-host.c (strdup): Remove unused declaration.
56548 * lib/fsusage.c: Include full_read.h.
56549 (get_fs_usage): Use full_read instead of safe_read.
56551 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
56553 2002-12-12 Karl Berry <karl@gnu.org>
56555 * config/config.guess: update from prep.
56557 2002-12-11 Bruno Haible <bruno@clisp.org>
56559 * m4/setenv.m4: New file, from gettext-0.11.5.
56561 2002-12-11 Bruno Haible <bruno@clisp.org>
56563 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
56565 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
56568 2002-12-11 Bruno Haible <bruno@clisp.org>
56570 * setenv.c (alloca): Fall back to malloc.
56571 (freea): New macro.
56572 (setenv): Use freea() to free memory allocated with alloca().
56574 2002-11-13 Bruno Haible <bruno@clisp.org>
56576 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
56577 function declarations.
56578 * unsetenv.c (unsetenv): Likewise.
56580 2002-03-04 Bruno Haible <bruno@clisp.org>
56582 Portability to AIX 4.3.3.
56583 * unsetenv.c: New file, extracted from setenv.c.
56584 * setenv.c: Move the unsetenv() function to unsetenv.c.
56586 2001-12-20 Bruno Haible <bruno@clisp.org>
56588 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
56589 use malloc instead. For SunOS 4.
56591 2001-12-11 Bruno Haible <bruno@clisp.org>
56593 * setenv.c: Declare alloca.
56594 (compar_fn_t): New typedef.
56595 (KNOWN_VALUE, STORE_VALUE): Use it.
56597 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
56600 2002-12-10 Paul Eggert <eggert@twinsun.com>
56602 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
56603 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
56604 Choose values that are less likely to collide with system fnmatch
56606 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
56607 defined (e.g., a pure POSIX system).
56608 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
56609 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
56611 2002-12-06 Paul Eggert <eggert@twinsun.com>
56613 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
56614 a pain in practice to deal with generated m4 files. This change
56615 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
56617 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
56618 and jm-glibc-io.m4, as they are no longer a special case.
56619 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
56620 kludge and the auto-generation stuff. Check only whether the
56621 functions are declared, not whether they exist, since older hosts
56622 that don't declare the functions can't use the optimization anyway.
56624 2002-12-06 Jim Meyering <jim@meyering.net>
56626 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
56628 Merge in changes from libc's misc/error.c, in preparation
56629 for the merge of gnulib's changes back into libc.
56631 * lib/error.c (_): Define only if not already defined.
56632 Move definition to follow all #include directives.
56633 Include unlocked-io.h only if !_LIBC.
56634 [_LIBC]: Include <libio/libioP.h>.
56635 [USE_IN_LIBIO]: Include <libio/iolibio.h>
56636 (fflush): Tweak definition to use INTUSE.
56639 2002-12-05 Paul Eggert <eggert@twinsun.com>
56641 * lib/alloca.c [defined emacs]: Include "lisp.h".
56642 (xalloc_die) [defined emacs]: New macro.
56643 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
56644 [! defined emacs]: Include <xalloc.h>.
56645 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
56646 (pointer): Typedef to POINTER_TYPE *.
56647 (malloc): Remove decl; we now always use xmalloc.
56648 (alloca): Use old-style definition, since Emacs needs this.
56649 Check for arithmetic overflow when computing combined size.
56651 2002-12-04 Paul Eggert <eggert@twinsun.com>
56653 Do not generate unlocked-io.h automatically, since it's easier to
56654 maintain it by hand.
56656 * lib/unlocked-io.h: New file, from GNU diffutils,
56657 but with proper copyright notice and attribution.
56658 * lib/gen-uio: Remove.
56659 * lib/Makefile.am: Add copyright notice.
56660 (libfetish_a_SOURCES): Add unlocked-io.h.
56661 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
56662 (DISTCLEANFILES, io_functions): Remove macros.
56663 (EXTRA_DIST): Remove gen_uio.
56664 (unlocked-io.h): Remove rule.
56666 2002-12-04 Jim Meyering <jim@meyering.net>
56668 Reflect the fact that stat.c and lstat.c are no longer generated.
56669 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
56670 (DISTCLEANFILES): Likewise.
56671 (EXTRA_DIST): Likewise.
56672 (all_local): Don't depend on stat.c or lstat.c.
56673 (stat.c, lstat.c): Remove rules.
56674 (EXTRA_DIST): Remove xstat.in.
56676 * lib/xstat.in: Remove file. Contents moved into stat.c.
56677 * lib/stat.c: New file. Contents mostly from xstat.in.
56678 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
56679 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
56681 * lib/safe-read.c: Rework so that it may serve to define safe_write,
56683 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
56685 2002-12-03 Jim Meyering <jim@meyering.net>
56687 * lib/safe-read.c, safe-write.c: Change variable names and comments,
56688 but not semantics, to minimize the differences between these two files.
56689 (safe_read): Change comment to mention SAFE_READ_ERROR.
56691 * lib/safe-read.c (IS_EINTR): Define.
56692 (safe_read): Use IS_EINTR in place of in-function cpp directives.
56694 2002-12-02 Jim Meyering <jim@meyering.net>
56696 * lib/safe-read.c (EINTR): Define.
56697 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
56698 (INT_MAX): Provide fallback.
56699 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
56701 * lib/safe-read.h (SAFE_READ_ERROR): Define.
56703 2002-12-02 Bruno Haible <bruno@clisp.org>
56705 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
56706 Define, taken from safe-read.c.
56707 (INT_MAX): Provide fallback.
56708 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
56709 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
56711 * lib/safe-read.c (EINTR): Remove definition.
56712 (safe_read): Don't use EINTR if it is absent.
56714 2002-12-01 Jim Meyering <jim@meyering.net>
56716 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
56718 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
56720 2002-11-27 Paul Eggert <eggert@twinsun.com>
56722 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
56723 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
56724 with `if (! (value < limit)) abort ();', for readability.
56726 2002-11-26 Karl Berry <karl@gnu.org>
56728 * lib/strdup.c: copy from libc again, with jim's ok.
56729 * lib/.cppi-disable: re-add strdup.c
56731 2002-11-25 Karl Berry <karl@gnu.org>
56733 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
56734 instead of "strtol.c".
56736 2002-11-25 Karl Berry <karl@gnu.org>
56738 * config/install-sh: update from automake for variable quoting, $0 in
56741 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
56742 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
56745 2002-11-25 Jim Meyering <jim@meyering.net>
56747 * lib/mktime.c: Sync from libc, now that it has the latest fix.
56749 2002-11-24 Karl Berry <karl@gnu.org>
56751 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
56752 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
56754 2002-11-24 Jim Meyering <jim@meyering.net>
56756 Update from coreutils:
56758 * lib/mktime.c: Merge in changes from libc.
56760 Avoid a link-time failure on some Linux systems.
56761 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
56763 (__mon_yday): Declare with the STATIC attribute.
56764 (__mktime_internal): Likewise.
56765 Based on a report from Greg Schafer.
56767 2002-11-23 Jim Meyering <jim@meyering.net>
56769 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
56770 Use `unsigned', not `int', as type of index.
56772 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
56774 * lib/fsusage.c: Remove unneeded parentheses around operands of
56777 2002-11-22 Paul Eggert <eggert@twinsun.com>
56779 * lib/quotearg.h: Allow multiple inclusion by surrounding with
56780 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
56781 so that we can be included first.
56782 (PARAMS): Remove; we now assume C89 or later. All uses removed.
56783 * lib/quotearg.c: Include quotearg.h immediately after config.h.
56784 No need to include stddef.h or sys/types.h any more.
56785 Surround local include files with "", not "<>".
56786 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
56787 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
56788 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
56789 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
56790 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
56791 (ISPRINT): Remove; no longer needed now that we assume C89.
56793 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
56796 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
56797 quotearg_char): Use SIZE_MAX rather than
56798 (size_t) -1 when we are talking about "infinity".
56800 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
56802 2002-11-22 Paul Eggert <eggert@twinsun.com>
56804 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
56805 hint that one should use `if (! x) abort ();' rather than `assert
56806 (x);', and anyway it's one less thing to worry about configuring.
56807 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
56808 hash_rehash, hash_insert): Use abort rather than assert.
56810 2002-11-22 Bruno Haible <bruno@clisp.org>
56812 * lib/safe-read.h: Assume C89. Add comments.
56813 (safe_read): Change return type to size_t.
56814 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
56815 byte counts > SSIZE_MAX correctly.
56816 * lib/safe-write.h: New file.
56817 * lib/safe-write.c: New file.
56818 * lib/full-read.h: New file.
56819 * lib/full-read.c: New file.
56820 * lib/full-write.h: Assume C89. Add comments.
56821 * lib/full-write.c: Include safe-write.h.
56822 (full_write): Rewritten to use safe_write.
56823 Suggested by Jim Meyering and Paul Eggert.
56825 2002-11-21 Jim Meyering <jim@meyering.net>
56827 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
56829 Merge in changes from the coreutils.
56831 2002-09-25 Paul Eggert <eggert@twinsun.com>
56832 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
56834 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
56835 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
56836 int. Work more efficiently if X is the same width as uintmax_t.
56837 Do not compare X to -1, to avoid bogus compiler warning.
56838 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
56839 Don't assume that f_frsize and f_bsize are the same type.
56841 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
56842 warning on FreeBSD.
56844 * lib/makepath.c (make_path): Restore umask *before* creating the final
56846 (make_path): Minor reformatting.
56848 * lib/xmalloc.c: Adjust to work with new autoconf macros,
56849 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
56850 HAVE_MALLOC/HAVE_REALLOC.
56852 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
56853 dummy ones. At least on GNU/Linux systems, `auto' means something
56855 From Michael Stone.
56857 2002-11-21 Bruno Haible <bruno@clisp.org>
56859 Remove case insensitive option matching.
56860 * lib/argmatch.h (argcasematch): Remove declaration.
56861 (ARGCASEMATCH): Remove macro.
56862 (__xargmatch_internal): Remove case_sensitive argument.
56863 (XARGMATCH): Update.
56864 (XARGCASEMATCH): Remove macro.
56865 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
56866 case_sensitive argument.
56867 (argcasematch): Remove function.
56868 (__xargmatch_internal): Remove case_sensitive argument.
56869 (main): Use XARGMATCH instead of XARGCASEMATCH.
56871 * lib/xmalloc.c: Change compile-time error message. Add comment about
56872 required autoconf version.
56874 2002-11-20 Paul Eggert <eggert@twinsun.com>
56876 Merge argmatch cleanups from Bison. Assume C89.
56878 * lib/argmatch.c: Include config.h here, not in argmatch.h.
56879 Include stdlib.h, for EXIT_FAILURE.
56880 Always include <string.h>, since we assume C89.
56881 (EXIT_FAILURE): Remove pre-C89 bug workaround.
56882 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
56883 Include <stddef.h> instead, since it's all we need for size_t.
56884 (PARAMS): Remove. All uses removed.
56885 (ARRAY_CARDINALITY): Do not bother to #undef.
56886 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
56887 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
56888 Remove unnecessary parentheses.
56889 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
56890 Insert necessary parentheses.
56891 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
56892 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
56894 2002-11-19 Bruno Haible <bruno@clisp.org>
56896 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
56897 * lib/mbswidth.h: Include <stddef.h>, for size_t.
56899 * lib/mbswidth.h (PARAMS): Remove macro.
56900 (mbswidth, mbsnwidth): Use ANSI C function declarations.
56901 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
56903 * lib/gcd.h (PARAMS): Remove macro.
56904 (gcd): Use ANSI C function declarations.
56905 * lib/gcd.c (gcd): Likewise.
56907 2002-11-15 Bruno Haible <bruno@clisp.org>
56909 * lib/strcspn.c: Include <stddef.h>.
56910 (strcspn): Use ANSI C function declaration. Change return type to
56912 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
56913 (strpbrk): Use NULL.
56914 * lib/strpbrk.h (PARAMS): Remove macro.
56915 (strpbrk): Use ANSI C function declaration.
56916 * lib/strstr.c: Don't include <sys/types.h>.
56917 * lib/strstr.h (PARAMS): Remove macro.
56918 (strstr): Use ANSI C function declarations.
56920 2002-11-14 Karl Berry <karl@gnu.org>
56922 * config/mkinstalldirs: `do' on separate line, instead of
56925 2002-11-06 Bruno Haible <bruno@clisp.org>
56927 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
56928 * lib/gcd.c (gcd): Likewise.
56930 2002-11-05 Bruno Haible <bruno@clisp.org>
56932 * lib/gcd.h: New file, from gettext-0.11.5.
56933 * lib/gcd.c: New file, from gettext-0.11.5.
56935 2002-11-05 Bruno Haible <bruno@clisp.org>
56937 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
56938 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
56939 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
56940 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
56942 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
56944 * lib/makepath.c: Include gettext.h instead of <locale.h> and
56947 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
56948 * lib/human.c: Include gettext.h instead of <libintl.h>.
56949 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
56950 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
56951 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
56952 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
56953 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
56954 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
56955 (textdomain): Remove definition.
56956 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
56958 * lib/long-options.c: Remove include of <libintl.h> and definition of
56960 * lib/same.c: Remove include of <libintl.h> and definition of _.
56962 2002-11-04 Owen Taylor <otaylor@redhat.com>
56964 * lib/config.charset: A few additions for Solaris.
56966 2002-11-04 Bruno Haible <haible@clisp.cons.org>
56968 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
56969 * lib/localcharset.c (locale_charset): Declare as extern "C".
56971 2002-11-04 Bruno Haible <haible@clisp.cons.org>
56973 * lib/config.charset: msdos in uk_UA uses CP1125.
56975 2002-11-04 Bruno Haible <bruno@clisp.org>
56977 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
56978 * lib/strcase.h: New file, from GNU gettext-0.11.5.
56979 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
56980 * lib/strstr.h: New file, from GNU gettext-0.11.5.
56981 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
56983 2002-11-04 Bruno Haible <bruno@clisp.org>
56985 * lib/localcharset.c (locale_charset): Don't return an empty string.
56987 2002-11-04 Bruno Haible <bruno@clisp.org>
56989 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
56992 2002-11-04 Bruno Haible <bruno@clisp.org>
56994 * lib/config.charset: Update for newest glibc. Add canonical names
56995 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
56997 2002-11-04 Bruno Haible <bruno@clisp.org>
56999 * lib/config.charset: Add support for NetBSD.
57001 2002-11-04 Bruno Haible <bruno@clisp.org>
57003 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
57005 2002-11-01 Bruno Haible <bruno@clisp.org>
57007 * configure.in: Add AC_CONFIG_AUX_DIR call.
57008 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
57010 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
57012 2002-09-28 Karl Berry <karl@gnu.org>
57014 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
57015 installed automake until the next release, since changes have been
57018 2002-09-25 Karl Berry <karl@gnu.org>
57020 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
57021 * lib/getopt*: copy from libc/posix.
57022 * lib/gettext.h: copy from gettext.
57023 * lib/.cppi-disable: add strdup.c, gettext.h.
57025 2002-09-25 Karl Berry <karl@gnu.org>
57027 * config/srclist.txt: enable gettext.h check.
57028 * config/config.{guess,sub}: update from prep.
57029 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
57030 from automake 1.6.3.
57033 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
57035 * regex.c (PATFETCH): Remove the translating fetch.
57036 (PATFETCH_RAW): Rename to PATFETCH.
57037 (set_image_of_range): New fun.
57038 (SET_RANGE_TABLE_WORK_AREA): Use it.
57039 (regex_compile): Don't translate the pattern chars so eagerly.
57040 Only do it when inserting an `exactn' bytecode or when handling
57042 (mutually_exclusive_p): Avoid empty statement.
57044 2002-07-06 Jim Meyering <meyering@lucent.com>
57046 * m4/README: Don't mention Makefile.am.in.
57047 Outline how I've tested changes to .m4 files. Yep, it's a pain.
57049 2002-07-01 Jim Meyering <meyering@lucent.com>
57051 * lib/c-stack.c: Include sys/time.h.
57052 From Volker Borchert.
57054 2002-06-26 Paul Eggert <eggert@twinsun.com>
57056 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
57058 2002-06-26 Paul Eggert <eggert@twinsun.com>
57060 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
57061 New macro. Use it uniformly instead of
57062 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
57063 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
57064 reported by Vin Shelton.
57066 2002-06-22 Paul Eggert <eggert@twinsun.com>
57068 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
57069 Do not assume SA_SIGINFO behavior.
57070 Bug reported by Jim Meyering on NetBSD 1.5.2.
57072 2002-06-22 Jim Meyering <meyering@lucent.com>
57074 * m4/c-stack.m4: New file, from diffutils-2.8.2.
57075 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
57077 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
57078 now that configure.ac uses AC_GNU_SOURCE.
57079 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
57080 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
57082 Update to latest tools. Suggestions from Paul Eggert.
57083 * m4/stdbool.m4: New file, from diffutils-2.8.2.
57084 * m4/gnu-source.m4: Update from diffutils-2.8.2.
57085 * m4/fnmatch.m4: Likewise.
57086 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
57087 to AC_HEADER_STDBOOL
57089 2002-06-22 Jim Meyering <meyering@lucent.com>
57091 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
57092 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
57094 2002-06-22 Jim Meyering <meyering@lucent.com>
57096 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
57098 * lib/exitfail.c, exitfail.h: Likewise.
57099 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
57101 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
57103 (EXTRA_DIST): Add fnmatch_loop.c.
57104 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
57106 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
57107 * lib/fnmatch.c: Update from diffutils-2.8.2.
57108 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
57109 * lib/fnmatch.h: Remove file.
57111 2002-06-21 Jim Meyering <meyering@lucent.com>
57113 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
57114 * m4/mbrtowc.m4: Likewise.
57116 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
57117 * m4/mbswidth.m4: Reflect name change:
57118 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
57119 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
57121 * m4/lib-link.m4: Update from gettext-0.11.2.
57122 * m4/gettext.m4: Likewise.
57124 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
57125 From Alfred M. Szmidt.
57127 2002-06-18 Paul Eggert <eggert@twinsun.com>
57129 * lib/file-type.h: Report an error if neither S_ISREG nor
57130 S_IFREG is defined, instead of using a test specific to glibc
57131 2.2. This should be safe, since POSIX requires S_ISREG and
57132 Unix Version 7 had S_IFREG. We don't need to check for
57133 <sys/types.h> since we don't use any symbols that it defines.
57135 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
57137 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
57138 $@-t, so that each temporary file name is unique and valid in the first
57139 8 characters, for operation under DOS.
57141 2002-06-15 Paul Eggert <eggert@twinsun.com>
57143 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
57145 2002-06-15 Jim Meyering <meyering@lucent.com>
57147 Work even with DJGPP 2.03, which lacks support for symlinks.
57149 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
57151 * lib/lchown.c (S_ISLNK): Likewise.
57153 2002-06-15 Jim Meyering <meyering@lucent.com>
57155 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
57156 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
57157 have been included before this file.
57159 2002-06-14 Jim Meyering <meyering@lucent.com>
57161 * lib/file-type.h: Use the version from diffutils-2.8.2.
57162 * lib/file-type.c: Likewise.
57164 2002-06-07 Jim Meyering <meyering@lucent.com>
57166 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
57167 They're needed at least for NetBSD 1.5.2.
57168 ($statxfs_includes): Include those same headers.
57169 ($statxfs_includes): Include sys/vfs.h if available.
57170 ($statxfs_includes): Likewise for sys/statvfs.h.
57171 Check for the following members in both structs statfs and statvfs:
57172 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
57174 2002-06-01 Jim Meyering <meyering@lucent.com>
57176 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
57177 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
57179 2002-05-28 Jim Meyering <meyering@lucent.com>
57181 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
57182 Reported by Volker Borchert.
57184 2002-05-27 Jim Meyering <meyering@lucent.com>
57186 Fix a problem seen only on nonconforming systems whereby ls.c's
57187 use of localtime, and then of gettimeofday would cause trouble:
57188 the localtime call used to initialize rpl_gettimeofday's save
57189 mechanism would clobber ls's current local time information so
57190 that in any long listing the first file would always be listed
57191 with date 1970-01-01. Analysis by Volker Borchert.
57193 * lib/gettimeofday.c (localtime): Undefine.
57194 (rpl_localtime): New function.
57196 2002-05-27 Jim Meyering <meyering@lucent.com>
57198 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
57201 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
57202 use the replacement function; it wouldn't resolve at link time.
57203 Reported by Volker Borchert.
57205 2002-05-22 Jim Meyering <meyering@lucent.com>
57207 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
57209 * lib/file-type.h: New file.
57210 * lib/file-type.c (file_type): New file/function. Extracted from
57213 2002-04-30 Jim Meyering <meyering@lucent.com>
57215 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
57217 2002-04-29 Paul Eggert <eggert@twinsun.com>
57219 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
57221 2002-04-29 Paul Eggert <eggert@twinsun.com>
57223 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
57224 Do not check for alloca.h (no longer used) or stdbool.h (was never
57225 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
57227 2002-04-29 Paul Eggert <eggert@twinsun.com>
57229 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
57231 2002-04-29 Jim Meyering <meyering@lucent.com>
57233 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
57234 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
57235 Use AC_FUNC_STRNLEN here instead.
57237 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
57238 With autoconf-2.53a, it's part of AC_PROG_CC.
57240 2002-04-28 Paul Eggert <eggert@twinsun.com>
57242 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
57243 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
57245 2002-04-28 Paul Eggert <eggert@twinsun.com>
57247 * lib/sig2str.h, lib/sig2str.c: New files.
57248 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
57250 2002-04-28 Paul Eggert <eggert@twinsun.com>
57252 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
57253 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
57254 of 127, since 64 is the largest conceivable number for ancient
57256 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
57258 2002-04-28 Jim Meyering <meyering@lucent.com>
57260 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
57262 2002-04-24 Jim Meyering <meyering@lucent.com>
57264 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
57265 (jm_PREREQ): Use it.
57267 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
57268 mach/mach.h fcntl.h.
57269 Check for this function: setlocale.
57271 2002-04-24 Jim Meyering <meyering@lucent.com>
57273 * lib/gettext.h: New file, from Gettext.
57274 * lib/Makefile.am (INCLUDES): Remove -I../intl.
57275 (libfetish_a_SOURCES): Add gettext.h.
57277 2002-04-16 Jim Meyering <meyering@lucent.com>
57279 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
57280 ut_pid, ut_id, ut_exit.
57282 2002-04-16 Jim Meyering <meyering@lucent.com>
57284 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
57285 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
57286 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
57288 2002-04-12 Jim Meyering <meyering@lucent.com>
57290 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
57291 now-bogus check for f_type in sys/mount.h. Instead, just test for the
57292 existence of the getmntinfo function. Needed for Darwin 5.3.
57294 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
57295 This is necessary at least on Darwin 5.3.
57297 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
57298 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
57299 strnlen.o in the library, and that makes some versions of ranlib
57302 2002-04-12 Jim Meyering <meyering@lucent.com>
57304 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
57306 2002-04-09 Jim Meyering <meyering@lucent.com>
57308 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
57309 to be more precise. Rather than saying we're checking whether the
57310 function `works', say what we're testing.
57311 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
57312 Reported by Bruno Haible.
57314 2002-03-10 Jim Meyering <meyering@lucent.com>
57316 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
57317 Suggestion from Santiago Vila.
57319 2002-03-08 Jim Meyering <meyering@lucent.com>
57321 * lib/rename.c: Mention that this wrapper is needed also on
57322 mips-dec-ultrix4.4 systems.
57324 2002-03-02 Jim Meyering <meyering@lucent.com>
57326 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
57327 not HAVE_CLOCK_SETTIME.
57329 2002-02-27 Paul Eggert <eggert@twinsun.com>
57331 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
57332 Check for clock_settime.
57334 2002-02-27 Paul Eggert <eggert@twinsun.com>
57336 * lib/nanosleep.h: Rename to....
57337 * lib/timespec.h: New name for nanosleep.h. All uses changed.
57339 * lib/gettime.c: New file.
57340 * lib/settime.c: New file.
57341 * lib/stime.c: Remove.
57343 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
57344 timespec.h. Remove nanosleep.h.
57346 2002-02-25 Paul Eggert <eggert@twinsun.com>
57348 * m4/acl.m4: New file.
57349 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
57350 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
57352 2002-02-25 Paul Eggert <eggert@twinsun.com>
57354 * lib/acl.c, lib/acl.h: New files.
57355 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
57357 2002-02-24 Jim Meyering <meyering@lucent.com>
57359 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
57360 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
57361 cause trouble. Reported by Nelson Beebe.
57363 2002-02-23 Paul Eggert <eggert@twinsun.com>
57365 * lib/path-concat.c (xpath_concat): Reorder code to pacify
57366 compilers that don't know that xalloc_die never returns.
57368 2002-02-20 Jim Meyering <meyering@lucent.com>
57370 * lib/getdate.c: Regenerate using bison-1.33.
57372 2002-02-17 Jim Meyering <meyering@lucent.com>
57374 * config/config.guess (main): Don't use `head -1'; it's no longer
57375 portable. Use `sed 1q' instead.
57377 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
57379 * m4/codeset.m4: Upgrade to gettext-0.11.
57380 * m4/gettext.m4: Upgrade to gettext-0.11.
57381 * m4/glibc21.m4: Upgrade to gettext-0.11.
57382 * m4/iconv.m4: Upgrade to gettext-0.11.
57383 * m4/isc-posix.m4: Upgrade to gettext-0.11.
57384 * m4/lcmessage.m4: Upgrade to gettext-0.11.
57385 * m4/lib-ld.m4: New file, from gettext-0.11.
57386 * m4/lib-link.m4: New file, from gettext-0.11.
57387 * m4/lib-prefix.m4: New file, from gettext-0.11.
57388 * m4/progtest.m4: Upgrade to gettext-0.11.
57390 2002-02-15 Paul Eggert <eggert@twinsun.com>
57392 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
57393 (jm_PREREQ): Use it.
57395 2002-02-15 Paul Eggert <eggert@twinsun.com>
57397 * lib/posixver.c, lib/posixver.h: New files.
57398 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57400 2002-02-02 Paul Eggert <eggert@twinsun.com>
57401 Bruno Haible <bruno@clisp.org>
57403 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
57404 (fwrite_success_callback): New declaration.
57405 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
57406 print_unicode_char. Call failure callback instead of error.
57407 (fwrite_success_callback): New function.
57408 (exit_failure_callback): New function.
57409 (fallback_failure_callback): New function.
57410 (print_unicode_char): Call unicode_to_mb.
57412 2002-01-26 Jim Meyering <meyering@lucent.com>
57414 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
57415 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
57417 2002-01-26 Jim Meyering <meyering@lucent.com>
57419 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
57421 2002-01-22 Paul Eggert <eggert@twinsun.com>
57423 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
57425 2002-01-22 Jim Meyering <meyering@lucent.com>
57427 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
57428 Otherwise, some versions of automake would omit the rule that makes
57429 Makefile from Makefile.in.
57431 2002-01-21 Paul Eggert <eggert@twinsun.com>
57433 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
57434 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
57435 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
57436 (memcoll): Set errno to zero if there is no error.
57438 * lib/quotearg.c (quotearg_buffer_restyled):
57439 Fix bug with quoting buffers containing NUL when backslashing escapes.
57440 This bug was exposed by the other changes in this patch.
57441 (quotearg_n_options): New arg ARGSIZE.
57442 All callers changed.
57443 (quoting_options_from_style): New function.
57444 (quotearg_n_style): Use it.
57445 (quotearg_n_style_mem): New function.
57447 * lib/quotearg.h (quotearg_n_style_mem): New function.
57449 2002-01-19 Jim Meyering <meyering@lucent.com>
57451 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
57452 Remove useless quotes: DF_PROG="df".
57453 * m4/strnlen.m4: New file.
57455 2002-01-16 Paul Eggert <eggert@twinsun.com>
57457 * lib/backupfile.c (ISDIGIT): Comment fix.
57458 * lib/getdate.y (ISDIGIT): Likewise.
57459 * lib/posixtm.c (ISDIGIT, year): Likewise.
57460 * lib/strverscmp.c (ISDIGIT): Likewise.
57461 * lib/userspec.c (ISDIGIT): Likewise.
57463 2002-01-16 Jim Meyering <meyering@lucent.com>
57465 * lib/getdate.y: Add three semicolons, each just before a closing
57466 brace. Bison (as of version 1.31) no longer papers over that mistake.
57468 2002-01-05 Jim Meyering <meyering@lucent.com>
57470 * lib/version-etc.c (version_etc_copyright): Update copyright year.
57472 2001-12-19 Paul Eggert <eggert@twinsun.com>
57474 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
57475 not silently exit merely because the output buffer happens to
57476 have nothing pending.
57478 2001-12-18 Paul Eggert <eggert@twinsun.com>
57480 See the big note in ../ChangeLog.
57481 * lib/human.c (suffixes): Prefer K to k for 1024.
57482 (generate_suffix_backwards): New function.
57483 (human_readable_inexact): Use it.
57484 * lib/xstrtol.c (__xstrtol): If there is no number but there
57485 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
57486 Accept 'K' as well as 'k'.
57488 2001-12-15 Jim Meyering <meyering@lucent.com>
57490 * lib/regex.h (__restrict_arr): Update from libc.
57492 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
57493 as `remote' if the name starts with `//'. Suggested by Michael Stone.
57496 2001-12-14 Jim Meyering <meyering@lucent.com>
57498 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
57499 Suggestion from Bruno Haible.
57501 2001-12-10 Jim Meyering <meyering@lucent.com>
57503 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
57504 xrealloc, Instead, include "xalloc.h".
57505 (initbuffer): Don't cast xmalloc return value to char*.
57506 (readline): Reword comment.
57507 Don't cast xrealloc return value to char*
57508 Return NULL, not 0.
57510 2001-12-09 Jim Meyering <meyering@lucent.com>
57512 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
57513 about `signed and unsigned type in conditional expression'.
57514 * lib/posixtm.c (posix_time_parse): Likewise.
57516 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
57518 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
57519 to avoid a pedantic warning.
57521 * lib/getstr.c: Don't include assert.h.
57522 (getstr): Remove warning-evoking assertions.
57523 Return -1 if offset parameter is out of bounds.
57524 Change the type of a local from int to size_t.
57526 * lib/strftime.c (my_strftime_localtime_r): Include this function
57527 definition in the `#if ! HAVE_TM_GMTOFF' block.
57529 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
57530 Include xalloc.h instead.
57532 2001-12-02 Jim Meyering <meyering@lucent.com>
57534 * lib/tempname.c: Don't declare getenv, thus reverting the change of
57535 2001-11-18. It's no longer necessary, now that stdlib.h is always
57538 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
57539 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
57541 2001-11-30 Akim Demaille <akim@epita.fr>
57543 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
57544 before being defined.
57546 2001-11-27 Paul Eggert <eggert@twinsun.com>
57548 * lib/quotearg.h (quotearg_n, quotearg_n_style):
57549 First arg is int, not unsigned.
57550 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
57551 (SIZE_MAX, UINT_MAX): New macros.
57552 (quotearg_n_options): Abort if N is negative.
57553 Avoid overflow check on hosts where size_t is 64 bits and int
57554 is 32 bits, as overflow is impossible there.
57555 Fix off-by-one typo that caused unnecessary reallocation.
57557 2001-11-27 Jim Meyering <meyering@lucent.com>
57559 * lib/tempname.c: Merge with version from libc.
57560 * lib/regex.c: Likewise.
57562 * lib/tempname.c: Include stdlib.h unconditionally. On some old
57563 systems for which STDC_HEADERS is 0, it was not included, resulting in
57564 a warning about an integer-to-pointer conversion problem with getenv.
57565 Reported by Volker Borchert.
57567 2001-11-26 Jim Meyering <meyering@lucent.com>
57569 * lib/gtod.h: Remove file.
57570 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
57571 * lib/gettimeofday.c: Don't include gtod.h.
57572 (GTOD_init): Remove function.
57573 (rpl_gettimeofday): Do its job here instead, rather than aborting.
57574 Suggestion from Volker Borchert.
57576 2001-11-23 Jim Meyering <meyering@lucent.com>
57578 * lib/hash.h (struct hash_table): Don't define here. Merely declare
57580 * lib/hash.c (struct hash_table): Define it here instead.
57582 2001-11-22 Jim Meyering <meyering@lucent.com>
57584 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
57586 2001-11-20 Jim Meyering <meyering@lucent.com>
57588 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
57589 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
57591 2001-11-19 Jim Meyering <meyering@lucent.com>
57593 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
57594 directory. Use "conftestXXXXXX" as the template.
57595 Suggestion from Paul Eggert.
57597 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
57598 immediately, so the test doesn't mistakenly hit the max-open-files
57601 2001-11-18 Paul Eggert <eggert@twinsun.com>
57603 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
57604 (TEMPORARIES): New macro.
57605 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
57606 removes an artificial limitation (e.g. HP-UX 10.20, where
57609 2001-11-18 Jim Meyering <meyering@lucent.com>
57611 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
57613 2001-11-18 Jim Meyering <meyering@lucent.com>
57615 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
57618 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
57619 files will be created before anything else.
57621 2001-11-17 Paul Eggert <eggert@twinsun.com>
57623 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
57624 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
57626 2001-11-17 Jim Meyering <meyering@lucent.com>
57628 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
57629 Prompted by a report from Bob Proulx.
57631 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
57632 Instead, require UTILS_FUNC_MKSTEMP.
57634 2001-11-17 Jim Meyering <meyering@lucent.com>
57636 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
57637 Now, that's done as part of AC_FUNC_STRTOD.
57639 2001-11-17 Jim Meyering <meyering@lucent.com>
57641 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
57642 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
57643 rather than group writable. Patch by Juan F. Codagnone.
57645 * lib/readtokens.c: Remove explicit declarations of xmalloc and
57646 xrealloc, Instead, include "xalloc.h".
57648 * lib/mountlist.c: Include unlocked-io.h after all system headers.
57649 Remove explicit declarations of xmalloc, xrealloc,
57650 and xstrdup. Instead, include "xalloc.h".
57652 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
57654 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
57656 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
57658 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
57659 Reported by Padraig Brady.
57661 * lib/mkstemp.c: #undef mkstemp.
57663 (rpl_mkstemp): Rename from mkstemp.
57666 2001-11-16 Jim Meyering <meyering@lucent.com>
57668 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
57669 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
57670 determine the amount of total physical memory, use pstat_getstatic.
57671 HPUX-11 doesn't define _SC_PHYS_PAGES.
57672 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
57673 If sysconf couldn't be used to determine the amount of available
57674 physical memory, use both pstat_getstatic and pstat_getdynamic.
57675 Based on a patch from Bob Proulx.
57677 2001-11-10 Jim Meyering <meyering@lucent.com>
57679 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
57680 (jm_PREREQ): Use it.
57682 2001-11-09 Jim Meyering <meyering@lucent.com>
57684 * m4/jm-macros.m4: Require autoconf-2.52f.
57685 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
57686 Use these AC_-prefixed names, not the AM_-prefixed ones.
57688 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
57690 2001-11-05 Jim Meyering <meyering@lucent.com>
57692 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
57694 2001-11-04 Jim Meyering <meyering@lucent.com>
57696 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
57699 2001-11-03 Jim Meyering <meyering@lucent.com>
57701 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
57704 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
57705 know the name of the variable in the macro definition.
57707 2001-11-03 Jim Meyering <meyering@lucent.com>
57709 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
57710 in argmatch_to_argument call.
57712 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
57715 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
57716 e.g., a fault due to an attempt to free a NULL pointer.
57718 2001-11-01 Jim Meyering <meyering@lucent.com>
57720 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
57721 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
57723 2001-11-01 Jim Meyering <meyering@lucent.com>
57725 * lib/dirfd.c, lib/dirfd.h: New files.
57726 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
57728 * lib/hash.c (hash_print) [TESTING]: Clean up.
57730 2001-10-22 Paul Eggert <eggert@twinsun.com>
57732 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
57733 to avoid a warning if -Wall.
57735 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
57738 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
57739 (per RMS's instructions, this is now the canonical source)
57740 * lgpl/, gpl/: New directories.
57742 2001-10-21 Paul Eggert <eggert@twinsun.com>
57744 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
57746 2001-10-21 Jim Meyering <meyering@lucent.com>
57748 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
57749 this code would end up calling gettext even in packages built
57750 with --disable-nls.
57751 * lib/getopt.c (_): Likewise.
57752 * lib/regex.c (_): Likewise.
57754 2001-10-20 Paul Eggert <eggert@twinsun.com>
57756 * m4/error.m4 (jm_PREREQ_ERROR):
57757 Do not invoke AC_CHECK_FUNCS with strerror_r, as
57758 AC_FUNC_STRERROR_R does that.
57759 Check for strerror declaration.
57761 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
57762 are supposed to have them these days.
57763 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
57764 Merge changes from latest Autoconf CVS.
57765 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
57766 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
57767 POSIX decided to standardize on the int flavor of strerror_r.
57769 2001-10-20 Paul Eggert <eggert@twinsun.com>
57771 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
57772 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
57773 Use strerror_r that is only a macro, even if it is not a function.
57774 (strerror): Check for HAVE_DECL_STRERROR before declaring.
57775 (private_strerror): Use prototypes, not old-style function definition.
57776 (print_errno_message): New function.
57777 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
57778 char*-flavored one.
57779 (error_tail, error, error_at_line): Use it.
57781 2001-10-11 Jim Meyering <meyering@lucent.com>
57783 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
57784 and quote_n (1, ... to avoid clobbering a buffer.
57786 2001-10-05 Jim Meyering <meyering@lucent.com>
57788 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
57790 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
57791 * lib/hash-pjw.h: New file.
57793 2001-09-30 Jim Meyering <meyering@lucent.com>
57795 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
57796 `struct fsstat' has the `f_fstypename' member.
57797 Use that to define FS_TYPE, which is now used to make
57798 the getfsstat link test tighter.
57800 2001-09-30 Jim Meyering <meyering@lucent.com>
57802 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
57803 Include <sys/ucred.h>, for Apple Darwin.
57804 Include sys/mount.h and sys/fs_types.h only if available.
57806 (read_filesystem_list): Use FS_TYPE.
57808 2001-09-29 Paul Eggert <eggert@twinsun.com>
57810 * lib/exclude.c (excluded_filename): 0 -> false, since it's
57813 2001-09-29 Jim Meyering <meyering@lucent.com>
57815 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
57816 [one-argument getmntent function]): Include stdio.h before mntent.h.
57817 SunOS 4.1.x needs it for the declaration of `FILE'.
57818 Patch by Volker Borchert.
57820 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
57821 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
57822 sys/fs_types.h, and make the link-test for getfsstat guard #include
57823 directives with appropriate #if HAVE_*_H tests so that we can
57824 detect getfsstat on Apple Darwin1.3.7 systems.
57825 Reported by Nelson Beebe.
57826 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
57828 2001-09-28 Paul Eggert <eggert@twinsun.com>
57830 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
57831 #defines strtoimax. Also treat the other strto* functions
57834 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
57835 Check for strtoul and strtoumax,
57836 as those declarations are made even in the signed case.
57837 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
57838 Likewise, for strtol and strtoimax.
57840 2001-09-28 Paul Eggert <eggert@twinsun.com>
57842 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
57843 #defines strtoimax. Also treat the other strto* functions
57846 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
57847 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
57848 (strtoimax, strtoumax): Do not declare if already defined as a macro.
57850 2001-09-26 Jim Meyering <meyering@lucent.com>
57852 Most macros in unlocked-io.h had the wrong number of arguments.
57853 * lib/gen-uio: New script.
57854 (USE_UNLOCKED_IO): Define to 1 if not already defined.
57855 * lib/unlocked-io.hin: Remove file.
57856 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
57857 rather than trying to embed it here.
57858 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
57859 Reported by Padraig Brady.
57861 2001-09-25 Volker Borchert <bt@teknon.de>
57863 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
57866 2001-09-24 Jim Meyering <meyering@lucent.com>
57868 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
57870 2001-09-23 Jim Meyering <meyering@lucent.com>
57872 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
57873 instead of the mere test for existence of mntent.h. The latter
57874 would get a false-positive on AIX 3.4 systems.
57875 In the outer getmntent if-block, don't die if neither of the getmntent
57876 tests succeeds. Instead, just fall through and continue with the
57879 2001-09-23 Jim Meyering <meyering@lucent.com>
57881 * lib/mountlist.c: Remove useless parentheses in #if directives.
57882 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
57883 the deprecated MOUNTED symbol is no longer defined in mntent.h.
57885 2001-09-22 Jim Meyering <meyering@lucent.com>
57887 * m4/gettext.m4: New file. From gettext.
57888 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
57889 * m4/progtest.m4: Likewise
57890 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
57891 * m4/glibc21.m4: Likewise.
57893 * m4/libintl.m4: Remove. No longer used.
57895 2001-09-22 Jim Meyering <meyering@lucent.com>
57897 * lib/localcharset.c: Update from latest gettext.
57898 * lib/config.charset: Likewise.
57900 2001-09-20 Jim Meyering <meyering@lucent.com>
57902 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
57904 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
57907 2001-09-20 Jim Meyering <meyering@lucent.com>
57909 * lib/xstrtol.c (strtoimax): Guard declaration with
57910 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
57911 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
57912 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
57913 (strtoumax): Likewise, for completeness (it wasn't necessary).
57915 2001-09-17 Paul Eggert <eggert@twinsun.com>
57917 * lib/strtoimax.c (HAVE_LONG_LONG):
57918 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
57919 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
57920 to work around bug in IBM C compiler.
57922 2001-09-17 Jim Meyering <meyering@lucent.com>
57924 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
57925 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
57926 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
57927 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
57928 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
57929 whenever the right hand side need not be expanded by the shell.
57931 2001-09-16 Paul Eggert <eggert@twinsun.com>
57933 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
57934 library. It's not correct, as some older glibcs are buggy.
57935 fnmatch wasn't fixed until glibc 2.2.
57937 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
57938 special shell magic here.
57940 2001-09-16 Jim Meyering <meyering@lucent.com>
57942 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
57943 * m4/jm-macros.m4: Require it.
57945 2001-09-16 Jim Meyering <meyering@lucent.com>
57947 * lib/mkdir.c: New file.
57949 2001-09-15 Jim Meyering <meyering@lucent.com>
57951 * m4/jm-macros.m4: Check for help2man.
57953 2001-09-11 Jim Meyering <meyering@lucent.com>
57955 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
57956 The body, by Paul Eggert, was moved here from configure.in.
57957 * m4/jm-macros.m4: Require UTILS_HOST_OS.
57959 2001-09-04 Paul Eggert <eggert@twinsun.com>
57961 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
57962 (jm_PREREQ): Use it.
57964 2001-09-04 Paul Eggert <eggert@twinsun.com>
57966 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
57967 Use ssize_t, not int, to store result of readlink.
57968 Check for ssize_t overflow as well as size_t overflow,
57969 as POSIX says the result of readlink is implementation-defined
57970 when ssize_t overflows.
57971 Remove unnecessary cast to char*.
57972 Use free+malloc instead of realloc, as the storage doesn't need
57973 to be preserved and it's clearer and can be more efficient that way.
57974 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
57975 * lib/xreadlink.h (xreadlink): Update prototype.
57977 2001-09-04 Paul Eggert <eggert@twinsun.com>
57979 * lib/xgetcwd.c: Revert some of the previous change; intead,
57980 fix the HAVE_GETCWD_NULL code to behave more like the
57981 !HAVE_GETCWD_NULL code used to.
57983 Include "xalloc.h".
57984 (xgetcwd): Do not return NULL when memory is exhausted; instead,
57987 2001-09-03 Paul Eggert <eggert@twinsun.com>
57989 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
57990 sys/param.h, as pathmax.h includes them.
57992 2001-09-03 Paul Eggert <eggert@twinsun.com>
57994 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
57995 (jm_PREREQ_XGETCWD): New macro.
57997 * m4/getcwd.m4: New file.
57999 2001-09-03 Paul Eggert <eggert@twinsun.com>
58001 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
58002 like the HAVE_GETCWD_NULL code.
58003 Include pathmax.h if not HAVE_GETCWD.
58004 Do not include xalloc.h.
58005 (INITIAL_BUFFER_SIZE): New symbol.
58006 Do not use xmalloc / xrealloc, since the caller is responsible for
58007 handling errors. Preserve errno around `free' during failure.
58008 Do not overrun buffer when using getwd.
58010 2001-09-03 Paul Eggert <eggert@twinsun.com>
58012 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
58013 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
58016 2001-09-03 Paul Eggert <eggert@twinsun.com>
58018 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
58019 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
58020 spotted by Jim Meyering.
58022 2001-09-03 Jim Meyering <meyering@lucent.com>
58024 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
58027 2001-09-02 Jim Meyering <meyering@lucent.com>
58029 * lib/error.c: Update from GNU libc.
58031 2001-09-01 Jim Meyering <meyering@lucent.com>
58033 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
58036 2001-09-01 Jim Meyering <meyering@lucent.com>
58038 * lib/xreadlink.c: New file.
58039 * lib/xreadlink.h: New file.
58040 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
58043 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
58044 doesn't conflict with sparc Solaris 7's definition in
58045 /usr/include/sys/int_types.h.
58047 * lib/exclude.c: Use `""', not `<>' to #include non-system header
58049 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
58050 and strncasecmp as r-values. Unixware didn't have declarations.
58052 2001-08-31 Paul Eggert <eggert@twinsun.com>
58054 * lib/xstrtol.h: Add copyright notice.
58055 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
58056 LONGINT_INVALID_SUFFIX_CHAR.
58058 2001-08-31 Paul Eggert <eggert@twinsun.com>
58060 * lib/xstrtol.c (strtoimax): New decl.
58062 2001-08-31 Paul Eggert <eggert@twinsun.com>
58064 * lib/xgetcwd.c: Don't include pathmax.h.
58065 Include stdlib.h and unistd.h if available.
58067 (xmalloc, xstrdup, free): Remove decls.
58068 (xgetcwd): Don't assume sizes fit in unsigned.
58069 Check for overflow when computing sizes.
58070 Simplify reallocation code.
58072 2001-08-31 Paul Eggert <eggert@twinsun.com>
58074 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
58075 a directory's st_size can have an arbitrary value, so the old
58076 usage could waste an arbitrary amount of memory. All uses
58078 * lib/savedir.h: Update prototype.
58080 2001-08-31 Paul Eggert <eggert@twinsun.com>
58082 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
58084 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
58087 Also, make the following further changes to make this file's
58088 configuration more similar to that of strtol.c:
58089 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
58090 (strtoumax, uintmax_t, strtoull, strtol): Remove.
58091 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
58092 (strtoimax): Renamed from strtoumax. All uses of unsigned values
58093 changed to signed values.
58095 And make the following changes as well:
58096 Fix copyright notice, as 1999 was missing.
58097 (verify): New macro.
58098 (strtoimax): Check sizes at compile-time, not run-time.
58099 Prefer strtol to strtoll if both work.
58100 (main): Remove; it was not that useful and was a pain to maintain.
58102 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
58104 2001-08-31 Jim Meyering <meyering@lucent.com>
58106 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
58107 Use an initial, malloc'd, buffer of length 128 rather than
58108 a statically allocated one of length 1024.
58110 2001-08-30 Paul Eggert <eggert@twinsun.com>
58112 Simplify code, partly by assuming autoconf 2.52 semantics.
58114 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
58116 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
58117 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
58119 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
58120 Move AC_REQUIRE to next-to-top level, to avoid confusion.
58121 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
58122 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
58123 jm_AC_HEADER_INTTYPES_H.
58124 * m4/jm-macros.m4 (jm_MACROS): Likewise.
58126 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
58128 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
58129 Quote first arg of AC_DEFUN.
58130 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
58131 since they are needed to parse the include file even if we need
58132 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
58133 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
58134 but with opposite signedness.
58136 2001-08-30 Paul Eggert <eggert@twinsun.com>
58138 Merge 'exclude' changes from tar 1.13.22.
58139 This fixes one or two unlikely storage allocation overflow bugs,
58140 but doesn't change user-visible behavior otherwise.
58142 2001-08-30 Paul Eggert <eggert@twinsun.com>
58144 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
58145 (jm_PREREQ_EXCLUDE): New macro.
58147 2001-08-30 Paul Eggert <eggert@twinsun.com>
58149 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
58152 2001-08-30 Paul Eggert <eggert@twinsun.com>
58154 * lib/hash.c: Remove '2001' from copyright notice.
58156 2001-08-30 Paul Eggert <eggert@twinsun.com>
58158 * lib/full-write.h: New file.
58159 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
58160 * lib/full-write.c: Correct credits, as cccp.c no longer
58161 exists and anyway it was so heavily changed from the old cccp
58162 code as to be unrecognizable. Include full-write.h.
58163 (full_write) Return size_t, with short writes meaning failure.
58164 All callers changed. This fixes a bug with large buffers
58166 * lib/utime.c: Include full-write.h.
58168 2001-08-30 Paul Eggert <eggert@twinsun.com>
58170 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
58171 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
58172 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
58173 Include if available.
58174 (<xalloc.h>): Include
58175 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
58176 (verify): New macro. Use it to verify that EXCLUDE macros do not
58177 collide with FNM macros.
58178 (struct patopts): New struct.
58179 (struct exclude): Use it, as exclude patterns now come with options.
58180 (new_exclude): Support above changes.
58181 (new_exclude, add_exclude_file):
58182 Initial size must now be a power of two to simplify overflow checking.
58183 (free_exclude, fnmatch_no_wildcards): New function.
58184 (excluded_filename): No longer requires options arg, as the options
58185 are determined by add_exclude. Now returns bool, not int.
58186 (excluded_filename, add_exclude):
58187 Add support for the fancy new exclusion options.
58188 (add_exclude, add_exclude_file): Now takes int options arg.
58189 Check for arithmetic overflow when computing sizes.
58190 (add_exclude_file): xrealloc might modify errno, so don't
58191 realloc until after errno might be used.
58193 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
58195 (free_exclude): New decl.
58196 (add_exclude, add_exclude_file): Now takes int options arg.
58197 (excluded_filename): No longer requires options arg, as the options
58198 are determined by add_exclude. Now returns bool, not int.
58200 2001-08-30 Paul Eggert <eggert@twinsun.com>
58202 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
58204 2001-08-27 Jim Meyering <meyering@lucent.com>
58206 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
58208 * lib/version-etc.c (N_): Remove definition.
58209 Revert most of last change.
58210 Instead, simply don't mark the `Copyright...' string for translation.
58211 Based on advice from Paul Eggert.
58213 * lib/strtoxmax.c: Tweak comment.
58215 2001-08-26 Jim Meyering <meyering@lucent.com>
58217 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
58219 * m4/xstrtoimax.m4: New file.
58220 * m4/xstrtoumax.m4: Add comments explaining why we
58221 AC_REPLACE_FUNCS(strtol).
58223 2001-08-26 Jim Meyering <meyering@lucent.com>
58225 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
58226 of copyright with `%s' so translators don't get an untranslated
58228 (COPYRIGHT_YEAR): Define.
58229 (version_etc): Use fprintf rather than fputs.
58230 Suggestion from Ulrich Drepper.
58232 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
58234 * lib/strtoll.c: New file, from GNU libc.
58235 * lib/xstrtoimax.c: New file.
58237 * lib/xstrtol.h: Add xstrtoimax.
58238 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
58239 * lib/strtoimax.c: New file. Likewise, but first define
58242 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
58244 * lib/strtoxmax.c: ... then renamed to this.
58246 2001-08-18 Paul Eggert <eggert@twinsun.com>
58248 * m4/inttypes.m4: Add AC_PREREQ(2.13).
58249 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
58250 (jm_AC_TYPE_INTMAX_T): New macro.
58251 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
58253 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
58255 * m4/longlong.m4: Renamed from ulonglong.m4.
58256 * m4/inttypes.m4: Renamed from inttypes_h.m4.
58257 * m4/uintmax_t.m4: Removed.
58259 2001-08-13 Paul Eggert <eggert@twinsun.com>
58261 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
58262 Port to Solaris 8, where 'sed' requires a space after the 'r'
58263 command, and where sh dislikes "$/". Clean up the spacing a bit.
58264 Redirect output to $tmp just once.
58266 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
58268 * lib/addext.c (<errno.h>): Include.
58269 (errno): Declare if not defined.
58270 (addext): Work correctly when pathconf returns -1 and leaves
58271 errno alone because there is no limit. Also, work even if
58272 pathconf returns a value greater than SIZE_MAX.
58274 2001-08-12 Jim Meyering <meyering@lucent.com>
58276 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
58277 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
58278 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
58279 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
58280 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
58281 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
58282 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
58283 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
58284 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
58285 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
58286 utime.m4, utimes.m4, xstrtoumax.m4:
58287 Quote the first argument in each use of AC_DEFUN.
58289 2001-08-12 Jim Meyering <meyering@lucent.com>
58291 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
58292 Simply `return getcwd (NULL, 0);'.
58293 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
58294 Use 1300 as initial value for length, not PATH_MAX.
58296 * lib/pathmax.h: Clean up cpp syntax.
58298 2001-08-12 Jim Meyering <meyering@lucent.com>
58300 * lib/gettimeofday.c: New file.
58301 * lib/gtod.h: New file.
58302 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
58304 2001-08-05 Jim Meyering <meyering@lucent.com>
58306 * m4/jm-macros.m4: Require autoconf-2.52.
58308 2001-08-04 Jim Meyering <meyering@lucent.com>
58310 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
58311 stmt, to get in sync with glibc.
58313 2001-08-03 Paul Eggert <eggert@twinsun.com>
58315 The following changes are from gettext 0.10.39 as maintained by
58318 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
58319 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
58320 with inverted sense. All uses changed.
58322 * lib/mbswidth.c: Don't include <limits.h>.
58323 Include <stdlib.h> and <string.h> unconditionally.
58324 (iswcntrl, mbsinit, ISCNTRL): New macros.
58325 (mbsnwidth): Use K&R style function declarations.
58326 Don't bother checking for MB_LEN_MAX == 1, since the compiler
58327 can optimize it when MB_CUR_MAX == 1.
58328 The width of control characters is zero, not 1.
58330 2001-08-03 Paul Eggert <eggert@twinsun.com>
58332 The following changes are from gettext 0.10.39 as maintained by
58333 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
58335 * m4/codeset.m4: Upgrade to serial AM1.
58336 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
58337 all uses changed. Quote first arg of AC_DEFUN.
58338 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
58340 * m4/iconv.m4: Upgrade to serial AM2.
58341 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
58342 Add --with-libconv-prefix.
58343 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
58344 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
58345 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
58346 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
58347 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
58349 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
58350 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
58351 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
58352 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
58353 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
58354 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
58355 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
58356 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
58357 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
58359 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
58362 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
58363 not the default value.
58365 2001-06-25 Bruno Haible <haible@clisp.cons.org>
58366 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
58367 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
58368 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
58369 Also check for iswcntrl, used for wcwidth fallback.
58370 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
58373 2001-08-03 Jim Meyering <meyering@lucent.com>
58375 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
58376 as it was in the original. Reported by Paul Eggert.
58378 2001-07-16 Jim Meyering <meyering@lucent.com>
58380 * m4/gettimeofday.m4: New file.
58381 Prompted by a report from Bernhard Baehr.
58383 2001-07-15 Jim Meyering <meyering@lucent.com>
58385 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
58386 stuff. Now it's in ../Makefile.cfg.
58388 2001-07-15 Jim Meyering <meyering@lucent.com>
58390 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
58391 (BUILT_SOURCES): Add unlocked-io.h.
58392 (io_functions): Define.
58393 (unlocked-io.h): New rule.
58394 (DISTCLEANFILES): Add unlocked-io.h.
58395 (all-local): Depend on unlocked-io.h, to ensure it is created.
58397 * lib/unlocked-io.hin: New file
58399 * lib/regex.c: Update from glibc.
58401 2001-07-05 Jim Meyering <meyering@lucent.com>
58403 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
58405 (libfetish_a_SOURCES): Put all .h files here instead.
58406 Remove a thus-exposed (better checks in automake) duplicate and
58407 two unnecessary .h files.
58409 2001-07-04 Jim Meyering <meyering@lucent.com>
58411 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
58412 that generates jm-glibc-io.m4 so that it doesn't trigger any make
58415 2001-07-02 Jim Meyering <meyering@lucent.com>
58417 The following changes were prompted by suggestions from Bruno Haible.
58419 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
58421 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
58422 definition of EXTRA_DIST.
58423 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
58424 ensure that the generated file is created/updated whenever the list
58425 of $(unlocked_functions) is changed.
58426 (jm-glibc-io.m4): New rule.
58427 (unlocked-io.h): New rule -- currently unused.
58429 2001-06-24 Jim Meyering <meyering@lucent.com>
58431 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
58432 unmatched right bracket, rather than kludging it with an extra,
58433 falsely-matching quote in a comment. Patch by Akim Demaille.
58435 2001-06-11 Jim Meyering <meyering@lucent.com>
58437 * lib/regex.c: Update from GNU libc.
58439 2001-05-27 Jim Meyering <meyering@lucent.com>
58441 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
58442 Check for ut_type in struct utmp.
58444 2001-05-27 Jim Meyering <meyering@lucent.com>
58446 * lib/readutmp.h (UT_TYPE): Define.
58448 2001-05-24 Jim Meyering <meyering@lucent.com>
58450 * lib/argmatch.c: Include "quote.h".
58451 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
58452 quote function. Reported by Göran Uddeborg.
58454 2001-05-22 Jim Meyering <meyering@lucent.com>
58456 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
58457 now that we use the package-supplied version unconditionally.
58458 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
58460 2001-05-21 Jim Meyering <meyering@lucent.com>
58462 * m4/regex.m4: Change a couple backticks to single quotes to avoid
58463 shell syntax errors.
58465 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
58467 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
58469 2001-05-20 Paul Eggert <eggert@twinsun.com>
58471 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
58472 Don't bother to check library strftime, since
58473 we'll be using our own my_strftime function anyway.
58474 Define my_strftime instead of strftime.
58476 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
58478 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
58479 which is not yet declared.
58481 2001-05-15 Jim Meyering <meyering@lucent.com>
58483 * m4/regex.m4: Use proper quoting so brackets appear in the test
58485 Reported by, and with help from, Bruno Haible.
58487 2001-05-13 Jim Meyering <meyering@lucent.com>
58489 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
58492 2001-05-11 Paul Eggert <eggert@twinsun.com>
58494 dirname code cleanup. base_name now behaves more compatibly
58495 with POSIX basename when given file names that have trailing
58496 slashes, and similarly for dir_name. Add new primitives
58497 base_len and dir_len. Put the directory-name-related decls
58500 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
58501 * lib/backupfile.c (base_name): Likewise.
58502 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
58503 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
58504 * lib/makepath.c (strip_trailing_slashes): Likewise.
58505 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
58506 ISSLASH): Likewise.
58507 * lib/rename.c (strip_trailing_slashes): Likewise.
58508 * lib/same.c (base_name): Likewise.
58509 * lib/stripslash.c (ISSLASH): Likewise.
58511 * lib/addext.c: Include <dirname.h> after size_t is defined.
58512 * lib/backupfile.c: Likewise.
58514 * lib/addext.c (addext): Use base_len to trim redundant
58515 trailing slashes instead of doing it ourselves.
58516 But do not trim the last slash if it is not redundant.
58518 * lib/backupfile.c (find_backup_file_name,
58519 max_backup_version): Use base_len instead of rolling it ourselves.
58520 Handle the case of "" and (on DOS) "C:" correctly.
58522 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
58523 needed. Include <string.h>, <dirname.h>.
58524 (base_name): Allow file names ending in slashes, other than names
58525 that are all slashes. In this case, return the basename followed
58526 by the slashes. This is more general, and can be used in places
58527 where the original base_name purposely had an assertion failure.
58528 (base_len): New function.
58530 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
58531 Do not include <assert.h>; no longer needed.
58533 (memrchr): Remove decl.
58534 (dir_name_r): Remove.
58535 (dir_len): Renamed from dirlen. All callers changed.
58536 Rewrite in terms of base_name, for simplicity and consistency.
58537 (dir_name): Never return NULL. All callers changed.
58538 Do not include <stdlib.h> in test program; no longer needed.
58539 return 0; is fine for test program.
58541 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
58543 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
58545 * lib/path-concat.c (path_concat): Use base_len to compute
58546 base length, not strlen; this means we cannot rely on memcpy
58549 * lib/same.c (STREQ): Remove.
58550 (same_name): Handle the case where the basename ends in trailing '/'.
58552 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
58553 a slash was stripped. Do not strip the last slash after a
58554 file system prefix.
58556 2001-05-11 Paul Eggert <eggert@twinsun.com>
58558 * lib/Makefile.am (libfetish_a_SOURCES):
58559 Add strftime.c, since we now compile it on all hosts.
58561 * lib/strftime.c (my_strftime):
58562 Define to nstrftime if emacs, but only if my_strftime is not defined.
58563 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
58564 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
58565 Add one more extra argument: a nanoseconds value.
58568 (my_strftime function): Add %N format.
58569 (emacs_strftimeu): Renamed from emacs_strftime,
58570 with extra ut argument.
58572 2001-05-09 Paul Eggert <eggert@twinsun.com>
58574 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
58576 2001-04-21 Jim Meyering <meyering@lucent.com>
58578 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
58581 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
58583 * m4/ftruncate.m4: Check for chsize.
58584 Link with ftruncate.o unconditionally if ftruncate is missing.
58585 This was required when cross-compiling to i586-mingw32msvc.
58587 2001-04-08 Jim Meyering <meyering@lucent.com>
58589 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
58590 recomputed; that's necessary when the offset spans a DST transition.
58591 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
58593 2001-04-02 Jim Meyering <meyering@lucent.com>
58595 * lib/regex.h, regex.c: Update from GNU libc.
58597 2001-03-24 Jim Meyering <meyering@lucent.com>
58599 * m4/jm-macros.m4: Require autoconf-2.49d.
58601 2001-03-20 Bruno Haible <haible@clisp.cons.org>
58603 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
58605 2001-03-19 Paul Eggert <eggert@twinsun.com>
58607 * lib/version-etc.c (version_etc_copyright): Update to 2001.
58609 2001-03-17 Jim Meyering <meyering@lucent.com>
58611 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
58612 now that the version in autoconf is equivalent.
58613 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
58615 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
58616 Suggestion from Akim Demaille.
58618 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
58619 (jm_PREREQ_TEMPNAME): New function.
58621 2001-03-16 Paul Eggert <eggert@twinsun.com>
58623 * lib/tempname.c (uint64_t): Define to uintmax_t if
58624 not defined, and if UINT64_MAX is not defined.
58625 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
58626 Reported by John David Anglin.
58628 2001-03-15 Bruno Haible <haible@clisp.cons.org>
58630 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
58631 resolve alias if codeset is empty.
58632 * lib/config.charset (BeOS): Use wildcard syntax.
58634 2001-03-13 Jim Meyering <meyering@lucent.com>
58636 * lib/path-concat.c (path_concat)
58637 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
58638 concatenating e.g., `C:' and `foo'.
58641 2001-03-06 Bruno Haible <haible@clisp.cons.org>
58643 * lib/localcharset.c (locale_charset): Don't use
58644 setlocale(LC_CTYPE,NULL). Don't return NULL.
58645 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
58647 2001-03-06 Bruno Haible <haible@clisp.cons.org>
58649 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
58650 support for DOS/DJGPP.
58652 2001-03-01 Paul Eggert <eggert@twinsun.com>
58654 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
58655 lacks mkstemp. Compile our own tempname.c if we compile our own
58656 mkstemp.c, as mkstemp relies on tempname.
58658 2001-03-01 Jim Meyering <meyering@lucent.com>
58660 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
58661 AH_VERBATIM really does output its argument verbatim.
58663 2001-02-28 Paul Eggert <eggert@twinsun.com>
58665 * lib/Makefile.am (libfetish_a_SOURCES):
58666 Add dup-safer.c, fopen-safer.c.
58667 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
58669 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
58670 * lib/unistd-safer.h: New files.
58672 2001-02-25 Paul Eggert <eggert@twinsun.com>
58674 The mkstemp replacement is taken from glibc 2.2.2, with some
58675 portability fixes for use outside glibc, as follows:
58677 * lib/tempname.c (struct_stat64): New macro.
58678 (direxists, __gen_tempname): Use it.
58679 This avoids a portability problem with Solaris 8.
58681 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
58682 (<stddef.h>, <stdint.h>, <string.h>):
58683 Include only if STDC_HEADERS || _LIBC.
58684 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
58685 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
58686 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
58687 (__set_errno): Define this macro if <errno.h> doesn't.
58688 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
58689 Define these macros if <stdio.h> doesn't.
58690 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
58691 Define these macros if <sys/stat.h>
58692 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
58693 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
58694 __xstat64): Define if not _LIBC.
58695 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
58696 (__gen_tempname): Invoke gettimeofday only if
58697 HAVE_GETTIMEOFDAY || _LIBC;
58698 otherwise, fall back on plain "time".
58699 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
58701 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
58703 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
58705 2001-02-18 Paul Eggert <eggert@twinsun.com>
58707 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
58709 2001-02-17 Paul Eggert <eggert@twinsun.com>
58711 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
58712 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
58713 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
58714 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
58716 2001-02-17 Paul Eggert <eggert@twinsun.com>
58718 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
58719 Remove workaround macros for hosts that have mbrtowc but not
58720 mbstate_t, as we now insist on proper declarations for both
58721 before using mbrtowc.
58723 2001-02-17 Jim Meyering <meyering@lucent.com>
58725 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
58726 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
58727 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
58730 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
58731 rather than AC_CACHE_VAL.
58733 2001-02-17 Jim Meyering <meyering@lucent.com>
58735 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
58736 around included file name.
58738 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
58740 * lib/strftime.c: Update from GNU libc (the only changes were to
58743 2001-02-17 Jim Meyering <meyering@lucent.com>
58745 * lib/regex.c: Update from libc.
58747 2001-02-17 Bruno Haible <haible@clisp.cons.org>
58749 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
58752 2001-02-16 Paul Eggert <eggert@twinsun.com>
58754 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
58755 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
58756 Reported by Mark Hounschell via Paul Eggert.
58758 2001-02-07 Jim Meyering <meyering@lucent.com>
58760 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
58762 2001-02-05 Jim Meyering <meyering@lucent.com>
58764 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
58765 it includes the patch required for `large file' support with at least
58766 HP-UX's 10.20 /bin/cc.
58768 2001-02-03 Jim Meyering <meyering@lucent.com>
58770 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
58771 AS_IF, now that it works once again (mysteriously).
58772 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
58774 2001-01-30 Jim Meyering <meyering@lucent.com>
58776 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
58777 * m4/chown.m4: Rename conftestchown to conftest.chown.
58778 * m4/rename.m4: s/conftestdir/conftest.d1/ and
58779 s/conftestdir2/conftest.d2/.
58780 * m4/utimes.m4: s/conftestdata/conftest.data/
58781 Inspired by Pavel Roskin's change in autoconf.
58783 2001-01-30 Bruno Haible <haible@clisp.cons.org>
58785 * lib/config.charset: Update for FreeBSD 4.2.
58787 2001-01-27 Jim Meyering <meyering@lucent.com>
58789 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
58791 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
58793 2001-01-26 Jim Meyering <meyering@lucent.com>
58795 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
58796 quotearg.c includes it.
58798 2001-01-26 Jim Meyering <meyering@lucent.com>
58800 * lib/quotearg.c: Include stddef.h.
58801 * lib/quote.c: Include stddef.h.
58802 Reported by Axel Kittenberger.
58804 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
58805 line in double quotes so that it evokes a better diagnostic.
58806 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
58807 Reported by Axel Kittenberger.
58809 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
58811 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
58812 as if it was a `charset'.
58814 2001-01-21 Bruno Haible <haible@clisp.cons.org>
58816 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
58819 2001-01-21 Bruno Haible <haible@clisp.cons.org>
58821 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
58822 to avoid a warning. Add back 'const' to inptr.
58824 2001-01-20 Jim Meyering <meyering@lucent.com>
58826 Be sure that headers are checked before used in code compiled
58827 for the type checks.
58828 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
58829 In place of that, invoke jm_CHECK_ALL_TYPES.
58830 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
58831 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
58832 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
58833 The check for ssize_t was mistakenly run before the test for unistd.h.
58835 The configure-time check for stdbool.h was missing.
58836 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
58837 (jm_PREREQ_HASH): New function.
58839 2001-01-17 Jim Meyering <meyering@lucent.com>
58841 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
58842 for autoconf-2.49c.
58843 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
58845 2001-01-16 Jim Meyering <meyering@lucent.com>
58847 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
58850 2001-01-14 Jim Meyering <meyering@lucent.com>
58852 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
58853 foo and bar. Create conftestdir/ in the script, not in the C code.
58854 Remove directories in the script, not in the C code.
58855 Remove conftestdir{,2} before trying to create the directory.
58856 Make the entire configure script fail if the mkdir fails.
58858 2001-01-14 Jim Meyering <meyering@lucent.com>
58860 * lib/rename.c: New file. From Volker Borchert.
58861 Include stdlib.h, string.h or strings.h, and xalloc.h.
58862 Use strip_trailing_slashes rather than open-coding it.
58864 2001-01-03 Paul Eggert <eggert@twinsun.com>
58866 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
58868 2001-01-03 Jim Meyering <meyering@lucent.com>
58870 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
58871 of local `inptr' to avoid warning with some system declarations of
58874 2001-01-02 Volker Borchert <bt@teknon.de>
58876 * m4/rename.m4: New file.
58877 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
58879 2001-01-01 Jim Meyering <meyering@lucent.com>
58881 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
58882 even on systems with utmpx.h. It's necessary for the declaration of
58883 utmp's ut_user member. Reported by Andreas Jaeger.
58885 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
58886 available. They are required for the declarations of getgrgid and
58888 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
58889 Reported by Andreas Jaeger.
58891 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
58893 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
58894 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
58895 so `make install' also works in VPATH builds.
58897 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
58899 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
58900 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
58901 can be used in subdirectories.
58903 2000-12-29 Paul Eggert <eggert@twinsun.com>
58905 * lib/modechange.c: Do not assume that mode_t uses the
58906 traditional octal encoding. E.g. "chmod 1 FOO" should set
58907 the other-execute bit of FOO even if S_IXOTH != 1.
58909 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
58910 WOTH, XOTH, ALLM): New macros.
58911 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
58912 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
58914 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
58915 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
58917 No need to use uintmax_t; unsigned long is long enough.
58918 Don't bother to get suffix since we don't use it.
58920 2000-12-26 Jim Meyering <meyering@lucent.com>
58922 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
58923 better with autoheader.
58925 2000-12-24 Jim Meyering <meyering@lucent.com>
58927 * lib/hash.c (is_prime): Return explicit boolean values.
58928 (hash_get_first): Return NULL to appease Irix5.6's 89.
58929 Reported by Nelson Beebe.
58931 2000-12-19 Bruno Haible <haible@clisp.cons.org>
58933 * lib/localcharset.c (locale_charset): Add support for Win32.
58935 2000-12-18 Paul Eggert <eggert@twinsun.com>
58937 * lib/physmem.h, lib/physmem.c: New files.
58939 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
58940 (noinst_HEADERS): Add physmem.h.
58942 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
58943 't' for compatibility with Solaris 8 sort.
58945 2000-12-18 Bruno Haible <haible@clisp.cons.org>
58947 * lib/config.charset: Add support for BeOS.
58949 2000-12-17 Jim Meyering <meyering@lucent.com>
58951 * m4/dos.m4 (jm_AC_DOS): New file and macro.
58952 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
58954 2000-12-16 Jim Meyering <meyering@lucent.com>
58956 This bug had a serious impact on chown: `chown N:M FILE' (for integer
58957 N and M) would have treated it like `chown N:N FILE'.
58959 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
58961 2000-12-16 Jim Meyering <meyering@lucent.com>
58963 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
58964 SHELLS_FILE to a file name that's useful on djgpp systems.
58966 (ADDITIONAL_DEFAULT_SHELLS): Define.
58967 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
58968 Based mostly on a patch from Prashant TR.
58970 2000-12-16 Bruno Haible <haible@clisp.cons.org>
58972 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
58973 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
58974 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
58976 2000-12-08 Andreas Schwab <schwab@suse.de>
58978 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
58979 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
58981 2000-12-07 Jim Meyering <meyering@lucent.com>
58983 * lib/stripslash.c (ISSLASH): Define.
58984 (strip_trailing_slashes): Use ISSLASH rather than comparing against
58988 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
58989 (dir_name_r): Declare this function as static.
58990 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
58991 manifest itself on a name containing a mix of slashes and
58993 Make this function work with names starting with a DOS-style
58994 drive letter and colon prefix.
58995 (dir_name): Append `.' if necessary.
58996 Based mostly on patches from Prashant TR and Eli Zaretskii.
58998 * lib/dirname.h (dir_name_r): Remove prototype.
59000 2000-12-06 Paul Eggert <eggert@twinsun.com>
59002 * m4/off_t-format.m4: Remove this file.
59003 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
59005 2000-12-06 Jim Meyering <meyering@lucent.com>
59007 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
59008 replacement strtoull, we may well need the replacement strtoul, too.
59009 Check for declarations of strtoul and strtoull.
59010 Check for strtol. Mainly as a cue to cause automake to include
59011 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
59012 Check for limits.h -- strtol.c needs it.
59014 2000-12-05 Jim Meyering <meyering@lucent.com>
59016 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
59018 2000-12-04 Jim Meyering <meyering@lucent.com>
59020 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
59021 Also include memory.h, stdlib.h, unistd.h if appropriate.
59022 Reported by Andreas Jaeger (conflicting declaration of malloc).
59024 2000-12-02 Jim Meyering <meyering@lucent.com>
59026 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
59027 * m4/jm-macros.m4 (jm_MACROS): require it.
59029 2000-12-02 Jim Meyering <meyering@lucent.com>
59031 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
59033 2000-12-01 Paul Eggert <eggert@twinsun.com>
59035 * lib/memrchr.c: Include <config.h> before any system include file.
59037 2000-11-30 Jim Meyering <meyering@lucent.com>
59039 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
59041 2000-11-30 Jim Meyering <meyering@lucent.com>
59043 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
59045 2000-11-29 Paul Eggert <eggert@twinsun.com>
59047 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
59049 2000-11-26 Jim Meyering <meyering@lucent.com>
59051 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
59053 2000-11-22 Paul Eggert <eggert@twinsun.com>
59055 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
59056 size of (size_t) -1; it's not portable.
59058 2000-11-17 Jim Meyering <meyering@lucent.com>
59060 * lib/strstr.c: Update from GNU libc.
59062 2000-11-17 Akim Demaille <akim@epita.fr>
59064 * lib/obstack.h: Formatting changes.
59065 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
59066 prevent type checking.
59067 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
59068 cast the value to (void *): assigning a `foo *' to a `void *'
59070 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
59072 2000-11-16 Jim Meyering <meyering@lucent.com>
59074 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
59076 2000-11-11 Jim Meyering <meyering@lucent.com>
59078 * lib/error.c: Add a couple #includes, merging from GNU libc version.
59080 2000-11-10 Jim Meyering <meyering@lucent.com>
59082 * lib/obstack.h: Update from GNU libc.
59083 * lib/obstack.c: Likewise.
59085 2000-11-08 Bruno Haible <haible@clisp.cons.org>
59087 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
59089 2000-11-06 Paul Eggert <eggert@twinsun.com>
59091 * lib/getusershell.c (setusershell): Use rewind rather than
59092 fseek/fseeko, to avoid configuration hassles with fseeko.
59093 Don't bother opening SHELLS_FILE if shellstream is NULL;
59094 it's not necessary.
59096 2000-11-05 Jim Meyering <meyering@lucent.com>
59098 * lib/makepath.h (make_dir): Declare.
59099 * lib/makepath.c (make_dir): Remove `static' attribute.
59102 2000-11-04 Jim Meyering <meyering@lucent.com>
59104 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
59106 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
59108 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
59109 last one in a bucket, advance to the next bucket.
59111 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
59113 * lib/fnmatch.c: Do not comment out all the code if we are using
59114 the GNU C library, because in some cases we are replacing buggy
59115 code in the GNU C library itself.
59117 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
59119 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
59120 (regex_compile): Catch bogus \(\1\).
59122 2000-10-30 Paul Eggert <eggert@twinsun.com>
59124 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
59125 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
59126 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
59128 2000-10-30 Paul Eggert <eggert@twinsun.com>
59130 * lib/error.h, getline.h, modechange.h:
59131 Remove "2000" from Copyright line, as the file hasn't been
59132 changed this year other than in the copyright notice.
59134 * lib/xalloc.h: Add "2000" to Copyright line, as this file
59135 was changed this year.
59137 2000-10-29 Jim Meyering <meyering@lucent.com>
59139 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
59141 * m4/ls-mntd-fs.m4: Likewise
59143 2000-10-29 Jim Meyering <meyering@lucent.com>
59145 * lib/xstat.in: Fix grammar in comment.
59147 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
59149 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
59150 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
59151 doesn't define __restrict_arr.
59153 2000-10-28 Jim Meyering <meyering@lucent.com>
59155 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
59156 (jm_PREREQ_MEMCHR): New function.
59158 2000-10-28 Jim Meyering <meyering@lucent.com>
59160 * lib/memchr.c: Update from libc.
59161 Adjust for portability:
59162 [HAVE_STDLIB_H]: Include stdlib.h.
59163 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
59164 Undef __memchr, too.
59165 [!weak_alias]: Define __memchr to memchr.
59167 * lib/regex.c: Update from libc.
59168 * lib/regex.h: Likewise.
59169 * lib/getopt1.c: Likewise.
59170 * lib/memcmp.c: Likewise.
59172 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
59173 Avoid using fseek, when possible -- it's broken by design.
59174 Patch by Ulrich Drepper.
59176 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
59178 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
59179 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
59180 Giving in to popular pressure to shut up the compiler with casts.
59182 2000-10-26 Jim Meyering <meyering@lucent.com>
59184 * lib/strftime.c: Update from libc.
59186 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
59188 * regex.c: More `unsigned char' -> `re_char' changes.
59189 Also change several `int' into `re_wchar_t'.
59190 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
59191 (PUSH_FAILURE_POINTER): Don't cast any more.
59192 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
59193 We want GCC to complain, since this piece of code makes
59194 re_match non-reentrant, which *should* be fixed.
59195 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
59196 (EXTEND_BUFFER): Use RETALLOC.
59197 (SET_LIST_BIT): Don't cast.
59198 (re_wchar_t): New type.
59199 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
59200 that those two functions will always properly return.
59201 (IMMEDIATE_QUIT_CHECK): Cast to void.
59202 (analyse_first): Use recursion rather than an explicit stack.
59203 (re_compile_fastmap): Can't fail anymore.
59204 (re_search_2): Don't check re_compile_fastmap for failure.
59205 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
59206 Now also sets the new value (passed in a new argument).
59207 (re_match_2_internal): Use it.
59208 Also, use a new var `reg' of type size_t when looping through regs
59209 rather than reuse the inappropriate `mcnt'.
59211 2000-10-25 Jim Meyering <meyering@lucent.com>
59213 * lib/obstack.c: Update from libc.
59215 2000-10-24 Kenichi Handa <handa@etl.go.jp>
59217 * regex.c (regex_compile): Change the way of handling a range from
59218 a char less than 256 to a char not less than 256.
59220 2000-10-24 Andrew Innes <andrewi@gnu.org>
59222 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
59224 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
59225 so that re_search functions only quit when callers expect them to.
59227 2000-10-23 Jim Meyering <meyering@lucent.com>
59229 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
59230 wrong. That set_locale call must not have any side effects.
59233 2000-10-22 Jim Meyering <meyering@lucent.com>
59235 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
59236 [CYCLIC]: Remove now-unused definition.
59238 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
59239 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
59240 Suggestion from Ulrich Drepper.
59242 2000-10-21 Jim Meyering <meyering@lucent.com>
59244 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
59245 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
59246 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
59248 2000-10-21 Jim Meyering <meyering@lucent.com>
59250 * lib/dirname.c (memrchr): Declare if necessary.
59251 (dir_name): Remove the restriction that there be no
59252 trailing slashes. Now, this code skips past them, effectively
59254 [TEST_DIRNAME] (main): New unit tests.
59256 * lib/memrchr.c: New file from GNU libc.
59257 Undef __memrchr, too.
59258 [!weak_alias]: Define __memrchr to memrchr.
59259 Guard weak_alias use with `#ifdef weak_alias'.
59261 2000-10-21 Jim Meyering <meyering@lucent.com>
59263 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
59264 (dir_name): Use dir_name_r.
59265 * lib/dirname.h (dir_name_r): Declare it.
59267 2000-10-17 Jim Meyering <meyering@lucent.com>
59269 * lib/quote.h (PARAMS): Define and use.
59270 Reported by Akim Demaille.
59272 * lib/getopt.c: Update from libc.
59274 2000-10-16 Jim Meyering <meyering@lucent.com>
59276 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
59280 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
59282 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
59284 2000-09-25 Jim Meyering <meyering@lucent.com>
59286 * lib/md5.h (rol): Define (from GnuPG).
59288 * lib/sha.c: Give credit (GnuPG) where due.
59289 (M): Use rol rather than open-coding it.
59290 Add a FIXME comment.
59292 2000-09-21 Jim Meyering <meyering@lucent.com>
59294 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
59295 Reported by Michael Stone.
59297 2000-09-20 Jim Meyering <meyering@lucent.com>
59299 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
59300 (noinst_HEADERS): Add sha.h.
59301 Based on code from Scott G. Miller and from GnuPG.
59303 2000-09-18 Jim Meyering <meyering@lucent.com>
59305 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
59306 LIBS. Otherwise, everyone ends up linking with -lelf for some
59308 Reported by Mike Stone.
59310 2000-09-15 Jim Meyering <meyering@lucent.com>
59312 * lib/regex.c: Update from libc.
59314 2000-09-10 Jim Meyering <meyering@lucent.com>
59316 * lib/getopt.c (_getopt_internal): Update from glibc.
59318 2000-09-09 Jim Meyering <meyering@lucent.com>
59320 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
59321 think it should be used as a general replacement for isascii.
59322 * lib/fnmatch.c: Likewise.
59323 * lib/mbswidth.c: Likewise
59324 * lib/regex.c: Likewise.
59327 * lib/userspec.c: Include sys/param.h and limits.h.
59329 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
59330 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
59331 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
59332 UID, GID. Check range.
59334 2000-09-06 Jim Meyering <meyering@lucent.com>
59336 * lib/getopt.c (_getopt_internal): Update from glibc.
59338 2000-08-30 Jim Meyering <meyering@lucent.com>
59340 * lib/strftime.c: Merge in changes from GNU libc.
59342 2000-08-26 Jim Meyering <meyering@lucent.com>
59344 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
59345 * m4/fpending.m4: New file.
59347 2000-08-26 Jim Meyering <meyering@lucent.com>
59349 * lib/closeout.c: Include "__fpending.h".
59350 (close_stdout_status): Return right away if there's nothing to flush.
59352 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
59353 * lib/__fpending.c: New file.
59354 * lib/__fpending.h: New file.
59356 2000-08-20 Jim Meyering <meyering@lucent.com>
59358 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
59359 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
59360 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
59362 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
59364 Improve fileutils installation on systems where running
59365 programs (like install) can't be unlinked.
59366 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
59367 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
59369 2000-08-07 Paul Eggert <eggert@twinsun.com>
59371 Standardize on "memory exhausted" instead of "Memory exhausted"
59372 or "virtual memory exhausted".
59373 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
59374 "virtual memory exhausted".
59375 * lib/same.c (same_name): Invoke xalloc_die instead of printing
59377 * lib/userspec.c (parse_user_spec): Likewise.
59378 * lib/bumpalloc.h: comment fix
59379 * lib/same.c, userspec.c: Include xalloc.h.
59381 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
59382 not char *const and pointing to a constant array.
59383 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
59384 (xrealloc): Comment fix.
59386 * lib/userspec.c (parse_user_spec):
59387 Don't translate a message until just before returning,
59388 to avoid unnecessary translation.
59390 2000-08-07 Jim Meyering <meyering@lucent.com>
59392 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
59393 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
59394 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
59395 getgroups.c, gethostname.c, getopt.h, group-member.c,
59396 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
59397 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
59398 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
59399 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
59400 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
59401 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
59402 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
59403 yesno.c: Back out Copyright date changes for each file with no change
59404 this year. This eases coordination with other programs using the same
59405 source code modules. From Paul Eggert.
59407 2000-08-06 Paul Eggert <eggert@twinsun.com>
59409 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
59410 not char, for compatibility with glibc 2.1.3 strftime.c.
59412 2000-08-03 Greg McGary <greg@mcgary.org>
59414 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
59415 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
59416 (EXTEND_BUFFER): Use them.
59418 2000-08-01 Jim Meyering <meyering@lucent.com>
59420 * lib/dirname.c (ISSLASH): Define.
59421 (BACKSLASH_IS_PATH_SEPARATOR): Define.
59422 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
59423 both `\' and `/' may be use as path separators.
59424 Based on a patch from Prashant TR.
59426 2000-07-31 Paul Eggert <eggert@twinsun.com>
59428 * lib/quotearg.c (quotearg_n_options): Don't make the initial
59429 slot vector a constant, since it might get modified.
59431 2000-07-31 Jim Meyering <meyering@lucent.com>
59433 * lib/xmalloc.c: Use `virtual memory exhausted', not
59434 `Memory exhausted'.
59435 * lib/obstack.c (print_and_abort): Likewise.
59437 2000-07-30 Paul Eggert <eggert@twinsun.com>
59439 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
59440 buffer, so that the caller can always quote one small
59441 component of a "memory exhausted" message in slot 0.
59442 From a suggestion by Jim Meyering.
59444 2000-07-30 Jim Meyering <meyering@lucent.com>
59446 * lib/makepath.c (make_path): Quote the other instance, too.
59448 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
59449 (STATIC_BUF_SIZE): Define.
59450 (quotearg_n_options): Use only statically allocated storage when
59451 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
59452 than STATIC_BUF_SIZE.
59454 2000-07-29 Jim Meyering <meyering@lucent.com>
59456 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
59457 * lib/dirname.c (dir_name): Likewise.
59459 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
59462 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
59463 (dir_name): Assert that there are no trailing slashes.
59465 2000-07-29 Bruno Haible <haible@clisp.cons.org>
59467 * lib/mbswidth.h (mbswidth): Add a flags argument.
59468 (mbswidth): New declaration.
59469 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
59470 * lib/mbswidth.c (mbswidth): Add a flags argument.
59471 (mbsnwidth): New function.
59473 2000-07-24 Jim Meyering <meyering@lucent.com>
59475 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
59477 2000-07-23 Paul Eggert <eggert@twinsun.com>
59479 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
59481 2000-07-23 Paul Eggert <eggert@twinsun.com>
59483 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
59484 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
59485 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
59486 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
59487 invoke multibyte primitives.
59489 2000-07-23 Paul Eggert <eggert@twinsun.com>
59492 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
59493 so that mbstate_t is always defined.
59495 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
59496 be 1 in at least one GCC installation, and this configuration
59497 error is likely to be common. Ignoring MB_LEN_MAX hurts
59498 performance on hosts that have mbrtowc but have only unibyte
59499 locales, but I assume these hosts are rare.
59501 2000-07-23 Paul Eggert <eggert@twinsun.com>
59503 * lib/mbswidth.c (_XOPEN_SOURCE):
59504 Don't define; this causes problems on Solaris 7.
59505 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
59507 2000-07-23 Jim Meyering <meyering@lucent.com>
59509 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
59510 too: getgrgid, getpwuid, getuid.
59512 2000-07-23 Jim Meyering <meyering@lucent.com>
59514 * lib/basename.c (base_name): Add an assertion.
59516 2000-07-23 Bruno Haible <haible@clisp.cons.org>
59518 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
59519 shadow its mbsinit function.
59521 2000-07-17 Bruno Haible <haible@clisp.cons.org>
59523 * lib/mbswidth.h: New file.
59524 * lib/mbswidth.c: New file.
59525 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
59526 (noinst_HEADERS): Add mbswidth.h.
59528 2000-07-17 Bruno Haible <haible@clisp.cons.org>
59530 * lib/config.charset: Add support for FreeBSD. Improve support for
59533 2000-07-16 Bruno Haible <haible@clisp.cons.org>
59535 * m4/mbswidth.m4: New file.
59536 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
59538 2000-07-15 Jim Meyering <meyering@lucent.com>
59540 * lib/makepath.c: Include quote.h.
59541 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
59542 corresponding argument in a `quote (...)' call.
59543 Give better diagnostics.
59545 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
59546 (noinst_HEADERS): Add quote.h.
59548 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
59549 from tar's src/misc.c.
59550 * lib/quote.h: New file. Prototypes for same.
59552 2000-07-14 Paul Eggert <eggert@twinsun.com>
59554 From a suggestion by Bruno Haible.
59555 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
59556 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
59557 to decide whether to define the BeOS workaround macro;
59558 this adjusts to the change to AC_MBSTATE_T.
59560 2000-07-14 Jim Meyering <meyering@lucent.com>
59562 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
59563 jm_AC_TYPE_UINTMAX_T.
59565 2000-07-13 Paul Eggert <eggert@twinsun.com>
59567 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
59569 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
59570 quotearg_buffer_restyled): Add support for
59571 clocale_quoting_style. Undo previous change to
59572 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
59573 and "{RIGHT QUOTATION MARK}" msgids.
59575 2000-07-10 Paul Eggert <eggert@twinsun.com>
59577 From a suggestion by Bruno Haible.
59578 * m4/mbstate_t.m4 (AC_MBSTATE_T):
59579 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
59580 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
59581 and mbstate_t, to a single-part test that simply defines mbstate_t.
59582 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
59583 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
59585 2000-07-10 Jim Meyering <meyering@lucent.com>
59587 * m4/strerror_r.m4: Mirror the correction made in autoconf.
59589 * m4/gnu-source.m4: Output to confdefs.h directly.
59590 Suggestion from Akim Demaille.
59592 2000-07-09 Paul Eggert <eggert@twinsun.com>
59594 The old behavior of quoting `like this' doesn't look good with
59595 newer, ISO-style fonts. See:
59596 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
59598 Instead, quote "like this" by default. Let the translator
59599 tailor the locale-specific quoting behavior by providing
59600 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
59602 * lib/quotearg.c (N_): New macro.
59603 (gettext_default): New function.
59604 (quotearg_buffer_restyled): Use
59605 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
59606 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
59608 2000-07-09 Jim Meyering <meyering@lucent.com>
59610 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
59611 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
59613 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
59614 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
59616 2000-07-09 Jim Meyering <meyering@lucent.com>
59618 * lib/Most files: Update copyright dates to include 2000.
59620 2000-07-08 Jim Meyering <meyering@lucent.com>
59622 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
59624 (xgethostname): Remove now-unnecessary #ifdef.
59625 Move declaration of `err' into loop where it's used.
59627 2000-07-05 Paul Eggert <eggert@twinsun.com>
59628 and Bruno Haible <haible@clisp.cons.org>
59630 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
59631 only if the test for an object-type mbstate_t fails. This
59632 prevents us from mistakenly reporting that mbstate_t is a
59633 system object type after we "#define mbstate_t int" to work
59636 2000-07-05 Paul Eggert <eggert@twinsun.com>
59637 and Bruno Haible <haible@clisp.cons.org>
59639 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
59641 2000-07-05 Bruno Haible <haible@clisp.cons.org>
59643 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
59645 Include <ctype.h> for use of isalpha.
59647 2000-07-05 Bruno Haible <haible@clisp.cons.org>
59649 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
59650 by allocating a larger buffer. Test the gethostname return value for
59651 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
59652 returns an error and ENAMETOOLONG isn't defined.
59654 2000-07-05 Bruno Haible <haible@clisp.cons.org>
59656 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
59659 2000-07-04 Jim Meyering <meyering@lucent.com>
59661 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
59662 of the deprecated AC_CHECKING.
59664 2000-07-04 Jim Meyering <meyering@lucent.com>
59666 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
59667 Reported by Bruno Haible.
59669 2000-07-04 Jim Meyering <meyering@lucent.com>
59671 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
59672 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
59675 2000-07-03 Paul Eggert <eggert@twinsun.com>
59677 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
59678 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
59680 2000-07-03 Paul Eggert <eggert@twinsun.com>
59681 and Bruno Haible <haible@clisp.cons.org>
59683 * lib/quotearg.c (mbrtowc):
59684 Assign to *pwc, and return 1 only if result is nonzero.
59685 (iswprint): Use ISPRINT when substituting our own mbrtowc.
59687 2000-07-03 Jim Meyering <meyering@lucent.com>
59689 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
59691 2000-07-03 Jim Meyering <meyering@lucent.com>
59693 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
59694 This is necessary to get a definition of e.g., UTMP_FILE on
59698 2000-07-02 Jim Meyering <meyering@lucent.com>
59700 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
59702 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
59703 AC_LIBOBJ(function_name).
59704 * m4/chown.m4: Likewise.
59705 * m4/fnmatch.m4: Likewise.
59706 * m4/ftruncate.m4: Likewise.
59707 * m4/getgroups.m4: Likewise.
59708 * m4/getline.m4: Likewise.
59709 * m4/group-member.m4: Likewise.
59710 * m4/jm-macros.m4: Likewise.
59711 * m4/lstat.m4: Likewise.
59712 * m4/malloc.m4: Likewise.
59713 * m4/memcmp.m4: Likewise.
59714 * m4/nanosleep.m4: Likewise.
59715 * m4/putenv.m4: Likewise.
59716 * m4/realloc.m4: Likewise.
59717 * m4/regex.m4: Likewise.
59718 * m4/stat.m4: Likewise.
59719 * m4/strftime.m4: Likewise.
59721 2000-07-02 Jim Meyering <meyering@lucent.com>
59723 * lib/quotearg.c (mbstate_t): Don't define here.
59725 2000-07-02 Jim Meyering <meyering@lucent.com>
59727 * lib/nanosleep.c (SIGCONT): Define if not already defined.
59729 2000-07-01 Jim Meyering <meyering@lucent.com>
59731 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
59733 2000-07-01 Jim Meyering <meyering@lucent.com>
59735 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
59738 2000-07-01 Bruno Haible <haible@clisp.cons.org>
59740 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
59741 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
59743 2000-07-01 Bruno Haible <haible@clisp.cons.org>
59745 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
59746 per change in ../m4/ls-mntd-fs.m4.
59747 (read_filesystem_list): Ignore symbolic links.
59749 2000-06-29 Jim Meyering <meyering@lucent.com>
59751 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
59752 for declaration of strcmp.
59754 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
59756 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
59757 Avoid warning by casting result to `char *' to remove `const'.
59759 2000-06-28 Jim Meyering <meyering@lucent.com>
59761 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
59762 included by quotearg.c, for which we perform this test. From
59765 2000-06-27 Bruno Haible <haible@clisp.cons.org>
59767 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
59768 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
59769 <utmpx.h> exists, put readutmp.o into LIBOBJS.
59771 2000-06-27 Bruno Haible <haible@clisp.cons.org>
59773 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
59775 2000-06-26 Paul Eggert <eggert@twinsun.com>
59777 savedir now sets errno on failure and invokes xmalloc to get memory.
59778 Fix a couple of other minor bugs while we're at it.
59780 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
59781 (NAMLEN): Remove macro.
59782 (malloc, realloc): Remove decls.
59783 (stpcpy): Likewise.
59784 ("xalloc.h"): Include.
59785 (NAME_SIZE_DEFAULT): New macro.
59786 (savedir): Use xmalloc / xrealloc to allocate memory.
59787 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
59788 Skip "" directory entries.
59789 Use strlen to calculate directory entry length, since the old method
59790 is rarely used these days and isn't worth supporting.
59791 Don't use a pointer after freeing it.
59792 Check for integer overflow when calculating allocation size.
59793 Use memcpy to copy entries, instead of stpcpy.
59794 Set errno properly when returning NULL.
59795 Check for readdir error.
59797 2000-06-26 Jim Meyering <meyering@lucent.com>
59799 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
59801 2000-06-25 Jim Meyering <meyering@lucent.com>
59803 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
59804 Linux header bug when _XOPEN_SOURCE is defined to 500.
59806 2000-06-25 Bruno Haible <haible@clisp.cons.org>
59808 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
59811 2000-06-25 Bruno Haible <haible@clisp.cons.org>
59813 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
59815 Don't include <stdlib.h>. Don't declare malloc, realloc.
59817 2000-06-24 Jim Meyering <meyering@lucent.com>
59819 * m4/strerror_r.m4: Revive this file -- to try out an experimental
59820 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
59821 for which strerror does return char*, but which lacks a conveniently
59822 accessible declaration of the function. If the compile-test says
59823 strerror_r doesn't work, then resort to a `run'-test that works on
59824 BeOS and segfaults on DEC Unix.
59826 2000-06-24 Jim Meyering <meyering@lucent.com>
59828 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
59830 2000-06-23 Paul Eggert <eggert@twinsun.com>
59832 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
59833 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
59835 2000-06-23 Paul Eggert <eggert@twinsun.com>
59837 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
59838 (mbrtowc, mbstate_t): Define substitutes if
59839 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
59840 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
59841 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
59843 2000-06-23 Jim Meyering <meyering@lucent.com>
59845 * m4/afs.m4: Add missing AC_MSG_RESULT.
59846 Reported by Bruno Haible.
59848 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
59849 Suggestion from Bruno Haible.
59851 2000-06-23 Jim Meyering <meyering@lucent.com>
59853 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
59855 2000-06-21 Jim Meyering <meyering@lucent.com>
59857 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
59859 2000-06-21 Jim Meyering <meyering@lucent.com>
59861 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
59862 (noinst_HEADERS): Add getstr.h.
59864 * lib/getline.c (getstr): Move into a separate file.
59865 * lib/getstr.c (getstr): New file, extracted from getline.c, with
59866 the following changes: new parameter, delim2; both delim[12]
59867 parameters have type `int', not `char'. The latter would lose
59868 with 8-bit delimiters.
59869 * lib/getstr.h: New file.
59871 2000-06-21 Bruno Haible <haible@clisp.cons.org>
59873 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
59874 than 1024, return a memory chunk of least possible size, instead
59875 of size PATH_MAX + 2. In the loop, increment the size proportionally.
59876 Use free/xmalloc instead of xrealloc to avoid copying for very long
59879 2000-06-21 Bruno Haible <haible@clisp.cons.org>
59881 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
59884 2000-06-21 Bruno Haible <haible@clisp.cons.org>
59886 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
59887 address, not strdup. Include <stdlib.h> and don't declare free().
59889 2000-06-19 Jim Meyering <meyering@lucent.com>
59891 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
59893 2000-06-18 Jim Meyering <meyering@lucent.com>
59895 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
59897 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
59898 `checking whether...' message to be consistent with that of the
59901 2000-06-18 Jim Meyering <meyering@lucent.com>
59903 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
59904 Besides, these days every porting target provides a mkdir function.
59906 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
59907 needed. (this snippet comes from src/system.h).
59909 2000-06-16 Bruno Haible <haible@clisp.cons.org>
59911 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
59913 2000-06-15 Paul Eggert <eggert@twinsun.com>
59915 * lib/human.c (adjust_value): New function.
59916 (human_readable_inexact): Apply rounding style even when
59917 printing approximate values.
59919 2000-06-14 Paul Eggert <eggert@twinsun.com>
59921 * lib/human.c (human_readable_inexact): Allow an input block
59922 size that is not a multiple of the output block size, and vice versa.
59923 Reported by Piergiorgio Sartor.
59925 2000-06-14 Paul Eggert <eggert@twinsun.com>
59927 * lib/getdate.y (get_date): Apply relative times after time
59928 zone indicator, not before. Reported by Todd A. Jacobs.
59930 2000-06-13 Jim Meyering <meyering@lucent.com>
59932 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
59934 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
59936 2000-06-12 Paul Eggert <eggert@twinsun.com>
59938 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
59940 2000-06-12 Jim Meyering <meyering@lucent.com>
59942 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
59943 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
59945 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
59946 the optional argument, `lib'.
59948 2000-06-08 Jim Meyering <meyering@lucent.com>
59950 * m4/largefile.m4: Remove file (now that it's part of autoconf).
59952 2000-06-04 Paul Eggert <eggert@twinsun.com>
59954 Rewrite largefile configuration so that we don't need to run
59955 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
59956 AC_CANONICAL_HOST in configure.in -- jmm]
59958 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
59959 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
59960 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
59961 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
59962 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
59964 Instead of inspecting the output of getconf, try to compile the
59965 test program without and with the macro definition.
59966 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
59967 for getconf. Instead, check for the needed flags by compiling
59970 2000-06-04 Paul Eggert <eggert@twinsun.com>
59972 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
59974 2000-06-04 Jim Meyering <meyering@lucent.com>
59976 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
59977 SunOS 4.1.4 for which gid_t is an unsigned type.
59979 2000-06-03 Jim Meyering <meyering@lucent.com>
59981 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
59982 now that autoconf requires that.
59984 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
59985 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
59986 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
59988 2000-06-03 Jim Meyering <meyering@lucent.com>
59990 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
59992 2000-06-03 Bruno Haible <haible@clisp.cons.org>
59994 * m4/glibc21.m4: New file.
59995 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
59997 2000-06-03 Bruno Haible <haible@clisp.cons.org>
59999 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
60000 newer, don't install charset.alias.
60001 * lib/config.charset: Change the Linux/glibc rules so they become empty
60002 on glibc-2.1 or newer.
60004 2000-06-02 Jim Meyering <meyering@lucent.com>
60006 * lib/mountlist.c: Back out last change. Instead, do this...
60007 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
60008 me_dummy member using the same `ignore'-testing code.
60009 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
60013 2000-05-29 Jim Meyering <meyering@lucent.com>
60015 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
60016 mounts with the `ignore' attribute. Based on a patch from
60019 2000-05-28 Jim Meyering <meyering@lucent.com>
60021 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
60022 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60023 * m4/stat.m4: Likewise.
60024 * m4/lstat.m4: Likewise.
60025 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
60027 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
60028 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
60030 2000-05-26 Jim Meyering <meyering@lucent.com>
60032 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
60034 2000-05-24 Jim Meyering <meyering@lucent.com>
60036 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
60037 autoconf requires that.
60038 * m4/lib-check.m4: Likewise.
60039 * m4/jm-macros.m4: Likewise.
60040 * m4/strftime.m4: Likewise.
60042 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
60043 AC_CHECK_DECLS, now that autoconf requires that.
60045 2000-05-22 Jim Meyering <meyering@lucent.com>
60047 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60048 * m4/lstat.m4: Likewise.
60050 2000-05-22 Jim Meyering <meyering@lucent.com>
60052 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
60054 2000-05-20 Jim Meyering <meyering@lucent.com>
60056 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
60057 (jm_PREREQ): Use it.
60059 2000-05-18 Jim Meyering <meyering@lucent.com>
60061 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
60062 back, too, since it may have been modified by allocate_entry.
60063 (hash_delete): Rewrite to use neither the assignment operator
60064 nor the comma operator in an if-expression.
60066 2000-05-15 Paul Eggert <eggert@twinsun.com>
60069 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
60070 Remove; no longer needed.
60071 "quotearg.h": Add include.
60072 (file_name): Do not bother to explicitly initialize to NULL; it's less
60073 efficient on some hosts.
60074 (close_stdout_status): Remove test as to whether stdout was already
60075 closed; it breaks for the case "echo x | sort >&-".
60076 Quote file name colons.
60077 Do not assume that _("write error") lacks format strings.
60079 2000-05-15 Jim Meyering <meyering@lucent.com>
60081 * lib/version-etc.c (version_etc_copyright): Update the copyright
60082 string used in all --version output.
60084 2000-05-14 Jim Meyering <meyering@lucent.com>
60086 * lib/closeout.c (close_stdout_set_file_name): New function.
60087 (close_stdout_status): Use new file-scoped global.
60088 Return right away if fstat says the stdout file descriptor is invalid.
60089 * lib/closeout.h (close_stdout_set_file_name): Declare.
60091 2000-05-10 Jim Meyering <meyering@lucent.com>
60093 * lib/closeout.c [default_exit_status]: New file-scoped variable.
60094 (close_stdout_set_status): New function.
60095 * lib/closeout.h (close_stdout_set_status): Declare.
60097 2000-05-09 Jim Meyering <meyering@lucent.com>
60099 * m4/gettext.m4: Rename this...
60100 * m4/libintl.m4: ...to this.
60102 2000-05-08 Jim Meyering <meyering@lucent.com>
60104 * lib/long-options.c: Don't include closeout.h.
60105 (parse_long_options): Don't call close_stdout for --version.
60107 2000-05-06 Paul Eggert <eggert@twinsun.com>
60109 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
60110 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
60111 2.1.3 bug. This avoids a clash when files like regex.c define
60114 2000-05-06 Jim Meyering <meyering@lucent.com>
60116 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
60117 (AC_REPLACE_FUNCS): Add strnlen.
60119 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
60120 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
60122 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
60123 AC_SEARCH_LIBS call for nanosleep.
60124 (LIB_NANOSLEEP): Set and AC_SUBST.
60126 2000-05-06 Jim Meyering <meyering@lucent.com>
60128 * lib/strnlen.c: Undefine __strnlen and strnlen.
60129 [!weak_alias]: Define __strnlen to strnlen.
60131 * lib/atexit.c: New file, from libiberty.
60133 2000-05-06 Jim Meyering <meyering@lucent.com>
60135 * lib/closeout.c (close_stdout_status): Also check for errors on the
60138 2000-05-05 Jim Meyering <meyering@lucent.com>
60140 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
60141 AC_SEARCH_LIBS call for clock_gettime.
60142 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
60144 * m4/search-libs.m4: Update from autoconf.
60146 su doesn't work on Solaris 2.6.
60147 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
60148 <shadow.h>. Reported by Dragos Harabor.
60150 2000-05-05 Bruno Haible <haible@clisp.cons.org>
60152 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
60153 memcpy instead of xmalloc, xrealloc, path_concat.
60154 (locale_charset): Treat empty environment variables as absent.
60155 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
60157 2000-05-04 Jim Meyering <meyering@lucent.com>
60159 * lib/getopt.c: Update from glibc.
60160 * lib/obstack.c: Likewise.
60161 * lib/obstack.h: Likewise.
60162 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
60165 * lib/regex.h: Likewise.
60166 * lib/strndup.c: Likewise.
60167 * lib/strnlen.c: New file, from glibc.
60169 2000-05-03 Jim Meyering <meyering@lucent.com>
60171 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
60173 2000-05-02 Paul Eggert <eggert@twinsun.com>
60175 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
60176 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
60177 compile-time test, rather than inspecting host and OS, to
60178 decide whether to define _LARGEFILE_SOURCE.
60180 2000-05-01 Jim Meyering <meyering@lucent.com>
60182 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
60184 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
60185 Based on a patch from Bruno Haible.
60187 2000-05-01 Jim Meyering <meyering@lucent.com>
60189 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
60191 2000-04-29 Jim Meyering <meyering@lucent.com>
60193 * lib/path-concat.c: Declare strdup only if it's not defined.
60194 * lib/canon-host.c: Likewise.
60196 2000-04-28 Jim Meyering <meyering@lucent.com>
60198 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
60199 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
60200 is included first, then limits.h is included by locale.h by libintl.h.
60201 From John David Anglin.
60203 2000-04-25 Jim Meyering <meyering@lucent.com>
60205 * lib/makepath.c (S_IRWXUGO): Define.
60206 (make_path): Always perform explicit chmod if MODE specifies any
60207 of the `special' permission bits. Prompted by a bug report against
60208 install from Mate Wierdl and Joost van Baal.
60210 2000-04-18 Jim Meyering <meyering@lucent.com>
60212 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
60213 (jm_PREREQ): Use it.
60215 2000-04-18 Jim Meyering <meyering@lucent.com>
60217 * lib/README: New file.
60219 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
60220 getpagesize. For BeOS. Based on a patch from Bruno Haible.
60222 2000-04-17 Jim Meyering <meyering@lucent.com>
60225 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
60226 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
60227 Suggestion from Akim Demaille.
60229 2000-04-17 Jim Meyering <meyering@lucent.com>
60231 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
60232 the definition of it to rpl_strftime also defined-away the system's
60235 2000-04-15 Jim Meyering <meyering@lucent.com>
60237 Use `C' to denote so-called `contiguous' files, the same way
60239 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
60240 (ftypelet): Use S_ISCTG.
60241 From Michael Deutschmann.
60243 2000-04-14 Jim Meyering <meyering@lucent.com>
60245 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
60246 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
60249 2000-04-14 Jim Meyering <meyering@lucent.com>
60251 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
60253 2000-04-13 Jim Meyering <meyering@lucent.com>
60255 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
60256 AH_VERBATIM to insert required #ifndef into config.h.in.
60257 Suggestion from Akim Demaille.
60259 2000-04-12 Jim Meyering <meyering@lucent.com>
60261 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
60262 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
60263 Christian Krackowizer.
60265 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
60266 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
60267 (AC_SYS_LARGEFILE): Require.
60268 (AM_C_PROTOTYPES): Require.
60270 2000-04-08 Jim Meyering <meyering@lucent.com>
60272 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
60273 names don't conflict. Reported by Eli Zaretskii.
60275 2000-04-07 Jim Meyering <meyering@lucent.com>
60277 * lib/putenv.c: Move inclusion of errno.h so it follows that of
60278 sys/types.h, to work around system header problems on AIX 3.2.5.
60281 2000-04-07 Bruno Haible <haible@clisp.cons.org>
60283 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
60284 bug. Deal with the different error behavior of Irix iconv.
60286 2000-04-05 Paul Eggert <eggert@twinsun.com>
60288 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
60289 IRIX if the installer said otherwise.
60291 2000-04-05 Jim Meyering <meyering@lucent.com>
60293 Portability tweaks required for ultrix4.3.
60294 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
60295 (jm_CHECK_DECLS): Add getutent to the list of functions.
60296 (_jm_DECL_HEADERS): Add utmpx.h.
60297 From John David Anglin.
60299 * m4/strftime.m4: Back out the 2000-04-02 change.
60300 Instead of that change, simply undefine putenv in the test program.
60302 2000-04-05 Jim Meyering <meyering@lucent.com>
60304 Portability tweaks required for ultrix4.3.
60305 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
60307 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
60308 * lib/canon-host.c: Declare strdup.
60309 * lib/path-concat.c: Likewise.
60310 From John David Anglin.
60312 2000-04-04 Jim Meyering <meyering@lucent.com>
60314 Be more DOS 8.3-friendly.
60315 * lib/ref-add.sin: Renamed from ref-add.sed.in.
60316 * lib/ref-del.sin: Renamed from ref-del.sed.in.
60317 * lib/Makefile.am: Reflect renaming.
60318 Reported by Eli Zaretskii.
60320 Use a temporary file name that won't clash with `charset.alias'
60321 in the DOS 8.3 name space.
60322 * lib/Makefile.am (charset_tmp): Define.
60323 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
60324 (uninstall-local): Likewise.
60325 Reported by Eli Zaretskii.
60327 2000-04-03 Jim Meyering <meyering@lucent.com>
60329 * m4/gettext.m4: Fix typo in comment.
60331 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
60332 textutils/configure.in). Suggestion from Paul Eggert.
60333 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
60335 2000-04-02 Paul Eggert <eggert@twinsun.com>
60337 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
60338 variable in the shell rather than using putenv, which isn't
60339 portable. This avoids the configure-time inter-test dependency
60340 on the potentially-renamed putenv function.
60342 2000-03-30 Paul Eggert <eggert@twinsun.com>
60344 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
60345 before checking struct stat.st_blksize, so that
60346 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
60348 2000-03-29 Paul Eggert <eggert@twinsun.com>
60350 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
60351 since strftime.c uses HAVE_STRFTIME to decide whether to use
60352 the underlying strftime.
60354 2000-03-29 Paul Eggert <eggert@twinsun.com>
60356 * lib/time/strftime.c (my_strftime): Make sure we call the system
60357 strftime, not ourselves, when invoking the underlying strftime.
60359 2000-03-24 Jim Meyering <meyering@lucent.com>
60361 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
60362 (charset_alias): Define.
60363 (install-exec-local): Factor out common code.
60364 (uninstall-local): Split lines longer than 80.
60365 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
60366 (SUFFIXES): Define.
60367 (.sed.in.sed): New rule. Don't redirect directly to $@.
60368 (CLEANFILES): Add ref-add.sed and ref-del.sed.
60370 2000-03-19 Bruno Haible <haible@clisp.cons.org>
60372 * lib/config.charset: Output a line containing "Packages using this
60374 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
60375 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
60376 ref-del.sed): New rules.
60378 2000-03-17 Jim Meyering <meyering@lucent.com>
60380 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
60381 Otherwise, include <strings.h>
60383 2000-03-17 Bruno Haible <haible@clisp.cons.org>
60385 * lib/unicodeio.c (utf8_wctomb): New function.
60386 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
60387 format instead of in UCS-4 with platform dependent endianness.
60389 2000-03-10 Jim Meyering <meyering@lucent.com>
60391 * m4/lib-check.m4: Look for getspnam in -lgen, too.
60392 From Marco Franzen.
60394 2000-03-07 Paul Eggert <eggert@twinsun.com>
60396 * lib/savedir.c (savedir): Work even if directory size is
60397 negative; this can happen with some screwy NFS configurations.
60399 2000-03-06 Jim Meyering <meyering@lucent.com>
60401 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
60402 if it's NULL (because we ran out of memory). From Bruno Haible.
60404 2000-03-05 Jim Meyering <meyering@lucent.com>
60406 * lib/localcharset.c ("path-concat.h"): Include.
60407 (get_charset_aliases): Use path_concat instead of ANSI string
60410 * lib/unicodeio.h (PARAMS): Define.
60411 Use it to guard prototype.
60413 2000-03-04 Jim Meyering <meyering@lucent.com>
60415 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
60416 for lib/localcharset.c.
60418 2000-03-04 Jim Meyering <meyering@lucent.com>
60420 * lib/Makefile.am (install-exec-local): Create $(libdir) before
60421 installing into it.
60422 (uninstall-local): Uncomment this rule so `make distcheck' works
60425 * lib/unicodeio.c (<errno.h>): Include it.
60426 (errno): Declare if not defined.
60428 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
60430 * lib/config.charset: New version, incorporating remarks from a linux
60431 i18n mailing list. From Bruno Haible.
60433 2000-03-04 Bruno Haible <haible@clisp.cons.org>
60435 * m4/codeset.m4: New file.
60436 * m4/iconv.m4: New file.
60437 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
60439 2000-03-03 Jim Meyering <meyering@lucent.com>
60441 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
60443 2000-03-02 Jim Meyering <meyering@lucent.com>
60445 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
60446 the messages come out on separate lines.
60448 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
60449 rather than jm_CHECK_DECLARATIONS.
60450 * m4/decl.m4: Remove now-unused file.
60452 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
60455 2000-03-02 Jim Meyering <meyering@lucent.com>
60457 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
60459 2000-03-01 Jim Meyering <meyering@lucent.com>
60461 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
60462 * lib/unicodeio.c: Likewise.
60464 2000-03-01 Bruno Haible <haible@clisp.cons.org>
60466 * lib/config.charset: New file.
60467 * lib/localcharset.c: New file.
60468 * lib/unicodeio.h, lib/unicodeio.c: New files.
60469 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
60470 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
60471 (noinst_HEADERS): Add unicodeio.h.
60472 (all-local, install-exec-local, charset.alias): New targets.
60474 2000-02-28 Paul Eggert <eggert@twinsun.com>
60476 * lib/quotearg.c (ALERT_CHAR): New macro.
60477 (quotearg_buffer_restyled): Use it.
60479 2000-02-27 Jim Meyering <meyering@lucent.com>
60481 * m4/check-decl.m4: Add getenv to the list.
60483 2000-02-27 Jim Meyering <meyering@lucent.com>
60485 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
60486 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
60488 * lib/backupfile.c: Guard inclusion of stdlib.h with
60489 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
60490 Declare malloc if needed.
60492 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
60493 `#ifndef HAVE_DECL..'
60494 now that autoconf always defines the HAVE_DECL_ symbols.
60495 * lib/human.c: Likewise.
60496 * lib/same.c: Likewise.
60497 * lib/strtoumax.c: Likewise.
60499 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
60500 declaration check was not run.
60501 * lib/hash.c: Likewise.
60502 * lib/human.c: Likewise.
60503 * lib/same.c: Likewise.
60504 * lib/strtoumax.c: Likewise.
60506 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
60507 `.', then first look up the entire `.'-containing string as a login
60510 2000-02-23 Jim Meyering <meyering@lucent.com>
60512 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
60513 in place of my hack.
60515 2000-02-18 Paul Eggert <eggert@twinsun.com>
60517 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
60518 (textint): New typedef.
60519 (parser_control): Member year changed from int to textint.
60521 (YYSTYPE): Removed; replaced by %union with int and textint members.
60522 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
60523 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
60524 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
60525 (tSNUMBER, tUNUMBER): Now of type <textintval>.
60526 (date, number, to_year): Use width of number in digits, not its value,
60527 to determine whether it's a 2-digit year, or a 2-digit time.
60528 (yylex): Store number of digits of numeric tokens.
60529 Reported by John Kendall.
60531 (parser_control): Changed from struct parser_control to typedef (for
60532 consistency). All uses changed.
60534 (tID): Removed; not used.
60535 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
60537 2000-02-14 Paul Eggert <eggert@twinsun.com>
60539 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
60540 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
60542 2000-02-12 Jim Meyering <meyering@lucent.com>
60544 * lib/userspec.c (ISDIGIT): Define it.
60545 (isdigit): Remove definition.
60546 (is_number): Use ISDIGIT, not isdigit.
60547 <libintl.h>: Include.
60548 (_ and N_): Define.
60549 (parse_user_spec): Mark translatable strings.
60551 2000-02-10 Jim Meyering <meyering@lucent.com>
60553 With these changes, nanosleep.[ch] are finally enough like the other
60554 lib/* replacement files to compile on a few more losing systems.
60556 * lib/nanosleep.h: Don't include config.h.
60557 Remove prototype from declaration of nanosleep.
60558 (PARAMS): Remove now-unneeded definition.
60559 * lib/nanosleep.c: #undef nanosleep.
60560 (rpl_nanosleep): Rename from nanosleep.
60562 2000-02-10 Jim Meyering <meyering@lucent.com>
60564 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
60565 gnu_nanosleep to rpl_nanosleep.
60567 2000-02-09 Jim Meyering <meyering@lucent.com>
60569 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
60570 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
60572 2000-02-08 Akim Demaille <akim@epita.fr>
60574 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
60575 `[' and `]' and remove uses of `changequote'.
60576 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
60577 (AC_SYS_LARGEFILE): Likewise.
60578 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
60579 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
60581 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
60582 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
60583 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
60584 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
60586 2000-02-05 Jim Meyering <meyering@lucent.com>
60588 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
60589 Remove explicit use of AC_HEADER_TIME. It is required by
60590 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
60591 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
60592 in autoconf whereby the expansion of the latter ended up preceding
60593 the expansion of its prerequisite, AC_HEADER_TIME.
60594 Reported by Volker Borchert.
60596 2000-02-03 Jim Meyering <meyering@lucent.com>
60598 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
60600 2000-02-03 Jim Meyering <meyering@lucent.com>
60602 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
60603 rather than with `#if HAVE_UTMPNAME'.
60605 2000-02-02 Jim Meyering <meyering@lucent.com>
60607 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
60608 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
60609 Reported by Eli Zaretskii.
60611 2000-02-01 Jim Meyering <meyering@lucent.com>
60613 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
60615 2000-01-31 Jim Meyering <meyering@lucent.com>
60617 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
60618 functions. Add the time.h and sys/time.h headers along with the
60619 AC_REQUIRE'ment of AC_HEADER_TIME.
60621 2000-01-31 Jim Meyering <meyering@lucent.com>
60623 * lib/nanosleep.h (nanosleep): Guard declaration with
60624 `#if ! HAVE_DECL_NANOSLEEP'.
60625 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
60626 the declaration in that vendor's sys/timers.h.
60627 Reported by Christian Krackowizer.
60629 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
60630 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
60631 (ISPRINT): Likewise.
60632 Reported by Tom Tromey.
60634 2000-01-30 Jim Meyering <meyering@lucent.com>
60636 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
60638 * m4/prereq.m4 (utmp_includes): Define.
60639 Check for ut_user and ut_name members in both struct utmpx
60642 2000-01-30 Jim Meyering <meyering@lucent.com>
60644 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
60645 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
60646 header files where only utmpx.ut_user is declared.
60648 * lib/readutmp.h (UT_USER): Define.
60650 2000-01-29 Jim Meyering <meyering@lucent.com>
60652 * m4/lib-check.m4: New file containing library-related checks from
60653 fileutils and sh-utils (textutils had none).
60655 2000-01-28 Jim Meyering <meyering@lucent.com>
60657 * m4/perl.m4: Change format of warning message to look more like that
60658 from the missing script. Suggestion from François Pinard.
60660 2000-01-25 Jim Meyering <meyering@lucent.com>
60662 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
60663 well as time.h in the compile check.
60664 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
60665 Fix typo in cross-compiling case: s/yes/no/.
60667 2000-01-23 Jim Meyering <meyering@lucent.com>
60669 * m4/jm-macros.m4: Move df-related tests here from
60670 fileutils/configure.in
60672 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
60673 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
60675 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
60676 s/space/ac_fsusage_space/.
60677 (jm_FILE_SYSTEM_USAGE): Take two parameters.
60679 * m4/ftruncate.m4: New file (derived from part of
60680 fileutils/configure.in).
60681 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
60682 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
60684 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
60685 AC_SUBST these here, rather than just in sh-util/configure.in, so
60686 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
60688 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
60689 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
60690 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
60691 (AC_SUBST(POW_LIBM)): Likewise.
60692 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
60694 2000-01-23 Jim Meyering <meyering@lucent.com>
60696 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
60699 2000-01-22 Jim Meyering <meyering@lucent.com>
60701 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
60703 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
60705 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
60707 (AC_CHECK_HEADERS): Likewise for sh-utils.
60708 (AC_CHECK_HEADERS): Likewise for textutils.
60709 Merge the three lists of headers.
60711 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
60712 from fileutils' configure.in.
60714 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
60715 code. Moved tests into their own function (_jm_DECL_HEADERS) in
60718 * m4/check-decl.m4: Use #if rather than #ifdef.
60719 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
60720 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
60721 (_jm_DECL_HEADERS): Define new function.
60722 (jm_CHECK_DECLARATIONS): Require it.
60724 2000-01-22 Jim Meyering <meyering@lucent.com>
60726 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
60727 [! HAVE_DECL_STRTOULL]: Declare strtoull.
60728 Required for some AIX systems. Reported by Christian Krackowizer.
60729 [TESTING] (main): New function.
60731 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
60732 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
60735 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
60738 * lib/strverscmp.c (ISDIGIT): Define.
60739 (strverscmp): Use ISDIGIT, not isdigit.
60741 2000-01-19 Jim Meyering <meyering@lucent.com>
60743 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
60744 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
60745 defines `struct timespec' in <sys/time.h>
60747 * m4/c-bs-a.m4: Remove uses of changequote altogether.
60748 Thanks to Akim for explaining.
60750 2000-01-17 Paul Eggert <eggert@twinsun.com>
60752 * lib/nanosleep.c (nanosleep):
60753 Don't use SA_INTERRUPT to decide whether to call sigaction, as
60754 POSIX.1 doesn't require SA_INTERRUPT and some systems
60755 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
60756 it's been part of POSIX.1 since day 1 (in 1988).
60758 2000-01-17 Jim Meyering <meyering@lucent.com>
60760 * lib/interlock: Remove unused file. Reported by François Pinard.
60762 2000-01-16 Paul Eggert <eggert@twinsun.com>
60764 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
60765 alert, backslash, formfeed, and vertical tab unnecessarily in
60766 shell quoting style.
60768 2000-01-16 Jim Meyering <meyering@lucent.com>
60770 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
60771 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
60772 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
60773 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
60775 2000-01-16 Jim Meyering <meyering@lucent.com>
60777 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
60778 because the latter didn't work.
60780 2000-01-15 Jim Meyering <meyering@lucent.com>
60782 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
60783 (AC_REPLACE_FUNCS): Add memcpy and memset.
60784 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
60786 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
60788 2000-01-12 Jim Meyering <meyering@lucent.com>
60790 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
60791 (jm_PREREQ): Use it.
60792 (jm_PREREQ_READUTMP): New macro.
60793 (jm_PREREQ): Use it.
60795 2000-01-11 Paul Eggert <eggert@twinsun.com>
60797 Quote multibyte characters correctly.
60798 * m4/c-bs-a.m4: New file.
60799 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
60800 (jm_PREREQ): Use it.
60802 2000-01-11 Paul Eggert <eggert@twinsun.com>
60804 * m4/uintmax_t.m4: Port to autoconf 2.13.
60806 2000-01-08 Jim Meyering <meyering@ascend.com>
60808 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
60809 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
60811 2000-01-04 Jim Meyering <meyering@ascend.com>
60813 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
60814 jm_STRUCT_DIRENT_D_TYPE.
60815 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
60816 jm_STRUCT_DIRENT_D_INO.
60817 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
60819 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
60821 * m4/utime.m4: Likewise.
60823 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
60824 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
60826 2000-01-03 Paul Eggert <eggert@twinsun.com>
60828 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
60829 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
60831 2000-01-02 Jim Meyering <meyering@ascend.com>
60833 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
60834 remember if this is necessary.
60836 1999-12-26 Jim Meyering <meyering@ascend.com>
60838 * m4/jm-macros.m4: Use it here.
60839 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
60841 1999-12-23 Jim Meyering <meyering@ascend.com>
60843 * m4/jm-macros.m4: Check for clock_gettime (moved from
60844 fileutils/configure.in)
60845 Check for gettimeofday.
60847 1999-12-20 Jim Meyering <meyering@ascend.com>
60849 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
60850 autoconf-2.14a-1999-12-20.
60852 1999-12-19 Jim Meyering <meyering@ascend.com>
60854 * m4/lstat-slash.m4: New file.
60855 * m4/jm-macros.m4: Use the new macro:
60856 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60858 1999-12-07 Jim Meyering <meyering@ascend.com>
60860 * m4/perl.m4: Require that File::Compare be available, too.
60861 Too many systems seem to lack it.
60863 * m4/strftime.m4: Add checks for most of the cpp macros tested in
60864 GNU's strftime.c. Prompted by a patch from Paul Eggert.
60866 1999-11-18 Paul Eggert <eggert@twinsun.com>
60868 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
60869 problem with the QNX 4.25 shell, which doesn't propagate exit
60870 status of failed commands inside shell assignments.
60872 1999-11-17 Jim Meyering <meyering@ascend.com>
60874 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
60876 1999-11-07 Jim Meyering <meyering@ascend.com>
60878 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
60880 1999-11-06 Jim Meyering <meyering@ascend.com>
60882 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
60883 * m4/jm-macros.m4 (jm_MACROS): Use it here.
60885 1999-11-05 Jim Meyering <meyering@ascend.com>
60887 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
60888 configure.in of textutils, fileutils, and sh-utils into this one
60889 (shared between those packages) file.
60890 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
60891 AC_STRUCT_ST_BLKSIZE.
60893 1999-11-03 Jim Meyering <meyering@ascend.com>
60895 * m4/ssize_t.m4: Remove file. No longer needed since the new version
60896 of AC_CHECK_TYPE checks includes unistd.h.
60897 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
60898 Suggestion from Akim Demaille.
60900 1999-10-30 Jim Meyering <meyering@ascend.com>
60902 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
60904 * m4/ls-mntd-fs.m4: Likewise.
60905 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
60906 * m4/jm-winsz1.m4: Likewise.
60908 * m4/const.m4: Remove file, since the fix made it into the experimental
60909 version of autoconf.
60910 * m4/mktime.m4: Likewise.
60912 * m4/check-type.m4: Remove file, now that the latest version of
60913 AC_CHECK_TYPE takes a third arg to specify additional #includes.
60915 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
60916 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
60919 1999-10-04 Jim Meyering <meyering@ascend.com>
60921 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
60923 1999-09-22 Paul Eggert <eggert@twinsun.com>
60925 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
60926 2.95.1 bug with HP-UX 10.20.
60928 1999-09-17 Jim Meyering <meyering@ascend.com>
60930 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
60931 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
60932 due to missing strdup (against sh-utils-2.0).
60934 1999-08-29 Jim Meyering <meyering@ascend.com>
60936 * m4/jm-macros.m4: Require jm_BISON.
60937 * m4/bison.m4: New file.
60939 1999-08-17 Paul Eggert <eggert@twinsun.com>
60941 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
60942 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
60944 1999-08-05 Jim Meyering <meyering@ascend.com>
60946 * m4/getline.m4: Rename test file from conftestdata to conftest.data
60947 to avoid conflicts with `conftest' on 8+3 filesystems.
60948 Suggestion from Eli Zaretskii.
60950 1999-08-04 Jim Meyering <meyering@ascend.com>
60952 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
60953 fileutils and sh-utils (textutils's getline test was inadequate).
60954 (AM_FUNC_GETLINE): Run this test.
60955 (AC_CHECK_FUNCS): Check for getdelim.
60956 Reported by Bob Proulx.
60958 1999-08-02 Jim Meyering <meyering@ascend.com>
60960 * m4/jm-macros.m4: Add a comment.
60962 1999-08-01 Paul Eggert <eggert@twinsun.com>
60964 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
60965 <inttypes.h> defines strtoumax as a macro (and not as a
60968 1999-08-01 Paul Eggert <eggert@twinsun.com>
60970 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
60971 that we can shift, multiply and divide unsigned long long
60972 values; Ultrix cc can't do it.
60974 1999-08-01 Paul Eggert <eggert@twinsun.com>
60976 * m4/mktime.m4: New file, which is a preview of what should appear
60977 in the next public autoconf release.
60979 1999-08-01 Paul Eggert <eggert@twinsun.com>
60981 * m4/lfs.m4: Remove this file.
60982 * m4/largefile.m4: New file. It contains the old contents of
60983 lfs.m4, except that all names with prefix AC_LFS have been
60984 changed to use the prefix AC_SYS_LARGEFILE instead, to be
60985 compatible with future autoconf versions. Also, some minor m4
60986 quoting problems have been fixed.
60988 1999-08-01 Paul Eggert <eggert@twinsun.com>
60990 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
60991 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
60992 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
60993 and simplify the shell code.
60995 1999-08-01 Jim Meyering <meyering@ascend.com>
60997 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
61000 1999-07-20 Jim Meyering <meyering@ascend.com>
61002 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
61004 1999-07-15 Jim Meyering <meyering@ascend.com>
61006 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
61008 1999-05-22 Jim Meyering <meyering@ascend.com>
61010 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
61012 1999-05-20 Jim Meyering <meyering@ascend.com>
61014 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
61015 Add a colon after each `then' in case $4 is empty.
61017 1999-05-16 Jim Meyering <meyering@ascend.com>
61019 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
61021 1999-05-10 Jim Meyering <meyering@ascend.com>
61023 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
61025 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
61028 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
61030 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
61032 1999-05-04 Paul Eggert <eggert@twinsun.com>
61034 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
61035 not CPPFLAGS, so that linking works correctly in IRIX.
61037 1999-04-30 Paul Eggert <eggert@twinsun.com>
61039 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
61041 1999-04-20 Paul Eggert <eggert@twinsun.com>
61043 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
61044 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
61045 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
61046 jm_AC_TYPE_UNSIGNED_LONG_LONG.
61047 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
61049 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
61051 1999-04-20 Jim Meyering <meyering@ascend.com>
61053 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
61054 AC_REPLACE xstroull if necessary. From Paul Eggert.
61055 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
61057 1999-04-18 Jim Meyering <meyering@ascend.com>
61059 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
61060 * m4/jm-macros.m4: Use it.
61062 1999-04-06 Jim Meyering <meyering@ascend.com>
61064 * m4/strftime.m4: Remove test for %f.
61066 1999-03-29 Jim Meyering <meyering@ascend.com>
61068 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
61069 superset of the AC_TYPE_* checks in the textutils, fileutils,
61070 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
61073 1999-03-28 Jim Meyering <meyering@ascend.com>
61075 * m4/jm-macros.m4: Define GNU_PACKAGE here.
61076 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
61077 replaced e.g., in the *.sh files of the sh-utils.
61079 1999-03-20 Jim Meyering <meyering@ascend.com>
61081 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
61082 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
61083 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
61085 1999-03-19 Jim Meyering <meyering@ascend.com>
61087 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
61089 1999-03-12 Jim Meyering <meyering@ascend.com>
61091 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
61093 1999-03-07 Jim Meyering <meyering@ascend.com>
61095 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
61098 1999-02-17 Jim Meyering <meyering@ascend.com>
61100 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
61101 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
61103 1999-02-07 Jim Meyering <meyering@ascend.com>
61105 * m4/group-member.m4: New file -- extracted from sh-utils'
61108 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
61109 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
61111 1999-02-06 Jim Meyering <meyering@ascend.com>
61113 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
61114 * m4/fnmatch.m4: Likewise.
61115 * m4/getgroups.m4: Likewise.
61116 * m4/lstat.m4: Likewise.
61117 * m4/malloc.m4: Likewise.
61118 * m4/putenv.m4: Likewise.
61119 * m4/realloc.m4: Likewise.
61120 * m4/regex.m4: Likewise.
61121 * m4/stat.m4: Likewise.
61122 * m4/strftime.m4: Likewise.
61123 Suggestion from Alain Magloire.
61125 * m4/chown.m4: Use `.$ac_objext', not `.o'.
61126 * m4/fnmatch.m4: Likewise.
61127 * m4/getgroups.m4: Likewise.
61128 * m4/getline.m4: Likewise.
61129 * m4/lstat.m4: Likewise.
61130 * m4/malloc.m4: Likewise.
61131 * m4/memcmp.m4: Likewise.
61132 * m4/putenv.m4: Likewise.
61133 * m4/realloc.m4: Likewise.
61134 * m4/regex.m4: Likewise.
61135 * m4/stat.m4: Likewise.
61136 * m4/strftime.m4: Likewise.
61137 Suggestion from Alain Magloire.
61139 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
61142 * m4/regex.m4: Add a run-time Test for proper operation of
61143 re_compile_pattern.
61145 1999-01-31 Jim Meyering <meyering@ascend.com>
61147 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
61149 1999-01-30 Jim Meyering <meyering@ascend.com>
61151 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
61153 * m4/jm-mktime.m4: Make this a wrapper around the official
61154 AM_FUNC_MKTIME rather than my private copy, now that the official one
61156 * m4/mktime.m4: Remove file.
61158 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
61159 * m4/uptime.m4: Likewise.
61160 * m4/uintmax_t.m4: Likewise.
61162 1999-01-28 Jim Meyering <meyering@ascend.com>
61164 * m4/jm-macros.m4: Use jm_AFS.
61165 * m4/afs.m4: New file (from fileutils' configure.in).
61167 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
61168 * m4/chown.m4: Likewise.
61169 * m4/d-ino.m4: Likewise.
61170 * m4/d-type.m4: Likewise.
61171 * m4/fnmatch.m4: Likewise.
61172 * m4/getgroups.m4: Likewise.
61173 * m4/gettext.m4: Likewise.
61174 * m4/jm-mktime.m4: Likewise.
61175 * m4/jm-winsz2.m4: Likewise.
61176 * m4/lcmessage.m4: Likewise.
61177 * m4/ls-mntd-fs.m4: Likewise.
61178 * m4/malloc.m4: Likewise.
61179 * m4/memcmp.m4: Likewise.
61180 * m4/putenv.m4: Likewise.
61181 * m4/realloc.m4: Likewise.
61182 * m4/st_mtim.m4: Likewise.
61183 * m4/strftime.m4: Likewise.
61185 1999-01-16 Jim Meyering <meyering@ascend.com>
61187 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
61188 (ARGMATCH_DIE_DECL): Define.
61190 1999-01-12 Jim Meyering <meyering@ascend.com>
61192 * m4/Makefile.am.in: Rewrite to avoid using fmt.
61193 Reported by Lars Hecking.
61195 1999-01-10 Jim Meyering <meyering@ascend.com>
61197 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
61199 * m4/inttypes_h.m4: Likewise.
61200 * m4/lstat.m4: Likewise.
61201 * m4/malloc.m4: Likewise.
61202 * m4/readdir.m4: Likewise.
61203 * m4/realloc.m4: Likewise.
61204 * m4/st_dm_mode.m4: Likewise.
61205 * m4/stat.m4: Likewise.
61206 * m4/utimbuf.m4: Likewise.
61207 * m4/utimes.m4: Likewise.
61209 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
61210 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
61211 comments in config.h.in are meaningful.
61213 * m4/jm-macros.m4: Require autoconf-2.13 here.
61215 * m4/regex.m4: By default, don't use the included regex.c on systems
61216 with glibc 2. Suggestion from Uli Drepper.
61218 1999-01-02 Jim Meyering <meyering@ascend.com>
61220 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
61222 1998-12-18 Jim Meyering <meyering@ascend.com>
61224 * m4/Makefile.am.in (Makefile.am): Simplify rule.
61225 Based on a suggestion from Lars Hecking.
61227 1998-11-16 Paul Eggert <eggert@twinsun.com>
61229 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
61231 1998-11-16 Jim Meyering <meyering@ascend.com>
61233 * m4/lfs.m4: Double-quote the `uname...` expression.
61235 1998-11-14 Jim Meyering <meyering@ascend.com>
61237 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
61238 * m4/stat.m4: Likewise.
61240 1998-11-03 Jim Meyering <meyering@ascend.com>
61242 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
61243 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
61245 1998-10-18 Jim Meyering <meyering@ascend.com>
61247 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
61249 1998-10-17 Jim Meyering <meyering@ascend.com>
61251 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
61252 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
61253 calls for those previously hard-coded headers. Instead, take a new
61255 (jm_CHECK_DECLARATIONS): Reflect interface change.
61256 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
61257 (jm_CHECK_DECL_LOCALTIME_R): New macro.
61259 * m4/mktime.m4: Test for spring-forward gap before long-running test.
61261 1998-10-14 Jim Meyering <meyering@ascend.com>
61263 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
61264 instead of "TZ=America/Vancouver". From Paul Eggert.
61266 1998-10-11 Jim Meyering <meyering@ascend.com>
61268 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
61269 This adds a test for a recently added compatibility fix for mktime.c.
61270 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
61272 1998-09-27 Jim Meyering <meyering@ascend.com>
61274 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
61276 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
61277 ../configure.in, including a change from Gordon Matzigkeit to allow
61278 cross-compiling for the Hurd.
61280 * m4/glibc.m4: New file/macro to test for the GNU C Library
61281 versions 1 and 2. From Gordon Matzigkeit.
61284 1998-09-21 Jim Meyering <meyering@ascend.com>
61286 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
61288 1998-08-18 Paul Eggert <eggert@twinsun.com>
61290 Port nanosecond-resolution times to UnixWare 2.1.2 and
61291 pedantic Solaris 2.6.
61293 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
61295 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
61296 Generate name of ns member, instead of just 1 or undef.
61297 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
61299 1998-08-15 Jim Meyering <meyering@ascend.com>
61301 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
61302 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
61303 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
61304 instead of jm_TYPE_SSIZE_T.
61306 1998-08-12 Jim Meyering <meyering@ascend.com>
61308 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
61310 1998-08-02 Jim Meyering <meyering@ascend.com>
61312 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
61313 in acconfig.h manually.
61315 1998-07-31 Paul Eggert <eggert@twinsun.com>
61317 * m4/st_mtim.m4: New file.
61319 1998-07-28 Jim Meyering <meyering@ascend.com>
61321 * m4/utimes.m4: Undef stat.
61323 1998-07-25 Jim Meyering <meyering@ascend.com>
61325 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
61326 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
61328 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
61330 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
61331 uid and gid actually remain unchanged.
61333 1998-07-07 Jim Meyering <meyering@ascend.com>
61335 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
61337 1998-07-04 Jim Meyering <meyering@ascend.com>
61339 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
61340 to prove that this macro can be used in packages without regex.c.
61342 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
61344 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
61347 1998-07-03 Jim Meyering <meyering@ascend.com>
61349 * m4/gettext.m4: Add -lintl if it's found to be necessary.
61351 * m4/gettext.m4: New file -- from gettext-0.10.35.
61352 * m4/lcmessage.m4: Likewise.
61353 * m4/progtest.m4: Likewise.
61355 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
61356 * m4/jm-macros.m4: Require the new macro.
61358 1998-06-29 Jim Meyering <meyering@ascend.com>
61360 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
61361 for the definition of NGROUPS (used in a system header included
61364 1998-06-28 Jim Meyering <meyering@ascend.com>
61366 * m4/ls-mntd-fs.m4: New file.
61367 * m4/fstypename.m4: New file.
61369 * m4/jm-macros.m4: Require the new macro.
61370 * m4/jm-glibc-io.m4: New file.
61372 1998-05-19 Jim Meyering <meyering@ascend.com>
61374 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
61375 * m4/lchown.m4: New file.
61377 * m4/Makefile.am.in: New file.
61378 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
61380 1998-05-14 Jim Meyering <meyering@ascend.com>
61382 * m4/Makefile.am (EXTRA_DIST): Add them.
61383 * m4/jm-macros.m4: New file.
61384 * m4/utimbuf.m4: New file.
61386 1998-05-12 Jim Meyering <meyering@ascend.com>
61388 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
61390 1998-05-11 Jim Meyering <meyering@ascend.com>
61392 * m4/isc-posix.m4: New file.
61394 1998-05-10 Jim Meyering <meyering@ascend.com>
61396 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
61398 1998-05-09 Jim Meyering <meyering@ascend.com>
61400 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
61401 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
61404 * m4/ssize_t.m4: New file.
61405 * m4/mktime.m4: Remove file -- the new automake has this now.
61407 1998-04-26 Jim Meyering <meyering@ascend.com>
61409 * m4/assert.m4: New file.
61410 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
61412 1998-04-05 Jim Meyering <meyering@ascend.com>
61414 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
61415 (jm_PREREQ): Use it here.
61417 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
61419 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
61422 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
61424 * m4/prereq.m4: New file.
61425 * m4/error.m4: New file.
61426 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
61428 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
61430 * m4/getline.m4: Don't set am_cv_func_working_getline before the
61431 cache-check for the same variable -- that defeated the purpose of
61432 the test; the test program was never run. This was a problem only
61433 on systems with losing getline functions -- HP-UX 10.20 is one.
61434 Reported by Bjorn Helgaas.
61436 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
61438 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
61440 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
61442 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
61444 * m4/const.m4: New file. Use an initializer in this declaration
61445 typedef int charset[2]; const charset x;
61446 Reported by Bob Glickstein.
61448 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
61450 * m4/chown.m4: Fix reversed types on -1 args to chown.
61453 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
61455 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
61456 Add lseek and memchr.
61458 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
61459 T.E.Dickey <dickey@clark.net> said that some older preprocessors
61460 have a 20-character limit on names.
61462 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
61464 * m4/inttypes_h.m4: New file.
61465 * m4/uintmax_t.m4: New file.
61466 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
61475 Copyright (C) 1997-2010 Free Software Foundation, Inc.
61477 Copying and distribution of this file, with or without
61478 modification, are permitted provided the copyright notice
61479 and this notice are preserved.